:root {
  --cream: #fffaf3;
  --peach: #fff0e2;
  --coral: #f2643d;
  --coral-dark: #d94c26;
  --leaf: #4c9a3c;
  --berry: #8e3b8f;
  --ink: #2d2a26;
  --muted: #6b645c;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(80, 45, 20, 0.12);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-script: "Pacifico", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.center { text-align: center; margin-top: 40px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--leaf);
  margin: 0 0 .5em;
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .75em 1.5em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { border-color: var(--coral); color: var(--coral-dark); background: rgba(255,255,255,.7); }
.btn-light { background: #fff; color: var(--berry); }
.btn-instagram {
  color: #fff; padding: .55em 1.2em;
  background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4);
}
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: baseline; gap: .35em; text-decoration: none; }
.logo-script { font-family: var(--font-script); font-size: 1.7rem; color: var(--coral); }
.logo-sub { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--leaf); }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.site-nav a:not(.btn) { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--coral); }

/* Recipes dropdown: the list carries the `hidden` attribute and main.js toggles it on click */
.has-submenu { position: relative; }
.submenu-toggle {
  font: 600 1rem var(--font-display); color: var(--ink);
  background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35em;
}
.submenu-toggle:hover, .submenu-toggle[aria-expanded="true"] { color: var(--coral); }
.caret { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] .caret { transform: translateY(1px) rotate(-135deg); }
.submenu[hidden] { display: none; }
.site-nav .submenu ul { display: block; padding: 0; margin: 0; }
.site-nav .submenu li { break-inside: avoid; }
.site-nav .submenu a { display: block; font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.3; padding: 7px 12px; border-radius: 8px; }
.site-nav .submenu a:hover, .site-nav .submenu a[aria-current="page"] { background: var(--peach); color: var(--coral-dark); }

@media (min-width: 761px) {
  .submenu {
    position: absolute; top: calc(100% + 22px); left: 50%; transform: translateX(-50%);
    width: min(600px, 100vw - 32px);
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    border-top: 3px solid var(--coral); padding: 14px 12px;
  }
  .site-nav .submenu ul { columns: 2; column-gap: 12px; }
}

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 3px; transition: .25s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: block; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav ul { flex-direction: column; gap: 18px; padding: 24px 16px 28px; }
  .site-nav > ul > li { width: 100%; text-align: center; }
  .submenu { margin-top: 10px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: #fbf6ef; }
.hero-img { width: 100%; height: auto; min-height: 420px; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,250,243,.95) 0%, rgba(255,250,243,.85) 30%, rgba(255,250,243,0) 48%);
}
.hero-text {
  position: absolute; top: 50%; left: max(16px, calc((100% - 1180px) / 2));
  transform: translateY(-50%);
  max-width: min(400px, 33%);
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); color: var(--ink); }
.hero .lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); margin: 0 0 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero::before { display: none; }
  .hero-img { min-height: 0; }
  .hero-text { position: static; transform: none; max-width: none; padding: 32px 16px 48px; text-align: center; }
  .hero-actions { justify-content: center; }
}

/* Founder */
.founder { background: var(--cream); }
.founder-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder-media { position: relative; padding-bottom: 60px; }
.founder-media > img:first-child { border-radius: var(--radius); box-shadow: var(--shadow); }
.founder-plate {
  position: absolute; right: -16px; bottom: 0;
  width: 42%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow);
}
.founder-copy p { color: var(--muted); }
.signature { font-family: var(--font-script); font-size: 1.6rem; color: var(--coral) !important; margin-top: .4em; }

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-plate { right: 8px; }
}

/* Gallery */
.gallery { background: var(--peach); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p:last-child { color: var(--muted); }
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px;
}
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow);
  aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px; text-align: left;
  font-family: var(--font-display); font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery-item:hover .caption, .gallery-item:focus-visible .caption { opacity: 1; transform: none; }
