:root {
  --ink: #10182B;
  --muted: #565F7A;
  --paper: #F1F3FA;
  --paper-raised: #FBFCFE;
  --navy: #10297B;
  --blue: #2547D6;
  --gold: #96730A;
  --gold-strong: #B8860B;
  --line: #D8DCEA;
  --grain-opacity: 0.05;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Cascadia Code', 'SF Mono', Consolas, 'Liberation Mono', monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9ECF7; --muted: #9AA3C4; --paper: #0A0F1F; --paper-raised: #10182F;
    --navy: #8DA0F5; --blue: #6C89FF; --gold: #E3BB55; --gold-strong: #F0CA6E; --line: #232B45;
    --grain-opacity: 0.09;
  }
}
:root[data-theme="dark"] {
  --ink: #E9ECF7; --muted: #9AA3C4; --paper: #0A0F1F; --paper-raised: #10182F;
  --navy: #8DA0F5; --blue: #6C89FF; --gold: #E3BB55; --gold-strong: #F0CA6E; --line: #232B45;
  --grain-opacity: 0.09;
}
:root[data-theme="light"] {
  --ink: #10182B; --muted: #565F7A; --paper: #F1F3FA; --paper-raised: #FBFCFE;
  --navy: #10297B; --blue: #2547D6; --gold: #96730A; --gold-strong: #B8860B; --line: #D8DCEA;
  --grain-opacity: 0.05;
}

* { box-sizing: border-box; }
html { color-scheme: light dark; height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: overlay; } }
:root[data-theme="dark"] body::before { mix-blend-mode: overlay; }
:root[data-theme="light"] body::before { mix-blend-mode: multiply; }

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  padding: 48px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-strong);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow i { width: 20px; height: 1px; background: var(--gold-strong); display: inline-block; }

h1.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 12vw, 86px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
h1.wordmark .tld { color: var(--gold-strong); font-size: 0.5em; vertical-align: 6%; }

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  margin: 34px 0 30px;
}
.waveform span {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--navy);
  opacity: 0.6;
  animation: pulse 2.6s ease-in-out infinite;
}
.waveform span:nth-child(3n) { background: var(--gold-strong); opacity: 0.9; }
@keyframes pulse {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; transform: scaleY(0.7); }
}

/* Per-bar height + stagger, moved here from inline style="" attributes — a strict
   style-src 'self' CSP (no 'unsafe-inline') blocks inline style attributes just like it
   blocks inline <style> blocks, so every bar's look needs to live in this stylesheet. */
.waveform span:nth-child(1)  { height: 40%;  animation-delay: 0.0s; }
.waveform span:nth-child(2)  { height: 70%;  animation-delay: 0.1s; }
.waveform span:nth-child(3)  { height: 30%;  animation-delay: 0.2s; }
.waveform span:nth-child(4)  { height: 90%;  animation-delay: 0.3s; }
.waveform span:nth-child(5)  { height: 55%;  animation-delay: 0.4s; }
.waveform span:nth-child(6)  { height: 20%;  animation-delay: 0.5s; }
.waveform span:nth-child(7)  { height: 100%; animation-delay: 0.6s; }
.waveform span:nth-child(8)  { height: 45%;  animation-delay: 0.7s; }
.waveform span:nth-child(9)  { height: 75%;  animation-delay: 0.8s; }
.waveform span:nth-child(10) { height: 35%;  animation-delay: 0.9s; }
.waveform span:nth-child(11) { height: 60%;  animation-delay: 1.0s; }
.waveform span:nth-child(12) { height: 25%;  animation-delay: 1.1s; }
.waveform span:nth-child(13) { height: 85%;  animation-delay: 1.2s; }
.waveform span:nth-child(14) { height: 50%;  animation-delay: 1.3s; }
.waveform span:nth-child(15) { height: 65%;  animation-delay: 1.4s; }

.dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 3vw, 21px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 10px;
  text-wrap: balance;
}
.aside {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  max-width: 44ch;
  margin: 0 0 34px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 46px;
}
.tags span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: var(--paper-raised);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-strong) 20%, transparent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--blue); }
