/* Design tokens shared by every page.
   Brand palette (never used directly in components): Navy, Steel, Deep, Ink, Pale.
   Components use the semantic tokens below, which switch with the system light/dark setting. */
:root{
  color-scheme:light dark;

  /* brand palette */
  --navy:#24528F; --steel:#7390B0; --deep:#13294B; --ink:#0E1116; --pale:#93AECD;

  /* light theme */
  --paper:#F8F8F6;          /* page */
  --card:#FFFFFF;           /* raised surfaces, modal */
  --text:#0E1116;           /* headings, strong text */
  --body:#3A4048;           /* body copy */
  --mute:#6B7280;           /* captions, labels */
  --rule:#E4E4DF;           /* hairlines */
  --mark-a:var(--steel);    /* "blue" and the slash */
  --mark-b:var(--navy);     /* "vista" and the reel word */
  --accent:var(--navy);     /* links, headings, focus ring */
  --accent-strong:var(--deep);
  --btn:var(--navy);
  --btn-hover:var(--deep);
  --btn-border:var(--navy);
  --btn-text:#FFFFFF;
  --ghost-border:#C8CDD6;
  --overlay:rgba(14,17,22,.55);
  --error:#B23A3A;
}

@media (prefers-color-scheme:dark){
  :root{
    --paper:var(--deep);
    --card:#1A3560;
    --text:#F4F6F9;
    --body:#C5D0DF;
    --mute:#8FA8C7;
    --rule:#2A4670;
    --mark-a:var(--pale);
    --mark-b:#FFFFFF;
    --accent:var(--pale);
    --accent-strong:#FFFFFF;
    --btn:var(--navy);
    --btn-hover:#2F63AA;
    --btn-border:var(--steel);
    --btn-text:#FFFFFF;
    --ghost-border:#3D5A85;
    --overlay:rgba(5,12,24,.7);
    --error:#EE9A9A;
  }
}
