/* Hallmark v2.0.0 | mode: custom (game-dev engineering dossier & viewport) | surface: experience (dark default) / read (light writing default) | signature: live 16:9 Pitthu gameplay viewport in hero | floor: 16/16 | date: 2026-11-29 */
/* Critique: interface recedes in Viewport (Dark) mode so 16:9 gameplay video leads; Dossier (Light) mode serves 65ch script reading; zero newspaper broadsheet grid cages, zero middle-dots, zero eyebrows, zero glued arrows. */
/* Waivers: reflex-64 (IBM Plex Mono used strictly for C++ class identifiers, engine version tags, and tabular dates where code/telemetry is the material, pinned by brief);frontend-design-trait-1 (cream #fff9ec + coral #d96548 pinned by Pitthu palette brief, mitigated by defaulting showcase surfaces to #173d47 deep teal and using heavy Archivo grotesque display instead of serif). */

:root,
html[data-theme="dark"] {
  /* Locked Typography Tokens */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Locked 5 Pitthu Hexes (#fff9ec, #173d47, #257478, #18575c, #d96548) + rgba() only */
  --color-cream: #fff9ec;
  --color-deep-teal: #173d47;
  --color-dark-teal: #18575c;
  --color-teal: #257478;
  --color-coral: #d96548;

  /* Viewport (Dark) Surface Tokens — Default on Home (/), /work/*, /lab/* */
  --bg-canvas: #173d47;
  --bg-nav: rgba(23, 61, 71, 0.96);
  --bg-surface: #18575c;
  --bg-surface-subtle: rgba(255, 249, 236, 0.05);
  --bg-media-stage: #18575c;
  --text-primary: #fff9ec;                      /* 11.15:1 on #173d47 (AAA) */
  --text-secondary: rgba(255, 249, 236, 0.80);  /*  7.78:1 on #173d47 (AAA) */
  --text-on-stage: #fff9ec;                     /*  7.83:1 on #18575c (AAA) */
  --action-primary-bg: #fff9ec;
  --action-primary-text: #173d47;               /* 11.15:1 (AAA) */
  --action-primary-hover: rgba(255, 249, 236, 0.88);
  --action-secondary-bg: rgba(255, 249, 236, 0.08);
  --action-secondary-text: #fff9ec;
  --action-secondary-hover: rgba(255, 249, 236, 0.16);
  --link-color: #fff9ec;
  --link-underline: #d96548;                    /*  3.29:1 UI accent (AA) */
  --border-subtle: rgba(255, 249, 236, 0.18);
  --border-strong: #257478;
  --border-focus: #d96548;                      /*  3.29:1 focus ring (AA) */
  --accent-coral: #d96548;

  /* Layout & Spacing Scale (8pt base, Hallmark F15 page invariants) */
  --wrap-max: 1120px;
  --gutter: 24px;
  --grid-gap: 24px;
  --section-space: 80px;
  --radius-outer: 2px;
  --radius-inner: 0px;
  --nav-height: 64px;
}

html[data-theme="light"] {
  /* Dossier (Light) Surface Tokens — Default on /writing/did-you-know/ */
  --bg-canvas: #fff9ec;
  --bg-nav: rgba(255, 249, 236, 0.96);
  --bg-surface: rgba(23, 61, 71, 0.05);
  --bg-surface-subtle: rgba(23, 61, 71, 0.03);
  --bg-media-stage: #173d47;
  --text-primary: #173d47;                      /* 11.15:1 on #fff9ec (AAA) */
  --text-secondary: rgba(23, 61, 71, 0.78);     /*  5.77:1 on #fff9ec (AA)  */
  --text-on-stage: #fff9ec;                     /* 11.15:1 on #173d47 (AAA) */
  --action-primary-bg: #173d47;
  --action-primary-text: #fff9ec;               /* 11.15:1 (AAA) */
  --action-primary-hover: #18575c;
  --action-secondary-bg: rgba(23, 61, 71, 0.07);
  --action-secondary-text: #173d47;
  --action-secondary-hover: rgba(23, 61, 71, 0.14);
  --link-color: #18575c;                        /*  7.83:1 on #fff9ec (AAA) */
  --link-underline: #d96548;                    /*  3.39:1 UI accent (AA) */
  --border-subtle: rgba(23, 61, 71, 0.18);
  --border-strong: #18575c;
  --border-focus: #d96548;
  --accent-coral: #d96548;
}