/* ---------------------------------------------------------------
   base.css — reset + design tokens for SURKOV.
   Values taken from Figma (file FCdI2TotXp8KPYeNq9PDnf, node 1:3).
   The design has no Figma variables, so these are the raw values
   collected into one place.
   --------------------------------------------------------------- */

:root {
  /* --- Type --- */
  --font-sans: "DIN Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-cond: "DIN Pro Condensed", "DIN Pro", system-ui, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  /* --- Color --- */
  --c-red: #f3002e;         /* brand red: streamer, footer, CTA, sold-out */
  --c-black: #000;          /* hero frame ground, behind the photo */
  --c-ink: #090909;         /* the page ground — sampled from the Figma frame,
                               shared by intro, gallery, credits and video, which
                               is why the gaps between those sections are seamless */
  --c-ink-2: #1b1b1b;       /* performance-dates section */
  --c-white: #fff;
  --c-muted: #5a5a5a;       /* de-emphasised half of the intro heading */
  --c-grey: #4f4f4f;        /* disabled chevron */
  --c-white-30: rgba(255, 255, 255, 0.3);

  /* --- Layout ---
     Figma canvas is 1440 with 120px gutters, so content is 1200 wide.
     The gutter collapses proportionally below 1440. */
  --content: 1200px;
  --gutter: clamp(20px, 8.333vw, 120px);

  /* Height of the fixed bar (streamer + menu). Anchored sections offset by
     this so they are not hidden beneath it. main.js overwrites it with the
     measured height, since a wrapped streamer changes it. */
  --bar-h: 150px;

  /* --- Radii --- */
  --radius-img: 20px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep the fixed bar from covering an anchored section */
  scroll-padding-top: calc(var(--bar-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-white);
  background: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: var(--fw-medium); line-height: 1.1; }

ul { list-style: none; margin: 0; padding: 0; }

/* Beats any display rule, so el.hidden reliably hides flex/grid containers */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

/* <picture> is only a source-picker, never a layout box. Without this it
   stays an inline wrapper and any `height: 100%` on the inner <img>
   resolves against a content-sized parent instead of the real container. */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Helpers --- */
.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * 120px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
