/* ==========================================================================
   Drummer Records — Platform Design System  (tokens.css)
   --------------------------------------------------------------------------
   ONE source of truth for the drummer.com "After Dark" brand, extracted
   verbatim from the live Weblium pages (safety-tour + safety-epk :root):

     --deep #0b0a12   page background      --gold  #8fc1ff  accent (blue)
     --charcoal #15121d  raised surface    --gold-light #c8b6ff  lavender
     --cream #edeff8  body text            --border rgba(143,193,255,.22)
     --warm-white #f7f9ff  bright text      --muted #9b97b2  secondary text

   Fonts (pairing B, committed 2026-07-09; shell.py ships the Google import):
     Newsreader   serif display + headings (optical sizing)
     Inter Tight  UI, body, labels and buttons

   Every v2 platform page links this file, so the whole set is seamless and
   re-themes from one place. Net-new; touches nothing in the ops app.
   ========================================================================== */

:root {
  color-scheme: dark only;

  /* — palette (verbatim brand tokens) — */
  --deep:        #0b0a12;
  --deep-2:      #0a0908;   /* form-page background (slightly warmer black) */
  --charcoal:    #15121d;   /* raised surface / cards */
  --charcoal-2:  #141210;   /* alt surface */
  --cream:       #edeff8;   /* default body text */
  --warm-white:  #f7f9ff;   /* bright headings */
  --muted:       #9b97b2;   /* secondary text */
  --muted-dim:   #6f6b82;   /* tertiary / hints */
  --accent:      #8fc1ff;   /* THE accent (blue). named --gold on-site (legacy) */
  --accent-soft: #c8b6ff;   /* lavender secondary accent */

  --border:        rgba(143,193,255,.22);  /* hairline */
  --border-strong: rgba(143,193,255,.40);
  --border-faint:  rgba(143,193,255,.10);

  /* accent as rgb parts, for alpha composition */
  --accent-rgb: 143,193,255;
  --lav-rgb:    200,182,255;

  /* — type — pairing B, committed as the live default (Frank, 2026-07-09) —
     Newsreader: editorial optical-size serif for display + headings.
     Inter Tight: the UI/body/label grotesque. shell.py loads the matching
     Google Fonts import; the A/B compare route can still swap back to pack A. */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-ui:      'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Inter Tight', system-ui, sans-serif;  /* legacy alias → grotesque */
  --font-mono-2:  'Inter Tight', system-ui, sans-serif;

  /* fluid display scale — dialed back from the oversized centered serif */
  --fs-hero:  clamp(2.5rem, 5.6vw, 4.6rem);
  --fs-h1:    clamp(2.4rem, 6vw, 4.4rem);
  --fs-h2:    clamp(1.9rem, 4vw, 3rem);
  --fs-h3:    clamp(1.3rem, 2.4vw, 1.8rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.8125rem;
  --fs-eyebrow: 0.72rem;

  --lh-tight: 1.04;
  --lh-body:  1.62;

  /* label tracking — dialed WAY back (no more wide-caps-on-everything) */
  --track-eyebrow: 0.14em;
  --track-label:   0.07em;
  --track-nav:     0.04em;

  /* — spacing scale (8px base) — */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
  --s-8: 10rem;

  /* — layout — */
  --maxw:       1180px;
  --maxw-text:  760px;
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --radius:     4px;      /* brand is nearly-square; radius stays minimal */
  --radius-lg:  10px;
  --header-h:   68px;

  --shadow:     0 24px 60px -28px rgba(0,0,0,.7);
  --ease:       cubic-bezier(.22,.61,.36,1);
  --dur:        .5s;
}

/* ── reset / base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* the signature: two faint corner glows over the deep field */
  background-image:
    radial-gradient(ellipse 60% 50% at 12% 0%,  rgba(var(--accent-rgb), .06), transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 8%,  rgba(var(--lav-rgb),   .05), transparent 60%);
  background-attachment: fixed;
}

::selection { background: rgba(var(--accent-rgb), .28); color: var(--warm-white); }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-soft); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--warm-white);
  margin: 0 0 .4em;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; color: var(--cream); }
strong { color: var(--warm-white); font-weight: 700; }
hr { border: 0; height: 1px; background: var(--border); margin: var(--s-5) 0; }

/* ── layout helpers ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container-text { max-width: var(--maxw-text); }
.section { padding-block: var(--s-7); position: relative; }
.section + .section { border-top: 1px solid var(--border-faint); }

/* ── the mono eyebrow (label + leading dot) — brand signature ─────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16);
  flex: none;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted .dot { background: var(--muted); box-shadow: 0 0 0 4px rgba(155,151,178,.14); }

/* section headings */
.section-title { font-size: var(--fs-h2); margin-bottom: var(--s-2); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--cream); max-width: 62ch; }
.muted { color: var(--muted); }

/* mono utility label */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  --btn-fg: var(--deep);
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  padding: .95em 1.6em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
  line-height: 1;
  text-align: center;
}
.btn:hover { color: var(--deep); background: var(--warm-white); border-color: var(--warm-white); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(var(--accent-rgb), .5); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

.btn-ghost {
  --btn-fg: var(--warm-white);
  background: transparent;
  color: var(--btn-fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(var(--accent-rgb), .08); color: var(--warm-white); border-color: var(--accent); box-shadow: none; }

.btn-sm { padding: .7em 1.15em; font-size: .74rem; }

/* ── cards / surfaces ─────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)) , var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
}

/* ── marquee (the scrolling ticker) ───────────────────────────────────── */
.marquee {
  --marquee-dur: 34s;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  padding-block: 1.05rem;
  position: relative;
  user-select: none;
}
.marquee__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee var(--marquee-dur) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-style: italic;
  color: var(--warm-white);
  padding-inline: 1.1em;
  display: inline-flex; align-items: center; gap: 1.1em;
}
.marquee__item::after { content: ""; display: inline-block; width: .7em; height: .7em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 L15 9 L24 12 L15 15 L12 24 L9 15 L0 12 L9 9 Z' fill='%238fc1ff'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── entrance animation ───────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }

/* ── focus ────────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── media / imagery (image-rich, real-photo treatments) ──────────────── */
.media { position: relative; overflow: hidden; background: var(--charcoal); border-radius: var(--radius-lg); }
.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--tall  { aspect-ratio: 3 / 4; }
.media--sq    { aspect-ratio: 1 / 1; }
.media--wide  { aspect-ratio: 16 / 10; }
.media--film  { aspect-ratio: 21 / 9; }
/* soft brand-blue veil + bottom scrim so text sits legibly over any photo */
.media--veil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 35%, rgba(6,5,12,.78) 100%),
    linear-gradient(0deg, rgba(var(--accent-rgb),.08), transparent 55%);
}
.media__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--s-3); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2);
}
/* subtle zoom on hover for interactive image cards */
.media--hover > img { transition: transform .6s var(--ease), filter .6s var(--ease); }
a:hover > .media--hover > img, .media--hover:hover > img { transform: scale(1.04); }
/* grain overlay hook (cinematic) */
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
