:root {
  --ink: #14201c;
  --moss: #243b32;
  --foam: #e7f0ea;
  --sand: #d8c3a5;
  --glow: #7eb8a2;
  --muted: #5c7268;
  --card: rgba(20, 32, 28, 0.55);
  --line: rgba(231, 240, 234, 0.14);
  --font-display: "Literata", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font-family: var(--font-body);
  background: #0d1613;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(126, 184, 162, 0.28), transparent 60%),
    radial-gradient(700px 480px at 88% 12%, rgba(216, 195, 165, 0.18), transparent 55%),
    radial-gradient(800px 600px at 70% 85%, rgba(36, 59, 50, 0.9), transparent 50%),
    linear-gradient(165deg, #0d1613 0%, #15241e 45%, #0f1a16 100%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { filter: saturate(1) hue-rotate(0deg); transform: scale(1); }
  to { filter: saturate(1.08) hue-rotate(8deg); transform: scale(1.03); }
}

.top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
}
.brand {
  color: var(--foam);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  max-width: 920px;
}
.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.1s;
}
.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.95s ease forwards 0.25s;
}
.lede {
  margin: 1.25rem 0 0;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--foam) 82%, var(--sand));
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.95s ease forwards 0.4s;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.95s ease forwards 0.55s;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.35rem;
  background: var(--sand);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: #e5d3b8; }
.btn.ghost {
  background: transparent;
  color: var(--foam);
  outline: 1px solid var(--line);
}
.btn.ghost:hover { background: rgba(231, 240, 234, 0.06); }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.panel {
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  max-width: 920px;
}
.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.section-lede {
  margin: 0.75rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.55;
}
.section-lede a { color: var(--glow); }

.editions {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.editions li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.2rem;
  padding: 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(16px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.editions li.is-in {
  opacity: 1;
  transform: translateY(0);
}
.editions li:hover {
  border-color: rgba(126, 184, 162, 0.45);
  transform: translateY(-2px);
}
.ed-code {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--sand);
}
.editions strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.editions li > span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.fine { color: var(--muted); margin-top: 0.75rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 920px;
}

@media (max-width: 560px) {
  .editions li { grid-template-columns: 1fr; }
  .ed-code { grid-row: auto; }
}
