:root {
  --ink: #17201b;
  --paper: #f3efe4;
  --paper-deep: #e6dfce;
  --green: #174a35;
  --acid: #d9ff58;
  --orange: #f0643c;
  --line: rgba(23, 32, 27, 0.18);
  --muted: #5d675f;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: white; padding: .75rem 1rem; }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: -.04em; }
.brand span { color: var(--orange); }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--orange); }

.hero {
  min-height: 570px;
  padding: clamp(72px, 10vw, 130px) max(20px, calc((100vw - 1180px) / 2));
  color: white;
  background:
    radial-gradient(circle at 80% 15%, rgba(217,255,88,.18), transparent 27%),
    linear-gradient(135deg, #143f2e 0%, #0b2b20 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -7vw;
  bottom: -18vw;
  width: min(55vw, 700px);
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02);
}
.eyebrow { margin: 0 0 14px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--acid); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 820px; font-size: clamp(4rem, 9vw, 8.5rem); }
h1 em { color: var(--acid); font-weight: 400; }
h1 sup { color: var(--orange); font: 700 .23em var(--sans); vertical-align: top; }
.intro { max-width: 610px; margin: 30px 0 42px; color: rgba(255,255,255,.76); font-size: clamp(1rem, 2vw, 1.2rem); }
.archive-progress { max-width: 610px; margin: -28px 0 38px; color: rgba(255,255,255,.58); font-size: .78rem; }
.archive-progress span { color: var(--orange); font-weight: 700; }

.search { position: relative; z-index: 1; width: min(680px, 100%); }
.search label { display: block; margin-bottom: 9px; font-weight: 600; font-size: .85rem; }
.search-control { display: flex; align-items: center; background: white; color: var(--ink); border-radius: 4px; }
.search-control svg { flex: 0 0 auto; margin-left: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search input { width: 100%; border: 0; outline: 0; padding: 18px 12px; background: transparent; }
.search input:focus-visible { box-shadow: inset 0 0 0 3px var(--acid); }
.search-status { padding-right: 16px; color: var(--muted); white-space: nowrap; font-size: .78rem; }

.search-results { padding: 48px max(20px, calc((100vw - 1180px) / 2)); background: var(--acid); }
.search-results h2 { margin: 0 0 24px; font-size: clamp(2rem, 5vw, 3.4rem); }
.result-list { display: grid; gap: 1px; background: rgba(23,32,27,.15); border: 1px solid rgba(23,32,27,.15); }
.result { display: grid; grid-template-columns: minmax(180px, 1.6fr) 60px 90px minmax(140px, 1fr) 110px; gap: 16px; align-items: baseline; padding: 14px 18px; background: var(--acid); }
.result strong { font-size: 1.02rem; }
.result span { font-size: .86rem; }
.result .result-stage { color: var(--muted); }
.result-time { font-variant-numeric: tabular-nums; }
.result-limit { margin: 20px 0 0; color: var(--muted); }

.years-section, .lineup-section, .sources { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 0; }
.section-heading, .lineup-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.section-heading h2, .lineup-heading h2, .sources h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.section-heading > p { max-width: 390px; color: var(--muted); }
.years-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.year-button, .year-empty {
  min-height: 124px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  position: relative;
}
.year-button { cursor: pointer; }
.year-button::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.year-button:hover, .year-button:focus-visible { outline: 0; background: var(--green); color: white; }
.year-empty { color: #9b9e96; }
.year-empty small { display: block; margin-top: 8px; font: 500 .68rem var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.loading { grid-column: 1 / -1; padding: 30px; color: var(--muted); }

.lineup-section { border-top: 1px solid var(--line); }
.back-link { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; }
.day-block { margin: 0 0 76px; }
.day-title { display: flex; align-items: baseline; gap: 14px; margin: 0 0 26px; padding-bottom: 13px; border-bottom: 3px solid var(--ink); font-size: clamp(2.2rem, 5vw, 4rem); }
.day-title small { color: var(--muted); font: 500 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.day-toggle { display: flex; align-items: baseline; justify-content: space-between; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.day-toggle:hover .toggle-label, .day-toggle:focus-visible .toggle-label { color: var(--orange); }
.day-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.toggle-label { color: var(--muted); font: 600 .76rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.day-collapsed { margin-bottom: 28px; }
.day-collapsed .day-title { border-bottom-width: 1px; }
.stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 70px; }
.more-stages { margin-top: 42px; }
.more-stages[hidden], .day-content[hidden] { display: none; }
.more-stages-toggle { display: flex; justify-content: space-between; width: 100%; margin-top: 38px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }
.more-stages-toggle:hover, .more-stages-toggle:focus-visible { color: var(--orange); outline: 0; }
.stage h4 { margin: 0 0 10px; color: var(--green); font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.performance { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 15px; padding: 9px 0; border-top: 1px solid var(--line); }
.performance time { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.performance span { font-weight: 600; }
.secret-performance { background: rgba(240, 100, 60, .045); }
.secret-badge { display: inline-block; margin-left: 8px; padding: 1px 5px; border: 1px solid rgba(240, 100, 60, .48); border-radius: 999px; color: #a74329; font: 700 .54rem var(--sans); letter-spacing: .055em; line-height: 1.4; text-transform: uppercase; vertical-align: .15em; }
.lineup-source { margin-top: 32px; color: var(--muted); font-size: .8rem; }

.sources { border-top: 1px solid var(--line); }
.sources h2 { max-width: 700px; }
.sources > p:last-child { max-width: 760px; color: var(--muted); font-size: .95rem; }
.sources a { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer p { font-size: .75rem; }

@media (max-width: 760px) {
  .site-header { padding: 18px 0; }
  nav { gap: 16px; }
  .hero { min-height: 540px; }
  .section-heading, .lineup-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .back-link { display: inline-block; margin-top: 16px; }
  .years-grid { grid-template-columns: repeat(3, 1fr); }
  .year-button, .year-empty { min-height: 96px; padding: 13px; }
  .year-button::after { right: 12px; bottom: 12px; }
  .stages { grid-template-columns: 1fr; gap: 35px; }
  .result { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .result-stage { grid-column: 1; }
  .result-time { grid-column: 2; grid-row: 2; }
  .site-footer { align-items: start; }
  .site-footer p { max-width: 210px; margin-top: 2px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
