/* TOKENS - the only file in src/ allowed to hold colour literals (enforced by scripts/verify.mjs).
   Palette provenance:
   --green-500 #aafa73  dominant opaque pixel of brand/LOGO DECKPAD PNG.png (89.5% of pixels)
   --black     #000000  mark pixel of the same logo file
   --green-600 #92f972  dominant pixel of reference/DECKPAD 1-6 slides (74-76%)
   --green-700 #78c961  shadow green of reference/DECKPAD 1-6 slides (6-7%)
   --ink       #141f13  text ink of reference/DECKPAD 1-6 slides (8-9%)
   --white     #ffffff  neutral
   --mint      #00ffcc  specified in the project brief for the own-token pulse
   Every other surface is derived with color-mix() from the values above. */
:root {
  --green-500: #aafa73;
  --green-600: #92f972;
  --green-700: #78c961;
  --ink: #141f13;
  --black: #000000;
  --white: #ffffff;
  --mint: #00ffcc;

  --color-accent: var(--mint);
  --color-bg: var(--white);
  --color-text: var(--ink);
  --color-text-soft: color-mix(in srgb, var(--ink) 62%, transparent);
  --color-line: color-mix(in srgb, var(--ink) 14%, transparent);
  --color-surface: color-mix(in srgb, var(--green-500) 18%, var(--white));
  --color-surface-2: color-mix(in srgb, var(--green-500) 34%, var(--white));
  --color-up-bg: var(--green-700);
  --color-up-text: var(--ink);
  --color-down-bg: var(--ink);
  --color-down-text: var(--white);
  --color-flash-up: color-mix(in srgb, var(--green-600) 55%, transparent);
  --color-flash-down: color-mix(in srgb, var(--ink) 18%, transparent);
  --spot: color-mix(in srgb, var(--white) 70%, transparent);

  /* geometry - values read from the reference stylesheet */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 50px;
  --radius-pill: 60px;
  --menu-h: 64px;
  --unit: 16px;
  --gutter: 16px;
  --bp-sm: 700px;
  --bp-md: 1000px;
  --bp-lg: 1200px;

  /* fluid spacing - reference clamp curves */
  --sp-xs: clamp(8px, 7.3px + .22vw, 10px);
  --sp-sm: clamp(16px, 13.2px + .87vw, 24px);
  --sp-md: clamp(24px, 21.2px + .87vw, 32px);
  --sp-lg: clamp(32px, 29.2px + .87vw, 40px);
  --sp-xl: clamp(40px, 34.4px + 1.74vw, 56px);
  --sp-2xl: clamp(56px, 47.6px + 2.6vw, 80px);
  --sp-3xl: clamp(80px, 63.3px + 5.2vw, 128px);
  --sp-4xl: clamp(128px, 116.9px + 3.5vw, 160px);

  /* type */
  --font: Inter, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-body: clamp(16px, 15.6px + .11vw, 17px);
  --fs-lg: clamp(18.5px, 18.3px + .05vw, 19px);
  --fs-sm: clamp(12px, 11.3px + .22vw, 14px);
  --fs-h-2xl: clamp(58px, 18px + 12.6vw, 174px);
  --fs-h-xl: clamp(55px, 32px + 7vw, 120px);
  --fs-h-lg: clamp(44px, 33px + 3.5vw, 76px);
  --fs-h-md: clamp(34px, 28px + 1.74vw, 50px);
  --fs-h-sm: clamp(26px, 21.8px + 1.3vw, 38px);
  --fs-h-xs: clamp(24px, 22.6px + .43vw, 28px);

  /* motion - reference durations and easings */
  --t-fast: .2s;
  --t: .4s;
  --t-slow: .6s;
  --t-slower: .8s;
  --ease: cubic-bezier(.5, 0, 0, 1);
  --ease-bounce: cubic-bezier(.17, .67, .3, 1.33);
  --ease-smooth: cubic-bezier(.38, .005, .215, 1);
  --ease-inout: cubic-bezier(.455, .03, .515, .955);
  --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --ease-reveal: cubic-bezier(.23, 1, .32, 1);
}
@media (max-width: 999px) { :root { --menu-h: 56px; } }
