/* Design tokens and base styles (Figma: shredder-webben-stendahls) */
:root {
  --color-green: #093f1f;
  --color-sage: #8c9678;
  --color-cream: #e4e2d9;
  --color-beige: #f2f0e6;
  --color-text-light: var(--color-sage);
  --color-text-black: #000;
  --color-logo: #093f1f;
  --color-placeholder: var(--color-sage);
  --color-video-bg: #bcbcbc;
  --shadow-paper: 0 1px 1px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.1);
  --color-live: #6f6f6f;
  --color-live-dot: #e53935;
  --color-error: #ff8a80;
  --color-warning: #ffb74d;
  --color-dark-tint: #073219;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --split-left: 43.44vw; /* 834 / 1920 */

  /*
    Fluid type for the desktop layout (≥ 1024px), set by three widths:
      1024px  the minimum size
      1512px  75% of the Figma size (a 14" laptop; matches the Figma page at 75% zoom)
      1920px  the Figma size, and no bigger above that
    Between them the size changes in a straight line, faster above 1512. Mobile sizes are fixed
    and set in the components.

    Each size is clamp(MIN, max(lower line, upper line), MAX). For a line through (W1, S1) and (W2, S2):
      slope = (S2 − S1) / (W2 − W1), intercept = S1 − slope × W1  →  intercept rem + slope × 100 vw
    (px ÷ 16 = rem). The rem parts keep the text following the browser's font size setting and zoom.
  */
  --fs-hero-title: clamp(2.875rem, max(1.0389rem + 2.8689vw, -0.8824rem + 4.902vw), 5rem); /* 46 → 60 → 80 */
  --fs-hero-lead: clamp(1.1875rem, max(0.6301rem + 0.8709vw, -0.3419rem + 1.8995vw), 1.9375rem); /* 19 → 23.2 → 31 */
  --fs-hero-eyebrow: clamp(0.875rem, max(0.7439rem + 0.2049vw, -0.2206rem + 1.2255vw), 1.25rem); /* 14 → 15 → 20 */
  --fs-section-heading: clamp(1.5625rem, max(0.9068rem + 1.0246vw, -0.4412rem + 2.451vw), 2.5rem); /* 25 → 30 → 40 */
  --fs-section-text: clamp(0.875rem, max(0.5471rem + 0.5123vw, -0.2426rem + 1.348vw), 1.375rem); /* 14 → 16.5 → 22 */
  --fs-input: clamp(1rem, max(0.7184rem + 0.44vw, -0.2669rem + 1.4826vw), 1.5123rem); /* 16 → 18.1 → 24.196 (16 min: no iPad zoom on focus) */
  --fs-button: clamp(0.9375rem, max(0.6167rem + 0.5012vw, 0.4988rem + 0.626vw), 1.25rem); /* 15 → 17.4 → 20 (smaller than Figma's 23.261 at the top) */
  --fs-live-badge: clamp(1.125rem, max(1.0685rem + 0.0882vw, -0.271rem + 1.5058vw), 1.5359rem); /* 18 → 18.4 → 24.574 */
  --fs-back-to-live: clamp(0.875rem, max(0.5471rem + 0.5123vw, -0.2426rem + 1.348vw), 1.375rem); /* 14 → 16.5 → 22 */

  /*
    Fluid spacing for the desktop layout: one Figma pixel, using the same three widths
    (0.6px at 1024, 0.75px at 1512, 1px at 1920). Write a gap as calc(<Figma px> * var(--space)).
  */
  --space: clamp(0.6px, max(0.285246px + 0.030738vw, -0.176471px + 0.061275vw), 1px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-beige);
  color: var(--color-sage);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

@font-face {
  font-family: 'UltraRapid';
  src: url('/fonts/VCR_OSD_MONO_1.001.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap;
}

@font-face {
  font-family: 'StendahlsSeasonMix';
  src: url("/fonts/StendahlsSeasonMix-SemiBold.woff2") format('woff2');
  font-display: swap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
