/* ==== 00-base.css ==== */
/* Amy Derck: base. Brand carried over from The Caregiver Mentor site (periwinkle, slate blue,
   sea photos, sun-and-wave mark, Belflower Script) plus one color per heroine:
   Annie = purple, Irene = pink, Natalie = blue (Amy's choice, Oct 2026). */

@font-face {
  font-family: 'Belflower Script';
  src: url('/fonts/belflower-script.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #26324a;
  --ink-soft: #4a5672;
  --slate: #485977;
  --slate-dk: #36435b;
  --peri: #a4b9e1;
  --peri-100: #dbe4f4;
  --peri-50: #eef2fa;
  --mist: #f8f9fc;
  --white: #fff;
  --sky: #39a3d1;
  --seaglass: #8fb8b6;
  --gold: #b38633;

  --annie: #6c4b9c;
  --annie-soft: #efe8f8;
  --irene: #b84c78;
  --irene-soft: #fae9f0;
  --natalie: #2c69ad;
  --natalie-soft: #e5eefa;

  --script: 'Belflower Script', 'Brush Script MT', cursive;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(38, 50, 74, .45);
  --shadow-sm: 0 8px 22px -14px rgba(38, 50, 74, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--slate); text-underline-offset: .18em; }
a:hover { color: var(--slate-dk); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
blockquote { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Script accent line above a heading, like the old site's headings */
.script-line {
  font-family: var(--script);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--slate);
  margin: 0 0 .15em;
}
.h-section { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.eyebrow {
  font: 700 .78rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .8em;
}
.rule { width: 70px; height: 2px; background: var(--seaglass); border: 0; margin: .4em 0 1.2em; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.6em;
  font: 700 .86rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  color: #fff; background: var(--slate);
  border: 2px solid var(--slate); border-radius: 6px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--slate-dk); border-color: var(--slate-dk); color: #fff; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--slate-dk); }
.btn--light:hover { background: var(--peri-50); border-color: var(--peri-50); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row--center { justify-content: center; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* Gentle fade-in as sections scroll into view (JS adds .is-in; without JS everything shows) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ==== 10-header-footer.css ==== */
/* Header: periwinkle band like the old site, compact, logo left */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(164, 185, 225, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(72, 89, 119, .18);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate-dk); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 78px; height: auto; filter: contrast(1.6) brightness(.8); }
.brand__name { font-family: var(--script); font-size: 2.35rem; line-height: 1; padding-top: .12em; white-space: nowrap; }

.site-nav ul { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.site-nav a {
  display: block; padding: .5em 0;
  font: 700 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--slate); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--slate-dk); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; border: 2px solid var(--slate); border-radius: 6px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-dk);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--peri-50);
    border-bottom: 1px solid rgba(72, 89, 119, .2);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 14px 4px; font-size: .9rem; border-bottom: 1px solid rgba(72, 89, 119, .14); }
  .site-nav a[aria-current="page"] { color: var(--slate); border-bottom-color: rgba(72, 89, 119, .14); }
  .site-nav li:last-child a { border-bottom: 0; }
}
@media (max-width: 480px) {
  .site-header__inner { min-height: 64px; }
  .brand__mark { width: 50px; }
  .brand__name { font-size: 1.9rem; }
  .nav-toggle__label { display: none; }
}

/* Footer */
.site-footer { position: relative; background: var(--peri); color: var(--ink); margin-top: 0; padding: 70px 0 34px; }
.site-footer .wave--top { color: var(--peri); }
.site-footer__inner { text-align: center; display: grid; justify-items: center; gap: 6px; }
.brand--footer { flex-direction: column; gap: 4px; }
.brand--footer .brand__mark { width: 96px; }
.brand--footer .brand__name { font-size: 2.8rem; }
.site-footer__tag { max-width: 34em; margin: 4px 0 14px; color: var(--ink); }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-bottom: 10px; }
.site-footer__nav a { font: 700 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 8px 0; display: inline-block; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 0; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; padding: 6px 0; }
.site-footer__social a:hover { text-decoration: underline; }
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__copy { margin: 14px 0 0; font-size: .9rem; }
.site-footer__credit { margin: 0; font-size: .72rem; opacity: .8; }
.site-footer__credit a { color: inherit; }

