/* ============================================================
   IT'S RENÉ — design system "The Build"
   Spec: docs/design/DESIGN-DIRECTION.md · budget ≤20KB
   Tokens only in :root; no raw hex below the fold of this file.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0A0B0D;
  --ink-2: #121417;
  --line: #23262B;
  --paper: #F2F3F5;
  --muted: #8A9099;
  --itr: #4DD6FF;
  --itr-deep: #1E7FA6;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 44px);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--itr); color: var(--ink); }
a { color: var(--itr); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--itr); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; top: -48px; left: 0; z-index: 100;
  background: var(--itr); color: var(--ink);
  padding: 10px 18px; font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ---------- type voices ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-wrap: balance;
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono b, .mono strong { color: var(--itr); font-weight: 700; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-block: 18px; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--paper);
}
.brand:hover { text-decoration: none; color: var(--itr); }
.site-nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.site-nav a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.site-nav a:hover { color: var(--itr); text-decoration: none; }

/* ---------- energy rail ---------- */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); z-index: 50; }
.rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--itr-deep), var(--itr));
}
@media (max-width: 820px) { .rail { display: none; } }

/* ---------- sections: the density ramp ---------- */
section { border-top: 1px solid var(--line); padding-block: var(--pad, 96px); }
.s-hero { --pad: clamp(64px, 10vw, 120px); border-top: none; }
.s-listen { --pad: clamp(56px, 8vw, 96px); }
.s-live { --pad: clamp(48px, 7vw, 80px); }
.s-played { --pad: clamp(44px, 6vw, 68px); }
.s-book { --pad: clamp(56px, 8vw, 88px); background: var(--ink-2); }

.sect-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px);
}
.sect-head h2 { font-size: clamp(34px, 5.5vw, 56px); }
.lede { max-width: 62ch; color: var(--muted); }
.lede strong { color: var(--paper); }

/* ---------- hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-grid h1 { font-size: clamp(64px, 13vw, 148px); margin-block: 14px 10px; }
.hero-grid h1 .accent { color: var(--itr); }
.hero-tag {
  font-size: clamp(17px, 2.2vw, 22px); font-weight: 300;
  color: var(--muted); margin-bottom: 34px; max-width: 40ch;
}
.hero-tag b { color: var(--paper); font-weight: 600; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; border: 1px solid var(--itr); color: var(--itr);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--itr); color: var(--ink); text-decoration: none; }
.btn-solid { background: var(--itr); color: var(--ink); }
.btn-solid:hover { background: var(--paper); border-color: var(--paper); }

.stat-row {
  display: flex; gap: clamp(28px, 5vw, 56px); flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.stat-n {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(28px, 4vw, 38px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-row .mono { display: block; margin-top: 6px; }

.hero-photo { position: relative; justify-self: end; width: min(360px, 100%); }
@media (max-width: 820px) { .hero-photo { justify-self: start; } }
.hero-photo figcaption { margin-top: 10px; }

/* duotone: every photo one branded blue; color is the hover reward */
.duotone img {
  filter: grayscale(1) sepia(0.55) hue-rotate(155deg) saturate(2.4) brightness(0.92) contrast(1.08);
  transition: filter 0.35s ease;
}
.duotone:hover img, .duotone:focus-within img { filter: none; }

.crew { margin-top: 40px; }
.crew a { font-weight: 700; }

