/* System fonts and same-origin files only: the page makes no request to
   another host, so it carries no third-party terms and needs no consent
   banner. */
:root {
  color-scheme: light dark;
  --bg: #faf8f5;
  --text: #1c1a18;
  --muted: #5f5852;
  --accent: #a8231b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141211;
    --text: #f3efea;
    --muted: #b3aba2;
    --accent: #f2877c;
  }
}

* { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  overflow-wrap: break-word;
}

/* The language link sits in its own row above the centered column: inside
   the column it would pull the h1 off center, and a row of its own keeps it
   pinned top-right however the copy wraps. */
.top {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  padding-top: 16px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0 48px;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* rem, not em: the lead and the detail lines differ in size but must wrap
   to the same measure. */
.lead { max-width: 36rem; margin-top: 16px; font-size: 1.125rem; text-wrap: balance; }
.sub { max-width: 36rem; margin-top: 12px; color: var(--muted); font-size: 1rem; text-wrap: balance; }

a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.lang { color: var(--muted); font-size: 0.95rem; }
.muted-link { color: var(--muted); }

footer {
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.875rem;
  text-wrap: balance;
}
footer p + p { margin-top: 4px; }
