/* ============================================
   COZYMADNESS — Static build, premium design
   Fonts: Lilita One (display), Nunito (body)
   Colors: OKLCH pastel system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Fredoka:wght@400;600&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&display=swap');

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

:root {
  /* Colour palette — OKLCH pastels from uploaded build */
  --cream:      oklch(97.5% .025 85);
  --paper:      oklch(96%   .030 80);
  --butter:     oklch(92%   .080 85);
  --lemon:      oklch(88%   .160 88);
  --coral:      oklch(74%   .160 28);
  --coral-deep: oklch(64%   .180 26);
  --rose:       oklch(84%   .090 18);
  --mint:       oklch(88%   .090 165);
  --mint-deep:  oklch(72%   .130 168);
  --sky:        oklch(83%   .100 230);
  --sky-deep:   oklch(68%   .140 232);
  --bubble:     oklch(95%   .050 320);
  --ink:        oklch(18%   .020 50);
  --muted-fg:   oklch(45%   .030 50);
  --border-col: oklch(88%   .020 60);

  /* Shadows */
  --shadow-cozy:    0 6px  0 0 var(--ink);
  --shadow-cozy-lg: 0 10px 0 0 var(--ink);
  --shadow-cozy-sm: 0 4px  0 0 var(--ink);

  /* Layout */
  --max: 760px;
  --radius: 1rem;

  /* Fonts */
  --font-display: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: #fdf9f2;
  color: var(--ink);
  line-height: 1.6;
  background-image: radial-gradient(circle at 1px 1px, oklch(18% .02 50 / 12%) 1px, transparent 0);
  background-size: 24px 24px;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -.005em;
  line-height: 1;
}

/* ── Animations ───────────────────────────── */
@keyframes marquee    { 0% { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes float-slow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop-in     { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: scale(1); } }
@keyframes bob        { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wiggle     { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* ── Layout helpers ───────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ── Shared button ────────────────────────── */
.btn-cozy {
  font-family: var(--font-display);
  letter-spacing: .02em;
  border: 3px solid var(--ink);
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-cozy);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.8rem;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.btn-cozy:hover { transform: translateY(-3px); box-shadow: var(--shadow-cozy-lg); }

.btn-ghost {
  font-family: var(--font-display);
  border: 3px solid var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-cozy);

  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.8rem;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-cozy-lg); }

.btn-sm {
  padding: .55rem 1.2rem;
  font-size: .85rem;
  border-width: 2.5px;
  box-shadow: var(--shadow-cozy-sm);
}

/* ── Chip / pill ──────────────────────────── */
.chip {
  font-family: var(--font-display);
  letter-spacing: .04em;
  border: 2.5px solid var(--ink);
  background: var(--butter);
  box-shadow: 0 3px 0 0 var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  font-size: .85rem;
  margin-bottom: 14px;
}
.chip-mint   { background: var(--mint); }
.chip-sky    { background: var(--sky);  }
.chip-rose   { background: var(--rose); }
.chip-lemon  { background: var(--lemon);}
.chip-coral  { background: var(--coral); color: #fff; }

/* ── NAV ──────────────────────────────────── */
nav {
  border-bottom: 3px solid var(--ink);
  background: #fdf9f2;
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 48px; display: block; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  font-family: var(--font-display);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-fg); text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--coral); }

/* ── HERO ─────────────────────────────────── */
.hero {
  border-bottom: 3px solid var(--ink);
  background: #fdf9f2;
  padding: 56px 0 48px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero-hearts { margin-bottom: 8px; animation: bob 2.6s ease-in-out infinite; }
.hero-hearts img { height: 34px; display: inline-block; }
.hero-logo {
  margin: 0 auto 22px; display: block;
  max-width: 420px; width: 85%;
  animation: float-slow 6s ease-in-out infinite;
}
.hero p {
  font-size: 1.05rem; color: var(--muted-fg);
  max-width: 400px; margin: 0 auto 28px;
  line-height: 1.7; font-weight: 700;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── TICKER ───────────────────────────────── */
.ticker { overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--ink); }
.ticker-inner { display: flex; white-space: nowrap; animation: marquee 32s linear infinite; }
.ticker-item {
  font-family: var(--font-display);
  font-size: .9rem; color: var(--lemon);
  padding: 11px 28px; border-right: 1px solid oklch(40% .02 50);
  flex-shrink: 0;
}

/* ── SECTIONS ─────────────────────────────── */
.section { border-bottom: 3px solid var(--ink); padding: 60px 0; }
.s-butter  { background: var(--butter); }
.s-mint    { background: var(--mint);   }
.s-sky     { background: var(--sky);    }
.s-rose    { background: var(--rose);   }
.s-lemon   { background: var(--lemon);  }
.s-paper   { background: var(--paper);  }
.s-cream   { background: var(--cream);  }

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem; color: var(--ink);
  margin-bottom: 10px; line-height: 1.1;
}
.section-title em { color: var(--coral-deep); font-style: normal; }
.section-sub {
  font-size: .97rem; color: var(--muted-fg);
  line-height: 1.7; margin-bottom: 36px; font-weight: 600;
}

/* ── BOOK ROWS ────────────────────────────── */
.book-row { border-top: 2px solid var(--border-col); padding: 44px 0; }
.book-row:nth-child(even) { background: oklch(100% 0 0 / 45%); }

.book-spotlight { display: flex; flex-direction: column; gap: 16px; }

