/* Fonts are served from this site (not Google Fonts), so a visit contacts no one else.
 * Latin subset, SIL Open Font License 1.1: see assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/rubik-latin-400-700.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-500.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;
}

/* Reroll tokens. Brand colors sampled from the logo file (brand/reroll-logo.webp):
 * red #BC2220, tile #F3F5F6. Ink and dark surfaces are neutral black (no navy). */
:root {
  --color-paper: oklch(0.987 0.004 85);        /* page: warm white */
  --color-card: oklch(1 0 0);
  --color-tile: oklch(0.962 0.004 240);
  --color-ink: oklch(0.17 0 0);                /* near black */
  --color-ink-2: oklch(0.43 0 0);
  --color-ink-3: oklch(0.52 0 0);              /* 4.5:1 on paper, for small notes */
  --color-rule: oklch(0.9 0 0);
  --color-red: oklch(0.51 0.19 27);            /* logo red */
  --color-red-deep: oklch(0.44 0.17 27);
  --color-red-soft: oklch(0.955 0.025 27);
  --color-ad: oklch(0.83 0.15 85);             /* ad time (YouTube's ad bar is yellow) */
  --color-screen: oklch(0.13 0 0);             /* player: ad / loading (black) */
  --color-screen-2: oklch(0.27 0 0);           /* player: your video */
  --color-on-dark: oklch(0.98 0 0);
  --color-on-dark-dim: oklch(1 0 0 / 0.62);
  --color-on-dark-track: oklch(1 0 0 / 0.14);
  --color-focus: oklch(0.51 0.19 27);

  /* Comparison players */
  --color-panel: oklch(0 0 0);                 /* Reroll's loading panel, as in the extension (#000) */
  --color-panel-dim: oklch(1 0 0 / 0.7);
  --color-panel-chip: oklch(1 0 0 / 0.08);
  --color-player-chip: oklch(0 0 0 / 0.55);    /* ad badge, control bar shade */
  --color-adv-1: oklch(0.88 0.16 90);          /* the made-up "Crunchly" ad */
  --color-adv-2: oklch(0.74 0.18 55);
  --color-adv-ink: oklch(0.3 0.07 45);
  --color-video-sky: oklch(0.62 0.09 230);     /* stand-in until the video clip is added */
  --color-video-ground: oklch(0.45 0.1 145);
  --shadow-bag: 0 2cqw 2.4cqw oklch(0 0 0 / 0.3); /* drop-shadow under the chip bag (assets/crunchly-bag.svg) */
  --font-system: system-ui, -apple-system, 'Segoe UI', sans-serif; /* the extension panel's font */

  --font-display: 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  --text-hero: clamp(2.75rem, 1.2rem + 5vw, 5.25rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 8rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --rule: 1px solid var(--color-rule);
  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.06), 0 8px 24px oklch(0 0 0 / 0.07);
  --shadow-pop: 0 2px 6px oklch(0 0 0 / 0.08), 0 18px 40px oklch(0 0 0 / 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-med: 280ms;
  --dur-slow: 600ms;

  --measure: 60ch;
  --page: 1160px;
}
