/* ═══════════════════════════════════════════════════════════════════════════
   OVERTONE THEME v2 — the independent music-intelligence publication
   Rebuilt 2026-08-11 from the v0 scaffold. Zero em-dashes in authored copy.

   ── THE IDENTITY DECISION, and it is deliberate ──────────────────────────
   v0 inherited a sibling property's palette (gold + emerald). That was wrong for
   THIS property and not a matter of taste: Overtone's entire value is that it
   does not read as anyone's marketing surface. A publication that shares a
   parent's visual DNA is legible as an owned organ at a glance, before a
   single word is read. So the palette here is deliberately unrelated to any
   other property in the portfolio: cold ink, editorial vermillion as the SIGNAL,
   and a measurement cyan reserved for numbers and data objects.

   ── THE RULE THAT GOVERNS THE WHOLE FILE ─────────────────────────────────
   VERMILLION IS THE VOICE. CYAN IS THE MEASUREMENT. Never decorate with either.
   If a colour appears where it carries no meaning, it is spending the reader's
   attention on nothing, and the next real signal costs more.

   ── DEPTH ────────────────────────────────────────────────────────────────
   Depth here is not drop shadows. It is four stacked cues that real print and
   real interfaces both use: a lit top edge (1px inset highlight), a grounded
   shadow, a surface tint that gets LIGHTER as it comes forward, and a grain
   layer over everything so no plane is mathematically flat. Flat surfaces are
   what make a dark site read as cheap.

   ── MOTION ───────────────────────────────────────────────────────────────
   Everything is guarded by prefers-reduced-motion. Reveal animations are
   opacity+transform only (compositor-only properties), never layout.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('/assets/fonts.css');   /* self-hosted, no third-party host */

:root {
  /* ground — LIFTED off pure black 2026-08-11 (operator: "background too black").
     Pure #08090b has no air in it: every surface above it has to carry the entire sense of
     depth on its own, and the page reads as a void with objects floating in it rather than as
     a lit room. The floor now sits at #15161b with a faint warm cast, so the stack below it
     (band -> card -> raised) has somewhere to climb from and shadows have something to fall on. */
  --ink:        #15161b;   /* page floor */
  --paper:      #1a1c22;   /* section band */
  --paper-2:    #22242b;   /* card */
  --paper-3:    #2a2d36;   /* raised card / hover */

  /* signal (set from site.config.js by the engine; these are the fallbacks) */
  --accent:       #ff5a3c;   /* VERMILLION — the editorial voice */
  --accent-light: #ff7d64;
  --accent-hover: #ff9781;
  --secondary:      #3fc7bb;  /* MEASUREMENT CYAN — numbers, datasets, evidence */
  --secondary-light:#63ded3;

  /* type */
  --text:     #e9e7e3;
  --text-dim: #98a1ab;
  --text-faint:#5f6873;

  /* structure */
  --line:      rgba(233,231,227,0.10);
  --line-soft: rgba(233,231,227,0.055);
  --lit:       rgba(255,255,255,0.055);   /* the 1px top highlight */
  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 4px 14px -6px rgba(0,0,0,.55);
  --shadow-2: 0 2px 4px rgba(0,0,0,.5), 0 18px 44px -18px rgba(0,0,0,.75);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --maxw: 1160px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── ATMOSPHERE: two fixed gradient pools + a grain plane ─────────────────
   The grain is the load-bearing one. A dark page with no grain reads as a
   screenshot of a design tool; a dark page with grain reads as a printed
   object. Inline SVG turbulence, so zero requests and zero asset weight. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70vw 55vh at 78% -12%, rgba(255,90,60,0.10), transparent 62%),
    radial-gradient(55vw 45vh at -8% 4%, rgba(63,199,187,0.075), transparent 58%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .40; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

a { color: var(--accent-light); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #0b0b0d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 900; line-height: 1.08;
  letter-spacing: -0.022em; color: #fff; text-wrap: balance; margin: 0;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.015em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
  margin: 0;
}
.eyebrow.data { color: var(--secondary); }

/* ═══ NAV ═══════════════════════════════════════════════════════════════ */
#site-nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(21,22,27,0.74);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .3s ease, background .3s ease;
}
#site-nav.scrolled { background: rgba(21,22,27,0.94); border-bottom-color: var(--line); }
#site-nav .nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 900; font-size: 1.3rem; color: #fff; letter-spacing: -0.03em; }
/* :not(.brand-mark) is load-bearing. Without it this rule out-specifies .brand-mark and paints the
   mark's letters vermillion ON the vermillion gradient, i.e. invisible. Caught 2026-08-11 by reading
   the computed style, not by looking: at 32px the empty square reads as an intentional logo tile. */
