/* ============================================================
   The Mom Reset — Editorial design system
   Two themes: 'blush' (default) and 'linen'
   ============================================================ */

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

:root {
  /* Theme A — Blush & Sage (default) — clean warm white with richer rose */
  --bg:         #FBFAF6;
  --bg-soft:    #F4EFE6;
  --bg-blush:   #F1C8CF;
  --bg-blush-2: #E5A6B2;
  --ink:        #2C2F26;
  --ink-2:      #555C49;
  --muted:      #8F8E82;
  --line:       #E5E2D6;
  --line-soft:  #EFEDE3;
  --accent:     #B85A3E;     /* terracotta */
  --accent-2:   #5A6244;     /* olive */
  --pink:       #C8456E;     /* berry-pink pop, echoes brand */
  --paper:      #FFFFFF;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-script:'Caveat', 'Brush Script MT', cursive;

  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

[data-theme="linen"] {
  --bg:         #FAF5EB;
  --bg-soft:    #F0E8D6;
  --bg-blush:   #ECC4A8;
  --bg-blush-2: #D9A586;
  --ink:        #28231C;
  --ink-2:      #4A4338;
  --muted:      #8B8170;
  --line:       #DDD2B8;
  --line-soft:  #EBE3CC;
  --accent:     #A04A2E;     /* deeper clay */
  --accent-2:   #6E6A4F;     /* warm olive */
  --pink:       #B8467A;
  --paper:      #FFFCF3;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================ */
/* Layout                                                       */
/* ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* ============================================================ */
/* Typography                                                   */
/* ============================================================ */
.serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.serif em, .serif .it {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--ink);
}

.display {
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.script {
  font-family: var(--font-script);
  font-weight: 500;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow.center::before { display: none; }
.eyebrow.center {
  display: flex;
  justify-content: center;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

.body-prose { color: var(--ink-2); line-height: 1.7; }

/* ============================================================ */
/* Buttons                                                       */
/* ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn .arrow { transition: transform 0.25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: var(--paper);
}
.btn-accent:hover { background: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}
.btn-paper:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-pill-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0;
  padding: 1.1rem 2rem;
}

/* ============================================================ */
/* NAV                                                          */
/* ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

[data-theme="linen"] .site-nav.scrolled {
  background: rgba(250, 245, 235, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.site-logo .it { font-style: italic; color: var(--accent); font-size: 1.55rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.current { color: var(--ink); }
.nav-links a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
}

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 252, 245, 0.7);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  font-weight: 500;
}
.footer-display .it {
  font-style: italic;
  color: var(--bg-blush);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,252,245,0.1);
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,252,245,0.5);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,252,245,0.75);
  font-size: 0.95rem;
  font-family: var(--font-serif);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--bg-blush); }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,252,245,0.7);
  max-width: 320px;
  line-height: 1.5;
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,252,245,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,252,245,0.4);
}
.footer-bottom a { color: inherit; margin-left: 1.2rem; }
.footer-bottom a:hover { color: var(--bg-blush); }

/* ============================================================ */
/* Decorative botanicals (simple line-art SVG containers)        */
/* ============================================================ */
.bot {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.bot svg { width: 100%; height: 100%; }
.bot path, .bot circle, .bot ellipse { stroke: currentColor; }

/* ============================================================ */
/* Image slots                                                  */
/* ============================================================ */
image-slot {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============================================================ */
/* Marquee                                                      */
/* ============================================================ */
.marquee {
  overflow: hidden;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.marquee-item.it { font-style: italic; color: var(--accent); }
.marquee-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================ */
/* Tag chips                                                    */
/* ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: transparent;
}
.chip-filled {
  background: var(--accent);
  color: var(--paper);
  border-color: transparent;
}

/* ============================================================ */
/* Generic card                                                 */
/* ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 2rem;
}

/* ============================================================ */
/* Responsive                                                   */
/* ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================ */
/* Page-level common backgrounds (decorative)                   */
/* ============================================================ */
.bg-blush { background: var(--bg-blush); }
.bg-paper { background: var(--paper); }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: var(--paper); }

/* ============================================================ */
/* Book cover — reusable CSS-only mockup                         */
/* ============================================================ */
.book-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 4cqw, 3rem) clamp(1rem, 3.5cqw, 2.4rem);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.35) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-blush) 0%, var(--bg-blush-2) 100%);
  color: var(--ink);
  container-type: inline-size;
  overflow: hidden;
}
/* Subtle paper grain via two layered noisy gradients */
.book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.18) 0%, transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(44,47,38,0.06) 0%, transparent 35%);
  pointer-events: none;
}
/* Spine shadow on left edge for depth */
.book-cover::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(44,47,38,0.18) 0%, transparent 100%);
  pointer-events: none;
}

.bc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 1.6cqw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  z-index: 1;
}
.bc-top .left { font-weight: 500; }
.bc-top .right { text-align: right; line-height: 1.5; }
.bc-rule {
  height: 1px;
  background: rgba(44,47,38,0.25);
  margin: clamp(0.6rem, 2cqw, 1.2rem) 0 clamp(0.8rem, 2.4cqw, 1.4rem);
  position: relative;
  z-index: 1;
}

.bc-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: clamp(0.8rem, 2.4cqw, 1.6rem);
  background: var(--bg-soft);
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(44,47,38,0.08);
}
.bc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.bc-photo image-slot {
  width: 100%;
  height: 100%;
  display: block;
}

.bc-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.7rem, 2cqw, 1rem);
  color: var(--accent);
  margin-bottom: clamp(0.4rem, 1.2cqw, 0.8rem);
  position: relative;
  z-index: 1;
}

.bc-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 7cqw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.bc-title .it { font-style: italic; color: var(--accent); }
.bc-title .pop { color: var(--pink); font-style: italic; }

.bc-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.78rem, 2.2cqw, 1.1rem);
  color: var(--ink-2);
  line-height: 1.35;
  max-width: 80%;
  margin-top: clamp(0.8rem, 2.4cqw, 1.6rem);
  position: relative;
  z-index: 1;
}

.bc-sprig {
  width: clamp(40px, 12cqw, 90px);
  height: auto;
  color: var(--accent);
  margin-top: clamp(0.8rem, 2.4cqw, 1.6rem);
  position: relative;
  z-index: 1;
}

.bc-spacer { flex: 1; }

.bc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-serif);
  position: relative;
  z-index: 1;
  gap: 1rem;
}
.bc-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.bc-author .by {
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 1.6cqw, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.bc-author .name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 3cqw, 1.6rem);
  color: var(--ink);
  font-weight: 500;
}
.bc-pages {
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.7rem, 2cqw, 1rem);
  color: var(--ink-2);
  line-height: 1.3;
}
.bc-pages strong {
  display: block;
  color: var(--accent);
  font-weight: 500;
  font-size: clamp(1.2rem, 3.4cqw, 2rem);
  font-style: normal;
  line-height: 1;
}

/* Small variant — when cover is in a tiny slot (cart, etc.) */
.book-cover.tiny .bc-top .right,
.book-cover.tiny .bc-sub,
.book-cover.tiny .bc-pages,
.book-cover.tiny .bc-eyebrow {
  display: none;
}
.book-cover.tiny .bc-title {
  font-size: clamp(0.9rem, 9cqw, 2.2rem);
}
.book-cover.tiny .bc-bottom { font-size: 0.7rem; }
.book-cover.tiny { padding: 0.8rem 0.7rem; }

/* small in-line botanical sprig svg */
.sprig {
  display: inline-block;
  width: 38px; height: 14px;
  vertical-align: middle;
  color: var(--accent);
  margin: 0 0.4rem;
}
