/* tokens.css · SPEC §3 · architect-owned. Light only: no prefers-color-scheme branch anywhere. */

/* Faces (self-hosted, subset; never named on the page) */
@font-face { font-family: "Google Sans"; src: url(/home/fonts/google-sans-hebrew.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Google Sans"; src: url(/home/fonts/google-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2197, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Science Gothic"; src: url(/home/fonts/science-gothic.woff2) format("woff2"); font-weight: 100 900; font-stretch: 112% 200%; font-display: swap; }
@font-face { font-family: "Google Sans Code"; src: url(/home/fonts/google-sans-code.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
/* the app's own files, used only inside rebuilt states (screens.css) */
@font-face { font-family: "Heebo"; src: url(/home/fonts/heebo-hebrew.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url(/home/fonts/heebo-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Hebrew"; src: url(/home/fonts/noto-sans-hebrew-hebrew.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

/* Metric-matched fallbacks: generated by web/fontmetrics.py, never hand-typed */
@font-face { font-family: "GS Fallback"; src: local("Arial Hebrew"), local("ArialHebrew"), local("Arial"); size-adjust: 112.97%; ascent-override: 85.51%; descent-override: 25.32%; line-gap-override: 0%; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA; }
@font-face { font-family: "GS Fallback"; src: local("Arial"); size-adjust: 100.41%; ascent-override: 96.21%; descent-override: 28.48%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "SG Fallback"; src: local("Arial"); size-adjust: 201.83%; ascent-override: 53.91%; descent-override: 19.22%; line-gap-override: 0%; }
@font-face { font-family: "GSC Fallback"; src: local("Menlo"), local("Consolas"); size-adjust: 99.66%; ascent-override: 96.93%; descent-override: 28.70%; line-gap-override: 0%; }

:root {
  color-scheme: only light;

  /* faces */
  --f-sans: "Google Sans", "GS Fallback", sans-serif;
  --f-wide: "Science Gothic", "SG Fallback", "Google Sans", sans-serif;
  --f-code: "Google Sans Code", "GSC Fallback", "Google Sans", monospace;

  /* colour · one material: white paper (§3.2) */
  --bg: #FFFFFF;
  --wash: #F6F6F7;
  --line: #E6E7EA;
  --line-strong: #C4C6CC;
  --ink: #0E0F11;
  --ink-2: #4A4D55;          /* 8.45 on bg */
  --ink-3: #676A72;          /* 5.41 on bg */
  --giant-standby: rgb(14 15 17 / .5);   /* 3.59, large text only */
  --rim: #141518;
  --rim-hi: #34363B;
  --accent: #FFD23F;         /* go · select · connected. Always with the 1px ink ring */
  --on-accent: #1C1B19;      /* 11.92 on accent */
  /* the finale band only */
  --night: #0D0E10;
  --night-ink: #F2F1EC;      /* 17.08 */
  --night-ink-2: #A6A9AF;    /* 8.20 */
  --night-line: #2A2D33;
  --glow: radial-gradient(closest-side, color-mix(in oklab, #F5F4F0 16%, transparent), transparent);

  /* shadows: static layers; only opacity/transform animate (§3.2, §8) */
  --shadow-rest: 0 1px 2px rgb(14 15 17 / .06), 0 10px 24px -12px rgb(14 15 17 / .16), 0 40px 72px -32px rgb(14 15 17 / .22);
  --shadow-lift: 0 2px 4px rgb(14 15 17 / .06), 0 24px 44px -16px rgb(14 15 17 / .24), 0 72px 120px -40px rgb(14 15 17 / .32);
  --floor: radial-gradient(closest-side, rgb(14 15 17 / .18), transparent);

  /* type scale (§3.1) */
  --t-h1-he: clamp(28px, 3.9vw, 58px);
  --t-h1-en: clamp(32px, 4vw, 60px);
  --t-h2-cap: clamp(20px, 2.4vw, 36px);
  --t-h2: clamp(28px, 3vw, 44px);
  --t-h2-finale: clamp(32px, 4.6vw, 68px);
  --t-body: 17px;
  --t-line: 17px;
  --t-small: 14px;

  /* space (§3.3) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 120px;
  --gutter: 48px;
  --container: 1200px;
  --nav-h: 64px;
  --r-key: 12px;
  --r-thumb: 10px;

  /* the device (≥ 1024): screen 320 × 640, rim 10 */
  --screen-w: 320px;
  --screen-h: 640px;
  --rim-w: 10px;

  /* easing and duration (§3.4) */
  --e-roll: cubic-bezier(.16, 1, .3, 1);   /* gsap "expo.out" */
  --e-rise: cubic-bezier(.16, 1, .3, 1);
  --e-lift: cubic-bezier(.16, 1, .3, 1);
  --e-key: cubic-bezier(.34, 1.56, .64, 1); /* gsap "back.out(1.7)" */
  --e-scan: cubic-bezier(.65, 0, .35, 1);   /* gsap "power2.inOut" */
  --d-roll: 900ms; --d-rise: 250ms; --d-lift: 420ms; --d-hover: 150ms; --d-key: 220ms; --d-scan: 600ms; --d-fade: 200ms;
}

@media (max-width: 1023.98px) { :root { --gutter: 32px; } }
@media (max-width: 767.98px) {
  :root { --gutter: 16px; --nav-h: 56px; --t-body: 15px; --t-line: 14px; }
}
