/* tokens.css: design podpis richdostal.cz (zamčeno 18.6.2026, DESIGN-PLAYBOOK.md)
   Fonty self-hosted (latin + latin-ext pro češtinu), žádný Google Fonts CDN request. */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400-latin.woff2') format('woff2');
  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: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-500-latin.woff2') format('woff2');
  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: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-600-latin.woff2') format('woff2');
  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: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400-italic-latin.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latin.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700-latin.woff2') format('woff2');
  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;
}

:root {
  /* ============ TMAVÁ PALETA (zamčeno 18.6.2026) ============
     Referenční implementace: quiz.html (celá stránka tmavá).
     Fáze 3-02: tyhle stejné tokeny se navíc recyklují jako „tmavý ostrov“
     VSL sekce na světlé stránce `/` (viz DESIGN-PLAYBOOK.md „Světlá varianta
     podpisu“ a .paul/phases/02-design-smer/02-01-SMER.md, kandidát A):
     hodnoty jsou bit-identické, proto NEVZNIKÁ paralelní --dark-* sada. */
  --bg: #15120d;
  --surface-1: #201a13;
  --surface-2: #2a2118;
  --accent: #FFF3C4;
  --text: #efe9df;
  --text-muted: #9c9388;
  --text-faint: #6a6053;

  /* ============ SVĚTLÁ PALETA (fáze 2, SCHVÁLENÁ 12.7.2026, Richard ANO) ============
     Používá se na `/` mimo VSL ostrov (ten čerpá z tmavé palety výše). */
  --page-bg: #faf6ec;
  --page-surface-1: #f2ebda;
  --page-surface-2: #eae1cc;
  --ink: #15120d;    /* = --bg hodnota; primární text + CTA pozadí na světlém */
  --gold: #c4a96a;   /* warm-gold akcent: linky, čísla kapitol, zlaté odemčení */
  --stone: #8b7355;  /* muted text, JEN na světlém; na tmavém nevyhovuje WCAG AA (~4.17:1) */

  /* Typografie */
  --font-serif: 'EB Garamond', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-heading: 600;
  --font-weight-bold: 700;

  --text-xs: 0.78rem;
  --text-sm: 0.85rem;
  --text-base: 0.92rem;
  --text-md: 0.95rem;
  --text-lg: 1rem;
  --text-h3: 1.05rem;
  --text-step-num: 1.6rem;
  --text-h2-video: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  --text-subheadline: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
  --text-h2: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --text-h1: clamp(1.85rem, 1.25rem + 3.1vw, 3.3rem);

  --leading-tight: 1.16;
  --leading-snug: 1.25;
  --leading-normal: 1.55;
  --leading-relaxed: 1.6;

  --tracking-normal: 0.05em;
  --tracking-wide: 0.09em;

  /* Signature: grain, dva registry (papír vs. film), 02-01-SMER.md kandidát C */
  --grain-opacity: 0.14;       /* film grain: quiz.html celá stránka + video-grain uvnitř ostrova */
  --grain-opacity-page: 0.10;  /* papír grain: světlá stránka `/` mimo ostrov */
  --grain-size: 180px;
  --glow-color: rgba(170, 120, 55, 0.13);
  --vignette-color: rgba(0, 0, 0, 0.55);              /* tmavé stránky (quiz.html) */
  --page-vignette-shadow: rgba(21, 18, 13, 0.10);      /* světlá stránka `/` */
  --page-vignette-glow: rgba(196, 169, 106, 0.07);

  /* Pohyb */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 380ms;
  --duration-slow: 700ms;
  --duration-reveal: 900ms;

  /* Layout */
  --content-max-width: 640px;
  --vsl-max-width: 720px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --touch-target-min: 44px;
  --border-hairline: 1px;
  --rule-height: 2px;

  /* Škála mezer (4 → 56px), snapováno z prototypu na konzistentní řadu */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;

  /* Vrstvení (z-index role, viz nalezený bug 02-01-SMER.md: grain/vignette
     musí být NAD obsahem sekcí, pod skeletonem a sticky CTA) */
  --z-content: 3;
  --z-video-grain: 5;
  --z-page-vignette: 19;
  --z-page-grain: 20;
  --z-sticky-cta: 600;
  --z-skeleton: 9999;

  /* Komponentní rozměry (jednotlivé role, kde generická škála nesedí) */
  --rule-width: 64px;
  --focus-outline-width: 2px;
  --focus-outline-offset: 3px;
  --play-button-size: 72px;
  --play-icon-size: 26px;
  --gate-form-max-width: 420px;
  --skeleton-eyebrow-h: 14px;
  --skeleton-headline-h: 34px;
  --calendly-height: 700px;
  --hidden-size: 1px;

  /* Zlatá: poloprůhledné role (zlaté odemčení, 02-01-SMER.md kandidát B) */
  --gold-ring: rgba(196, 169, 106, 0.08);
  --gold-border-soft: rgba(196, 169, 106, 0.3);
  --gold-glow: rgba(196, 169, 106, 0.35);
  --label-scrim: rgba(21, 18, 13, 0.55);
}

