:root {
  --ink: #111827;
  --muted: #5f6877;
  --paper: #fbf8f2;
  --white: #ffffff;
  --gold: #c49a46;
  --gold-dark: #946f24;
  --midnight: #11172a;
  --violet: #3b224f;
  --line: rgba(17, 24, 39, .12);
  --shadow: 0 24px 60px rgba(17, 24, 39, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 242, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); background: linear-gradient(135deg, var(--midnight), var(--violet));
  font-family: Cinzel, serif; font-size: .85rem; box-shadow: 0 12px 30px rgba(59, 34, 79, .25);
}
.nav-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .94rem; }
.nav-menu a:hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; width: 24px; margin: 5px auto; background: var(--ink); transition: .25s ease; }

.hero { padding: 92px 0 72px; background: radial-gradient(circle at top right, rgba(196,154,70,.24), transparent 35%), linear-gradient(135deg, #fbf8f2 0%, #eee7dc 100%); }
.hero-grid, .section-grid, .author-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow, .kicker { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; line-height: 1.08; margin: 0 0 18px; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
p { margin-top: 0; color: var(--muted); }
.hero-text { max-width: 680px; font-size: 1.14rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--midnight), var(--violet)); box-shadow: 0 18px 34px rgba(17, 23, 42, .18); }
.btn-secondary { background: rgba(255,255,255,.68); border: 1px solid var(--line); }
.btn-paperback {
  color: var(--midnight);
  background: linear-gradient(135deg, var(--gold), #d8b66a);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 18px 34px rgba(148, 111, 36, .16);
}

.btn-paperback:hover {
  color: var(--midnight);
}
.btn-hardcover {
  color: var(--white);
  background: var(--violet);
  border: 1px solid var(--violet);
  box-shadow: 0 18px 34px rgba(59, 34, 79, .16);
}

.btn-hardcover:hover {
  color: var(--white);
}
.text-link { color: var(--gold-dark); font-weight: 800; text-decoration: none; }

.hero-card, .content-card, .book-card, .cta-card {
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.hero-card { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.book-cover { min-height: 250px; border-radius: 18px; padding: 22px; display: grid; align-items: end; color: var(--white); font-family: Cinzel, serif; font-size: 1.35rem; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 18px 36px rgba(0,0,0,.18); }
.feature-cover { background: linear-gradient(160deg, #090b18, #362050 55%, #b78b37); }
.raven-cover { background: linear-gradient(160deg, #05070a, #243b38 55%, #6d1f3b); }
.amulet-cover { background: linear-gradient(160deg, #172236, #5a2d21 58%, #c49a46); }
.puzzle-cover { background: linear-gradient(160deg, #12313d, #326a70 55%, #dcbf8a); }
.holiday-cover { background: linear-gradient(160deg, #233a2a, #8d1f2d 58%, #d2a952); }

.section { padding: 86px 0; }
.alt { background: #f4efe6; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.cards { display: grid; gap: 26px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-card { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.book-card .book-cover { min-height: 210px; font-size: 1rem; }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); }
.check-list li { margin: 10px 0; padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 900; }
.portrait { aspect-ratio: 1; border-radius: 36px; display: grid; place-items: center; background: linear-gradient(135deg, var(--midnight), var(--violet)); color: var(--white); font-family: Cinzel, serif; font-size: clamp(3rem, 8vw, 6rem); box-shadow: var(--shadow); }
.cta-section { padding: 88px 0; background: linear-gradient(135deg, var(--midnight), var(--violet)); }
.cta-card { max-width: 920px; margin: 0 auto; text-align: center; }
.contact-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 24px; font-weight: 800; }
.contact-row a { color: var(--gold-dark); text-decoration: none; }
.site-footer { padding: 28px 0; background: #0d1222; color: rgba(255,255,255,.72); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-grid p { margin: 0; color: rgba(255,255,255,.72); }
.footer-grid a { color: var(--white); text-decoration: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; left: 20px; right: 20px; top: 78px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 13px 12px; }
  .hero-grid, .section-grid, .author-grid, .two-col { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-card, .book-card { grid-template-columns: 1fr; }
  .hero-card .book-cover, .book-card .book-cover { max-width: 260px; width: 100%; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-card, .content-card, .book-card, .cta-card { padding: 22px; }
  h1 { font-size: 2.55rem; }
}