.brand > span:not(.brand-mark) { color: var(--accent); }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600; color: #0b0b0d;
  background: linear-gradient(150deg, var(--accent-light), var(--accent));
  box-shadow: 0 2px 12px rgba(255,90,60,.30), inset 0 1px 0 rgba(255,255,255,.35);
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); font-size: .93rem; font-weight: 500; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--accent); transition: width .22s ease;
}
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 8px 17px; border-radius: 8px; color: #0b0b0d !important; font-weight: 600; font-size: .9rem;
  background: linear-gradient(150deg, var(--accent-light), var(--accent));
  box-shadow: 0 2px 12px rgba(255,90,60,.28), inset 0 1px 0 rgba(255,255,255,.3);
}
.nav-cta:hover { filter: brightness(1.08); }
@media (max-width: 780px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ═══ SECTION BANDS — the primary tool for STRUCTURAL VARIANCE ═══════════
   A page that is one column of cards at one rhythm reads as a template. Bands
   change the ground colour, the width and the vertical rhythm between sections,
   so scrolling feels like moving through a document rather than down a list. */
.band { position: relative; padding: 84px 0; }
.band--paper { background: var(--paper); border-block: 1px solid var(--line-soft); }
.band--tight { padding: 56px 0; }
.band--tall  { padding: 120px 0; }
.band--rule::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5;
}

/* numbered editorial section head */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 14px; margin-bottom: 34px; border-bottom: 1px solid var(--line);
}
.sec-head h2 { margin: 0; }
.sec-head .num {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; color: var(--text-faint);
  display: block; margin-bottom: 8px;
}
.sec-head .more { font-family: var(--mono); font-size: .8rem; color: var(--text-dim); white-space: nowrap; }
.sec-head .more:hover { color: var(--accent); }

/* ═══ HERO ══════════════════════════════════════════════════════════════ */
.hero { padding: 104px 0 72px; }
.hero h1 { margin: 20px 0 0; max-width: 16ch; }
.hero .sub { max-width: 58ch; margin: 22px 0 0; color: var(--text-dim); font-size: 1.16rem; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 9px;
  font-weight: 600; font-size: .95rem; transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(150deg, var(--accent-light), var(--accent)); color: #0b0b0d;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { filter: brightness(1.07); color: #0b0b0d; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ═══ THE STAT STRIP — the anti-brainrot device ══════════════════════════
   A horizontal row of hard numbers directly under the hero. It exists because
   the first job on a data publication is to prove in under two seconds that
   there are REAL measurements here. Numbers carry the measurement cyan. */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-top: 48px;
}
.stat-strip .stat { background: var(--paper-2); padding: 22px 20px; }
.stat-strip .n {
  font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--secondary-light); line-height: 1; letter-spacing: -0.03em; display: block;
}
.stat-strip .l { font-size: .84rem; color: var(--text-dim); margin-top: 8px; display: block; line-height: 1.45; }

/* ═══ CARDS ═════════════════════════════════════════════════════════════ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
/* asymmetric editorial split: the variance lever */
.grid-split { grid-template-columns: 1.55fr 1fr; }
@media (max-width: 900px) { .grid-3, .grid-2, .grid-split { grid-template-columns: 1fr; } }

.card {
  position: relative; display: block; padding: 26px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line); border-radius: 15px;
  box-shadow: var(--shadow-1);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
/* the lit top edge: reads as a physical surface catching light */
.card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lit) 22%, var(--lit) 78%, transparent);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,90,60,.34); box-shadow: var(--shadow-2); }
.card .tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card .tag.data { color: var(--secondary); }
.card h3 { margin: 12px 0 9px; color: #fff; }
.card p { color: var(--text-dim); font-size: .95rem; margin: 0; }
.card:hover h3 { color: #fff; }

/* feature card: bigger type, tinted ground, spans the wide column */
.card.feature {
  padding: 34px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,90,60,.09), transparent 60%),
    linear-gradient(180deg, var(--paper-3), var(--paper));
}
.card.feature h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
.card.feature p { font-size: 1.02rem; }

.badge-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.badge {
  font-family: var(--mono); font-size: .68rem; padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--text-dim); letter-spacing: .04em;
}
.badge.data { color: var(--secondary-light); border-color: rgba(63,199,187,.34); background: rgba(63,199,187,.06); }
.badge.doi  { color: var(--accent-light); border-color: rgba(255,90,60,.34); background: rgba(255,90,60,.05); }

/* ═══ ARTICLE BODY ══════════════════════════════════════════════════════ */
.article { max-width: var(--measure); margin: 0 auto; padding: 26px 0 56px; font-size: 1.06rem; }
.article > * { max-width: 100%; }
.article h2 { margin: 2.2em 0 .5em; }
.article h3 { margin: 1.8em 0 .4em; }
.article p { margin: 1.15em 0; }
.article ul, .article ol { margin: 1.15em 0; padding-left: 1.3em; }
.article li { margin: .5em 0; }
.article .byline {
  font-size: .89rem; color: var(--text-dim); display: flex; gap: 14px; flex-wrap: wrap;
  align-items: center; margin: 10px 0 30px; font-family: var(--mono);
}
.article .byline .author { color: var(--accent-light); font-weight: 600; }
.article > p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-weight: 900; font-size: 3.5em;
  line-height: .84; padding: .06em .1em 0 0; color: var(--accent);
}

