/* Ancient Compass — design tokens (PREVIEW, private).
   Brand variant of DesignOps' locked 2026-10-22 system: display face Newsreader on every heading (replaced the earlier display face 2026-10-25), Inter UI,
   JetBrains Mono eyebrows and the card anatomy (eyebrow · title · short line · source line).
   Drops glass, glow, copper and orange; light-first parchment palette per DesignOps brand direction.
   Tweak values here; site.css only reads variables. */
@font-face{font-family:"Newsreader";src:url(fonts/newsreader.woff2) format("woff2");font-weight:350 700;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url(fonts/newsreader-italic.woff2) format("woff2");font-weight:350 700;font-style:italic;font-display:swap}
@font-face{font-family:"Literata";src:url(fonts/literata.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Literata";src:url(fonts/literata-italic.woff2) format("woff2");font-weight:400 600;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url(fonts/inter.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(fonts/jetbrainsmono.woff2) format("woff2");font-weight:500 600;font-style:normal;font-display:swap}
:root{
  /* palette — light first */
  --c-bg:#F6F1E7;          /* parchment */
  --c-raised:#FBF8F1;      /* raised surfaces, application panels */
  --c-sunk:#EFE8DA;        /* banner, footer band */
  --c-ink:#23201B;         /* text 14.4:1 on bg */
  --c-muted:#5E574C;       /* secondary text 6.3:1 on bg */
  --c-rule:#D8CDB8;        /* decorative hairlines (not meaning-bearing) */
  --c-rule-strong:#8C7F69; /* meaning-bearing borders, ≥3:1 */
  --c-brass:#8C6A2E;       /* compass + rules only (non-text, 4.4:1) */
  --c-focus:#2F4A7A;       /* focus ring */
  /* tradition accents: small marks and rules only, never fills */
  --c-con:#A33A2A;         /* Confucian cinnabar */
  --c-sto:#5B6B73;         /* Stoic slate */
  --c-chr:#2F4A7A;         /* Christian ultramarine */
  --c-grow:#3E6E4E;        /* calm green: Confucian growth in the brand compass (t126u); 5.3:1 on bg */
  --c-ref:#5E574C;         /* reference-only (classical Greek) */
  /* type */
  --f-display:"Newsreader",Georgia,"Times New Roman",serif;
  --f-body:"Literata","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --f-ui:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;
  --fs-body:18.5px; --lh-body:1.6; --measure:66ch;
  --fs-small:15px; --fs-ui:15px; --fs-meta:13.5px; --fs-eyebrow:12px;
  --fs-h1:clamp(2.3rem,1.4rem + 3.4vw,3.9rem);   /* Newsreader 450–500 at large sizes (display face since 2026-10-25, feedback 4) */
  --fs-h2:clamp(1.65rem,1.2rem + 1.5vw,2.3rem);
  --fs-h3:1.3rem;
  --fs-quote:1.3rem;
  /* space + shape */
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:24px;--s-6:32px;--s-7:48px;--s-8:72px;--s-9:112px;
  --page-w:1160px; --radius:6px; --hair:1px; --banner-h:30px;
  --c-ink-hover:#3A352D;   /* primary button hover */
  --c-banner-sub:#E9E1D2;  /* secondary text on the ink banner */
  --c-agent-bg:#EADDBF;    /* Compass Agent pill (legacy tint) */
  --c-agent-ink:#4A3510;   /* pill text, >=7:1 on the tint */
  --c-agent-line:#8C6A2E;  /* pill border (brass) */
  color-scheme:light;
}
/* Dark theme: warm ink-on-charcoal. Same roles as above; site.css is unchanged. Brass stays for the compass and rules only.
   Applied when <html data-theme="dark"> (set before first paint by the inline head script from the footer selector),
   and, with no script, when the system prefers dark. Contrast checked by _qa/qa.py (WCAG AA). */
:root[data-theme="dark"]{
  --c-bg:#1B1916;          /* charcoal */
  --c-raised:#242119;      /* raised surfaces */
  --c-sunk:#141210;        /* banner, footer band */
  --c-ink:#EDE5D6;         /* parchment-ink text, 14.6:1 on bg */
  --c-muted:#B7AD9B;       /* secondary text, 8.0:1 on bg */
  --c-rule:#3B362D;
  --c-rule-strong:#8F846F; /* meaning-bearing borders, >=3:1 */
  --c-brass:#C9A55E;       /* compass + rules only */
  --c-focus:#9DB8EE;
  --c-con:#E38B74;         /* cinnabar, lifted for dark */
  --c-sto:#A9BAC3;         /* slate, lifted */
  --c-chr:#9BB6EC;         /* ultramarine, lifted */
  --c-grow:#8DBF9C;        /* calm green, lifted; 8.4:1 on bg */
  --c-ref:#B7AD9B;
  --c-ink-hover:#D8CFBE;
  --c-banner-sub:#3A352D;
  --c-agent-bg:#3A2F19;
  --c-agent-ink:#EBD29C;
  --c-agent-line:#C9A55E;
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]){
    --c-bg:#1B1916;--c-raised:#242119;--c-sunk:#141210;--c-ink:#EDE5D6;--c-muted:#B7AD9B;--c-rule:#3B362D;--c-rule-strong:#8F846F;
    --c-brass:#C9A55E;--c-focus:#9DB8EE;--c-con:#E38B74;--c-sto:#A9BAC3;--c-chr:#9BB6EC;--c-grow:#8DBF9C;--c-ref:#B7AD9B;--c-ink-hover:#D8CFBE;--c-banner-sub:#3A352D;
    --c-agent-bg:#3A2F19;--c-agent-ink:#EBD29C;--c-agent-line:#C9A55E;
    color-scheme:dark;
  }
}

/* ---- Card lift (reusable component: .card-lift in site.css). 2026-10-24.
   --lift-y: hover/focus lift distance · --lift-shadow: soft theme-aware shadow · --lift-dur / --lift-ease: the compass easing. */
:root{--lift-y:-3px;--lift-dur:.35s;--lift-ease:cubic-bezier(.22,.7,.2,1);
  --lift-shadow:0 12px 26px -14px rgba(35,32,27,.38),0 2px 6px -3px rgba(35,32,27,.14);--lift-line:var(--c-rule-strong)}
:root[data-theme="dark"]{--lift-shadow:0 14px 30px -14px rgba(0,0,0,.75),0 0 0 1px rgba(201,165,94,.22)}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--lift-shadow:0 14px 30px -14px rgba(0,0,0,.75),0 0 0 1px rgba(201,165,94,.22)}}

/* ---- Daily widgets (2026-10-25): calendar, scene, review. Theme roles only; components read these. */
:root{--sc-shadow:#2A251D;--sc-glow:#D9B56A;--sc-sun:#E9D3A0}
:root[data-theme="dark"]{--sc-shadow:#0B0A08;--sc-glow:#E6C47A;--sc-sun:#D8B46B}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--sc-shadow:#0B0A08;--sc-glow:#E6C47A;--sc-sun:#D8B46B}}
