:root {
  --plum: #3E2358;
  --plum-dark: #24133A;
  --night: #1A0F26;
  --ink: #2A1838;
  --gold: #FFC94A;
  --gold-deep: #E0A12E;
  --cream: #FFF4DE;
  --lilac: #C8B8E8;
  --amber: #FFB02E;
  --emerald: #2EEB7A;
  --sapphire: #4A86FF;
  --ruby: #FF2E55;
  --hearth: #FF6A1A;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 18px/1.6 "PT Serif", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); }

h1, h2, h3 { font-family: "Cinzel", "PT Serif", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: var(--ink); font: 700 20px "Cinzel", Georgia, serif; text-decoration: none; letter-spacing: 0.02em;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 30px rgba(255, 201, 74, 0.25);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), 0 16px 40px rgba(255, 201, 74, 0.35); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; }
.btn.small { padding: 9px 20px; font-size: 16px; border-width: 2px; box-shadow: 0 4px 0 var(--ink); }

/* ---------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(26, 15, 38, 0.85), rgba(26, 15, 38, 0));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 700 22px "Cinzel", serif; }
.brand .gem { width: 18px; height: 24px; background: var(--lilac); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 6px #C9A2FF); }

.nav-link { color: var(--lilac); text-decoration: none; font-size: 16px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(200, 184, 232, 0.3); background: rgba(36, 19, 58, 0.6); }
.nav-link:hover { color: var(--gold); }

/* ---------- hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 120px clamp(16px, 6vw, 96px) clamp(48px, 9vh, 96px);
  background: var(--night) var(--hero) center 30% / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 15, 38, 0.92) 0%, rgba(26, 15, 38, 0.55) 45%, rgba(26, 15, 38, 0) 75%),
    linear-gradient(0deg, var(--night) 0%, rgba(26, 15, 38, 0) 35%);
}
.hero-content { position: relative; max-width: 640px; }
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(62, 35, 88, 0.85); border: 1px solid rgba(200, 184, 232, 0.35);
  color: var(--lilac); font-size: 15px; letter-spacing: 0.04em;
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--gold);
  text-shadow: 0 4px 0 var(--ink), 0 0 40px rgba(255, 201, 74, 0.35);
}
.hero p.lead { font-size: clamp(19px, 2.2vw, 23px); margin: 0 0 30px; color: var(--cream); max-width: 34em; }
.hero .meta { margin-top: 18px; color: var(--lilac); font-size: 15px; }

/* ---------- sections */
section { padding: clamp(56px, 10vh, 110px) clamp(16px, 6vw, 96px); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--gold); }
.section-head p { color: var(--lilac); margin: 12px 0 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 1240px; margin: 0 auto; }
.card {
  background: var(--plum); border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 0 var(--plum-dark);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 3px solid var(--ink); }
.card .body { padding: 18px 22px 22px; }
.card h3 { font-size: 21px; color: var(--gold); margin-bottom: 6px; }
.card p { margin: 0; color: var(--cream); opacity: 0.9; font-size: 17px; }

/* the Hearth Door spotlight: picture and story side by side */
.spotlight {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  max-width: 1240px; margin: 0 auto;
}
.spotlight img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 0 0 60px rgba(255, 106, 26, 0.25); }
.spotlight h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--hearth); margin-bottom: 14px; }
.spotlight p { color: var(--cream); margin: 0 0 14px; }
.band { background: linear-gradient(180deg, var(--night), #24112F 50%, var(--night)); }

/* ---------- controls */
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.key { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: rgba(62, 35, 88, 0.55); border-radius: 14px; border: 1px solid rgba(200, 184, 232, 0.18); }
.key kbd {
  flex-shrink: 0; white-space: nowrap; min-width: 42px; padding: 4px 10px; text-align: center; border-radius: 8px;
  background: var(--cream); color: var(--ink); font: 700 15px "PT Serif", serif;
  border-bottom: 3px solid #B9A88A;
}
.key span { color: var(--lilac); font-size: 16px; }

/* ---------- changelog */
.changelog { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.release { background: rgba(62, 35, 88, 0.55); border: 1px solid rgba(200, 184, 232, 0.18); border-radius: 14px; padding: 4px 24px; }
.release[open] { padding-bottom: 14px; border-color: rgba(255, 201, 74, 0.35); }
.release summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 14px 0; cursor: pointer; list-style: none; }
.release summary::-webkit-details-marker { display: none; }
.release summary::before { content: "▸"; color: var(--gold); transition: transform 0.15s; display: inline-block; }
.release[open] summary::before { transform: rotate(90deg); }
.release-version { font: 700 21px "Cinzel", serif; color: var(--gold); }
.release-date { color: var(--lilac); font-size: 15px; }
.release-tag { font-size: 13px; padding: 1px 10px; border-radius: 999px; background: var(--emerald); color: var(--ink); font-weight: 700; }
.release-summary { margin: 0 0 8px; color: var(--cream); font-style: italic; }
.release ul { margin: 0; padding-left: 22px; color: var(--cream); opacity: 0.92; font-size: 17px; }
.release li { margin: 6px 0; }
.release li::marker { color: var(--hearth); }

/* ---------- final call */
.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); color: var(--gold); margin-bottom: 12px; }
.cta p { color: var(--lilac); margin: 0 0 30px; }

footer {
  padding: 30px clamp(16px, 6vw, 96px) 40px; text-align: center;
  color: rgba(200, 184, 232, 0.6); font-size: 14px; border-top: 1px solid rgba(200, 184, 232, 0.12);
}

@media (max-width: 820px) {
  .spotlight { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(0deg, var(--night) 10%, rgba(26, 15, 38, 0.65) 60%, rgba(26, 15, 38, 0.35) 100%); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
