:root {
  color-scheme: light dark;
  --background: #fbfaf7;
  --text: #20242a;
  --muted: #5c6570;
  --link: #075eab;
  --focus: #b45309;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111315;
    --text: #edf0f3;
    --muted: #a8b0ba;
    --link: #8ab4f8;
    --focus: #f6c177;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 112.5%;
  line-height: 1.55;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.18rem;
}

.site-header {
  position: absolute;
  right: 0;
  top: 0;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1rem;
}

.language-nav ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-nav a {
  color: var(--muted);
}

.language-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.page {
  margin-inline: auto;
  max-width: none;
  padding: 1rem clamp(1rem, 4vw, 4rem);
}

#content {
  flex: 1;
}

.page h1 {
  font-family: SFMono-Regular, ui-monospace, monospace;
  font-size: clamp(4rem, 18vw, 10rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 2rem;
  max-width: 8ch;
  padding-right: 4rem;
  text-wrap: balance;
}

.page > :first-child {
  margin-top: 0;
}

.page > :last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 1rem clamp(1rem, 4vw, 4rem);
  font-family: SFMono-Regular, ui-monospace, monospace;
  font-size: 0.8888889rem;
  min-height: 4rem;
}

.site-footer p {
  margin-block: 0.25rem;
}

.footer-symbol {
  display: inline-block;
  text-align: center;
  width: 1.2em;
}