/* ==== 20-components.css ==== */
/* ---------- Wave edges (the old site's signature look) ---------- */
.wave { position: absolute; left: 0; width: 100%; height: clamp(38px, 6vw, 88px); pointer-events: none; z-index: 2; }
.wave--bottom { bottom: -1px; }
.wave--top { top: calc(-1 * clamp(38px, 6vw, 88px) + 1px); }
.wave--white { color: var(--white); }
.wave--mist { color: var(--mist); }
.wave--peri50 { color: var(--peri-50); }
.wave--peri { color: var(--peri); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--white); }
.section--peri50 { background: var(--peri-50); }
.section--peri { background: var(--peri); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head .rule { margin-inline: auto; }
.section__head--solo, .section__head--solo .lead { margin-bottom: 0; }

/* ---------- Photo background (hero, bands) ---------- */
.photo-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.photo-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 50, 74, .08), rgba(38, 50, 74, .22)); }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; padding: 70px 0 120px; }
.hero__card {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--gutter), 680px);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(3px);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow);
}
.hero__name { font-family: var(--script); font-weight: 400; font-size: clamp(3.6rem, 9vw, 6.2rem); line-height: 1; color: var(--slate-dk); margin: 0 0 .1em; }
.hero__tag { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; color: var(--ink); margin: 0 auto 1.4em; max-width: 30em; }
.hero .rule { margin: .2em auto 1em; }

