/* ASCENT Books — premium dark + gold theme */
:root {
  --bg: #0a0a10;
  --bg-2: #10101a;
  --bg-3: #161624;
  --gold: #c9a227;
  --gold-2: #e3c565;
  --gold-3: #f5e3a8;
  --ink: #ece7db;
  --ink-dim: #b9b3a4;
  --ink-faint: #8a8578;
  --line: rgba(201, 162, 39, 0.22);
  --radius: 14px;
  --serif: Georgia, "Times New Roman", "Nimbus Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-3); }

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem; letter-spacing: 0.14em;
  color: var(--ink); font-weight: 700; white-space: nowrap;
}
.brand span { color: var(--gold-2); }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { color: var(--ink-dim); font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-2); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #161204 !important; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); border-radius: 8px; padding: 8px 12px; cursor: pointer;
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #161204; font-weight: 700; font-size: 1.05rem;
  padding: 15px 32px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
  text-align: center;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #161204; }
.btn-ghost {
  background: transparent; color: var(--gold-2);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-3); }
.btn-small { padding: 11px 22px; font-size: 0.98rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(201, 162, 39, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(201, 162, 39, 0.07), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.78rem; color: var(--gold-2); font-weight: 700;
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); margin-bottom: 16px; }
h1 .gold, h2 .gold { color: var(--gold-2); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
.lede { font-size: 1.12rem; color: var(--ink-dim); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.price-line { margin-top: 22px; font-size: 1.05rem; color: var(--ink-dim); }
.price-line .was { text-decoration: line-through; color: var(--ink-faint); margin-right: 8px; }
.price-line .now { color: var(--gold-2); font-weight: 800; font-size: 1.5rem; font-family: var(--serif); }
.price-line .tag {
  display: inline-block; margin-left: 10px; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.78rem; color: var(--gold-2); vertical-align: middle;
}
.hero-cover {
  justify-self: center; width: min(320px, 78vw);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line);
  transform: rotate(-1.5deg);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--ink-faint); font-size: 0.92rem; }
.hero-meta strong { color: var(--ink-dim); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 36px; }
.section-head p { color: var(--ink-dim); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.lever-grid { display: grid; gap: 18px; }
.lever {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.lever .num {
  font-family: var(--serif); color: var(--gold); font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px;
}
.lever p { color: var(--ink-dim); font-size: 0.98rem; }

.split { display: grid; gap: 36px; align-items: start; }
.check-list { list-style: none; }
.check-list li { padding: 10px 0 10px 34px; position: relative; color: var(--ink-dim); border-bottom: 1px solid rgba(255,255,255,0.05); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "◆"; position: absolute; left: 4px; top: 12px;
  color: var(--gold); font-size: 0.8rem;
}
.check-list strong { color: var(--ink); }

.excerpt-box {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; font-family: var(--serif); font-size: 1.04rem; color: var(--ink-dim);
}
.excerpt-box p { margin-bottom: 1em; }
.excerpt-box p:last-child { margin-bottom: 0; }
.excerpt-box .fade { color: var(--ink-faint); font-style: italic; }

/* ---------- Price / buy card ---------- */
.buy-card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 34px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.buy-card .now { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-2); font-weight: 800; }
.buy-card .was { text-decoration: line-through; color: var(--ink-faint); font-size: 1.15rem; }
.buy-card ul { list-style: none; margin: 20px auto 26px; max-width: 22rem; text-align: left; }
.buy-card ul li { padding: 6px 0 6px 28px; position: relative; color: var(--ink-dim); }
.buy-card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold-2); font-weight: 700; }
.buy-note { margin-top: 16px; font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- Book page ---------- */
.book-hero { padding: 56px 0; border-bottom: 1px solid var(--line); background: radial-gradient(800px 420px at 90% -10%, rgba(201,162,39,0.12), transparent 60%), var(--bg); }
.book-grid { display: grid; gap: 40px; }
.book-cover-lg { width: min(340px, 80vw); justify-self: center; border-radius: 8px; box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 0 1px var(--line); }
.book-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.fact { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.fact .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); }
.fact .v { font-weight: 700; color: var(--ink); }

.toc-part { margin-bottom: 30px; }
.toc-part h3 { color: var(--gold-2); margin-bottom: 10px; }
.toc-part ol { list-style: none; counter-reset: ch; }
.toc-part li { padding: 7px 0 7px 44px; position: relative; color: var(--ink-dim); border-bottom: 1px solid rgba(255,255,255,0.05); }
.toc-part li::before {
  counter-increment: ch; content: counter(ch);
  position: absolute; left: 0; top: 8px; width: 30px; text-align: right;
  font-family: var(--serif); color: var(--gold); font-size: 0.92rem;
}
.toc-part .extra { padding-left: 44px; color: var(--ink-faint); font-style: italic; }

/* ---------- Books grid ---------- */
.books-grid { display: grid; gap: 26px; }
.book-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.book-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.book-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.book-card p { color: var(--ink-dim); font-size: 0.98rem; flex: 1; }
.book-card .price { font-family: var(--serif); color: var(--gold-2); font-size: 1.3rem; font-weight: 800; }
.book-card .price .was { color: var(--ink-faint); text-decoration: line-through; font-size: 0.95rem; margin-right: 8px; font-weight: 400; }
.soon-card {
  border: 1px dashed var(--line); border-radius: 18px; padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; color: var(--ink-dim); min-height: 320px;
  background: rgba(201, 162, 39, 0.03);
}
.soon-card .mark { font-family: var(--serif); font-size: 2rem; color: var(--gold); }

/* ---------- FAQ / prose ---------- */
.prose { max-width: 46rem; }
.prose p { color: var(--ink-dim); margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 20px 0; }
.faq-item h3 { font-size: 1.08rem; }
.faq-item p { color: var(--ink-dim); margin-top: 6px; }
.faq-item p + p { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 34px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 28px; }
.site-footer p, .site-footer a { color: var(--ink-faint); font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.disclaimer { margin-top: 22px; font-size: 0.82rem; color: var(--ink-faint); max-width: 52rem; }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .lever-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 0.8fr 1.2fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 1024px) {
  .lever-grid { grid-template-columns: repeat(3, 1fr); }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 759px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 14px 4%;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; }
  section { padding: 48px 0; }
}
