/* ==========================================================================
   Oh Sweetie! — modern rustic home bakery
   Palette drawn from the watercolour logo: sky blue, peach, sage + warm cream.
   ========================================================================== */

:root {
  --cream: #fbf7f1;
  --paper: #f5ede2;
  --kraft: #e9dac5;
  --wood: #b08a66;
  --ink: #2f2724;
  --muted: #6b5e57;
  --line: #e4d7c6;

  --blue: #3f6e92;
  --blue-dark: #2f5675;
  --blue-soft: #dbe9f2;
  --peach: #e39a6e;
  --peach-soft: #f9e3d4;
  --sage: #7f9c6f;
  --sage-soft: #e3ecdb;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(47, 39, 36, .06), 0 8px 24px rgba(47, 39, 36, .08);
  --shadow-lg: 0 2px 4px rgba(47, 39, 36, .06), 0 18px 40px rgba(47, 39, 36, .14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.kicker {
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--peach);
  line-height: 1;
  margin: 0 0 .35em;
  display: inline-block;
  transform: rotate(-2deg);
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.5em;
  font: 700 1rem/1 var(--font-body); letter-spacing: .01em;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(63, 110, 146, .28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-soft { background: var(--peach-soft); color: var(--ink); }
.btn-soft:hover { background: var(--peach); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(47, 39, 36, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  border-radius: 3px; background: var(--peach);
}
.nav .btn { margin-left: 8px; padding: .65em 1.3em; min-height: 44px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--cream); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .brand img { height: 50px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 22px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(47, 39, 36, .1);
    display: none;
  }
  .js .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.1rem; }
  .nav a[aria-current="page"]:not(.btn)::after { left: 12px; right: auto; width: 28px; bottom: 8px; }
  .nav .btn { margin: 10px 0 0; }
  html:not(.js) .nav { flex-wrap: wrap; justify-content: flex-end; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 8px 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head .lead { margin-inline: auto; }
.section-head.left { margin-inline: 0; text-align: left; }

/* scalloped / wavy edge between sections */
.edge-top::before, .edge-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background-repeat: repeat-x; background-size: 44px 22px; pointer-events: none;
}
.edge-top::before {
  top: -21px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 22 Q11 0 22 22 T44 22 Z' fill='%23f5ede2'/%3E%3C/svg%3E");
}
.edge-bottom::after {
  bottom: -21px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 0 Q11 22 22 0 T44 0 Z' fill='%23f5ede2'/%3E%3C/svg%3E");
}

.flower-divider { display: block; width: min(260px, 60%); margin: 0 auto 18px; opacity: .95; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-logo { width: min(340px, 80%); margin: 0 0 8px -12px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--blue); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: .98rem; }
.hero-note svg { width: 22px; height: 22px; color: var(--sage); flex: none; }

.hero-collage {
  position: relative; display: grid;
  grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
  aspect-ratio: 1 / 1.02;
}
.hero-collage figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--kraft); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .tall { grid-row: span 2; border-radius: 200px 200px var(--radius) var(--radius); }
.hero-collage .stamp {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--cream); border: 2px dashed var(--wood); border-radius: 999px;
  padding: 12px 20px; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.05;
  box-shadow: var(--shadow); transform: rotate(-5deg); text-align: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-logo { margin: 0 auto 4px; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-collage { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-collage .stamp { left: 8px; bottom: 14px; font-size: 1.25rem; }
}

/* ---------- Offer cards ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.offer-body { padding: 18px 20px 22px; }
.offer-body h3 { margin-bottom: .3em; }
.offer-body p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 1000px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .offer-grid { grid-template-columns: 1fr; } .offer img { aspect-ratio: 16 / 11; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius);
  background: var(--cream); border: 1.5px dashed var(--kraft);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 50%; font: 600 1.3rem/1 var(--font-display);
}
.step:nth-child(1)::before { background: var(--blue-soft); color: var(--blue-dark); }
.step:nth-child(2)::before { background: var(--peach-soft); color: #9a5430; }
.step:nth-child(3)::before { background: var(--sage-soft); color: #4c6640; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Featured strip ---------- */
.featured-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.featured-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--kraft); }
.featured-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-grid a:hover img { transform: scale(1.05); }
.featured-grid .big { grid-column: span 2; grid-row: span 2; }
.featured-grid .tall { grid-row: span 2; }
.featured-grid figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  color: #fff; font-weight: 700; font-size: .95rem; text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.center-cta { text-align: center; margin-top: 36px; }
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .featured-grid { grid-auto-rows: 150px; gap: 10px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.about-photo figcaption {
  position: absolute; right: -10px; bottom: -18px;
  background: var(--cream); padding: 8px 16px; border-radius: 10px; box-shadow: var(--shadow);
  font-family: var(--font-hand); font-size: 1.35rem; transform: rotate(3deg);
}
.signature { font-family: var(--font-hand); font-size: 2.1rem; color: var(--blue); margin-top: 8px; line-height: 1; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; margin: 0 auto; }
  .about-photo figcaption { right: 10px; }
}

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--ink); color: var(--cream); border-radius: calc(var(--radius) * 1.4);
  padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.contact-band::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 280px; height: 98px;
  background: url("../images/flower.png") center / contain no-repeat; opacity: .22; transform: rotate(-12deg);
}
.contact-band h2 { color: var(--cream); }
.contact-band p { color: #d8ccc2; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.07); color: var(--cream); text-decoration: none; font-weight: 600;
  word-break: break-word; transition: background-color .2s ease;
}
.contact-list a:hover { background: rgba(255,255,255,.14); color: #fff; }
.contact-list svg { width: 24px; height: 24px; flex: none; color: var(--peach); }
.contact-list small { display: block; font-weight: 400; color: #bfb2a7; font-size: .85rem; }
@media (max-width: 820px) { .contact-band { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.page-hero .lead { margin-inline: auto; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--kraft); background: var(--cream); color: var(--ink);
  font: 600 .98rem/1 var(--font-body); transition: all .15s ease;
}
.chip:hover { border-color: var(--wood); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin: 0 0 16px; }
.gallery-item[hidden] { display: none; }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--kraft);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.gallery-item img { width: 100%; transition: transform .5s ease; }
.gallery-item button:hover img { transform: scale(1.04); }
.gallery-item figcaption { padding: 8px 4px 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 520px) { .gallery { columns: 2; column-gap: 10px; } .gallery-item { margin-bottom: 10px; } .gallery-item figcaption { font-size: .85rem; } }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(28, 22, 20, .9); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 16px 72px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox img { max-width: min(1100px, 92vw); max-height: calc(100vh - 160px); width: auto; border-radius: 12px; }
.lightbox figcaption { color: #f1e9e1; text-align: center; font-size: 1rem; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}

/* ---------- Recipes ---------- */
.recipe-tools { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px; }
.search {
  position: relative; width: min(460px, 100%);
}
.search input {
  width: 100%; min-height: 52px; padding: 12px 18px 12px 48px; border-radius: 999px;
  border: 1.5px solid var(--kraft); background: var(--cream); font: inherit; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }

.featured-recipes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: clamp(48px, 7vw, 80px); }
.recipe-card {
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 180px 1fr;
}
.recipe-card img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.recipe-card .body { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.recipe-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.recipe-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.recipe-card .meta svg { width: 16px; height: 16px; }
.recipe-card p { color: var(--muted); font-size: .98rem; }
.recipe-card .btn { margin-top: auto; align-self: flex-start; min-height: 42px; padding: .6em 1.2em; }
@media (max-width: 900px) { .featured-recipes { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .recipe-card { grid-template-columns: 1fr; } .recipe-card img { aspect-ratio: 16/10; min-height: 0; } }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.tag-breads { background: var(--peach-soft); color: #8a4a26; }
.tag-cookies { background: var(--sage-soft); color: #45603a; }
.tag-cups { background: #f3dfe3; color: #8a3e4e; }
.tag-cakes { background: var(--blue-soft); color: var(--blue-dark); }

.flavour-group { margin-bottom: 40px; }
.flavour-group[hidden] { display: none; }
.flavour-group h3 { display: flex; align-items: center; gap: 12px; }
.flavour-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.flavour-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.flavour-list li[hidden] { display: none; }
.flavour {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 16px;
  min-height: 56px;
}
.flavour span { font-weight: 600; }
.flavour a, .flavour button {
  flex: none; font-size: .85rem; font-weight: 700; text-decoration: none;
  padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; font-family: inherit;
  min-height: 36px; display: inline-flex; align-items: center;
}
.flavour a:hover, .flavour button:hover { background: var(--peach-soft); color: var(--ink); }
.flavour button { background: var(--blue-soft); color: var(--blue-dark); }
.empty-note { text-align: center; color: var(--muted); padding: 24px; }

/* Recipe dialog */
.recipe-dialog {
  border: 0; padding: 0; border-radius: var(--radius); width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-lg);
}
.recipe-dialog::backdrop { background: rgba(28, 22, 20, .6); }
.recipe-dialog .hero-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.recipe-dialog .content { padding: clamp(22px, 4vw, 36px); }
.recipe-dialog .close {
  position: sticky; top: 12px; margin: 12px 12px -56px auto; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(251,247,241,.92); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
}
.recipe-dialog .close svg { width: 22px; height: 22px; }
.recipe-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; margin-top: 18px; }
.recipe-cols h4 { font-size: 1.15rem; }
.recipe-cols ul, .recipe-cols ol { padding-left: 1.2em; margin: 0; }
.recipe-cols li { margin-bottom: .5em; }
.recipe-cols ul li::marker { color: var(--peach); }
.recipe-cols ol li::marker { color: var(--blue); font-weight: 700; }
.recipe-tip { margin-top: 22px; padding: 14px 18px; border-radius: 12px; background: var(--sage-soft); font-size: .98rem; }
@media (max-width: 640px) { .recipe-cols { grid-template-columns: 1fr; } }

/* ---------- Order form ---------- */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { background: var(--cream); border-radius: calc(var(--radius) * 1.2); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.form-card legend {
  font: 600 1.35rem/1.2 var(--font-display); padding: 0; margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.form-card legend .num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--peach-soft); color: #8a4a26; font-size: 1rem;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .98rem; }
.req { color: #b5532b; }
.optional { color: var(--muted); font-weight: 400; font-size: .88rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--kraft); background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5e57' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field .hint { font-size: .86rem; color: var(--muted); margin-top: 5px; }
.field .error { display: none; font-size: .88rem; color: #a3401c; margin-top: 5px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2582f; }
.field.invalid .error { display: block; }
.counter { float: right; font-weight: 400; color: var(--muted); font-size: .85rem; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--kraft); border-radius: var(--radius-sm); background: #fff; font-weight: 600; transition: all .15s ease;
}
.choice span::before {
  content: ""; width: 20px; height: 20px; flex: none; border: 2px solid var(--wood); border-radius: 6px; background: #fff center / 14px no-repeat;
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.choice input:checked + span::before {
  border-color: var(--blue); background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field.invalid .choice span { border-color: #c2582f; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--blue); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-wrap { margin: 8px 0 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn-primary { min-width: 220px; }
.form-status { margin-top: 14px; font-weight: 600; color: #a3401c; }
.form-status:empty { display: none; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.secure-note svg { width: 18px; height: 18px; flex: none; color: var(--sage); margin-top: 2px; }

.order-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.aside-card h3 { font-size: 1.2rem; }
.aside-card ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.aside-card li { margin-bottom: .45em; }
.aside-card img { border-radius: 12px; margin-bottom: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 960px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .order-aside { grid-template-columns: 1fr; } }

/* ---------- Thank you / 404 ---------- */
.message-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.message-page img.logo { width: min(320px, 70%); margin: 0 auto 10px; }
.message-page .lead { margin-inline: auto; }
.message-page .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); margin-top: 0; padding: 56px 0 28px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand img { width: 200px; margin-bottom: 8px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .98rem; }
.site-footer h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; word-break: break-word; }
.footer-links a:hover { color: var(--blue); }
.footer-links svg { width: 20px; height: 20px; color: var(--peach); flex: none; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Recipe extras ---------- */
.recipe-art {
  display: grid; place-items: center; text-align: center; min-height: 200px; padding: 16px;
  font-family: var(--font-hand); font-size: 2.3rem; line-height: .95; color: var(--ink);
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.55) 0 12%, transparent 13%),
                    radial-gradient(circle at 80% 75%, rgba(255,255,255,.4) 0 9%, transparent 10%);
}
.art-peach { background-color: var(--peach-soft); color: #8a4a26; }
.art-sage { background-color: var(--sage-soft); color: #45603a; }
.recipe-art { transform: none; }
@media (max-width: 480px) { .recipe-art { min-height: 150px; } }
.flavour .actions { display: inline-flex; gap: 6px; flex: none; }
.muted-meta { color: var(--muted); font-size: .95rem; }

/* ---------- Fixes / small-screen polish ---------- */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 600px) {
  .hero-logo { display: none; }
  .hero { padding-top: 36px; }
  .hero-note { text-align: left; max-width: 340px; margin-inline: auto; }
}
.field label.consent { font-weight: 400; display: flex; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choice span { padding: 10px 12px; } }
