/* ============================================================
   Sadie Gardere — soulful scientist
   Design system + styles  ·  built from the v5 design
   ============================================================ */

:root {
  /* Palette */
  --cream:        #FDF8F0;
  --cream-deep:   #F5EBDC;
  --navy:         #1F3A4D;   /* headings */
  --teal:         #2B7A8C;   /* buttons / accents */
  --teal-dark:    #236170;
  --ink:          #2C2C2C;   /* body text */
  --taupe:        #5C564C;   /* secondary text */
  --terracotta:   #B5733E;   /* script accents */
  --terracotta-2: #C4956A;
  --gold:         #F7DFAE;
  --line:         rgba(31,58,77,.14);

  /* Type */
  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --script: "Caveat", "Brush Script MT", cursive;

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 8px;
  --shadow: 0 18px 50px -24px rgba(31,58,77,.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; }

p { color: var(--ink); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.center { text-align: center; }
.section { padding-block: var(--section-y); }
section[id] { scroll-margin-top: 90px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1rem;
}
.script { font-family: var(--script); color: var(--terracotta); text-transform: none; letter-spacing: 0; }
.eyebrow .script { font-size: 1.9em; font-weight: 600; color: #9A5524; margin-left: .3em; }
.connect-brand .script { font-size: 1.5em; font-weight: 600; color: #9A5524; }

.lead { font-size: 1.2rem; color: var(--taupe); }
.prose p + p { margin-top: 1.1rem; }

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .9em 1.7em;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--teal-dark); color:#fff; transform: translateY(-1px); }
.btn em { font-style: italic; }
.btn-small { padding: .55em 1.1em; font-size: .85rem; }

/* ---------- Keyboard focus (accessibility) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, .dot:focus-visible, .retailer:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}
.band-teal a:focus-visible, .hero-card a:focus-visible { outline-color: var(--gold); }

/* ============================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,248,240,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(31,58,77,.5); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.brand-tag { font-family: var(--script); font-size: 1.45rem; font-weight: 600; color: #9A5524; margin-top: .02rem; line-height: 1; }

.primary-nav { display: flex; align-items: center; gap: clamp(.8rem, 1.6vw, 1.5rem); }
.primary-nav a { font-size: .92rem; font-weight: 500; color: var(--navy); }
.primary-nav a:hover { color: var(--teal); }
.nav-cta { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .25s; }

/* ============================== HERO ============================== */
.hero { position: relative; min-height: clamp(560px, 88vh, 820px); display: flex; align-items: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after { /* gentle wash so the card reads on any slide */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(253,248,240,.55) 0%, rgba(253,248,240,.15) 42%, rgba(31,58,77,.12) 100%);
  pointer-events: none;
}
.hero-artnote {
  position: absolute; top: 1.1rem; right: 1.3rem; z-index: 3;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-artnote em { font-style: italic; }
.hero-inner { position: relative; z-index: 3; }
.hero-card {
  background: rgba(253,248,240,.93);
  backdrop-filter: blur(3px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  max-width: 560px;
}
.hero-card .eyebrow { color: var(--navy); }
.hero-quotes { position: relative; margin: .4rem 0 .2rem; }
.hero-quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.22; color: var(--navy);
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.hero-quote.is-active { position: relative; opacity: 1; pointer-events: auto; }
.hero-sign { font-size: 1.7rem; margin: .3rem 0 1.4rem; }
.hero-meta { text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; color: var(--taupe); margin-top: .9rem; }
.hero-dots { display: flex; gap: .5rem; margin-top: 1.4rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(31,58,77,.25); cursor: pointer; padding: 0; transition: .2s; }
.dot.is-active { background: var(--teal); transform: scale(1.2); }

/* ============================== ABOUT ============================== */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); }
.about-intro h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: .2rem 0 .8rem; }
.about-intro p + p { margin-top: 1rem; }
.portrait {
  margin-top: 1.8rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}
.portrait .play {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.18); color: #fff; font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; padding-left: 4px;
}
.portrait .play:hover { background: rgba(255,255,255,.32); }
.portrait-cap { position: absolute; bottom: .9rem; right: 1.1rem; color: #fff; font-size: 1.35rem; }
.about-story .story-block + .story-block { margin-top: 2rem; }
.story-block h3 { color: var(--terracotta); margin-bottom: .5rem; }
.story-block p + p { margin-top: .9rem; }
.credentials { list-style: none; margin-top: clamp(2rem,5vw,3.5rem); padding-top: 1.8rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: .5rem 1.8rem; }
.credentials li { position: relative; padding-left: 1.1rem; color: var(--taupe); font-size: .92rem; }
.credentials li::before { content: "\203A"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
@media (min-width: 640px) { .credentials { grid-template-columns: 1fr 1fr; } }

/* ============================== BANDS ============================== */
.band { padding-block: clamp(2.8rem, 6vw, 4.5rem); background: var(--cream); }
.band h2 { margin-bottom: .8rem; }
.band p { color: var(--taupe); }
.band-narrow, .band-narrow-text { max-width: 640px; margin-inline: auto; }
.band-cream { background: var(--cream-deep); }
.band-teal { background: var(--navy); }
.band-teal, .band-teal h2, .band-teal p, .band-teal .band-meta, .band-teal .band-note, .band-teal .bulk { color: #fff; }
.band-meta { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.band-note { font-size: .85rem; opacity: .92; margin-top: 1rem; }
.fineprint { font-size: .82rem; color: var(--taupe); margin-top: .8rem; }
.textlink { font-weight: 600; letter-spacing: .02em; }
.soon-link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.soon-link:hover { color: var(--teal-dark); text-decoration: underline; }
.soon-social { color: var(--taupe); opacity: .55; }
.social-note { font-size: .8rem; color: var(--taupe); opacity: .85; margin-top: .5rem; }
.hero-motto { font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600; color: var(--teal); margin: .4rem 0 .9rem; }

/* subscribe form */
.subscribe { display: flex; gap: .6rem; max-width: 460px; margin: 1.4rem auto 0; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 220px; min-width: 0; padding: .85em 1em; font-family: var(--sans); font-size: .98rem;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
}
.subscribe input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.connect-letters .subscribe { margin-inline: 0; }
.subscribe button[disabled] { opacity: .6; cursor: default; }
.subscribe-status { margin-top: .8rem; font-size: .92rem; font-weight: 600; line-height: 1.4; }
.subscribe-status.is-success { color: var(--teal-dark); }
.subscribe-status.is-error { color: #B23A2E; }

/* retailers */
.retailers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 1.6rem 0 0; }
.retailer {
  display: inline-block; padding: .7em 1.1em; border: 1px solid rgba(255,255,255,.3); border-radius: 4px;
  background: rgba(255,255,255,.06); color: #fff; font-weight: 500; font-size: .92rem; position: relative;
}
.retailer[data-soon]::after {
  content: "soon"; font-size: .58rem; text-transform: uppercase; letter-spacing: .1em;
  background: var(--gold); color: var(--navy); padding: .12em .4em; border-radius: 3px; margin-left: .5em; vertical-align: middle;
}
.bulk { margin-top: 1.6rem; }
.band-teal .bulk a { color: var(--gold); }

/* ============================== THE BOOK ============================== */
.book-head { max-width: 720px; margin-inline: auto; }
.book-title { font-style: italic; font-size: clamp(2.2rem,5vw,3.4rem); margin:.3rem 0 .9rem; }
.credits { color: var(--taupe); font-size: .95rem; }
.book-hero-art { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: clamp(1.5rem,4vw,2.5rem); }

.book-quote-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; margin-top: clamp(2rem,5vw,3.5rem); }
.book-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem,3.6vw,2.6rem); color: var(--navy); line-height: 1.25; }
.book-quote figcaption { font-family: var(--script); color: var(--terracotta); font-size: 1.4rem; margin-top: .6rem; }
.book-quote-art { border-radius: var(--radius); box-shadow: var(--shadow); }

.book-synopsis { max-width: 640px; margin: clamp(2rem,5vw,3rem) auto 0; }
.book-synopsis p { font-size: 1.08rem; }

.verse-strip { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: clamp(2rem,5vw,3.5rem); }
.verse img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.verse figcaption { font-family: var(--script); color: var(--terracotta); font-size: 1.35rem; text-align: center; margin-top: .7rem; line-height: 1.2; }

.book-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: clamp(2.4rem,5vw,3.5rem); }
.book-col h3 { color: var(--terracotta); margin-bottom: .6rem; }
.book-col p + p { margin-top: .9rem; }

/* ============================== ATTUNEMENT ============================== */
.attune-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem,4vw,3rem); align-items: center; }
.attune-text h2 { margin: .3rem 0 1.1rem; }
.attune-text p + p { margin-top: 1rem; }
.attribution { font-style: italic; color: var(--taupe); font-size: .92rem; }
.attune-art { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: clamp(2.4rem,5vw,3.5rem); }
.pillar { background: var(--cream-deep); border-radius: var(--radius); padding: 1.6rem; }
.pillar h3 { color: var(--teal); margin-bottom: .5rem; }
.pillar p { color: var(--taupe); font-size: .96rem; }