/* Header: series + title+button row + quote */
.book-series {
  font-family: var(--font-display);
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-fg);
}
.book-header-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
}
.book-title {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--ink); line-height: 1.15;
}
.book-quote {
  font-family: var(--font-body);
  font-size: .95rem; font-style: italic; font-weight: 700;
  color: var(--coral-deep); line-height: 1.4; margin-top: 5px;
}
.book-buy {
  flex-shrink: 0;
  font-family: var(--font-display);
  letter-spacing: .02em;
  border: 2.5px solid var(--ink);
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-cozy-sm);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem;
  font-size: .85rem;
  text-decoration: none;
  margin-top: 4px;
  width: fit-content;
  align-self: flex-start;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.book-buy:hover { transform: translateY(-3px); box-shadow: var(--shadow-cozy); }

/* Body: cover LEFT (natural size) + 2×2 thumbs RIGHT */
.book-body {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 16px;
  align-items: start;
}

.book-cover-wrap { width: 100%; }
.book-cover-wrap img {
  width: 100%; height: auto; display: block;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-cozy-lg);
  transition: transform .24s cubic-bezier(.34,1.56,.64,1);

}
.book-cover-wrap img:hover { transform: translateY(-4px) rotate(-1deg); }

/* Thumb 2×2 grid — strictly 2 columns, 2 rows */
.book-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}

.thumb {
  cursor: pointer;
  border-radius: calc(var(--radius) - 4px);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-cozy-sm);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
  overflow: hidden;
  display: block;
}
.thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-cozy); }

.thumbs-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px dashed var(--border-col);
  border-radius: var(--radius);
  min-height: 200px;
}
.thumbs-empty-text {
  font-family: var(--font-display);
  font-size: .9rem; color: var(--muted-fg); text-align: center; padding: 20px;
}

/* ── QUOTE BLOCK ──────────────────────────── */
.quote-block {
  text-align: center; padding: 56px 28px;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
}
.quote-hearts { margin-bottom: 16px; }
.quote-hearts img { height: 26px; }
.quote-text {
  font-family: var(--font-display);
  font-size: 1.9rem; color: var(--lemon);
  line-height: 1.25; max-width: 540px; margin: 0 auto 14px;
}
.quote-source {
  font-family: var(--font-display);
  font-size: .75rem; color: var(--sky);
  letter-spacing: .12em; text-transform: uppercase;
}

/* ── FEATURE GRID ─────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 32px; }
.feat {
  padding: 22px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 70%);
  box-shadow: var(--shadow-cozy-sm);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.feat:hover { transform: translateY(-3px); }
.feat-chip {
  font-family: var(--font-display);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
  border: 2px solid var(--ink); display: inline-block;
}
.feat-title { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.feat-text  { font-size: .87rem; color: var(--muted-fg); line-height: 1.6; font-weight: 600; }

/* ── SIGNUP ───────────────────────────────── */
.signup {
  text-align: center; padding: 60px 0;
  border-bottom: 3px solid var(--ink);
  background: var(--rose);
}
.signup h2 { font-family: var(--font-display); font-size: 2rem; color: var(--ink); margin-bottom: 10px; }
.signup p  { font-size: .97rem; color: var(--muted-fg); margin-bottom: 26px; font-weight: 600; }
.signup-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup-form input {
  padding: 12px 20px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-size: .95rem; font-family: var(--font-body); font-weight: 600;
  background: #fff; color: var(--ink); width: 240px; outline: none;
  box-shadow: var(--shadow-cozy-sm);
}
.signup-form input:focus { border-color: var(--coral); }
.signup-note { font-size: .75rem; color: var(--muted-fg); margin-top: 14px; font-weight: 700; }

/* ── FOOTER ───────────────────────────────── */
footer { border-top: 3px solid var(--ink); background: var(--cream); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo img { height: 30px; display: block; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: var(--font-display);
  font-size: .75rem; color: var(--muted-fg); text-decoration: none;
  letter-spacing: .06em; text-transform: uppercase; transition: color .15s;
}
.footer-links a:hover { color: var(--coral); }
.footer-copy { font-size: .75rem; color: var(--muted-fg); font-weight: 600; }

/* ── LIGHTBOX ─────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: oklch(18% .02 50 / 92%);
  align-items: center; justify-content: center;
  flex-direction: column; padding: 20px;
}
#lightbox-img {
  max-width: 88vw; max-height: 80vh;
  border-radius: var(--radius);
  border: 3px solid var(--lemon);
  box-shadow: var(--shadow-cozy-lg);
  display: block;
}
#lightbox-caption {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--lemon);
  margin-top: 18px; text-align: center;
}
#lightbox-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none;
  color: var(--lemon); font-size: 2rem; cursor: pointer; line-height: 1;
  font-family: var(--font-display);
}

/* ── COOKIE BANNER ────────────────────────── */
#cookie-banner {
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 700; color: var(--cream);
}

/* ── LEGAL PAGES ──────────────────────────── */
.legal-wrap { max-width: var(--max); margin: 56px auto; padding: 0 28px 80px; }
.legal-wrap h1 { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); margin-bottom: 32px; }
.legal-wrap h2 {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ink);
  margin: 28px 0 10px; padding-top: 8px; border-top: 2px solid var(--border-col);
}
.legal-wrap p  { font-size: .95rem; color: var(--muted-fg); line-height: 1.8; margin-bottom: 10px; font-weight: 600; }
.legal-wrap a  { color: var(--coral-deep); font-weight: 700; }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 40px;
  font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--coral); padding: 10px 22px;
  border-radius: 999px; border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-cozy-sm); text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.back:hover { transform: translateY(-3px); box-shadow: var(--shadow-cozy); }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 600px) {
  .book-body { grid-template-columns: 1fr; }
  .book-header-row { flex-direction: column; gap: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: 1.7rem; }
  .book-title { font-size: 1.3rem; }
}

/* Screen-reader only — visible to Google, hidden visually */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