/* ---------- listen: the tracklist ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--line); color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.filter-btn:hover { border-color: var(--itr-deep); color: var(--paper); }
.filter-btn[aria-pressed="true"] { border-color: var(--itr); color: var(--itr); }

.set-list { border-top: 1px solid var(--line); }
.set-row {
  display: grid; grid-template-columns: 116px 1fr auto 44px;
  gap: 18px; align-items: center; width: 100%; text-align: left;
  padding: 14px 10px; border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.set-row:hover { background: var(--ink-2); }
.set-row .title { font-weight: 600; font-size: 15.5px; }
.set-row .note-flag { color: var(--itr); }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted); padding: 4px 10px;
}
.tag-hot { border-color: var(--itr-deep); color: var(--itr); }
.play-ico {
  width: 34px; height: 34px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 10px; color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.set-row:hover .play-ico, .set-row[aria-expanded="true"] .play-ico { border-color: var(--itr); color: var(--itr); }
.player-slot { border-bottom: 1px solid var(--line); padding: 14px 10px; background: var(--ink-2); }
.player-slot iframe { border: 0; width: 100%; height: 166px; }
.player-note { margin-top: 10px; }
.list-foot { margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .set-row { grid-template-columns: 92px 1fr 40px; }
  .set-row .tag { display: none; }
}

/* ---------- live ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 15px; border: 1px solid var(--line); color: var(--muted);
  min-width: 128px; justify-content: center;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.badge.is-live { border-color: var(--itr); color: var(--itr); }
.badge.is-live .dot { background: var(--itr); }

.live-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 56px); }
@media (max-width: 820px) { .live-grid { grid-template-columns: 1fr; } }
.live-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; align-content: start; }
.live-stats .mono { display: block; margin-top: 6px; }
.teams { margin-top: 30px; }
.teams p { color: var(--muted); font-size: 14.5px; }

/* ---------- played ---------- */
.timeline { border-top: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 48px); }
.gig-row {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 18px; align-items: baseline;
  padding: 12px 10px; border-bottom: 1px solid var(--line);
}
.gig-row .name { font-weight: 600; font-size: 15px; }
.gig-row.is-irl .name::after {
  content: "IRL"; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--itr); border: 1px solid var(--itr-deep);
  padding: 2px 6px; margin-left: 10px; vertical-align: 2px;
}
@media (max-width: 820px) { .gig-row { grid-template-columns: 78px 1fr; } .gig-row .tag { display: none; } }

.photo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .photo-wall { grid-template-columns: repeat(2, 1fr); } }
.photo-wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.origin { margin-top: 26px; }

/* ---------- book ---------- */
.s-book .display { font-size: clamp(44px, 8vw, 96px); margin-bottom: 18px; }
.book-mail {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(22px, 4vw, 40px); letter-spacing: -0.01em;
  color: var(--itr); word-break: break-all;
}
.book-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-block: clamp(30px, 5vw, 44px);
}
@media (max-width: 820px) { .book-facts { grid-template-columns: 1fr; } }
.fact { background: var(--ink); padding: 22px 24px; }
.fact h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--itr);
  margin-bottom: 10px;
}
.fact p { color: var(--muted); font-size: 14px; }
.fact p strong { color: var(--paper); }
.book-foot { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 52px; }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--itr); text-decoration: none; }
.colophon { margin-top: 18px; }

/* ---------- press page ---------- */
.press-main section:first-of-type { border-top: none; }
.press-main section { padding-block: clamp(40px, 6vw, 64px); }
.bio-block { max-width: 68ch; }
.bio-block + .bio-block { margin-top: 34px; }
.bio-block h3 { font-size: 19px; margin-bottom: 6px; }
.bio-block .mono { display: block; margin-bottom: 12px; }
.bio-block p { color: var(--muted); }
.bio-block p strong { color: var(--paper); }
.facts-table { border-top: 1px solid var(--line); max-width: 760px; }
.facts-table > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px;
  padding: 12px 6px; border-bottom: 1px solid var(--line); align-items: baseline;
}
@media (max-width: 640px) { .facts-table > div { grid-template-columns: 1fr; gap: 2px; } }
.press-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .press-photos { grid-template-columns: repeat(2, 1fr); } }
.press-photos img { aspect-ratio: 1 / 1; object-fit: cover; }
.press-photos figcaption { margin-top: 8px; }
.dl-list { list-style: none; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.dl-list li { border-bottom: 1px solid var(--line); }
.dl-list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 6px; color: var(--paper); }
.dl-list a:hover { background: var(--ink-2); text-decoration: none; }
.dl-list .mono { flex: none; }

/* ---------- noscript / motion ---------- */
.noscript-note { padding: 16px 10px; color: var(--muted); border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rail-fill { height: 100% !important; }
}
