/* ==========================================================================
   Cathie Beck Author — Design System (cover-matched warm palette)
   ========================================================================== */
:root {
  --ink: #382a23;
  --ink-soft: #63564a;
  --cream: #faf5ea;
  --cream-2: #f1e6d3;
  --paper: #fffdf8;
  --teal: #3f948a;
  --teal-dark: #2c7168;
  --burgundy: #6d2a44;
  --burgundy-dark: #551f34;
  --primary: #c14e2e;
  --primary-dark: #a03f22;
  --gold: #cf9a37;
  --line: #e8dbc4;
  --shadow: 0 12px 40px rgba(32, 26, 36, 0.12);
  --shadow-sm: 0 4px 16px rgba(32, 26, 36, 0.08);
  --radius: 10px;
  --maxw: 1180px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 18px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--burgundy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.bg-cream2 { background: var(--cream-2); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.center { text-align: center; }
.eyebrow { font-family: var(--font-body); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: var(--teal-dark); margin-bottom: 14px; }
.bg-ink .eyebrow { color: var(--gold); }
.lead { font-size: 1.22rem; color: var(--ink-soft); }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: 15px 30px; border-radius: 50px; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream-2); color: var(--ink); }
.btn--lg { padding: 18px 40px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* Announcement bar */
.announce { background: var(--ink); color: var(--cream); text-align: center; font-size: .9rem; padding: 9px 16px; letter-spacing: .02em; }
.announce a { color: var(--gold); font-weight: 600; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,245,234,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); letter-spacing: .01em; display: flex; align-items: center; }
.brand span { color: var(--burgundy); }
.brand-logo { height: 50px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--burgundy); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; align-items: stretch; z-index: 60; box-shadow: var(--shadow-sm); }
  .nav-links.open { max-height: 680px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 24px; }
  .nav-cta { margin: 12px 24px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, #351f26 0%, #5a2f31 52%, #7c3c2a 100%); color: var(--cream); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 30%, rgba(204,148,51,.26), transparent 55%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 92px 0; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: #ece1d5; font-size: 1.2rem; }
.hero .eyebrow { color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-praise { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-style: italic; color: #ddd0c4; font-family: var(--font-display); font-size: 1.12rem; }
.hero-book { justify-self: center; }
.hero-book img, .book-frame { border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.book-frame { width: 300px; aspect-ratio: 2/3; background: linear-gradient(145deg, var(--burgundy), var(--burgundy-dark)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 30px; position: relative; }
.book-frame .kicker { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.book-frame .bt { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.book-frame .ba { margin-top: 18px; font-size: .95rem; letter-spacing: .04em; opacity: .85; }
.book-frame--teal { background: linear-gradient(145deg, var(--teal), var(--teal-dark)); }
.book-frame--ink { background: linear-gradient(145deg, #30251d, #4a2f26); }
.cover-frame { position: relative; width: 300px; max-width: 100%; }
.cover-frame img { border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.28); width: 100%; }
.cover-frame .book-frame { width: 100%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 64px 0; gap: 40px; }
  .hero-cta { justify-content: center; }
  .hero-praise { text-align: center; }
}

/* Video placeholder */
.video-wrap { max-width: 940px; margin: 0 auto; }
.video-box { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #30251d, #4a2f26); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 24px; }
.video-box iframe, .video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.play-btn { width: 82px; height: 82px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.play-btn::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video-note { font-size: .85rem; opacity: .8; letter-spacing: .04em; }

/* Book showcase */
.book-showcase { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.book-showcase.reverse { grid-template-columns: 1fr 300px; }
.book-showcase.reverse .cover { order: 2; }
.cover-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.cover-card .badge { display: inline-block; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 50px; margin-bottom: 14px; }
.cover-card .badge--soon { background: var(--gold); color: var(--ink); }
.awards { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.awards li { position: relative; padding-left: 28px; font-size: .98rem; color: var(--ink-soft); }
.awards li::before { content: "*"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.blurb { border-left: 3px solid var(--teal); padding: 4px 0 4px 18px; margin: 16px 0; font-style: italic; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.blurb cite { display: block; font-style: normal; font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 780px) {
  .book-showcase, .book-showcase.reverse { grid-template-columns: 1fr; }
  .book-showcase.reverse .cover { order: 0; }
  .cover-card { max-width: 320px; margin: 0 auto; }
}

/* Lead-magnet / CTA */
.cta-band { background: linear-gradient(150deg, var(--teal-dark), var(--teal)); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cta-grid h2 { color: #fff; }
.cta-grid p { color: #eafaf9; }
.lead-form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field .req { color: var(--burgundy); }
.field input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background: var(--cream); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63,148,138,.15); background: #fff; }
.form-hint { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin: 6px 0 20px; }
.consent input { margin-top: 4px; }
@media (max-width: 780px) { .cta-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Cards / grid */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; border: 1px solid var(--line); }
.card h3 { margin-bottom: .4em; }
.card .card-media { border-radius: 8px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 3/2; background: var(--cream-2); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Awards strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; list-style: none; padding: 0; margin: 0; }
.strip li { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-soft); }
.strip li b { color: var(--ink); }

/* Pull quote */
.pullquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; font-style: italic; text-align: center; max-width: 860px; margin: 0 auto; }
.pullquote cite { display: block; font-size: 1rem; font-style: normal; font-family: var(--font-body); color: var(--gold); margin-top: 18px; letter-spacing: .04em; }

/* Interior page hero */
.page-hero { background: linear-gradient(160deg, #351f26, #5e3330); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e7dace; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; color: #d0c2c8; margin-bottom: 10px; letter-spacing: .04em; }
.breadcrumb a { color: var(--gold); }

/* Prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 24px 0; }

/* Shop / price */
.buy-card { text-align: center; }
.price { font-family: var(--font-display); font-size: 2.4rem; color: var(--burgundy); margin: 6px 0 4px; }
.price small { font-size: 1rem; color: var(--ink-soft); }
.format-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.format-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 8px 0; font-size: .95rem; }
.buy-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--paper); }
.buy-option__title { margin: 0 0 4px; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc6bd; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cfc6bd; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; font-weight: 600; }
.socials a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #9a9088; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none; }
.flash { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: .95rem; }
.flash--error { background: #fbe8ea; color: var(--burgundy-dark); border: 1px solid #f0c9cf; }
.flash--ok { background: #e7f6f4; color: var(--teal-dark); border: 1px solid #bfe6e0; }

/* ==========================================================================
   MOBILE HARDENING
   ========================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, svg, table { max-width: 100%; }
.book-frame, .cover-frame { max-width: 100%; }
input, select, textarea, .field input { max-width: 100%; }
p, h1, h2, h3, h4, a, li, blockquote, cite { overflow-wrap: break-word; word-wrap: break-word; }

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section--tight { padding: 40px 0; }
  .hero-grid { padding: 54px 0; gap: 34px; }
  .hero-book { width: 100%; }
  .hero-book .cover-frame, .hero-book .book-frame { margin: 0 auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 46px 0; }
  .section--tight { padding: 30px 0; }
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.5rem); }
  h2 { font-size: clamp(1.55rem, 6.5vw, 2.1rem); }
  .hero-grid { padding: 40px 0; gap: 26px; }
  .hero p { font-size: 1.06rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .hero-praise { font-size: 1.02rem; }
  .btn { padding: 14px 22px; }
  .btn--lg { padding: 15px 24px; font-size: 1rem; }
  .cover-card { padding: 16px; }
  .lead-form { padding: 22px; }
  .buy-option { padding: 16px; }
  .pullquote { font-size: 1.45rem; }
  .price { font-size: 2rem; }
  .strip { gap: 10px 22px; }
  .strip li { font-size: .98rem; }
  .cta-band .btn, .section.center .btn { width: 100%; max-width: 360px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.7rem; }
  .brand-logo { height: 40px; }
  .announce { font-size: .8rem; }
}
