/*
 * site-tokens.css — design tokens for scopenote.com and the ScopeNote videos.
 * Look: "Plate" (chosen by Daniel 2026-11-15). Rules: DESIGN-LANGUAGE.md.
 *
 * Every page and video frame reads these names. No color, font or size is
 * written anywhere else.
 *
 * Standalone on purpose: the site has its OWN look, separate from the app
 * (Daniel 2026-11-15). Nothing here aliases the app's tokens, and the app's
 * blue/gray/Plex must not leak in. The app appears on the site only inside
 * its own screenshots. Two exceptions, both deliberate: the logo file is the
 * app's, unchanged; and quoted report text uses the report's font
 * (--site-font-report) so readers see what the real report looks like.
 *
 * Fonts are self-hosted from fonts/site/ (SIL Open Font License; licenses in
 * the same folder) and fonts/ (Spectral). No Google Fonts request.
 * Lives at the design-folder root on purpose: the export wipes src/, not this.
 */

@font-face { font-family: "Fraunces"; src: url("fonts/site/Fraunces-Variable.woff2") format("woff2"), url("fonts/site/Fraunces-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/site/SchibstedGrotesk-Variable.woff2") format("woff2"), url("fonts/site/SchibstedGrotesk-Variable.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/site/SchibstedGrotesk-Italic-Variable.woff2") format("woff2"), url("fonts/site/SchibstedGrotesk-Italic-Variable.ttf") format("truetype"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/site/DMMono-Regular.woff2") format("woff2"), url("fonts/site/DMMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/site/DMMono-Medium.woff2") format("woff2"), url("fonts/site/DMMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/site/Spectral-Regular.woff2") format("woff2"), url("fonts/Spectral-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/site/Spectral-Italic.woff2") format("woff2"), url("fonts/Spectral-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* === COLOR === */
  /* Paper: where the words live. */
  --site-paper:        #f1ece2;  /* warm paper, the page ground */
  --site-paper-deep:   #e7e0d2;  /* a quieter paper band */
  --site-ink:          #1b1d1a;  /* text on paper (14.4:1) */
  --site-ink-2:        #4d504a;  /* secondary text on paper (7.0:1; darkened 2026-11-17 for legibility) */
  --site-label:        #7a5c1c;  /* figure labels on paper: dark gold (5.3:1) */
  --site-rule:         rgba(27, 29, 26, 0.16);
  --site-sheet:        #fbf8f2;  /* a report page lying on paper */

  /* Plate: where the software lives. A dark band that makes the app the
     brightest thing on the page. */
  --site-plate:        #1d2420;  /* green-black plate */
  --site-plate-ink:    #d9d6cc;  /* text on the plate (10.9:1) */
  --site-plate-ink-2:  #adb2a8;  /* source lines on the plate (7.3:1; lightened 2026-11-17 for legibility) */
  --site-plate-rule:   rgba(217, 214, 204, 0.14);

  /* Accent: warm gold. Figure keys, key numbers, focus. Never a fill for
     large areas, never a gradient. Not the app's blue. */
  --site-accent:       #d4a346;  /* on the plate (6.9:1) */
  --site-on-accent:    #1d2420;  /* numbers inside a gold key */
  /* Voice blue — the logo's lens blue (Daniel 2026-11-16: "we need some blue").
     One meaning only: the physician's VOICE (sound waves, spoken phrases, words
     leaving the phone). Gold stays the accent for keys, pins and actions. */
  --site-voice:        #5aa2ea;  /* on the plate (5.9:1), lifted from the lens blue */
  --site-voice-paper:  #245e9e;  /* on paper, for text (5.6:1) */
  --site-focus:        #d4a346;

  /* === TYPE === */
  --site-font-display: "Fraunces", Georgia, serif;             /* headlines */
  --site-font-text:    "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; /* reading, UI */
  --site-font-mono:    "DM Mono", Menlo, monospace;            /* figure numbers, labels, source lines */
  --site-font-report:  "Spectral", Georgia, serif;             /* ONLY for quoted report text */

  --site-display-axes: "opsz" 144, "SOFT" 30;  /* Fraunces at headline size, slightly soft */
  --site-weight-display: 360;
  --site-weight-text:    400;
  --site-weight-strong:  500;

  --site-text-caption: 0.875rem;  /* 14 — mono labels and source lines (was 13; raised 2026-11-17 for legibility) */
  --site-text-small:   0.9375rem; /* 15 */
  --site-text-body:    1.0625rem; /* 17 */
  --site-text-lead:    1.25rem;   /* 20 */
  --site-text-h3:      1.75rem;   /* 28 */
  --site-text-h2:      clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem);  /* 36–60 */
  --site-text-h1:      clamp(2.75rem, 1.4rem + 5.4vw, 5rem);     /* 44–80 */

  --site-leading-display: 1.04;
  --site-leading-body:    1.6;
  --site-tracking-display: -0.015em;
  --site-tracking-label:   0.06em;

  /* === SPACE === */
  --site-space-1: 0.25rem;  /* 4 */
  --site-space-2: 0.5rem;   /* 8 */
  --site-space-3: 0.75rem;  /* 12 */
  --site-space-4: 1rem;     /* 16 */
  --site-space-5: 1.5rem;   /* 24 */
  --site-space-6: 2rem;     /* 32 */
  --site-space-7: 3rem;     /* 48 */
  --site-space-8: 4rem;     /* 64 */
  --site-space-9: 5rem;     /* 80 — inside a plate */
  --site-space-10: 6.5rem;  /* 104 — between sections */

  --site-measure:  32em;
  --site-page-max: 75rem;   /* 1200 */
  --site-gutter:   clamp(1rem, 4vw, 2.5rem);  /* 16px on a phone */
  --site-screen-max: 37.5rem;  /* widest a screenshot is shown (600) */

  /* === SHAPE === */
  --site-radius-screen:  6px;   /* screenshots on the plate */
  --site-radius-control: 4px;   /* buttons, fields */
  --site-key-size:       1.625rem;
  --site-shadow-screen:  0 30px 70px -30px rgba(0, 0, 0, 0.8);

  /* === MOTION === */
  --site-ease: cubic-bezier(0.2, 0, 0, 1);
  --site-duration-fast: 160ms;
  --site-duration:      320ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --site-duration-fast: 0ms;
    --site-duration:      0ms;
  }
}
