:root {
  --bg: #120709;
  --bg-2: #1c0b10;
  --surface: #1f0d12;
  --surface-2: #2a1118;
  --ink: #f5e9e4;
  --muted: #c3a7a6;
  --line: rgba(212, 163, 115, 0.18);
  --wine: #7a1030;
  --wine-bright: #a8173f;
  --gold: #d4a373;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(168, 23, 63, .35), transparent 70%),
    radial-gradient(800px 500px at 100% 40%, rgba(122, 16, 48, .18), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
::selection { background: var(--wine-bright); color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(18, 7, 9, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.5rem;
  text-decoration: none; color: var(--ink); letter-spacing: .01em;
}
.brand::first-letter { color: var(--wine-bright); }
header.site nav a {
  text-decoration: none; color: var(--muted); font-size: .82rem; margin-left: 24px;
  letter-spacing: .14em; text-transform: uppercase;
}
header.site nav a:hover { color: var(--gold); }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-style: italic;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.08; margin: 0 auto 18px; max-width: 820px; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff3ee 0%, #e7b9a8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 1.08rem; margin: 0 auto; max-width: 560px; }
.hero::after {
  content: ""; display: block; width: 72px; height: 1px; margin: 36px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px auto 8px; max-width: 780px; }
.step {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .92rem;
}
.step b { display: block; font-size: .72rem; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }

/* Book grid */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; padding: 44px 0 80px; }
.book {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.book:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 163, 115, .45);
  box-shadow: 0 18px 50px rgba(122, 16, 48, .45);
}
.cover { aspect-ratio: 2 / 3; background: #2a0f16; position: relative; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.book:hover .cover img { transform: scale(1.04); }
.cover .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(212, 163, 115, .25), transparent 60%),
    linear-gradient(160deg, #8e1b3a 0%, #4a0a1c 55%, #16070b 100%);
  font-family: var(--serif); font-style: italic; font-size: 1.55rem; line-height: 1.15;
}
.cover .ph small { font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.book .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.book h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.book .sub { color: var(--gold); font-size: .88rem; margin: 0 0 10px; font-style: italic; }
.book .desc { font-size: .9rem; margin: 0 0 18px; color: var(--muted); flex: 1; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.price .now { font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.price .mrp { color: #8c7472; text-decoration: line-through; font-size: .95rem; }
.price .off {
  color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(212, 163, 115, .4); border-radius: 999px; padding: 2px 8px;
}

.btn {
  display: block; text-align: center; text-decoration: none; font-weight: 600; letter-spacing: .06em;
  background: linear-gradient(180deg, var(--wine-bright), var(--wine));
  color: #fff; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
  padding: 13px 16px; font-size: .95rem; cursor: pointer;
  box-shadow: 0 6px 20px rgba(168, 23, 63, .35);
  transition: filter .2s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.12); box-shadow: 0 8px 28px rgba(168, 23, 63, .55); }
.btn.disabled { background: #3a1d24; color: #9c8483; box-shadow: none; pointer-events: none; }
.secure { text-align: center; color: #9c8483; font-size: .72rem; margin-top: 10px; letter-spacing: .02em; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto 90px; }
.faq h2, .page h1 { font-family: var(--serif); font-style: italic; }
.faq h2 { font-size: 2rem; text-align: center; margin-bottom: 24px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--wine-bright); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Policy / simple pages */
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 90px; }
.page h1 { font-size: 2.4rem; }
.page h2 { margin-top: 44px; font-size: 1.3rem; font-family: var(--serif); color: var(--gold); }
.page p, .page li { color: var(--muted); }
.page b { color: var(--ink); }
.center { text-align: center; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: rgba(12, 4, 6, .9); padding: 30px 0; font-size: .85rem; color: #9c8483; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: #9c8483; text-decoration: none; margin-right: 16px; }
footer.site a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  header.site nav a:not(:last-child) { display: none; }
  .hero { padding-top: 52px; }
}
