/* The Hip Hop Lab — design tokens, revision 0.4.
   Owner: stage lane (docs/revision-0.4.md section 4). Other lanes read these.
   Every colour, type size, radius and timing used anywhere on the site comes from here.
   Contrast figures are measured WCAG ratios; see docs/revision-0.3.md section 4. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Dark ground: the default surface of every page. */
  --ink-0: #070708;            /* page */
  --ink-1: #0e0e10;            /* raised band */
  --ink-2: #17171a;            /* card, input */
  --ink-3: #232327;            /* hover on a card */
  --text: #f5f4f1;             /* 18.31:1 on ink-0 */
  --text-2: #b9b8b4;           /* 10.14:1 on ink-0 */
  --text-3: #8a8985;           /* 5.75:1 on ink-0, 5.11:1 on ink-2 */
  --line: rgb(255 255 255 / 0.14);
  --line-strong: rgb(255 255 255 / 0.34);

  /* Brand. */
  --brand-red: #b90000;        /* sampled from the THHL mark. Fill under white text: 6.86:1.
                                  Never text or a thin line on dark (2.94:1). */
  --signal: #ff3b30;           /* red for text, rules and focus on dark: 5.68:1 on ink-0 */

  /* Paper band: the merchandise gallery only. */
  --paper: #ffffff;
  --paper-tile: #f5f5f4;
  --paper-line: rgb(0 0 0 / 0.1);
  --paper-text: #0b0b0c;       /* 19.67:1 on paper */
  --paper-text-2: #5f5f5f;     /* 6.39:1 on paper, 5.85:1 on paper-tile */

  /* Per-artist colours. The stage sets both inline from assets/artists/media.json.
     --accent is dark enough for white text at 4.5:1 and may sit under text.
     --glow is the portrait's saturated colour, for the ambient light behind the stage only:
     never directly under text without the ink scrim. */
  --accent: #3a3a46;
  --glow: #5a5a70;

  /* Type families. One variable file carries every width and weight of Archivo. */
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Retired in 0.4 (section 8): no monospaced labels. Kept as a name so older rules fall back
     to Archivo instead of a browser default; do not use it in new rules. */
  --font-mono: var(--font-text);
  --display-stretch: 125%;     /* expanded cut for names and section titles */
  --display-weight: 800;
  --display-tracking: -0.012em;

  /* Type scale. Sizes in parentheses are the result at a 1440 px viewport. */
  --fs-name: clamp(2.375rem, 4.03vw, 4.75rem);     /* artist name on the stage (58 px) */
  --fs-title: clamp(2rem, 3.89vw, 4rem);           /* section title (56 px) */
  --fs-hero: clamp(2.75rem, 7.2vw, 7.5rem);        /* profile-page name (104 px) */
  --fs-lead: clamp(1.0625rem, 1.2vw, 1.25rem);     /* descriptor under a name (17 px) */
  --fs-body: 1rem;
  --fs-small: 0.875rem;                            /* product title, price, captions */
  --fs-nav: 1.0625rem;                             /* navigation links (17 px), never below 16 */
  --fs-button: 1rem;                               /* button text (16 px) */
  --fs-label: 0.9375rem;                           /* captions and small headings (15 px) */
  --fs-pill: 0.75rem;                              /* category badge */
  --label-tracking: 0.01em;

  /* Layout. */
  --gutter: clamp(1rem, 2.78vw, 2.5rem);           /* page side padding (40 px) */
  --frame-inset: 28px;                             /* hairline frame offset from the viewport edge */
  --masthead-h: 76px;
  --logo-h: 52px;
  --measure: 62ch;
  --section-pad: clamp(3.5rem, 8vw, 7.5rem);

  /* Stage (artist carousel), measured from the reference at 1440 x 900. */
  --stage-card-w: clamp(13.5rem, 26.875vw, 24.2rem);   /* 387 px */
  --stage-ratio: 387 / 558;
  --stage-gap: 24px;
  --stage-scale-1: 0.6;                             /* first neighbour: 232 px wide */
  --stage-scale-2: 0.5;                             /* second neighbour: 194 px wide */
  --stage-scale-3: 0.42;                            /* parked beyond the edge: 163 px wide */
  --stage-filter-1: blur(7px) saturate(0.55) brightness(0.6);
  --stage-filter-2: blur(10px) saturate(0.4) brightness(0.45);

  /* Merchandise tiles, measured from the reference at 1440 x 900. */
  --tile-radius: 8px;
  --tile-gap: 8px;
  --tile-ratio: 263 / 302;
  --pill-h: 28px;
  --radius-pill: 999px;

  /* Controls (section 8). Every target is at least 44 px; buttons are 48. */
  --target: 44px;
  --btn-h: 48px;
  --glass: rgb(255 255 255 / 0.12);                /* quiet button fill over footage */
  --glass-2: rgb(255 255 255 / 0.2);               /* its hover */
  --glass-3: rgb(255 255 255 / 0.3);               /* its pressed state */
  --glass-line: rgb(255 255 255 / 0.24);
  --white: #ffffff;

  /* Scrims: black at these alphas keeps white text at 4.5:1 over any footage (measured in
     the hero tests, docs/revision-0.4.md section 6). */
  --scrim: rgb(0 0 0 / 0.72);
  --scrim-soft: rgb(0 0 0 / 0.38);

  /* Motion. */
  --ease-stage: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-stage: 0.8s;
  --dur-fade: 0.6s;
  --dur-reveal: 0.7s;
  --dur-ui: 0.18s;
  --dur-page: 0.32s;                               /* page-to-page view transition */
  --dur-slide-out: 0.5s;                           /* hero: outgoing slide (reference) */
  --dur-slide-in: 1.2s;                            /* hero: incoming slide, after the out */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* Focus ring. */
  --focus-on-dark: 0 0 0 2px var(--ink-0), 0 0 0 4px var(--text);
  --focus-on-paper: 0 0 0 2px var(--paper), 0 0 0 4px var(--paper-text);

  /* Layers. */
  --z-grain: 1;
  --z-hero-ui: 5;
  --z-frame: 40;
  --z-masthead: 50;
  --z-menu: 60;
}

@media (max-width: 47.99em) {
  :root {
    --frame-inset: 12px;
    --masthead-h: 60px;
    --logo-h: 42px;
    --stage-card-w: min(68vw, 20rem);
    --stage-gap: 14px;
  }
}
