/* Sweet Home Bites — palette sampled from the brand art, not picked by eye.
   Browns/pinks/purple are the exact values in the logo lockup. */
:root {
  --choc:        #532818;
  --choc-deep:   #3A1A0E;
  --choc-soft:   #7A5344;
  --pink:        #FC608F;
  --pink-deep:   #E23C70;
  --glaze:       #FFA2C1;
  --glaze-pale:  #FFE1EB;
  --purple:      #6C33A4;
  --cream:       #FFF9EF;
  --cream-deep:  #FBEEDC;
  --mint:        #BFE6D4;
  --butter:      #FFD98A;

  --radius:      18px;
  --radius-lg:   28px;
  --shadow:      0 2px 4px rgba(83,40,24,.05), 0 10px 26px rgba(83,40,24,.09);
  --shadow-lift: 0 4px 8px rgba(83,40,24,.07), 0 18px 44px rgba(83,40,24,.15);
  --wrap:        1100px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font: 400 17px/1.65 Nunito, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, .display { font-family: Fredoka, Nunito, ui-rounded, system-ui, sans-serif; font-weight: 600; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(28px, 6vw, 40px); letter-spacing: -.01em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
a { color: var(--pink-deep); }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 11vw, 96px) 0; }

/* Focus ring — one rule, everything keyboard-reachable inherits it. */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,249,239,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(83,40,24,.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand .hm { color: var(--pink); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--choc-soft); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--pink-deep); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font: 700 16px/1 Nunito, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 6px 18px rgba(252,96,143,.38); }
.btn-pink:hover { background: var(--pink-deep); box-shadow: 0 8px 24px rgba(252,96,143,.46); }
.btn-choc { background: var(--choc); color: #fff; }
.btn-choc:hover { background: var(--choc-deep); }
.btn-ghost { background: #fff; color: var(--choc); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--cream-deep); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(36px, 8vw, 68px) 0 clamp(52px, 9vw, 84px);
  background:
    radial-gradient(1100px 420px at 50% -80px, var(--glaze-pale) 0%, rgba(255,225,235,0) 72%),
    linear-gradient(180deg, #FFF1F6 0%, var(--cream) 62%);
}
/* Soft confetti dots — pure CSS so they cost no request. */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(.5px); opacity: .5;
}
.hero::before { width: 14px; height: 14px; background: var(--butter); top: 16%; left: 9%; }
.hero::after  { width: 20px; height: 20px; background: var(--mint);   top: 30%; right: 8%; }

.hero-mark {
  width: clamp(124px, 27vw, 168px); height: auto; margin: 0 auto 22px;
  border-radius: 50%; box-shadow: var(--shadow-lift);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--purple);
  padding: 7px 16px; border-radius: 999px;
  font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 10vw, 68px); letter-spacing: -.02em; }
.hero h1 .pink { color: var(--pink); }
.hero-lede {
  max-width: 44ch; margin: 18px auto 0; font-size: clamp(17px, 2.4vw, 19px); color: var(--choc-soft);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 44px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  background: #fff; border-radius: var(--radius); padding: 18px 14px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(83,40,24,.05);
}
.pillar span { display: block; font-size: 26px; line-height: 1; margin-bottom: 8px; }
.pillar b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 15px; }

/* ---------- section headings ---------- */
.head { text-align: center; max-width: 60ch; margin: 0 auto clamp(30px, 5vw, 46px); }
.head .kicker {
  display: block; color: var(--pink); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; font-size: 13px; margin-bottom: 10px;
}
.head p { color: var(--choc-soft); margin-top: 12px; }

/* ---------- recipe ---------- */
.recipe { display: grid; gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (min-width: 900px) { .recipe { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); } }

/* Click-to-play facade: no YouTube script or cookie until the visitor asks for it. */
.ytlite {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  padding: 0; border: 0; cursor: pointer; background: var(--choc-deep);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift);
}
.ytlite img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ytlite:hover img { transform: scale(1.04); }
.ytlite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytlite-play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px;
  background: rgba(252,96,143,.94); border-radius: 50%;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
  transition: transform .18s ease, background-color .18s ease;
}
.ytlite-play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  transform: translateX(3px);
}
.ytlite:hover .ytlite-play { transform: scale(1.09); background: var(--pink-deep); }

.card {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow); border: 1px solid rgba(83,40,24,.05);
}
.card > h3:first-child { margin-top: 0; }
.recipe-title { font-size: clamp(23px, 3.6vw, 30px); margin-bottom: 6px; }
.recipe-meta { color: var(--choc-soft); font-size: 15px; font-weight: 700; margin-bottom: 20px; }

.recipe-cols { display: grid; gap: 26px; }
@media (min-width: 600px) { .recipe-cols { grid-template-columns: 1fr 1.15fr; } }
.recipe-cols h4 {
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pink); margin: 0 0 12px;
}
.recipe-cols ul, .recipe-cols ol { margin: 0; padding-left: 1.15em; }
.recipe-cols li { margin-bottom: 9px; }
.recipe-cols ul { list-style: none; padding-left: 0; }
.recipe-cols ul li { position: relative; padding-left: 20px; }
.recipe-cols ul li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--glaze);
}
.recipe-cols ol li::marker { color: var(--pink); font-weight: 800; }

