/* Observes site styles, Direction C (Nathan, 2026-10-08 19:55Z; reading theme approved 20:05Z).
   Tokens from the design session's tokens.css; every text/ground pair below checks at WCAG AA or better.
   Fonts are served from /static/fonts (SIL OFL, licence beside them): no third-party origin. */

@font-face { font-family: "Geist"; src: url("/static/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e1116;          /* page ground */
  --bg-deep: #0b0e12;     /* footer band */
  --surface: #151a21;     /* form, code */
  --line: #2b313b;
  --line-soft: #252a33;
  --ink: #e6e8eb;         /* headings      15.4:1 */
  --body: #d3d7dc;        /* running text  13.1:1 */
  --muted: #b7bcc4;       /*                9.9:1 */
  --dim: #8b929c;         /* labels         6.0:1 */
  --link: #f0a23b;        /*                9.0:1 */
  --link-hover: #ffc06a;
  --action: #f0a23b;      /* the one button colour, both themes */
  --action-ink: #14110b;  /*                8.9:1 on --action */
  --field: #0b0e12;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --page-max: 1168px;
  --measure: 46rem;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

/* Light reading theme: long-form pages (crawler, privacy; later guides, reference, glossary, about). */
[data-theme="reading"] {
  --bg: #ffffff;
  --bg-deep: #f4f5f6;
  --surface: #f6f7f8;
  --line: #d9dce0;
  --line-soft: #e3e5e8;
  --ink: #0e1116;         /* 18:1 */
  --body: #22262c;        /* 15.2:1 */
  --muted: #454b54;       /* 8.8:1 */
  --dim: #5b616b;         /* 6.2:1 */
  --link: #9a5600;        /* 5.7:1; the light amber fails as text on white */
  --link-hover: #6e3d00;
  --field: #ffffff;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 17px/1.65 var(--font); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
code, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: logo, links, one button */
.site-header { border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 17px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--link); }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; flex: 1 1 auto; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.button { display: inline-block; background: var(--action); color: var(--action-ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 16px; border-radius: 8px; }
.button:hover { background: #ffb95a; color: var(--action-ink); }

/* Content column */
main { max-width: var(--page-max); margin: 0 auto; padding: 56px var(--gutter) 88px; }
main > * { max-width: var(--measure); }
main > ul.claims, main > form { max-width: var(--measure); }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 24px; }
h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; letter-spacing: -.01em; margin: 56px 0 16px; }
h3 { font-size: 20px; margin: 32px 0 12px; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin: 6px 0; }
strong { color: var(--ink); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }
h1 + p { font-size: 19px; color: var(--muted); }
.claims { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.claims li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.tagline { margin-top: 40px; font-size: 19px; color: var(--muted); }

/* The early-access form */
form.waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 32px); margin-top: 24px; }
form.waitlist label { display: block; color: var(--muted); font-size: 15px; }
form.waitlist input[type=email], form.waitlist textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid #3a414d; border-radius: 8px; padding: 12px 14px; margin: 6px 0 18px; }
[data-theme="reading"] form.waitlist input[type=email], [data-theme="reading"] form.waitlist textarea { border-color: #8a8f96; }
form.waitlist input[type=checkbox] { accent-color: var(--action); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
button, input[type=submit] { font: inherit; font-weight: 600; background: var(--action); color: var(--action-ink); border: 0; border-radius: 8px; padding: 12px 22px; cursor: pointer; min-height: 44px; }
button:hover { background: #ffb95a; }
.hp { position: absolute; left: -6000px; top: -6000px; }

/* Footer: links, the trading disclosure, the OGL notice */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-deep); font-size: 14px; line-height: 22px; color: var(--muted); }
.site-footer .wrap { padding-top: 36px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 14px; }
.site-footer p { margin: 0; max-width: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--link); }

/* Content pages (web.content): breadcrumbs, long-form elements, the end-of-page blocks (site plan §5.3, §5.4). */
.breadcrumbs { font-size: .9rem; color: var(--dim); margin: 0 0 1.5rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); }
.breadcrumbs span[aria-hidden] { margin: 0 .5rem; }
table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin: 1.25rem 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .75rem; border-bottom: 1px solid var(--line-soft); }
th { color: var(--ink); font-weight: 600; border-bottom-color: var(--line); }
blockquote { margin: 1.25rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--line); color: var(--muted); }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; overflow-x: auto; max-width: var(--measure); }
pre code { background: none; border: 0; padding: 0; }
.faq h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.cta { margin: 3rem 0 2rem; padding: 1.5rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-width: var(--measure); }
.cta h2 { margin-top: 0; }
.cta .button { margin-right: 1rem; }
.sources ul, .related ul { padding-left: 1.25rem; }
.sources li, .related li { font-size: .95rem; }
.page-meta { color: var(--dim); font-size: .9rem; margin-top: 3rem; }
