:root {
  --bg: #12080a;
  --raise: rgba(243, 230, 208, 0.04);
  --ink: #f3e6d0;
  --muted: #c4b09a;
  --gold: #f0d080;
  --ember: #e25b32;
  --line: rgba(240, 208, 128, 0.28);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1100px 640px at 88% -8%, rgba(226, 91, 50, 0.22), transparent 58%),
    radial-gradient(820px 520px at -12% 18%, rgba(240, 208, 128, 0.1), transparent 52%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(rgba(243, 230, 208, 0.45) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

p { margin: 0; }

.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;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--ember);
  color: #fff8f2;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(18, 8, 10, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand em {
  color: var(--gold);
  font-style: italic;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--gold);
  content: "";
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-links a.nav-download {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a0c0e;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links a.nav-download[aria-current="page"] {
  box-shadow: inset 0 0 0 1px #1a0c0e;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero-wrap { padding: 64px 0 28px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-fan {
  position: relative;
  height: 520px;
}

.hero-fan img {
  position: absolute;
  width: 230px;
  height: 345px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(240, 208, 128, 0.55);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-fan img:nth-child(1) { left: 8px; top: 58px; transform: rotate(-8deg); }
.hero-fan img:nth-child(2) { left: 118px; top: 8px; z-index: 2; transform: rotate(2deg); }
.hero-fan img:nth-child(3) { left: 214px; top: 72px; transform: rotate(9deg); }

.downloads { margin-top: 28px; }

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform {
  display: grid;
  gap: 3px;
  min-width: min(100%, 240px);
  margin: 0;
  padding: 14px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(240, 208, 128, 0.16), rgba(240, 208, 128, 0.04));
  color: inherit;
  text-decoration: none;
}

a.platform:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.platform-os {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.platform-action {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.15;
}

.platform-meta { color: var(--muted); font-size: 0.88rem; }

.platform.is-waiting {
  background: transparent;
  opacity: 0.8;
}

.band {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.band .wrap > h2,
.band .wrap > div > h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.req h2 { margin: 0 0 14px; font-size: 2rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 { margin: 0; }
.section-head a { font-size: 0.95rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li,
.role,
.arc,
.step,
.news-card,
.faq details,
.req,
.champion {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raise);
}

.facts li { padding: 18px 16px 20px; }
.facts span,
.step b,
.arc b {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.facts h2,
.role h3,
.champion h3,
.news-card h3,
.step h3,
.faq summary {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.facts p,
.role p,
.arc p,
.step p,
.news-card p,
.champion p,
.faq p { color: var(--muted); }

.reel {
  display: grid;
  grid-auto-columns: minmax(180px, 210px);
  grid-auto-flow: column;
  gap: 14px;
  margin: 0;
  padding: 6px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.reel a {
  display: block;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.reel img,
.champion img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

.reel a:hover img,
.champion:hover img { transform: translateY(-8px) rotate(-1.2deg); }

.reel .caption,
.champion .caption { margin-top: 10px; }

.champion,
.news-card { scroll-margin-top: 88px; }

.reel strong,
.champion strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }

.reel em,
.tag {
  color: var(--gold);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-grid,
.roles,
.arcs,
.steps,
.roster,
.split {
  display: grid;
  gap: 14px;
}

.news-grid,
.roles { grid-template-columns: 1fr 1fr; }
.steps { grid-template-columns: repeat(3, 1fr); }
.arcs { grid-template-columns: repeat(5, 1fr); }
.roster { grid-template-columns: repeat(3, 1fr); }
.split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }

.news-card,
.role,
.step,
.arc,
.req { padding: 18px; }

.news-card time,
.req dt { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

.news-card h3 { margin-top: 8px; }
.news-card a.more { display: inline-block; margin-top: 14px; }

.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }

.champion {
  overflow: hidden;
  padding: 10px 10px 16px;
}

.champion img { border-radius: 12px; transition: transform 0.35s ease; }
.reel a img { transition: transform 0.35s ease; }

.champion .tagline { margin-top: 8px; }

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.arc b { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.arc strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }

.faq { display: grid; gap: 10px; }

.faq details { padding: 6px 18px 8px; }
.faq summary { cursor: pointer; padding: 12px 0; }
.faq p { padding-bottom: 12px; }

.req dl { display: grid; gap: 12px; margin: 0; }
.req dd { margin: 4px 0 0; color: var(--muted); }

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}

.steps-list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 48px;
  color: var(--muted);
}

.steps-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  line-height: 30px;
  text-align: center;
  content: counter(install);
  counter-increment: install;
}

.stamp {
  margin-top: 18px;
  color: var(--muted);
}

.stamp code {
  color: var(--ink);
  font-size: 0.92rem;
}

.note {
  margin-top: 16px;
  color: var(--muted);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 10px auto 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.brand-foot {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.foot-note { width: 100%; margin: 0; font-size: 0.92rem; }

.dock { display: none; }

@media (max-width: 980px) {
  .hero,
  .facts,
  .arcs,
  .split,
  .steps { grid-template-columns: 1fr 1fr; }
  .roster { grid-template-columns: 1fr 1fr; }
  .hero-fan { height: 420px; }
  .hero-fan img { width: 180px; height: 270px; }
  .hero-fan img:nth-child(3) { left: 160px; }
}

@media (max-width: 800px) {
  .nav { padding: 10px 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(18, 8, 10, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open {
    display: flex;
    z-index: 2;
    background: #12080a;
  }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(240, 208, 128, 0.12); }
  .nav-links a.nav-download {
    margin-top: 10px;
    text-align: center;
    border-bottom: 0;
  }
  .hero-wrap,
  .page-hero { padding-top: 32px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero,
  .facts,
  .news-grid,
  .roles,
  .arcs,
  .steps,
  .roster,
  .split { grid-template-columns: 1fr; }
  .hero-fan { display: none; }
  .hero-downloads,
  .stage-downloads { display: none; }
  .dock {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 8, 10, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .dock .platform-row { display: grid; grid-template-columns: 1fr 1fr; }
  .dock .platform { min-width: 0; padding: 10px; border-radius: 12px; }
  .dock .platform-action { font-size: 0.98rem; }
  .dock .platform-meta { display: none; }
  html { scroll-padding-bottom: 132px; }
  body { padding-bottom: 132px; }
  .site-foot { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  a.platform:hover,
  .reel a:hover img,
  .champion:hover img { transform: none; }
}