.ai-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 24px; padding: 13px 16px;
  background: var(--cream-deep); border-radius: 14px;
  font-size: 14px; line-height: 1.5; color: var(--choc-soft);
}
.ai-note svg { flex: none; margin-top: 2px; }
/* Under a centered section heading, so it needs to sit centered rather than
   stretch the full column width the way it does inside a recipe card. */
.ai-note-center { width: fit-content; margin-inline: auto; text-align: left; }

/* ---------- recipe card grid ----------
   One card component, rendered from content/recipes.json. Every recipe gets
   the same weight; there is no "featured" variant to keep in sync. */
.recipe-grid { display: grid; gap: clamp(18px, 3vw, 26px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .recipe-grid { grid-template-columns: repeat(3, 1fr); } }

.rcard {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(83,40,24,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* The poster is 9:16; cropping it to 4:5 keeps three cards on a row from
   running taller than the screen. */
.rcard .ytlite { aspect-ratio: 4 / 5; border-radius: 0; box-shadow: none; }
.rcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rcard-body h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.rcard-body h3 a { color: var(--choc); text-decoration: none; }
.rcard-body h3 a:hover { color: var(--pink-deep); }
.rcard-meta {
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  color: var(--pink); margin-bottom: 10px;
}
.rcard-teaser { color: var(--choc-soft); font-size: 15.5px; margin-bottom: 16px; }
.rcard-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 800; font-size: 15px; color: var(--pink-deep); text-decoration: none;
}
.rcard-link:hover { text-decoration: underline; }
.rcard-link span { transition: transform .15s ease; display: inline-block; }
.rcard:hover .rcard-link span { transform: translateX(3px); }

.rcard-next {
  background: transparent; border: 2px dashed rgba(83,40,24,.22); box-shadow: none;
  min-height: 260px; align-items: center; justify-content: center; text-align: center;
}
.rcard-next:hover { transform: none; box-shadow: none; }
.rcard-next-inner { padding: 28px; color: var(--choc-soft); }
.rcard-next-mark {
  display: block; width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--glaze-pale); color: var(--pink);
  font: 400 34px/50px Nunito, sans-serif;
}
.rcard-next b { display: block; font-family: Fredoka, sans-serif; font-size: 17px; color: var(--choc); margin-bottom: 4px; }
.rcard-next span { font-size: 14px; }

/* ---------- single recipe page ---------- */
.crumb { margin-bottom: 22px; }
.crumb a { font-weight: 800; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.recipe-summary { color: var(--choc-soft); margin-bottom: 22px; }
.more-note {
  font-size: 14px; background: var(--glaze-pale); border-radius: 12px; padding: 11px 15px;
  margin-top: 20px; color: var(--choc);
}

/* ---------- newsletter ---------- */
.signup-section { background: linear-gradient(180deg, var(--cream) 0%, #FFF1F6 100%); }
.signup-card {
  max-width: 560px; margin-inline: auto; background: #fff;
  border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 42px);
  box-shadow: var(--shadow-lift); border: 1px solid rgba(83,40,24,.05);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 7px; }
.field .opt { color: var(--choc-soft); font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=password] {
  width: 100%; padding: 14px 16px; font: 400 16px Nunito, sans-serif; color: var(--choc);
  background: var(--cream); border: 2px solid var(--cream-deep); border-radius: 14px;
}
.field input:focus { border-color: var(--glaze); background: #fff; outline: none; }
.field input::placeholder { color: #B9A296; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 22px; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pink); }
.consent label { font-size: 14.5px; line-height: 1.55; color: var(--choc-soft); }

/* Honeypot: real people never see it, bots fill it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin-top: 16px; padding: 13px 16px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.form-msg[data-state=ok]   { background: #E8F6EE; color: #1B6B45; }
.form-msg[data-state=err]  { background: #FDECEF; color: #B3123C; }
.form-msg[hidden] { display: none; }
.fineprint { font-size: 13px; color: var(--choc-soft); text-align: center; margin: 16px 0 0; }

/* ---------- follow band ----------
   The candy art is a divider strip, not a backdrop. Laying type over the
   banner put the heading on top of the banner's own wordmark AND its older
   "Healthy home sweets & treats" line, which is not the brand's tagline. */
.band {
  height: clamp(84px, 13vw, 140px);
  background: url(/assets/band-1600.jpg) center / cover no-repeat;
}
.follow { background: linear-gradient(160deg, #5E3220 0%, var(--choc-deep) 100%); color: #fff; text-align: center; }
.follow h2 { color: #fff; }
.follow p { color: rgba(255,255,255,.88); max-width: 46ch; margin-inline: auto; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 15px;
  border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px);
  transition: background-color .15s ease;
}
.social:hover { background: rgba(255,255,255,.26); }
.social svg { flex: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--choc-deep); color: rgba(255,255,255,.72); font-size: 14.5px;
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.site-footer a:hover { border-bottom-color: #fff; }
.site-footer p { margin: 0; }

/* ---------- article pages (privacy) ---------- */
.prose { max-width: 70ch; margin-inline: auto; }
.prose h1 { font-size: clamp(32px, 7vw, 46px); margin-bottom: 8px; }
.prose h2 { font-size: clamp(21px, 3.4vw, 26px); margin: 38px 0 12px; }
.prose .updated { color: var(--choc-soft); font-size: 15px; margin-bottom: 32px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