/* Inner page hero: shorter, same card */
.page-hero { position: relative; min-height: 400px; display: grid; place-items: center; padding: 60px 0 110px; }
.page-hero .hero__card { width: min(100% - 2 * var(--gutter), 760px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin-bottom: .2em; }
.page-hero .lead { margin: 0 auto; max-width: 34em; color: var(--ink); }

/* ---------- Split (photo + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__media--circle img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-width: 440px; margin-inline: auto; border: 8px solid rgba(255, 255, 255, .8); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media--circle img { max-width: 300px; }
}

/* ---------- Placeholder book covers (until real cover art exists) ---------- */
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.covers--four { grid-template-columns: repeat(4, 1fr); }
.book-card { text-align: center; }
.book-card a { text-decoration: none; color: inherit; display: block; }
.cover {
  --c: 72, 89, 119;
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 22px 34px -18px rgba(20, 28, 44, .65), inset 6px 0 10px -6px rgba(0, 0, 0, .35);
  color: #fff; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  max-width: 330px; margin: 0 auto;
  container-type: inline-size;
}
.book-card a:hover .cover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 30px 40px -20px rgba(20, 28, 44, .7), inset 6px 0 10px -6px rgba(0, 0, 0, .35); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; z-index: 2; }
.cover__series, .cover__title, .cover__author { z-index: 2; }
.cover__series { position: absolute; top: 9%; left: 8%; right: 8%; font: 700 .6rem/1.3 var(--sans); font-size: clamp(.5rem, 3.6cqi, .66rem); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.cover__title { position: absolute; left: 8%; right: 8%; bottom: 20%; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; font-size: clamp(1.3rem, 12cqi, 2.4rem); line-height: 1.05; text-wrap: balance; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.cover__author { position: absolute; left: 0; right: 0; bottom: 8%; font: 700 .7rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.cover--nancy { --c: 120, 92, 40; }
.cover--annie { --c: 108, 75, 156; }
/* Amy asked for soft sea, sky, pale sand and sea oats on Annie's cover (Oct 2026). The other covers are the
   bare photos she liked; this one gets a soft lavender wash so the white title reads on the white sand. */
.cover--annie img { object-position: 72% 50%; }
.cover--annie::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(var(--c), .28) 0%, rgba(var(--c), 0) 26%, rgba(var(--c), 0) 48%, rgba(var(--c), .5) 70%, rgba(var(--c), .72) 100%); }
.cover--irene { --c: 184, 76, 120; }
.cover--natalie { --c: 44, 105, 173; }
.book-card__title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: 18px 0 2px; color: var(--ink); }
.book-card__meta { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.badge { display: inline-block; margin-top: 10px; font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: var(--peri-50); color: var(--slate-dk); }
.badge--annie { background: var(--annie-soft); color: var(--annie); }
.badge--irene { background: var(--irene-soft); color: var(--irene); }
.badge--natalie { background: var(--natalie-soft); color: var(--natalie); }
.badge--gold { background: #f6ecd8; color: #7a5a1c; }
@media (max-width: 980px) { .covers--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .covers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .covers, .covers--four { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }

/* ---------- Soundtrack chips ---------- */
.music { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.music li { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--peri-100); border-radius: 999px; padding: 9px 16px; font-weight: 600; color: var(--ink); box-shadow: 0 4px 12px -10px rgba(38, 50, 74, .5); }
.music svg { width: 16px; height: 16px; color: var(--slate); }

/* ---------- Quote band ---------- */
.quote-band { position: relative; padding: clamp(110px, 13vw, 170px) 0; text-align: center; color: var(--ink); }
.quote-band .photo-bg::after { background: rgba(248, 249, 252, .35); }
.quote-band__inner { position: relative; z-index: 1; }
.quote-band blockquote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; margin: 0 0 .25em; color: var(--slate-dk); text-shadow: 0 1px 18px rgba(255, 255, 255, .7); }
.quote-band__note { font-weight: 600; margin-top: 1.2em; }

/* ---------- Book feature (Coming Home to Yourself) ---------- */
.book-feature { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.book-feature__cover img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 22px 34px -18px rgba(20, 28, 44, .6); }
@media (max-width: 720px) { .book-feature { grid-template-columns: 1fr; text-align: center; } .book-feature__cover { max-width: 220px; margin: 0 auto; } .book-feature .btn-row { justify-content: center; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin: 6px 0 26px; }
.features li { background: var(--white); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.features strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--slate-dk); }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Signup / form card on a sea photo ---------- */
.signup { position: relative; padding: clamp(110px, 12vw, 150px) 0; }
.signup .photo-bg::after { background: rgba(38, 50, 74, .15); }
.signup__card {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--gutter), 640px); margin: 0 auto;
  background: rgba(255, 255, 255, .92); border-radius: 6px; box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px); text-align: center;
}
.signup__card .form { text-align: left; margin-top: 18px; }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #b9c4d9; border-radius: 6px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(57, 163, 209, .35); border-color: var(--sky); }
.form .btn { width: 100%; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fine { font-size: .82rem; color: var(--ink-soft); margin: 0; text-align: center; }
.form__status { margin: 0; font-weight: 700; text-align: center; min-height: 1.4em; }
.form__status.is-ok { color: #23704f; }
.form__status.is-error { color: #a3312b; }

/* ---------- Cards / misc ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.facts li { background: var(--white); border-left: 4px solid var(--seaglass); border-radius: 8px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.facts strong { display: block; color: var(--slate-dk); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

.ig-cta { display: inline-flex; align-items: center; gap: 10px; }
.ig-cta svg { width: 22px; height: 22px; }

.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }
.center.prose p { margin-inline: auto; }

.section--tinted .badge { background: #fff; box-shadow: 0 2px 8px -4px rgba(38, 50, 74, .35); }

/* Time-limited note under the BookBaby button (hidden after its data-until date, see 00-site.js) */
.promo { margin: 16px 0 0; padding: 12px 16px; background: var(--peri-50); border-left: 4px solid var(--seaglass); border-radius: 6px; font-size: .95rem; color: var(--ink); }
.section--peri50 .promo { background: var(--white); }
@media (max-width: 720px) { .book-feature .promo { text-align: left; } }