/* ============================== SPEAKING ============================== */
.speaking { background: var(--cream-deep); }
.speaking-head { max-width: 760px; margin-inline: auto; }
.speaking-head h2 { margin-bottom: 1.4rem; font-size: clamp(1.6rem,3.4vw,2.3rem); }
.offerings { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: clamp(2.4rem,5vw,3.5rem); }
.offering { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.offering h3 { color: var(--teal); margin-bottom: .6rem; }
.offering ul { margin: .6rem 0 0 1.1rem; }
.offering li { margin-bottom: .4rem; color: var(--taupe); }
.who { text-align: center; max-width: 720px; margin: clamp(2.2rem,5vw,3rem) auto 0; }
.who h3 { color: var(--terracotta); margin-bottom: .6rem; }
.who p { color: var(--taupe); }
.speaking-photo { display: block; width: 100%; max-width: 560px; margin: clamp(1.6rem,4vw,2.6rem) auto 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================== PARENTS BAND ============================== */
.resource-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0; }
.resource-thumbs img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ============================== CONNECT ============================== */
.connect-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,3.5rem); }
.connect-brand { font-family: var(--serif); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: .4rem 0 1.6rem; }
.connect-letters h3 { margin-bottom: .5rem; }
.connect-inquiries h3 { margin: 1.6rem 0 .8rem; }
.connect-inquiries h3:first-child { margin-top: 0; }
.inquiry-list, .social { list-style: none; }
.inquiry-list li { display: flex; flex-direction: column; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.inq-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--taupe); }
.inquiry-list a { font-size: 1.02rem; }
.social { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding: 0; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(31,58,77,.07); color: var(--navy); transition: background .18s ease, color .18s ease, transform .18s ease; }
.social-icon svg { width: 21px; height: 21px; }
.social-icon:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.social-icon.is-soon { color: var(--taupe); opacity: .4; cursor: default; }
.social-icon.is-soon:hover { background: rgba(31,58,77,.07); color: var(--taupe); transform: none; }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--navy); color: #fff; padding-block: 2.4rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-brand { font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.footer-brand .script { color: var(--terracotta-2); }
.footer-copy { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ============================== TOAST ============================== */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: .9em 1.4em; border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; transition: .3s ease; z-index: 100; font-size: .95rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================== RESPONSIVE ============================== */
@media (min-width: 760px) {
  .book-quote-row { grid-template-columns: 1.3fr 1fr; }
  .verse-strip { grid-template-columns: repeat(3, 1fr); }
  .book-cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .offerings { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 980px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .about-intro { position: sticky; top: 100px; }
  .attune-grid { grid-template-columns: 1.1fr .9fr; }
  .connect-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(320px, 84vw);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    gap: 1.3rem; padding: 5rem 2rem 2rem; box-shadow: var(--shadow);
    overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a { font-size: 1.05rem; }
  .nav-cta { margin-top: .5rem; }
  body.nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-quote { transition: none; }
}