.gallery-item[data-reel]::after {
  content: "▶"; position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  color: #fff; background: rgba(0,0,0,.45);
}
@media (hover: none) { .gallery-item .caption { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item .caption { font-size: .85rem; padding: 20px 10px 8px; }
}

/* Recipe pages */
.recipe-post { width: min(780px, 100% - 32px); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.recipe-head { text-align: center; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 2px dashed rgba(76, 154, 60, .3); }
.recipe-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .3em; }
.recipe-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.recipe-body { color: var(--ink); }
.recipe-body p { margin: 0 0 1.1em; }
.recipe-body ol, .recipe-body ul { margin: 0 0 1.4em; padding-left: 1.6em; }
.recipe-body li { margin-bottom: .35em; }
.recipe-body li::marker { color: var(--coral); font-weight: 700; }
/* images keep the width/height WordPress showed them at (set on each <img>), never wider than the column */
.recipe-body img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 10px; box-shadow: 0 4px 14px rgba(80, 45, 20, .1); }
.recipe-body li img { margin: 16px 0; }
.recipe-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0; }
.recipe-gallery img { margin: 0; }
.recipe-figure { margin: 24px 0; text-align: center; }
.recipe-figure img { margin-bottom: 8px; }
.recipe-figure figcaption { color: var(--muted); font-size: .9rem; }
.recipe-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 48px; padding-top: 24px; border-top: 2px dashed rgba(76, 154, 60, .3); }
.recipe-pager a { display: block; padding: 14px 18px; border-radius: 14px; background: var(--peach); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.recipe-pager a:hover { background: #ffe2cc; }
.recipe-pager a span { display: block; font-size: .8rem; color: var(--coral-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.pager-home { text-align: center; align-self: center; }
.pager-next { text-align: right; }
@media (max-width: 560px) {
  .recipe-pager { grid-template-columns: 1fr; }
  .pager-empty { display: none; }
  .pager-next, .pager-home { text-align: left; }
}

/* Instagram CTA */
.insta-cta { background: linear-gradient(120deg, #833ab4, #e1306c 55%, #f77737); color: #fff; padding: 56px 0; }
.insta-inner { display: flex; align-items: center; gap: 28px; }
.insta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .25em; }
.insta-inner p { margin: 0; opacity: .95; }
.insta-inner > div { flex: 1; }
.insta-big { width: 64px; height: 64px; flex: none; }
@media (max-width: 760px) { .insta-inner { flex-direction: column; text-align: center; } }

/* Footer */
.site-footer { background: #2d2a26; color: #d8d1c8; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #d8d1c8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.logo-footer { margin-bottom: .5em; }
.social { display: inline-flex; align-items: center; gap: .5em; }
.copyright { text-align: center; font-size: .9rem; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .logo-footer { justify-content: center; } }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 15, 10, .88); }
.lightbox figure { margin: 0; max-width: min(640px, 100% - 120px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; color: #fff; font-family: var(--font-display); font-weight: 600; }
.lb-link { color: #ffb59e; }
.lb-close, .lb-nav { background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.lb-nav { width: 48px; height: 48px; font-size: 2rem; line-height: 1; margin: 0 12px; flex: none; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
@media (max-width: 600px) {
  .lightbox figure { max-width: calc(100% - 32px); }
  .lb-nav { position: absolute; bottom: 20px; margin: 0; }
  .lb-prev { left: 30%; } .lb-next { right: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- Narrow dropdown (Holiday Food Art Recipe) ---- */
@media (min-width: 761px) {
  .submenu.submenu--narrow { width: max-content; max-width: min(360px, 100vw - 32px); }
  .site-nav .submenu--narrow ul { columns: 1; }
}

/* ---- Recipe "at a glance" card (shared) ---- */
.rc-card { --rc-accent: #d9603b; --rc-soft: #fbede6; max-width: 760px; margin: 28px auto; border: 2px solid var(--rc-accent); border-radius: 18px; background: #fff; overflow: hidden; }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 22px; background: var(--rc-soft); }
.recipe-body .rc-head h2, .rc-head h2 { margin: 0; font-size: 1.35rem; }
.rc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-btn { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid var(--rc-accent); background: var(--rc-accent); color: #fff; }
.rc-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #f0d9cf; }
.rc-stat { padding: 14px 8px; text-align: center; }
.rc-stat + .rc-stat { border-left: 1px solid #f0d9cf; }
.rc-stat span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-accent); margin-bottom: 4px; }
.rc-stat strong { font-size: 1.05rem; }
.rc-foot { padding: 12px 22px 16px; margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) {
  .rc-stats { grid-template-columns: repeat(2, 1fr); }
  .rc-stat:nth-child(3) { border-left: none; }
  .rc-stat:nth-child(-n+2) { border-bottom: 1px solid #f0d9cf; }
}

/* ---- Holiday article ---- */
.recipe-body .hero-shot { width: 100%; max-width: 640px; height: auto; margin: 8px auto 24px; }
.recipe-body h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.recipe-body h3 { font-size: 1.15rem; margin: 1.1em 0 .4em; }
.post-cta { margin-top: 2em; padding: 16px 20px; background: var(--peach); border-radius: 14px; }

/* ---- Home-page seasonal popup ---- */
.promo { border: 0; padding: 0; border-radius: var(--radius); width: min(380px, 100% - 32px); box-shadow: var(--shadow); overflow: hidden; background: #fff; color: var(--ink); }
.promo::backdrop { background: rgba(20, 15, 10, .55); }
.promo-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.promo-text { padding: 16px 22px 20px; text-align: center; }
.promo-text h2 { font-size: 1.45rem; margin: 2px 0 6px; }
.promo-text p { margin: 0 0 14px; color: var(--muted); }
.promo-text .eyebrow { margin-bottom: 0; }
.promo-later { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.promo-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
@media (max-height: 640px) { .promo-img img { aspect-ratio: 16 / 9; } }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 2em 0 0; }
.post-tags li { background: #fff; border: 1px solid #f0d9cf; color: var(--coral-dark); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.post-tags li::before { content: "#"; opacity: .6; }
