/* ==========================================================================
   A Slice of Support (ASOS) — site styles
   Layout concept: "the bakery counter" — type-forward hero with a stacked
   photo collage and rotated stickers, a static ticker, airy icing-white
   sections broken by one deep cocoa band, and recipe index cards that open
   into cook-mode dialogs with real units (gm, tsp, °C).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Colour — icing white ground, hot-raspberry accent (the bake-sale tent),
     butter yellow stickers, pistachio tags, cocoa for the dark band. */
  --bg:        #FFF8F4;
  --surface:   #FFFFFF;
  --ink:       #2B1A20;
  --muted:     #6E5A62;
  --line:      #EEDAD6;
  --berry:     #E6396B;
  --berry-ink: #B8204F;
  --butter:    #FFD36A;
  --pistachio: #BFE3C6;
  --cocoa:     #2B1A20;
  --cocoa-fg:  #FFF3EC;
  --cocoa-muted: #C9B3BA;
  --shadow:    0 18px 40px -18px rgba(43, 26, 32, .35);

  /* Type */
  --font-display: "Shrikhand", "Cooper Black", Georgia, serif;
  --font-head: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem);
  --step-5: clamp(2.6rem, 1.2rem + 4.2vw, 5rem);

  /* Space */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 22px;
  --radius-sm: 12px;
  --container: 1200px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-variation-settings: "wdth" 88;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1rem; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; color: var(--berry); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--berry-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--berry); border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 1rem; max-width: 70ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.stack { display: grid; gap: 1.25rem; }

/* --------------------------------------------------------------------------
   Buttons, chips
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { --btn-bg: var(--berry-ink); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--berry-ink); }
.btn-butter { --btn-bg: var(--butter); --btn-fg: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: currentColor; }
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn-light { --btn-bg: var(--cocoa-fg); --btn-fg: var(--cocoa); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--cocoa-fg); border-color: currentColor; }
.btn-ghost-light:hover { --btn-bg: var(--cocoa-fg); --btn-fg: var(--cocoa); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--pistachio); color: var(--ink);
}
.chip.butter { background: var(--butter); }
.chip.berry { background: var(--berry); color: #fff; }
.chip.line { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would
   become the containing block for the fixed-position mobile menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-variation-settings: "wdth" 90; letter-spacing: -.01em; font-size: 1.15rem; line-height: 1; }
.brand .logo { width: 38px; height: 38px; flex: none; }
.brand > span { white-space: nowrap; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .85rem; border-radius: 999px; transition: background .15s ease; white-space: nowrap; }
.nav-links .mobile-only { display: none; }
.nav-links a:hover { background: color-mix(in srgb, var(--berry) 10%, transparent); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-links .mobile-only { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed; inset: calc(74px + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1.25rem var(--gutter) 2rem; background: var(--bg);
    visibility: hidden;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
    overflow-y: auto;
  }
  .nav-links a { font-size: 1.35rem; padding: .9rem 1rem; font-family: var(--font-head); font-weight: 700; }
  .nav-links .mobile-only { margin-top: .75rem; }
  .nav-links .mobile-only .btn { justify-content: center; font-family: var(--font-body); font-size: 1rem; }
  body.nav-open .nav-links { visibility: visible; transform: none; opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); position: relative; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-top: 1rem; }
.hero h1 .display { display: block; font-size: .96em; line-height: 1.18; }
.hero .lede { margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2rem; }
.hero-proof { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.hero-proof div { display: grid; gap: .1rem; }
.hero-proof strong { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-proof span { font-size: .85rem; color: var(--muted); }

.collage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; width: 100%; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage .photo-a { left: 0; top: 0; width: 72%; height: 66%; }
.collage .photo-b { right: 0; bottom: 0; width: 58%; height: 56%; border: 6px solid var(--bg); }
.collage .blob { position: absolute; z-index: -1; inset: auto -10% -10% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--butter); opacity: .55; filter: blur(2px); }
.sticker {
  position: absolute; z-index: 2; left: -4%; bottom: 14%;
  padding: .55rem 1rem .6rem; border-radius: 999px; background: var(--butter); color: var(--ink);
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1; transform: rotate(-8deg);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.4);
}
.spin-badge { position: absolute; z-index: 2; right: 2%; top: 2%; width: 124px; height: 124px; }
.spin-badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin-badge text { font-family: var(--font-body); font-weight: 800; font-size: 13.5px; letter-spacing: .18em; text-transform: uppercase; fill: var(--ink); }
.spin-badge .core { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: var(--berry); display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { max-width: 480px; }
  .sticker { left: 0; }
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker { background: var(--berry); color: #fff; overflow: hidden; padding-block: .8rem; border-block: 3px solid var(--ink); }
/* Decorative strip stays still for everyone, without requiring a motion preference. */
.ticker-track { display: flex; width: max-content; gap: 0; }
.ticker-track span { display: inline-flex; align-items: center; gap: 1.2rem; padding-inline: 1.2rem; font-family: var(--font-display); font-size: 1.25rem; white-space: nowrap; }
.ticker-track svg { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; display: grid; gap: .35rem; position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 84px; height: 84px; border-radius: 50%; background: var(--butter); opacity: .5; }
.stat b { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 3.5vw, 3rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .45em; font-weight: 700; margin-left: .2rem; letter-spacing: 0; }
.stat > span { color: var(--muted); font-size: .95rem; max-width: 24ch; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Two-column feature rows
   -------------------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature.flip > .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-media.portrait img { aspect-ratio: 3 / 4; }
.feature-media .tag { position: absolute; left: 1rem; bottom: 1rem; }
.feature .stack h2, .feature .stack h3 { margin-top: .25rem; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > .feature-media { order: 0; }
}

/* --------------------------------------------------------------------------
   Checklists
   -------------------------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%;
  background: var(--pistachio) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1A20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L19 7'/></svg>") center / 13px no-repeat;
}
.band-cocoa .checklist li::before { background-color: var(--butter); }

/* --------------------------------------------------------------------------
   Cards (programs, recipes, milestones, testimonials)
   -------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card { text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.card-body h3 { font-size: var(--step-1); }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.card-link { margin-top: auto; padding: 0 1.4rem 1.4rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; color: var(--berry-ink); }

/* Program cards: icon tiles */
.program-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--butter); display: grid; place-items: center; margin-bottom: .4rem; }
.program-icon svg { width: 28px; height: 28px; }

