/* ═══════════════════════════════════════════════════════
   THOUGHT SEED — document pages (/about, /privacy)

   These two pages are STATIC HTML in public/, deliberately outside the
   React app: the SPA serves one hardcoded pre-boot fallback containing
   the LANDING copy, so a crawler asking for /about would be handed the
   landing page. See the crawlability section of CLAUDE.md.

   Being outside the app means they cannot use Tailwind or src/index.css,
   so the tokens below are a hand-copy of the ones there. Copied, not
   eyeballed — the values must match src/index.css and
   src/styles/tokens.css exactly, or these pages read as a different
   website sitting on the same domain.

   Shared by both documents rather than inlined twice; two copies would
   drift the first time a token changed.
   ═══════════════════════════════════════════════════════ */

/* ── Type. Same faces as the app, same files. ────────── */
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

/* ── Tokens. Light is the default; dark overrides below. ── */
:root {
  --clay: 215 24% 90%;              /* #E0E5EC — the surface */
  --clay-light: 0 0% 100%;          /* the lamp */
  --clay-dark: 216 23% 71%;         /* #A3B1C6 — the cast */
  --clay-sunk: 215 22% 86%;
  --foreground: 0 0% 9%;            /* 14.3:1 on clay */
  --muted-foreground: 220 8% 36%;   /* 5.6:1 on clay */
  --action: 218 56% 42%;            /* 5.2:1 on clay */

  --radius: 1.25rem;
  --depth-2:
    -6px -6px 12px hsl(var(--clay-light) / 0.85),
     6px  6px 12px hsl(var(--clay-dark) / 0.60);

  --font-display: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-reading: "EB Garamond", Georgia, serif;
}

/* The attribute is stamped before first paint by the inline script in
   each document; with nothing stored we follow the OS. Both are needed:
   :root alone would ignore an explicit choice, and the media query alone
   would ignore the OS. Mirrors the app's ThemeProvider contract. */
:root[data-theme="dark"] {
  --clay: 214 14% 20%;              /* #2C323A — pinned, see CLAUDE.md */
  --clay-light: 217 14% 32%;        /* the lamp, DIMMED not inverted */
  --clay-dark: 218 22% 7%;
  --clay-sunk: 215 15% 16%;
  --foreground: 216 16% 94%;        /* 11.2:1 */
  --muted-foreground: 217 14% 68%;  /* 5.6:1 */
  --action: 217 50% 66%;            /* dark needs its own: #2F5CA8 is 1.98:1 here */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --clay: 214 14% 20%;
    --clay-light: 217 14% 32%;
    --clay-dark: 218 22% 7%;
    --clay-sunk: 215 15% 16%;
    --foreground: 216 16% 94%;
    --muted-foreground: 217 14% 68%;
    --action: 217 50% 66%;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: hsl(var(--clay));
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── Masthead, matching the landing nav. ─────────────── */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em;
  color: hsl(var(--foreground)); text-decoration: none;
}
.wordmark img { width: 2rem; height: 2rem; }

/* ── Prose. EB Garamond, because these are read at length. ── */
main { padding-bottom: 4rem; }
h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.standfirst {
  font-family: var(--font-reading);
  font-size: 1.25rem; line-height: 1.6;
  color: hsl(var(--muted-foreground)); margin: 0 0 2.5rem;
}
h2 {
  font-size: 1.375rem; letter-spacing: -0.02em; font-weight: 600;
  margin: 2.75rem 0 0.75rem;
}
h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
p, li {
  font-family: var(--font-reading);
  font-size: 1.125rem; line-height: 1.7;
  color: hsl(var(--foreground));
}
p { margin: 0 0 1.125rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1.125rem; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 600; }

a {
  color: hsl(var(--action));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* Focus is a HARD 2px ring, never a soft shadow. On a borderless
   surface a blurred focus style reads as no focus at all. */
a:focus-visible, .wordmark:focus-visible {
  outline: 2px solid hsl(var(--action));
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* ── Raised card. Same clay, no border, no fill. ─────── */
.card {
  background-color: hsl(var(--clay));
  border-radius: var(--radius);
  box-shadow: var(--depth-2);
  padding: 1.75rem;
  margin: 2rem 0;
}
.card p:last-child { margin-bottom: 0; }

/* A hairline is scored INTO the clay, not drawn across it. */
.groove {
  height: 2px; border: 0; margin: 3rem 0 1.5rem;
  border-radius: 2px;
  background: transparent;
  box-shadow:
    inset 0 1px 1px hsl(var(--clay-dark) / 0.55),
    0 1px 0 hsl(var(--clay-light) / 0.9);
}

footer { padding-bottom: 3rem; }
footer p {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.meta {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
