/* whitenoisestation.com — shared styles. Tokens are the app's (PRD §5). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --base: #0B0B0C;
  --surface: #161617;
  --elevated: #1E1E20;
  --accent: #2DD4BF;
  --accent-hi: #5EEAD4;
  --on-accent: #07120F;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.06);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--base); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.h2 {
  margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.08; text-wrap: balance;
}
.lede { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(145deg, #0f3b4a, #1d6f7a 48%, #2DD4BF);
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.now-playing {
  display: none; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35); background: none;
  font: 600 12.5px var(--sans); color: var(--accent); cursor: pointer;
}
.now-playing[data-on="true"] { display: flex; }
.nav-cta {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hi); color: var(--on-accent); }
@media (max-width: 340px) { .brand-name { display: none; } }

/* ---- Store button (pre-launch: a label, not a link) ---------------------- */
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 24px 13px 20px;
  border-radius: 14px; background: #fff; color: #000;
}
a.store:hover { background: #E8E8EA; color: #000; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-small { font-size: 11px; font-weight: 500; }
.store-big { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.store[data-soon] { background: rgba(255, 255, 255, 0.92); cursor: default; }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hairline); }
.footer-in {
  max-width: 1160px; margin: 0 auto; padding: 28px 24px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-3);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, 0.65); }
.footer-links a:hover { color: #fff; }
.footer-link-btn {
  padding: 0; border: 0; background: none; font: inherit; color: rgba(255, 255, 255, 0.65); cursor: pointer;
}
.footer-link-btn:hover { color: #fff; }

/* ---- Cookie choice (assets/consent.js) ----------------------------------- */
/* Decline and Accept look alike on purpose: refusing must be as easy as agreeing. */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 640px; margin: 0 auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--elevated); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.consent-text { flex: 1 1 300px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.consent-text a { color: var(--accent); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-btn {
  min-width: 96px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.consent-btn:hover { background: rgba(255, 255, 255, 0.14); }
.consent-btn:focus-visible, .footer-link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Long-form pages (privacy, support) --------------------------------- */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.doc-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.doc h1 {
  margin: 0; font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
}
.doc-lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.doc h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2;
  margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--hairline);
}
.doc h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }
.doc strong { color: var(--text); font-weight: 650; }
.doc ul { padding-left: 1.25em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc a { overflow-wrap: anywhere; }
.doc a:hover { text-decoration: underline; }
.doc code {
  font-family: var(--mono); font-size: 0.86em; background: var(--elevated);
  padding: 1px 6px; border-radius: 6px;
}
.doc .table {
  overflow-x: auto; margin: 16px 0; border-radius: 16px;
  background: rgba(255, 255, 255, 0.015); border: 1px solid rgba(255, 255, 255, 0.07);
}
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; }
.doc th { color: var(--text-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.doc tbody td { border-top: 1px solid rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.78); }
.doc td:first-child { color: var(--text); }
.doc .todo { background: #5A2A00; color: #FFD9A8; padding: 0 4px; border-radius: 4px; }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 8px 0 8px; padding: 22px 24px; border-radius: 18px;
  background: rgba(45, 212, 191, 0.07); border: 1px solid rgba(45, 212, 191, 0.22);
}
.contact-card span { font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.contact-card a {
  padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 14px;
}
.contact-card a:hover { background: var(--accent-hi); color: var(--on-accent); text-decoration: none; }

/* ---- 404 ---------------------------------------------------------------- */
.lost {
  min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 22px; padding: 80px 24px; text-align: center;
}
.lost-ring { width: 120px; height: 120px; }
.lost-ring circle:last-child { animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .28; } 50% { opacity: .85; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
