/* Hallmark · tokens · IPTV Universe website
 * Frame: Geist + Geist Mono (Vercel, OFL, fonts/geist-OFL.txt), 4 px space scale, radii, motion,
 * chevron CTAs. Product colour: the app's locked palette from /design.md,
 * converted from its sRGB values to OKLCH. The publisher line in the footer (shiny lake)
 * uses the text colours, no colours of its own.
 */

/* Geist and Geist Mono: Vercel's variable fonts (npm package geist 1.9.2), subset to Latin with the wght axis kept. */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-variable-latin.woff2") format("woff2-variations"),
       url("fonts/geist-variable-latin.woff2") format("woff2");
}
/* The wordmark face, and only the wordmark: Unbounded SemiBold (OFL, fonts/unbounded-OFL.txt), a static
 * 600 instance subset to Basic Latin. Same file as the apps' res/font/unbounded_semibold.ttf. */
@font-face {
  font-family: "Unbounded Wordmark";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/unbounded-semibold-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-variable-latin.woff2") format("woff2-variations"),
       url("fonts/geist-mono-variable-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* ---- App palette (design.md § Theme) ---------------------------- */
  --color-ink:        oklch(15.00% 0.0208 264.3);  /* Ink — canvas */
  --color-ink-raised: oklch(20.85% 0.0394 267.6);  /* InkRaised — panels */
  --color-ink-card:   oklch(26.20% 0.0399 265.2);  /* InkCard — resting control */
  --color-ink-lift:   oklch(32.00% 0.0571 264.4);  /* InkLift — hover / focus surface */
  --color-track:      oklch(33.20% 0.0503 266.7);  /* Track — outlines, rules */
  --color-bloom:      oklch(29.93% 0.0793 265.3);  /* Bloom — the single canvas glow */
  --color-starlight:  oklch(95.93% 0.0143 84.6);   /* Starlight — primary text */
  --color-mist:       oklch(80.58% 0.0247 262.1);  /* Mist — secondary text */
  --color-dim:        oklch(71.09% 0.0282 264.4);  /* Dim — tertiary text */
  --color-aurora:     oklch(84.39% 0.0941 187.1);  /* Aurora — interaction only */
  --color-aurora-hover: oklch(89.50% 0.0800 187.1);
  --color-violet:     oklch(66.26% 0.1876 285.3);  /* Violet — identity only (orbit) */

  /* ---- Semantic --------------------------------------------------- */
  --color-paper:     var(--color-ink);
  --color-surface:   var(--color-ink-raised);
  --color-fg-1:      var(--color-starlight);
  --color-fg-2:      var(--color-mist);
  --color-fg-3:      var(--color-dim);
  --color-rule:      var(--color-track);
  --color-accent:    var(--color-aurora);
  --color-accent-fg: var(--color-ink);
  --color-focus:     var(--color-aurora);
  --color-scrim:     oklch(15.00% 0.0208 264.3 / 0.78);
  --color-shadow:    oklch(8% 0.02 264 / 0.6);
  /* Light spilled by a lit screen and by the mark: violet from the orbit, a trace of mint. */
  --color-glow-violet: color-mix(in oklch, var(--color-violet) 34%, transparent);
  --color-glow-mint:   color-mix(in oklch, var(--color-aurora) 12%, transparent);
  --color-tab-on:      color-mix(in oklch, var(--color-aurora) 16%, var(--color-ink-card));

  /* ---- Type (Geist everywhere, Geist Mono for numbers; the wordmark in Unbounded) */
  --font-display: "Geist Variable", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Geist Variable", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand:   "Unbounded Wordmark", "Geist Variable", "Geist", system-ui, sans-serif; /* the name only */
  --tracking-brand: -0.02em;
  --font-mono:    "Geist Mono Variable", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs:   0.8125rem;  /* 13 */
  --text-sm:   0.9375rem;  /* 15 — app Small */
  --text-md:   1.0625rem;  /* 17 — app Body */
  --text-lg:   1.25rem;    /* 20 — app Name */
  --text-xl:   1.625rem;   /* 26 — app Heading */
  --text-2xl:  clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --text-display: clamp(2.625rem, 0.6rem + 6vw, 6.75rem);
  --text-closing: clamp(2.125rem, 0.9rem + 4.4vw, 4.5rem);
  --text-statement: clamp(1.875rem, 1rem + 3.6vw, 3.5rem);

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;

  --leading-tight: 1.04;
  --leading-snug:  1.25;
  --leading-base:  1.55;

  --tracking-display: -0.042em;
  --tracking-tight:   -0.02em;
  --tracking-mono:     0.01em;

  /* ---- Space (4 px scale) ----------------------------------------- */
  --space-1:  0.25rem;  /*   4 */
  --space-2:  0.5rem;   /*   8 */
  --space-3:  0.75rem;  /*  12 */
  --space-4:  1rem;     /*  16 */
  --space-5:  1.25rem;  /*  20 */
  --space-6:  1.5rem;   /*  24 */
  --space-7:  2rem;     /*  32 */
  --space-8:  2.5rem;   /*  40 */
  --space-9:  3rem;     /*  48 */
  --space-10: 4rem;     /*  64 */
  --space-11: 5rem;     /*  80 */
  --space-12: 7rem;     /* 112 */
  --space-section: clamp(var(--space-10), 9vw, var(--space-12));
  --page-gutter: clamp(var(--space-5), 5vw, var(--space-10));
  --container: 80rem;   /* 1280 */
  --measure: 38rem;

  /* ---- Radii ------------------------------------------------------ */
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* ---- Rules & focus (focus mirrors the TV app: 3 px mint, 3 px gap) */
  --rule-hair:   1px;
  --rule-dash:   1.5px;
  --focus-width: 3px;
  --focus-gap:   3px;

  /* ---- Motion ----------------------------------------------------- */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:     cubic-bezier(0.55, 0, 0.75, 0.25);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 340ms;
  --dur-ink:  700ms;
}
