:root {
  --bg: #0c0908;
  --bg-2: #151010;
  --bg-3: #1e1614;
  --ink: #f4e8d8;
  --muted: #b8a394;
  --gold: #d4a24a;
  --gold-2: #f0c878;
  --wine: #8b1e2d;
  --wine-2: #c43a4a;
  --line: rgba(212, 162, 74, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

/* AGE GATE */
.gate {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8, 5, 5, 0.92);
  display: grid; place-items: center;
  padding: 24px;
}
.gate[hidden] { display: none; }
.gate-card {
  width: min(460px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gate-card h2 { font-family: var(--font-display); font-size: 2rem; color: var(--gold-2); }
.gate-card p { color: var(--muted); margin: 12px 0 22px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 9, 8, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 42px; height: 42px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.brand-name {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  font-weight: 600;
}
.brand-name span { color: var(--gold); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.04em; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); padding: 8px 10px; border-radius: 8px;
}

/* HERO */
.hero {
  position: relative; min-height: 78vh;
  display: grid; place-items: end start;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.9) brightness(0.55);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,9,8,0.15) 0%, rgba(12,9,8,0.92) 88%);
}
.hero-copy { position: relative; z-index: 1; padding: 48px 0 64px; max-width: 680px; }
.kicker {
  color: var(--gold); letter-spacing: 0.28em;
  font-size: 0.72rem; text-transform: uppercase; margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95; font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p { color: var(--muted); margin: 18px 0 28px; font-size: 1.08rem; max-width: 46ch; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 999px; padding: 12px 22px;
  border: 1px solid transparent; font-weight: 600; letter-spacing: 0.03em;
}
.btn-gold { background: var(--gold); color: #1a1208; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-wine { background: var(--wine); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* SECTIONS */
section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500;
}
.section-head p { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-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,162,74,0.5); }
.card .cover { aspect-ratio: 2/3; overflow: hidden; background: #000; position: relative; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(12,9,8,0.8); color: var(--gold-2);
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line);
}
.lock {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(12,9,8,0.78); padding: 6px 9px; border-radius: 999px;
  font-size: 0.75rem; color: var(--gold-2);
}
.card-body { padding: 14px 14px 16px; }
.card-body .series { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card-body h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 4px 0 8px; }
.meta { color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; }

/* ABOUT / PROSE */
.prose { max-width: 68ch; color: var(--muted); }
.prose h1, .prose h2 { font-family: var(--font-display); color: var(--ink); font-weight: 500; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.prose h2 { font-size: 1.8rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; }
.notice {
  margin-top: 24px; padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--bg-2); color: var(--ink);
}

/* READER */
.reader-hero { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.reader-cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.reader-cover img { width: 100%; }
.pages { margin-top: 36px; display: grid; gap: 16px; }
.page-frame {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 12px; min-height: 420px;
  display: grid; place-items: center; color: var(--muted); padding: 24px; text-align: center;
}
.page-frame img { width: 100%; border-radius: 8px; }
.paywall {
  margin-top: 20px; padding: 28px;
  border: 1px dashed var(--gold);
  border-radius: 16px; background: linear-gradient(180deg, #1a1010, #120c0c);
  text-align: center;
}
.paywall h3 { font-family: var(--font-display); font-size: 2rem; color: var(--gold-2); }
.paywall p { color: var(--muted); margin: 10px 0 18px; }
.price { font-size: 2rem; color: var(--ink); font-family: var(--font-display); }

/* FILTERS */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; font-size: 0.85rem;
}
.chip.active, .chip:hover { border-color: var(--gold); color: var(--gold-2); }

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem;
}
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--gold-2); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--bg-2); flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .reader-hero { grid-template-columns: 1fr; }
  .reader-cover { max-width: 280px; }
}
