:root {
  --navy: #242567;
  --navy-deep: #16174a;
  --red: #b2091a;
  --cream: #f8f2d8;
  --paper: #fdfbf4;
  --ink: #1e1e2a;
  --muted: #55566b;
  --head: "Playfair Display", Georgia, serif;
  --sub: "Domine", Georgia, serif;
  --body: "Montserrat", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 19px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
.wrap { width: min(1120px, 92%); margin: 0 auto; }
h1, h2 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--navy); }
h3 { font-family: var(--sub); font-size: 1.1rem; margin: .8em 0 .3em; color: var(--navy); }
.center { text-align: center; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--red); margin: 0 0 .8em; }

/* Buttons */
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: .8em 1.5em; border-radius: 6px; border: 0; cursor: pointer; font-family: var(--body); font-size: 1rem; transition: background .15s; }
.btn:hover, .btn:focus { background: #8e0715; }
.btn-big { font-size: 1.15rem; padding: 1em 1.8em; }
.btn-small { padding: .5em 1em; font-size: .9rem; }

/* Top bar */
.topbar { background: #fff; border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: .6em 0; }
.brand { display: flex; align-items: center; gap: .6em; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.brand img { width: 44px; }
nav { display: flex; gap: 1.4em; align-items: center; }
nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a.btn { color: #fff; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 4.5em 0 5em; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3em; align-items: center; }
.hero .eyebrow { color: #f3c6ca; }
.lede { font-size: 1.2rem; color: #e6e7f5; max-width: 34em; }
.checks { list-style: none; padding: 0; margin: 1.2em 0 1.8em; }
.checks li { padding-left: 1.8em; position: relative; margin: .4em 0; }
.checks li::before { content: "\2605"; position: absolute; left: 0; color: #f3c6ca; }
.hero-book { display: flex; justify-content: center; }

/* Book cover system (mirrors the KDP cover template) */
.cover { aspect-ratio: 6 / 9; width: 300px; border-radius: 3px 8px 8px 3px; padding: 26px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; box-shadow: -6px 0 0 rgba(0,0,0,.18) inset, 0 18px 40px rgba(0,0,0,.35); overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 10px; border: 2px solid currentColor; opacity: .35; border-radius: 4px; pointer-events: none; }
.cover-top { font-family: var(--body); font-weight: 700; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.cover-num { font-family: var(--head); font-weight: 800; font-size: 5.2rem; line-height: 1; margin-top: .25em; }
.cover-title { font-family: var(--head); font-weight: 800; font-size: 1.55rem; line-height: 1.15; margin-top: .3em; }
.cover-rule { width: 60px; height: 3px; background: currentColor; margin: .9em auto; opacity: .8; }
.cover-sub { font-family: var(--sub); font-size: .8rem; line-height: 1.4; }
.cover-seal { width: 62%; margin-top: auto; }
.cover-navy { background: var(--navy); color: #fff; }
.cover-navy .cover-num { color: #f3c6ca; }
.cover-red { background: var(--red); color: #fff; }
.cover-cream { background: var(--cream); color: var(--navy); }
.cover-cream .cover-num { color: var(--red); }
.cover.small { width: 100%; padding: 18px 14px; }
.cover.small .cover-num { font-size: 3.2rem; }
.cover.small .cover-title { font-size: 1.05rem; }
.cover.small .cover-top { font-size: .5rem; }
.cover.small .cover-sub { font-size: .68rem; }
.cover.small .cover-title:first-child, .cover.small .cover-top + .cover-title { margin-top: 2.2em; }

/* Signup */
.signup { padding: 0 0 4em; margin-top: -2.5em; }
.signup-box { background: #fff; border-top: 6px solid var(--red); border-radius: 10px; box-shadow: 0 12px 36px rgba(20,20,60,.12); padding: 2.4em clamp(1.2em, 4vw, 3em); max-width: 720px; text-align: center; }
.signup-form { display: grid; gap: .5em; text-align: left; margin-top: 1.2em; }
.signup-form label { font-weight: 600; font-size: .95rem; }
.signup-form input[type=text], .signup-form input[type=email] { font-size: 1.15rem; padding: .8em; border: 2px solid #c9cadb; border-radius: 6px; font-family: var(--body); margin-bottom: .6em; }
.signup-form input:focus { outline: 3px solid #f3c6ca; border-color: var(--navy); }
.signup-form .btn { margin-top: .4em; }
.fineprint { font-size: .85rem; color: var(--muted); text-align: center; }

/* Slogan band */
.slogan { background: var(--red); color: #fff; text-align: center; padding: 1.4em 0; }
.slogan p { margin: 0; font-family: var(--sub); font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: .02em; }

/* Library */
.library { padding: 5em 0; }
.intro { max-width: 40em; margin: 0 auto 2.5em; color: var(--muted); }
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6em; }
.book p { font-size: .9rem; color: var(--muted); margin: 0 0 .6em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--cream); padding: .3em .7em; border-radius: 99px; }

/* About */
.about { background: var(--cream); padding: 5em 0; }
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 3em; align-items: center; }

/* FAQ */
.faq { padding: 5em 0; }
.faq .wrap { max-width: 780px; }
details { background: #fff; border: 1px solid #e3e3ee; border-radius: 8px; padding: 1em 1.3em; margin: .8em 0; }
summary { font-family: var(--sub); font-weight: 700; color: var(--navy); cursor: pointer; font-size: 1.05rem; }
details p { margin: .6em 0 0; }

/* Footer */
.footer { background: var(--navy-deep); color: #cfd0e6; padding: 3em 0; text-align: center; }
.footer a { color: #fff; }
.footer .small { font-size: .8rem; }

/* Simple pages */
.page { padding: 4em 0; max-width: 760px; }

@media (max-width: 960px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
  .checks { display: inline-block; text-align: left; }
  .about-badge { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 560px) {
  nav a:not(.btn) { display: none; }
  .cover { width: 240px; }
}

.form-msg { background: #fdecee; color: #8e0715; border-radius: 6px; padding: .7em 1em; font-weight: 600; margin: .4em 0 0; }