/* Milestone timeline */
.timeline { display: grid; gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.milestone { display: grid; grid-template-columns: 24px 1fr; gap: 1.25rem; align-items: start; }
.milestone .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--berry); border: 5px solid var(--bg); box-shadow: 0 0 0 2px var(--berry); margin-top: .5rem; }
.milestone-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); overflow: hidden; }
.milestone-card .text { padding: 1.5rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.milestone-card .text p { color: var(--muted); }
.milestone-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.milestone-card.wide { grid-template-columns: 1fr; }
.milestone-card.wide img { aspect-ratio: 1404 / 540; min-height: 0; }
@media (max-width: 760px) { .milestone-card { grid-template-columns: 1fr; } .milestone-card img { aspect-ratio: 4/3; min-height: 0; } }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.award { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.3rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.award svg { flex: none; width: 36px; height: 36px; }
.award b { display: block; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.2; }
.award span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .awards { grid-template-columns: 1fr; } }

/* Testimonials */
.quote-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.7rem 1.6rem; display: grid; gap: 1rem; position: relative; }
.quote-card .mark { font-family: var(--font-display); font-size: 3.2rem; line-height: .6; color: var(--berry); height: 1.2rem; }
.quote-card blockquote { margin: 0; font-size: 1.1rem; line-height: 1.55; text-wrap: pretty; }
.quote-card figcaption { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* Pull quote (founder) */
.pull-quote { position: relative; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius); background: var(--butter); color: var(--ink); display: grid; gap: 1rem; }
.pull-quote blockquote { margin: 0; font-family: var(--font-head); font-weight: 600; font-variation-settings: "wdth" 92; font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); line-height: 1.3; text-wrap: pretty; }
.pull-quote figcaption { font-weight: 700; }
.pull-quote::before { content: "“"; position: absolute; right: 1.2rem; top: -.2rem; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--berry); opacity: .35; }

/* --------------------------------------------------------------------------
   Cocoa band
   -------------------------------------------------------------------------- */
.band-cocoa { background: var(--cocoa); color: var(--cocoa-fg); }
.band-cocoa .eyebrow { color: var(--butter); }
.band-cocoa .eyebrow::before { background: var(--butter); }
.band-cocoa .lede, .band-cocoa .muted { color: var(--cocoa-muted); }
.band-cocoa .display { color: var(--butter); }
.band-cocoa .panel { background: color-mix(in srgb, var(--cocoa-fg) 7%, transparent); border: 1px solid color-mix(in srgb, var(--cocoa-fg) 14%, transparent); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; gap: 1rem; align-content: start; }
.band-cocoa .panel h3 { font-size: var(--step-2); }

