/* ==========================================================================
   Marquee — design tokens
   One file drives the whole site. Change a palette by setting
   <html data-palette="festival | conference | expo">; components only read
   the semantic tokens (--accent, --hi, --c-a …), never raw hex values.
   ========================================================================== */

/* ---- Fonts (self-hosted, 2 families) -------------------------------------- */
/* Archivo is variable on two axes: weight 100–900 and width 62–125 %.
   Wide + black = poster headlines; narrow = stage tags and tickers. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  /* ---- Palette: festival (default) ------------------------------------------ */
  --c-ink:     #0d0c11;   /* near-black with a violet cast */
  --c-ink-2:   #1a1822;
  --c-paper:   #f3efe4;   /* warm bone */
  --c-paper-2: #e8e2d1;

  --accent:    #ff4b1f;   /* flame: primary CTA, stage 1 */
  --on-accent: #0d0c11;   /* ink on flame = 5.9:1 (white would be 3.3:1) */
  --hi:        #d9ff3f;   /* volt: highlighter, stage 2, "now" states */
  --c-a:       #ff4b1f;   /* stage / day colours, used in this order */
  --c-b:       #d9ff3f;
  --c-c:       #bda4ff;
  --c-d:       #ffc414;
  --c-e:       #ff9ccf;

  /* ---- Surfaces (set per section with data-surface="…") ---------------------- */
  --bg:        var(--c-paper);
  --bg-2:      var(--c-paper-2);
  --fg:        var(--c-ink);
  --fg-muted:  rgba(13, 12, 17, 0.62);
  --line:      rgba(13, 12, 17, 0.16);
  --line-strong: rgba(13, 12, 17, 0.9);

  /* ---- Type ------------------------------------------------------------------ */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-mega:  clamp(4.75rem, 0.5rem + 21vw, 27rem);      /* wordmarks, hero title */
  --fs-h1:    clamp(2.6rem, 0.6rem + 9vw, 11rem);
  --fs-h2:    clamp(2.2rem, 0.8rem + 5.6vw, 6.5rem);
  --fs-h3:    clamp(1.6rem, 1rem + 1.8vw, 2.75rem);
  --fs-h4:    clamp(1.2rem, 1rem + 0.5vw, 1.5rem);
  --fs-lead:  clamp(1.15rem, 1rem + 0.55vw, 1.5rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  --lh-tight: 0.86;       /* poster headlines */
  --lh-head:  0.95;
  --lh-body:  1.55;
  --ls-display: -0.025em;
  --ls-label:  0.08em;
  --stretch-wide: 125%;   /* font-stretch for display */
  --stretch-mid:  100%;
  --stretch-narrow: 68%;

  /* ---- Space (4px base) -------------------------------------------------------- */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 9rem;
  --section-y: clamp(5rem, 3rem + 8vw, 11rem);
  --gutter:    clamp(1.1rem, 0.5rem + 2.4vw, 3rem);
  --maxw:      108rem;
  --nav-h:     4.5rem;

  /* ---- Shape ------------------------------------------------------------------- */
  --r-sm:   0.625rem;
  --r-md:   1.1rem;
  --r-lg:   1.75rem;
  --r-pill: 999px;
  --notch:  0.9rem;       /* ticket perforation radius */

  /* ---- Elevation & motion --------------------------------------------------------- */
  --shadow-pop: 0 0.9rem 0 -0.25rem rgba(13, 12, 17, 0.9);  /* hard "sticker" shadow */
  --shadow-soft: 0 1.5rem 3rem -1rem rgba(13, 12, 17, 0.35);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.76, 0, 0.24, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.2s;
  --t-med:  0.45s;
  --t-slow: 0.9s;

  --z-nav: 50;
  --z-menu: 60;
  --z-cursor: 90;
  --z-transition: 100;
}

