/* ============================================================
   THE IMMORTAL PLAYER — immortalplayer.com
   Design system: dark cosmic hero + light editorial body
   Edit tokens below to retune the whole site at once.
   ============================================================ */

:root {
  /* Dark (hero / night) palette */
  --night-900: #0b0a1a;
  --night-800: #131129;
  --night-700: #1d1a3a;
  --night-line: rgba(255, 255, 255, 0.10);
  --star: rgba(255, 255, 255, 0.85);

  /* Light (reading) palette */
  --paper: #faf8f4;
  --paper-2: #f1ede5;
  --ink: #211e33;
  --ink-soft: #514c66;

  /* Accent */
  --gold: #d4a843;
  --gold-deep: #b8893a;
  --violet: #7c6cdb;
  --violet-soft: #a89cf0;

  /* Type */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --max-w: 1080px;
  --max-text: 46rem;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(20, 16, 50, 0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p + p { margin-top: 1em; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-col { max-width: var(--max-text); }
.center { text-align: center; }
.center .text-col { margin-left: auto; margin-right: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--night-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: #fff; letter-spacing: 0.02em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .tm-mark { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--font-ui); font-size: 0.92rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
  background: var(--gold); color: var(--night-900) !important;
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: #e6bb55; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: 0.25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0 16px;
    background: var(--night-900); border-bottom: 1px solid var(--night-line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px; font-size: 1rem; }
  .nav-cta { display: inline-block; margin-top: 8px; }
}

/* ---------- Dark hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(124, 108, 219, 0.28), transparent 60%),
    radial-gradient(900px 420px at 15% 110%, rgba(212, 168, 67, 0.14), transparent 55%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-800) 70%, var(--night-700) 100%);
  color: #fff;
  padding: 96px 0 110px;
}
.hero.compact { padding: 72px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, var(--star), transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.8px 1.8px at 41% 18%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 55% 49%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.6px 1.6px at 68% 23%, var(--star), transparent),
    radial-gradient(1px 1px at 76% 70%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.4px 1.4px at 87% 38%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 93% 81%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 6% 77%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 47% 88%, rgba(255,255,255,.45), transparent);
}
.hero .wrap { position: relative; }
.hero .kicker {
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero.center h1 { margin-left: auto; margin-right: auto; }
.hero .lede {
  margin-top: 22px; max-width: 38rem;
  font-size: 1.2rem; line-height: 1.65; color: rgba(255, 255, 255, 0.88);
}
.hero.center .lede { margin-left: auto; margin-right: auto; }
.hero .hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero.center .hero-actions { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-ui); font-weight: 600;
  font-size: 1rem; padding: 14px 28px; border-radius: 999px;
  border: 0; cursor: pointer; transition: 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--night-900); }
.btn-gold:hover { background: #e6bb55; }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; }
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: #8d7ee8; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.tint { background: var(--paper-2); }
.section.night {
  background: linear-gradient(180deg, var(--night-800), var(--night-900));
  color: rgba(255, 255, 255, 0.9);
}
.section.night h2, .section.night h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 12px;
}
.section.night .eyebrow { color: var(--gold); }
.section h2 { margin-bottom: 20px; }
.sub { color: var(--ink-soft); }
.section.night .sub { color: rgba(255, 255, 255, 0.72); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 840px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid rgba(20, 16, 50, 0.06);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1.02rem; color: var(--ink-soft); }
.card .card-link { display: inline-block; margin-top: 14px; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.section.night .card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--night-line);
  box-shadow: none;
}
.section.night .card p { color: rgba(255, 255, 255, 0.75); }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 840px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 24px 10px; }
.stat .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.9rem); color: var(--gold);
  display: block; line-height: 1.1;
}
.stat .lbl {
  font-family: var(--font-ui); font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7); display: block; margin-top: 8px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; font-family: var(--font-ui); font-size: 0.95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee7da; }
th { background: var(--night-800); color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
tr.winner td { background: #fdf6e4; font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Callouts / quotes ---------- */
.callout {
  border-left: 4px solid var(--gold); background: #fff;
  padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); margin: 30px 0;
}
.callout p { font-size: 1.05rem; }
.micdrop {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.35;
  margin: 36px 0; max-width: 30ch;
}
.section.night .micdrop { color: #fff; }
.center .micdrop { margin-left: auto; margin-right: auto; }

/* ---------- Subscribe ---------- */
.subscribe-box {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(124, 108, 219, 0.3), transparent 60%),
    linear-gradient(180deg, var(--night-800), var(--night-900));
  border-radius: 20px; padding: 56px 40px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.subscribe-box h2 { color: #fff; }
.subscribe-box .sub { color: rgba(255, 255, 255, 0.75); max-width: 36rem; margin: 14px auto 0; }
.subscribe-form { margin: 30px auto 0; max-width: 460px; display: grid; gap: 12px; }
.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
  width: 100%; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255, 255, 255, 0.95); font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
}
.subscribe-form .opt-row {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  font-family: var(--font-ui); font-size: 0.9rem; color: rgba(255, 255, 255, 0.8);
}
.subscribe-form .opt-row input { margin-top: 4px; }
.subscribe-form button { width: 100%; }
.form-note { font-family: var(--font-ui); font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night-900); color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 36px; font-family: var(--font-ui); font-size: 0.9rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer .foot-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.site-footer .fineprint { margin-top: 26px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

/* ---------- Prose helpers ---------- */
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 36px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose li { margin: 0.45em 0; }
strong { font-weight: 700; }
.lead { font-size: 1.25rem; line-height: 1.6; }
.smallcaps-divider {
  display: flex; align-items: center; gap: 16px; margin: 48px 0;
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
}
.smallcaps-divider::before, .smallcaps-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(20, 16, 50, 0.15);
}
