:root {
  --ink: #10080c;
  --ink-2: #1a1014;
  --ink-3: #281820;
  --line: rgba(244, 237, 227, 0.1);
  --cream: #f4ede3;
  --cream-dim: #cbbfb3;
  --muted: #9a8b84;
  --carmine: #c41e3a;
  --carmine-deep: #8b1538;
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --ok: #3d9a6c;
  --radius: 18px;
  --header: 72px;
  --max: 1120px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(16, 8, 12, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .header-inner { position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.nav a:hover, .nav a.is-on { color: var(--gold-2); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #e03a52, var(--carmine));
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a1608;
}
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: end stretch;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,8,12,0.2) 0%, rgba(16,8,12,0.55) 45%, rgba(16,8,12,0.96) 100%),
    url("../img/hero-banner.jpg") center/cover no-repeat;
}
.hero-copy {
  position: relative;
  padding: 0 0 72px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 12px 0 16px;
  max-width: 14ch;
}
.hero p.lead {
  max-width: 42ch;
  color: var(--cream-dim);
  font-size: 1.12rem;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  color: var(--cream-dim);
  font-size: 0.92rem;
}
.trust b { color: var(--cream); display: block; font-size: 1.05rem; }

/* Sections */
section { padding: 72px 0; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  margin: 0;
}
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.link-more { color: var(--gold-2); font-weight: 600; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.35); }
.card-cover {
  aspect-ratio: 2/3;
  object-fit: cover;
  width: 100%;
}
.card-body { padding: 14px 14px 16px; }
.card-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.18);
  color: #f3b3bc;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-gold {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-2);
}

/* Featured row */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}
.featured-copy { padding: 36px 36px 36px 8px; }
.featured-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 8px 0 12px;
  font-weight: 500;
}
.stars { color: var(--gold); letter-spacing: 2px; }

/* How */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.step span {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.6rem;
}
.step h3 { margin: 8px 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.review {
  padding: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review p { margin: 0 0 14px; color: var(--cream-dim); }
.review b { display: block; }
.review small { color: var(--muted); }

/* CTA band */
.cta-band {
  background:
    linear-gradient(100deg, rgba(139, 21, 56, 0.92), rgba(16, 8, 12, 0.88)),
    url("../img/og-share.jpg") center/cover;
  border-radius: 28px;
  padding: 48px 36px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 10px;
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: var(--cream);
  margin: 0 0 12px;
  font-weight: 600;
}
.site-footer a:hover { color: var(--gold-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.legal-line {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Catalog */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-dim);
  border-radius: 999px;
  padding: 8px 14px;
}
.chip.is-on, .chip:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

/* Story page */
.story-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 36px 0 20px;
  align-items: start;
}
.story-hero .cover {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.chapters { display: grid; gap: 10px; }
.chap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-2);
}
.chap-row.locked { opacity: 0.7; }

/* Reader */
.reader-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 8, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.reader-inner {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 12px;
}
.reader-stage {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #0a0608;
  padding-bottom: 80px;
}
.panel { position: relative; }
.panel img { width: 100%; }
.panel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(8,4,6,0.92));
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.panel-kicker {
  display: block;
  color: var(--gold-2);
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.narration, .bubble, .cliff {
  padding: 22px 24px;
  margin: 0;
}
.narration {
  color: var(--cream-dim);
  font-style: italic;
  background: #12090d;
}
.bubble {
  background: #160b10;
  display: grid;
  gap: 6px;
}
.bubble b {
  font-size: 0.78rem;
  color: var(--gold-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bubble.right { text-align: right; }
.bubble p {
  display: inline-block;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  max-width: 90%;
}
.bubble.right p { background: var(--carmine-deep); }
.cliff {
  background: linear-gradient(180deg, #1a0a10, #2a1018);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: center;
  padding: 36px 24px 48px;
}

.gate {
  margin: 24px;
  padding: 28px 22px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  text-align: center;
  background: var(--ink-2);
}
.gate h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 8px;
  font-weight: 500;
}

/* Legal */
.prose {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto 80px;
  color: var(--cream-dim);
}
.prose h1 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 500;
  font-size: 2.2rem;
}
.prose h2 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 500;
  margin-top: 32px;
}
.prose a { color: var(--gold-2); text-decoration: underline; }

/* Forms */
.form {
  display: grid;
  gap: 12px;
  text-align: left;
}
.form label { font-size: 0.85rem; color: var(--cream-dim); }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e080a;
  border-radius: 12px;
  padding: 12px 14px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 6, 0.72);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 20px;
}
.modal.is-open { display: grid; }
.modal-card {
  width: min(440px, 100%);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 8px;
  font-weight: 500;
}

/* Cookie */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  background: #24141a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}
.cookie.is-on { display: block; }
.cookie p { margin: 0 0 12px; color: var(--cream-dim); font-size: 0.92rem; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 35;
}

.note {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .grid-cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .featured, .story-hero, .foot-grid, .steps { grid-template-columns: 1fr; }
  .featured img { min-height: 280px; }
  .featured-copy { padding: 24px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header);
    left: 0; right: 0;
    background: #160b10;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta .btn-ghost { display: none; }
}

body[data-page="reader"] .site-header { display: none; }
body[data-page="reader"] .site-footer { font-size: 0.82rem; padding-top: 24px; }

@media (max-width: 640px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reviews { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .sticky-cta { display: block; }
  body.has-sticky { padding-bottom: 76px; }
}