/* ---- Palette: conference (B2B) ------------------------------------------------------- */
[data-palette="conference"] {
  --c-ink: #0a0d1f;   --c-ink-2: #161a33;
  --c-paper: #eef0f6; --c-paper-2: #dfe3ee;
  --accent: #2c3cff;  --on-accent: #ffffff;   /* white on cobalt = 7.6:1 */
  --hi: #d9ff3f;
  --c-a: #2c3cff; --c-b: #d9ff3f; --c-c: #8fd3ff; --c-d: #ff7a59; --c-e: #c9b8ff;
  --fg-muted: rgba(10, 13, 31, 0.64);
  --line: rgba(10, 13, 31, 0.16);
  --line-strong: rgba(10, 13, 31, 0.9);
}

/* ---- Palette: expo (trade fair) ------------------------------------------------------- */
[data-palette="expo"] {
  --c-ink: #0a1511;   --c-ink-2: #14231d;
  --c-paper: #f1efe6; --c-paper-2: #e3e0d2;
  --accent: #0a7d55;  --on-accent: #ffffff;   /* white on emerald = 5.4:1 */
  --hi: #ffd23f;
  --c-a: #0a7d55; --c-b: #ffd23f; --c-c: #ff8a5b; --c-d: #9fe3c4; --c-e: #f5b7d5;
  --fg-muted: rgba(10, 21, 17, 0.64);
  --line: rgba(10, 21, 17, 0.16);
  --line-strong: rgba(10, 21, 17, 0.9);
}

/* ---- Surfaces ------------------------------------------------------------------------------ */
[data-surface="paper"]  { --bg: var(--c-paper); --bg-2: var(--c-paper-2); --fg: var(--c-ink); --fg-muted: rgba(13, 12, 17, 0.62); --line: rgba(13, 12, 17, 0.16); --line-strong: rgba(13, 12, 17, 0.9); }
[data-surface="ink"]    { --bg: var(--c-ink);   --bg-2: var(--c-ink-2);   --fg: var(--c-paper); --fg-muted: rgba(243, 239, 228, 0.62); --line: rgba(243, 239, 228, 0.18); --line-strong: rgba(243, 239, 228, 0.9); }
[data-surface="accent"] { --bg: var(--accent); --bg-2: color-mix(in srgb, var(--accent) 88%, #000); --fg: var(--on-accent); --fg-muted: color-mix(in srgb, var(--on-accent) 68%, transparent); --line: color-mix(in srgb, var(--on-accent) 28%, transparent); --line-strong: var(--on-accent); }
[data-surface="hi"]     { --bg: var(--hi); --bg-2: color-mix(in srgb, var(--hi) 88%, #000); --fg: var(--c-ink); --fg-muted: rgba(13, 12, 17, 0.66); --line: rgba(13, 12, 17, 0.2); --line-strong: rgba(13, 12, 17, 0.9); }
[data-surface="c"]      { --bg: var(--c-c); --bg-2: color-mix(in srgb, var(--c-c) 88%, #000); --fg: var(--c-ink); --fg-muted: rgba(13, 12, 17, 0.66); --line: rgba(13, 12, 17, 0.2); --line-strong: rgba(13, 12, 17, 0.9); }
[data-surface="d"]      { --bg: var(--c-d); --bg-2: color-mix(in srgb, var(--c-d) 88%, #000); --fg: var(--c-ink); --fg-muted: rgba(13, 12, 17, 0.66); --line: rgba(13, 12, 17, 0.2); --line-strong: rgba(13, 12, 17, 0.9); }
[data-surface="e"]      { --bg: var(--c-e); --bg-2: color-mix(in srgb, var(--c-e) 88%, #000); --fg: var(--c-ink); --fg-muted: rgba(13, 12, 17, 0.66); --line: rgba(13, 12, 17, 0.2); --line-strong: rgba(13, 12, 17, 0.9); }

[data-surface] { background: var(--bg); color: var(--fg); }

/* Reduced motion: every duration collapses; content is always visible. */
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0.01s; --t-med: 0.01s; --t-slow: 0.01s; }
}
