/* Landing page style: the Fantasy direction (owner, 2026-11-02), from Open Design's Fantasy
 * design system: deep night surfaces, one violet accent, New Rocker display over Inter. */
:root {
  --bg: #070711;
  --bg-alt: #0b0b1a;
  --surface: #111126;
  --surface-warm: #1e1540;
  --fg: #f8f7ff;
  --fg-2: #d6ccff;
  --muted: #9d8ad4;
  --border: #34265e;
  --border-soft: #241c42;
  --accent: #c084fc;
  --accent-on: #13051f;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --focus-ring: 0 0 0 4px rgba(192, 132, 252, 0.32);

  --display: 'New Rocker', Georgia, 'Times New Roman', serif;
  --body: Inter, system-ui, sans-serif;

  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

/* Buttons: squared, like plates of iron */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 38, 0.6);
  color: var(--fg);
  font: 600 15px/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* Nav: links left, crest centred, play right */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 7, 17, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-mark { display: block; color: var(--fg-2); }
.nav-mark svg { display: block; width: 40px; height: 40px; }
.nav .btn { justify-self: end; }

/* Hero: centred crest, carved title, a slow drift of embers behind */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(ellipse 60% 55% at 50% 36%, rgba(30, 21, 64, 0.9), transparent 70%), var(--bg);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 7px);
}
#entropy-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 80px; }
.crest { width: 168px; height: 168px; color: var(--fg-2); filter: drop-shadow(0 18px 40px rgba(192, 132, 252, 0.25)); }
.hero h1 { margin-top: 18px; font-size: clamp(52px, 9vw, 104px); line-height: 1; letter-spacing: -0.01em; }
.kicker { margin-top: 14px; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.lede { margin: 28px auto 0; max-width: 54ch; font-size: 17px; color: var(--fg-2); }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-note { margin: 14px auto 0; max-width: 56ch; font-size: 13px; color: var(--muted); }

/* Stats: three engraved seals */
.stats { display: flex; justify-content: center; max-width: 820px; margin: 56px auto 0; }
.stats > div { flex: 1; padding: 0 20px; }
.stats > div + div { border-left: 1px solid var(--border); }
.stats dt { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 8px 0 0; font: 400 26px/1.15 var(--display); }
.stats .dd-note { display: block; margin-top: 6px; font: 400 12px/1.4 var(--body); color: var(--muted); }

/* Section heading with a rune between two rules */
.section { padding: 96px 0 104px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }
.rule { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--border); }
.rule::before, .rule::after { content: ''; height: 1px; flex: 1; max-width: 200px; background: currentColor; }
.rule svg { width: 18px; height: 18px; color: var(--muted); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin: 18px 0 8px; font-size: 48px; line-height: 1.05; }
.section-head p { margin: 0 auto; max-width: 52ch; }

/* How to play: a descending path of three trials */
.path { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; position: relative; }
.path::before {
  content: ''; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 1px;
  background: linear-gradient(var(--accent), var(--border) 40%, var(--border));
}
.path li { display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.path li:nth-child(2) { margin-left: 64px; }
.path li:nth-child(3) { margin-left: 128px; padding-bottom: 0; }
.numeral {
  width: 80px; height: 80px; display: grid; place-items: center; position: relative; z-index: 1;
  font: 400 30px var(--display); color: var(--fg-2);
  background: var(--surface); border: 1px solid var(--border); transform: rotate(45deg);
}
.numeral span { transform: rotate(-45deg); }
.path li:first-child .numeral { border-color: var(--accent); color: var(--accent); }
.trial { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px 26px 24px; }
.trial h3 { margin-bottom: 8px; font-size: 24px; line-height: 1.2; }
.trial p { color: var(--muted); font-size: 15px; }

/* Dying: the heading on the left, the terms carved on the right */
.epitaph { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.epitaph h2 { font-size: 56px; line-height: 1; }
.epitaph .muted { margin-top: 16px; max-width: 30ch; font-size: 17px; }
.terms { list-style: none; margin: 0; padding: 0; counter-reset: term; }
.terms li {
  counter-increment: term;
  display: grid; grid-template-columns: 44px 1fr; gap: 12px;
  padding: 18px 0; border-top: 1px solid var(--border-soft); color: var(--fg-2);
}
.terms li:last-child { border-bottom: 1px solid var(--border-soft); }
.terms li::before { content: counter(term, upper-roman); font: 400 18px/1.5 var(--display); color: var(--muted); }

/* Discord: a framed summons with a diamond seal on its top edge */
.summons {
  position: relative; max-width: 760px; margin: 0 auto; padding: 48px 48px 44px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.summons::before {
  content: ''; position: absolute; left: calc(50% - 11px); top: -12px; width: 22px; height: 22px;
  border: 1px solid var(--muted); background: var(--bg); transform: rotate(45deg);
}
.summons h2 { font-size: 44px; line-height: 1.05; }
.summons p { margin: 14px auto 0; max-width: 50ch; color: var(--muted); }
.summons .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border-soft); padding: 32px 0; }
.footer-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.footer-mark { display: flex; align-items: center; gap: 10px; font: 400 18px var(--display); color: var(--fg-2); }
.footer-mark svg { width: 26px; height: 26px; }
.footer p { color: var(--muted); font-size: 13px; max-width: 40rem; }

/* Responsive */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .epitaph { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .crest { width: 128px; height: 128px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats { flex-direction: column; gap: 18px; margin-top: 44px; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--border); padding-top: 18px; }
  .section-head h2, .summons h2 { font-size: 38px; }
  .epitaph h2 { font-size: 44px; }
  .path li, .path li:nth-child(2), .path li:nth-child(3) { margin-left: 0; grid-template-columns: 56px 1fr; gap: 18px; }
  .numeral { width: 56px; height: 56px; font-size: 22px; }
  .path::before { left: 27px; }
  .summons { padding: 40px 20px 28px; }
  .footer-inner { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
