/* Omea design tokens. Every value in the book comes from here. */
/* Website copy (5 Nov 2026): the Fontshare and Google Fonts @imports are removed. Every face is hosted locally.
   Geist Mono and Doto are the latin subsets from Google Fonts, variable files (SIL Open Font Licence). */
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-latin-variable.woff2') format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: 'Doto'; src: url('../fonts/Doto-latin-variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

/* Local copy of Switzer so the book renders offline and in PDF export. */
@font-face { font-family: 'Switzer'; src: url('../fonts/Switzer-Extralight.otf') format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/Switzer-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/Switzer-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/Switzer-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }

:root {
  /* Deck (final deck, 29 Oct 2026): the shared shell colours outside css/deck-final.css */
  --deck-label: #55565A;        /* kicker and mono labels on the slides */
  --deck-stage: #F1F0ED;        /* stage and paper inside the slides (css/deck.css) */
  --deck-tile: #ECEBE8;         /* tile fill inside the slides (css/deck.css) */
  --deck-print-ground: #E9E7E3; /* page ground behind the slides on 16-deck-final.html */

  /* Neutrals */
  --paper: #F7F5F2;          /* v2: warm paper is the page ground */
  --paper-cool: #FAFAFA;
  --card-paper: #F2EEE8;
  --white: #FFFFFF;
  --mist: #EEEEEE;
  --stone: #DADADA;
  --grey: #9E9E9E;
  --ink: #1A1A1A;
  --secondary: #686B72;
  --muted: #8A8D95;
  --hairline: #E6E7E9;

  /* Cool tints */
  --cool-1: #E9EEF2;
  --cool-2: #C9D5DF;
  --cool-3: #8FA2B2;
  --sage: #A8B7AB;

  /* Warm neutrals */
  --warm-1: #F7F5F2;
  --warm-2: #CFCAC3;
  --warm-3: #B8AFA6;
  --sand: #D9CBBE;

  /* Accents: one per view, lifted from the image in use */
  --apricot: #E3A06F;
  --ember: #C65A2E;
  --oxblood: #660708;
  --navy: #1F2A44;
  --accent: var(--apricot);

  /* Book and system neutrals (review 43): every colour the book uses beyond the brand palette, named once.
     Near-duplicates found by the sync check were folded into these. */
  --stage: #EDE6DC;          /* warm specimen ground behind elements */
  --stage-lt: #F4EEE6;       /* lighter specimen ground */
  --placeholder: #E8E2DA;    /* image placeholder, held frame */
  --card-hi: #FBFAF8;        /* card on paper (item page, sheets) */
  --card-find: #F0ECE6;      /* nested finding inside a card */
  --ink-2: #55575D;          /* secondary text that must pass AA on paper */
  --ink-soft: #3A3836;       /* dark control and wireframe ink */
  --dark: #2A2420;           /* warm dark ground */
  --dark-2: #3A3430;         /* warm dark, lifted */
  --dark-deep: #17140F;      /* film and screen black */
  --bezel: #121212;          /* device frame */
  --bezel-edge: #2B2B2B;
  --file-card: #D9CBB5;      /* 11.11.4 report file */
  --ember-deep: #96401C;
  --sage-deep: #5F725C;
  --guide: #0A84C8;          /* alignment overlay guides, book only */
  /* 11.10 map */
  --map-ground: #F1F0EE; --map-block: #F6F5F3; --map-lane: #E3E2DF; --map-river: #C9C8C5; --map-area: #5C5B58;
  /* 19.0 wireframe mode */
  --wf-ground: #F4F2EE; --wf-block: #D9D5CF; --wf-line: #CFCBC5; --wf-hatch-a: #EAE6E0; --wf-hatch-b: #F3F0EB;


  /* Glass: white over blur 24 */
  --glass-07: rgba(255, 255, 255, 0.07);
  --glass-19: rgba(255, 255, 255, 0.19);
  --glass-38: rgba(255, 255, 255, 0.38);
  --glass-75: rgba(255, 255, 255, 0.75);
  --glass-blur: 24px;

  /* Overlay system */
  --line: rgba(255, 255, 255, 0.85);
  --line-soft: rgba(255, 255, 255, 0.38);
  --line-ink: rgba(26, 26, 26, 0.55);
  --hair: 1px;

  /* Type */
  --voice: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --lab: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --readout: 'Doto', 'Geist Mono', monospace;
  --track-lab: 0.06em;
  --track-display: -0.035em;

  /* Spread geometry (design pixels, scaled to the screen by book.js) */
  --spread-w: 1920px;
  --spread-h: 1080px;
  --margin: 96px;
  --gutter: 24px;
  --col: calc((var(--spread-w) - 2 * var(--margin) - 11 * var(--gutter)) / 12);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