/* Big CTA */
.cta-big { text-align: center; display: grid; gap: 1.25rem; justify-items: center; }
.cta-big h2 { font-size: var(--step-5); }
.cta-big .display { display: block; font-size: 1.05em; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.masonry { columns: 3; column-gap: 1rem; }
.masonry figure { margin: 0 0 1rem; break-inside: avoid; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.masonry figure[hidden] { display: none; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .35s ease; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(to top, rgba(43,26,32,.7), transparent); pointer-events: none; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 520px) { .masonry { columns: 1; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); width: auto; }
.lightbox::backdrop { background: rgba(20, 8, 12, .86); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; gap: .75rem; justify-items: center; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #fff; font-weight: 600; }
.lightbox .lb-nav { position: fixed; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.lightbox .lb-nav button, .lightbox .lb-close { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lightbox .lb-close { position: fixed; top: 1rem; right: 1rem; }

/* --------------------------------------------------------------------------
   Recipes
   -------------------------------------------------------------------------- */
.recipe-card .meta { margin-top: .2rem; }
.recipe-dialog { border: 0; padding: 0; border-radius: var(--radius); width: min(94vw, 860px); max-height: 90vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.recipe-dialog::backdrop { background: rgba(43, 26, 32, .55); backdrop-filter: blur(4px); }
.recipe-dialog .rd-head { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.recipe-dialog .rd-head img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.recipe-dialog .rd-head .rd-title { padding: 1.8rem 1.8rem 1.4rem; display: grid; gap: .6rem; align-content: end; }
.recipe-dialog .rd-close { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; }
.recipe-dialog .rd-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 1.8rem 2rem; border-top: 1.5px solid var(--line); }
.recipe-dialog h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--berry-ink); font-family: var(--font-body); margin-bottom: .6rem; }
.ingredients { list-style: none; margin: 0; padding: 0; display: grid; }
.ingredients li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.ingredients li span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .5rem; }
.steps li { position: relative; }
.steps label { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem .6rem; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s ease; }
.steps label:hover { background: color-mix(in srgb, var(--butter) 30%, transparent); }
.steps input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.steps .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font-weight: 800; font-size: .85rem; font-family: var(--font-head); }
.steps input:checked + label { color: var(--muted); }
.steps input:checked + label .num { background: var(--pistachio); }
.steps input:checked + label .txt { text-decoration: line-through; }
.steps input:focus-visible + label { outline: 3px solid var(--berry); outline-offset: 2px; }
.rd-tip { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.recipe-facts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.recipe-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.recipe-page-image { margin: 0; }
.recipe-page-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.recipe-page-image figcaption { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.recipe-panel { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.recipe-panel h2, .recipe-method h2 { margin-bottom: 1rem; }
.recipe-ingredients { list-style: none; margin: 0; padding: 0; display: grid; }
.recipe-ingredients li { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.recipe-ingredients li:last-child { border-bottom: 0; }
.recipe-method { margin-top: clamp(2rem, 5vw, 3.5rem); }
.recipe-method ol { display: grid; gap: .65rem; padding-left: 1.5rem; }
.recipe-method li { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.recipe-page-actions { margin-top: 2rem; }
@media (max-width: 720px) {
  .recipe-dialog .rd-head { grid-template-columns: 1fr; }
  .recipe-dialog .rd-head img { aspect-ratio: 16/9; min-height: 0; }
  .recipe-dialog .rd-body { grid-template-columns: 1fr; }
  .recipe-page-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--butter); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list .val { font-weight: 700; font-size: 1.05rem; text-decoration: none; word-break: break-word; }
.form { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .8rem .95rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px color-mix(in srgb, var(--berry) 20%, transparent); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: grid; gap: .75rem; padding: 1.25rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--pistachio) 45%, transparent); }
.form-success pre { white-space: pre-wrap; font-family: inherit; font-size: .9rem; margin: 0; background: var(--surface); padding: .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a:not([aria-label^="Instagram"]) { display: none; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; text-decoration: none; transition: background .15s ease, color .15s ease; }
.socials a:hover { background: var(--berry); color: #fff; border-color: var(--berry); }
.socials svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Page intro (inner pages)
   -------------------------------------------------------------------------- */
.page-intro { padding-block: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.page-intro h1 { font-size: var(--step-4); margin-top: .75rem; }
.page-intro .lede { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--cocoa); color: var(--cocoa-fg); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-tag { font-family: var(--font-head); font-weight: 800; font-variation-settings: "wdth" 85; font-size: var(--step-4); letter-spacing: -.02em; line-height: 1.02; max-width: 24ch; }
.footer-tag .display { color: var(--butter); font-weight: 400; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid color-mix(in srgb, var(--cocoa-fg) 14%, transparent); }
.footer-grid h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cocoa-muted); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; color: var(--cocoa-fg); }
.footer-grid a:hover { color: var(--butter); }
.footer-grid p { color: var(--cocoa-muted); max-width: 36ch; }
.footer-bottom { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; color: var(--cocoa-muted); }
.site-footer .socials a { border-color: color-mix(in srgb, var(--cocoa-fg) 22%, transparent); color: var(--cocoa-fg); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Motion — scroll-driven reveals (progressive enhancement; fully visible
   where unsupported) and reduced-motion handling.
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid-2 > .reveal:nth-child(2), .js .grid-3 > .reveal:nth-child(2), .js .grid-4 > .reveal:nth-child(2), .js .stats > .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid-3 > .reveal:nth-child(3), .js .grid-4 > .reveal:nth-child(3), .js .stats > .reveal:nth-child(3) { transition-delay: .16s; }
.js .grid-4 > .reveal:nth-child(4), .js .stats > .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spin-badge svg { animation: none; }
  .btn, .card, .masonry img { transition: none; }
}
