/* Marathon Variety — design tokens */
:root {
  /* Palette */
  --mv-black: #0A0B0A;
  --mv-char:  #1A1C1A;
  --mv-lime:  #B8F230;
  --mv-cream: #F5F1E8;
  --mv-bone:  #E8E2D3;
  --mv-ink:   #131311;
  --mv-dust:  #8A8B85;
  --mv-line:  #2A2C28;

  /* Type */
  --ff-display: "Space Grotesk Variable", "Space Grotesk", "Inter Tight", system-ui, sans-serif;
  --ff-body: "Inter Variable", "Inter", "Söhne", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Scale */
  --fs-hero: clamp(56px, 9vw, 160px);
  --fs-section: clamp(40px, 5vw, 88px);
  --fs-lede: clamp(20px, 1.6vw, 28px);
  --fs-body: 17px;
  --fs-meta: 12px;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 0px;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-slow: 800ms;
  --dur-med: 420ms;
  --dur-fast: 150ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--mv-cream);
  background: var(--mv-black);
  font-feature-settings: "ss01", "cv11", "kern";
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* Type primitives */
.mono { font-family: var(--ff-mono); font-size: var(--fs-meta); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.display { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.92; }
.lede { font-size: var(--fs-lede); line-height: 1.4; letter-spacing: -0.01em; }
.dust { color: var(--mv-dust); }
.lime { color: var(--mv-lime); }

/* Canvas sections */
section {
  position: relative;
  padding: clamp(96px, 12vh, 180px) var(--gutter);
}
section.black { background: var(--mv-black); color: var(--mv-cream); }
section.cream { background: var(--mv-cream); color: var(--mv-ink); }
section.lime  { background: var(--mv-lime);  color: var(--mv-ink); }
section.char  { background: var(--mv-char);  color: var(--mv-cream); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

/* Section header shared */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-label { color: var(--mv-dust); }
section.cream .section-label { color: #6a6b63; }
section.lime .section-label { color: #2b3a0d; }
.section-title { font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-section); line-height: 1; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.section-lede { max-width: 60ch; margin: 0; color: currentColor; opacity: 0.82; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--mv-lime);
  outline-offset: 2px;
  transition: outline-offset 120ms var(--ease-out-quart);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out-quart), transform 800ms var(--ease-out-quart); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 120ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Selection */
::selection { background: var(--mv-lime); color: var(--mv-ink); }

/* Grain */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: overlay;
}
