:root {
  --baize: #0d2a22;
  --baize-deep: #081c16;
  --navy: #0b1526;
  --ink: #060d0b;
  --cream: #f3ead7;
  --cream-dim: #c9bfa9;
  --gold: #c9940a;
  --gold-soft: #e0b243;
  --line: rgba(201, 148, 10, 0.28);
  --card: rgba(255, 255, 255, 0.035);
  --wa: #25d366;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 13, 11, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 148, 10, 0.14);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-word { font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; color: var(--cream); }
.brand-word em { color: var(--gold); font-style: normal; }
.brand-by { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); }
.head-nav { display: flex; gap: 22px; font-size: 14px; }
.head-nav a { text-decoration: none; color: var(--cream-dim); }
.head-nav a:hover { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1a1204; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-wa { background: var(--wa); color: #06220f; }
.btn-wa:hover { filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; flex: none; }

.eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 72% 40%, rgba(201,148,10,0.16), transparent 70%),
    radial-gradient(ellipse 90% 80% at 30% 0%, #16402f 0%, transparent 60%),
    linear-gradient(180deg, var(--baize) 0%, var(--baize-deep) 70%, var(--ink) 100%);
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; margin: 14px 0 18px; letter-spacing: -0.01em; }
.hero h1 .vol { display: block; font-size: 0.42em; font-weight: 600; color: var(--gold-soft); letter-spacing: 0.04em; margin-bottom: 8px; }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: var(--gold-soft); margin: -6px 0 18px; line-height: 1.3; }
.hero p.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--cream-dim); max-width: 520px; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cover { justify-self: center; width: min(100%, 400px); perspective: 1400px; }
.hero-cover .cover { transform: rotateY(-9deg) rotateX(2deg); box-shadow: 30px 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.hero-cover a:hover .cover { transform: rotateY(-3deg); }

/* ---------- Cover (shared) ---------- */
.cover {
  position: relative; aspect-ratio: var(--ar, 0.7071); width: 100%;
  border-radius: 4px 8px 8px 4px; overflow: hidden;
  background: linear-gradient(160deg, #173d2f, #0a1f18);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cover img, .cover canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { /* spine sheen */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.06) 60%, transparent);
  pointer-events: none;
}
.cover-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 10% 9%; text-align: left;
  background:
    radial-gradient(circle at 70% 30%, rgba(201,148,10,.22), transparent 55%),
    linear-gradient(160deg, #173d2f, #081a14);
}
.cover-fallback .cf-word { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 3.4vw, 40px); color: var(--cream); line-height: 1; }
.cover-fallback .cf-vol { font-family: var(--serif); font-size: clamp(56px, 9vw, 120px); color: var(--gold); line-height: .9; font-weight: 800; }
.cover-fallback .cf-sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); }
.cover.loading .cover-fallback { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .75; } }

/* ---------- Library ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); margin: 6px 0 0; font-weight: 700; }
.section-head p { color: var(--cream-dim); margin: 0; max-width: 420px; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.vol-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.vol-card .cover { box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05); }
.vol-card:hover .cover { transform: translateY(-6px); box-shadow: 0 28px 50px rgba(0,0,0,.6), 0 0 0 1px var(--gold); }
.vol-meta { display: flex; flex-direction: column; gap: 4px; }
.vol-num { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.vol-title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.2; }
.vol-ed { font-size: 14px; color: var(--cream-dim); }
.vol-tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-soft); line-height: 1.35; }
.vol-resume { font-size: 13px; color: var(--gold-soft); }
.badge-new {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--gold); color: #1a1204; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; padding: 5px 10px; border-radius: 999px;
}

/* ---------- Subscribe ---------- */
.subscribe {
  border-top: 1px solid rgba(201,148,10,.14); border-bottom: 1px solid rgba(201,148,10,.14);
  background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(37,211,102,.08), transparent 70%), var(--navy);
}
.sub-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.subscribe h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); margin: 8px 0 10px; }
.subscribe p { color: var(--cream-dim); margin: 0; max-width: 520px; }
.sub-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.sub-note { font-size: 13px; color: var(--cream-dim); text-align: center; }

/* ---------- Footer ---------- */
.site-foot { padding: 48px 0 40px; color: var(--cream-dim); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-grid h3 { font-family: var(--serif); color: var(--cream); font-size: 20px; margin: 0 0 8px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-small { margin-top: 32px; font-size: 12px; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .sub-grid { grid-template-columns: 1fr; }
  .hero-cover { order: -1; width: min(72%, 300px); }
  .hero-cover .cover { transform: none; }
  .head-nav { display: none; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .vol-title { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