/* BLUF: answer-first, the single most citation-relevant block on the page */
.bluf {
  background: linear-gradient(180deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 13px 13px 0; padding: 20px 24px; font-size: 1.07rem;
  box-shadow: var(--shadow-1); margin: 26px 0;
}
.bluf strong { color: #fff; }

/* a hard number with its source, inline in the prose */
.stat-cite {
  display: block; background: rgba(63,199,187,.07); border: 1px solid rgba(63,199,187,.26);
  border-radius: 13px; padding: 18px 22px; margin: 26px 0;
}
.stat-cite .num {
  font-family: var(--serif); font-weight: 900; font-size: 2.1rem; color: var(--secondary-light);
  line-height: 1; letter-spacing: -.03em; display: block; margin-bottom: 6px;
}
.stat-cite .src { font-family: var(--mono); font-size: .76rem; color: var(--text-faint); }
.stat-cite .src a { color: var(--secondary); }

/* pull quote: rhythm break in long prose */
.pull {
  margin: 40px 0; padding: 0 0 0 26px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.42rem; line-height: 1.34; color: #fff; font-weight: 600;
}
.pull cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: .78rem; font-style: normal; color: var(--text-faint); letter-spacing: .06em; }

/* key-takeaways box: the scannable summary a skimmer actually reads */
.takeaways {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 26px; margin: 32px 0; box-shadow: var(--shadow-1);
}
.takeaways h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.takeaways ul { margin: 0; padding-left: 1.1em; }
.takeaways li { margin: .55em 0; color: var(--text); }
.takeaways li::marker { color: var(--secondary); }

figure { margin: 34px 0; }
figure svg, figure img { width: 100%; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; }
figcaption { color: var(--text-dim); font-size: .82rem; margin-top: 10px; font-family: var(--mono); line-height: 1.5; }
figcaption .src { color: var(--text-faint); }

/* ═══ DATA TABLE (the ledger) ═══════════════════════════════════════════ */
.ledger-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
thead th {
  position: sticky; top: 0; background: var(--paper-3);
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 600; text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(255,255,255,.028); }
td.num, th.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
td.num { color: var(--secondary-light); }

/* ═══ FAQ ═══════════════════════════════════════════════════════════════ */
.faq { margin: 44px 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin: 10px 0; background: var(--paper-2); overflow: hidden; }
.faq summary {
  cursor: pointer; font-weight: 600; color: #fff; font-family: var(--serif); font-size: 1.06rem;
  padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.3rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); margin: 0; padding: 0 20px 18px; }

/* ═══ BREADCRUMBS / FOOTER ══════════════════════════════════════════════ */
#site-breadcrumbs { font-family: var(--mono); font-size: .76rem; color: var(--text-faint); padding: 20px 0 0; }
#site-breadcrumbs .sep { margin: 0 8px; opacity: .5; }
#site-breadcrumbs span { color: var(--text-dim); }

#site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--paper); padding: 52px 24px 34px; }
#site-footer .foot-top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.foot-brand { font-family: var(--serif); font-weight: 900; font-size: 1.28rem; color: #fff; letter-spacing: -.03em; }
.foot-brand span { color: var(--accent); }
.foot-brand p { font-family: var(--sans); font-weight: 400; font-size: .89rem; color: var(--text-dim); margin: 10px 0 0; max-width: 38ch; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--text-dim); font-size: .9rem; }
.foot-links a:hover { color: var(--accent); }
.foot-disclosure, .foot-copy { max-width: var(--maxw); margin: 22px auto 0; font-size: .79rem; color: var(--text-faint); line-height: 1.6; }

/* ═══ SCROLL REVEAL (compositor-only, reduced-motion guarded) ════════════ */
/* FAIL-SAFE REVEAL. Content is VISIBLE by default and JS opts into hiding it by putting
   .reveal-armed on <html>. The previous design had [data-reveal] hidden in CSS, which meant any
   failure of IntersectionObserver (an extension context, an old engine, a thrown error upstream)
   rendered the ENTIRE PAGE BLANK. A publication must never be one API away from unreadable.
   Proven necessary 2026-08-11: observers stopped firing and every section vanished. */
[data-reveal] { opacity: 1; transform: none; }
.reveal-armed [data-reveal] { opacity: 0; transform: translateY(11px); transition: opacity .42s ease, transform .42s cubic-bezier(.2,.7,.3,1); }
.reveal-armed @media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .btn { transition: none !important; }
  .card:hover, .btn:hover { transform: none !important; }
}

@media print {
  body::before, body::after, #site-nav, #site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
