:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --surface: #171b24;
  --text: #e7e4dc;
  --muted: #a3a6ae;
  --line: #262b36;

  --blue: #6fb6ff;
  --blue-deep: #1f5fa8;
  --green: #9fe08a;
  --green-deep: #3e7a33;
  --gold: #f2c86b;
  --discord: #5865f2;

  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .02em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; text-align: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(11, 13, 18, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Cinzel, serif; font-weight: 800; font-size: 1.4rem;
  letter-spacing: .25em; text-decoration: none;
}
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

/* Shared bits */
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 700; margin: 0 0 .8em;
}
.eyebrow--blue { color: var(--blue); }
.eyebrow--green { color: var(--green); }
.tagline { font-size: 1.2rem; color: var(--text); margin: 0 0 1.2em; font-style: italic; }
.blurb p { color: var(--muted); margin: 0 0 .9em; }
.blurb strong, .blurb em { color: var(--text); }

.cover img { border-radius: 6px; }
.cover--glow-blue img { box-shadow: 0 30px 80px -20px rgba(111, 182, 255, .45), 0 0 0 1px rgba(255,255,255,.06); }
.cover--glow-green img { box-shadow: 0 30px 80px -20px rgba(159, 224, 138, .35), 0 0 0 1px rgba(255,255,255,.06); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: .98rem;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn--blue { background: var(--blue-deep); color: #fff; }
.btn--green { background: var(--green-deep); color: #fff; }
.btn--discord { background: var(--discord); color: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 25% 40%, rgba(31, 95, 168, .35), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-grid, .book-grid {
  position: relative;
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: minmax(240px, 400px) 1fr;
}

.countdown {
  margin-top: 1.6em; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.countdown-label { margin: 0 0 12px; color: var(--muted); }
.countdown-label strong { color: var(--blue); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.countdown-grid span {
  display: block; font-family: Cinzel, serif; font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.countdown-grid small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.countdown.is-live .countdown-grid { display: none; }

/* Necroborn */
.book {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(62, 122, 51, .22), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.book-grid { grid-template-columns: 1fr minmax(240px, 400px); }
.tags { list-style: none; padding: 0; margin: 1.2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 12px; border-radius: 999px; font-size: .85rem;
  border: 1px solid rgba(159, 224, 138, .3); color: var(--green);
}

/* About / Discord */
.about, .discord { padding: 90px 0; border-top: 1px solid var(--line); }
.about p, .discord p { color: var(--muted); margin-bottom: 1.6em; }

.footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }

/* Mobile */
@media (max-width: 820px) {
  .nav { padding: 12px 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: .85rem; }
  .hero { padding: 48px 0 64px; }
  .book { padding: 64px 0; }
  .hero-grid, .book-grid { grid-template-columns: 1fr; gap: 32px; }
  .cover { max-width: 300px; margin: 0 auto; }
  .book-grid .cover { order: -1; }
}
@media (max-width: 420px) {
  .nav nav a[href="#about"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
