/* Staffords — Stafford Bros & Draeger
   Palette: cream (dominant), Staffords navy (dark), Staffords gold (accent) */
:root {
  --cream: #f7f2e8;
  --cream-deep: #efe7d8;
  --paper: #fffdf8;
  --navy: #143182;
  --navy-deep: #0e2160;
  --gold: #dda816;
  --gold-soft: #f1dc9c;
  --gold-ink: #8a6500; /* gold dark enough to read on cream */
  --ink: #2a2a33;
  --muted: #6b6a72;
  --rule: rgba(20, 49, 130, 0.14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--cream);
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-deep); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--cream); }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 38em; }
.section--navy .lede { color: rgba(247, 242, 232, 0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 0.98rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #e8b72a; }
.btn--ghost { border-color: var(--rule); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); }
.section--navy .btn--ghost { border-color: rgba(247, 242, 232, 0.3); color: var(--cream); }
.section--navy .btn--ghost:hover { border-color: var(--cream); }

.text-link {
  color: var(--navy); text-decoration: none; font-weight: 500;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 242, 232, 0.28) 0%, rgba(247, 242, 232, 0) 100%);
  transition: opacity 0.45s var(--ease);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid {
  background: rgba(247, 242, 232, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header.is-solid .site-header__bar { height: 72px; }
.brand-mark { display: block; flex-shrink: 0; }
.brand-mark img {
  width: 200px; height: auto;
  /* A tight cream halo keeps the thin wordmark legible over dark parts of the hero */
  filter: drop-shadow(0 0 2px rgba(247, 242, 232, 0.95)) drop-shadow(0 0 6px rgba(247, 242, 232, 0.85));
  transition: filter 0.45s var(--ease);
}
.site-header.is-solid .brand-mark img { width: 176px; filter: none; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a {
  position: relative; text-decoration: none; color: var(--navy);
  font-size: 0.95rem; font-weight: 500; padding: 6px 0;
  /* Same cream halo as the logo, so links read over the busy parts of the hero */
  text-shadow: 0 0 2px rgba(247, 242, 232, 0.95), 0 0 6px rgba(247, 242, 232, 0.9), 0 0 12px rgba(247, 242, 232, 0.7);
  transition: text-shadow 0.45s var(--ease);
}
.site-header.is-solid .nav a, .nav a.btn { text-shadow: none; }
.site-header.is-solid .nav-sub-toggle { filter: none; }
.nav-sub-toggle { filter: drop-shadow(0 0 3px rgba(247, 242, 232, 0.95)); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.nav a.btn--navy { color: var(--cream); }
.nav .btn::after { display: none; }

/* Recipes dropdown: opens on hover, keyboard focus, or the arrow button */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-sub-toggle {
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--navy); cursor: pointer;
}
.nav-sub-toggle svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.nav-item.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: 100%; left: -28px; z-index: 5; margin-top: 12px;
  display: grid; grid-auto-flow: column; gap: 40px; padding: 26px 30px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(20, 49, 130, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* keeps hover alive across the gap */
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu, .nav-item.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }

/* Recipes mega menu: the groups (course, meal, occasion...) as tabs on the left, each group's choices as icon tiles */
.site-header__bar { position: relative; }
.nav-item--mega { position: static; }
.mega {
  left: 0; right: 0; top: 100%; margin-top: 0;
  grid-auto-flow: row; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 26px;
}
.mega::before { inset: -28px 0 auto; height: 28px; }
.site-header.is-solid .mega { margin-top: 0; }
.mega__side { display: flex; flex-direction: column; gap: 22px; }
.mega__tabs { display: grid; gap: 2px; }
.mega__tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--navy); cursor: pointer;
  font-size: 0.95rem; font-weight: 500; text-align: left; transition: background-color 0.25s var(--ease);
}
.mega__tab svg { width: 16px; height: 16px; opacity: 0.5; transition: transform 0.25s var(--ease), opacity 0.25s; }
.mega__tab:hover { background: var(--cream); }
.mega__tab[aria-selected="true"] { background: var(--cream-deep); }
.mega__tab[aria-selected="true"] svg { opacity: 1; transform: translateX(2px); }
.nav .mega__all { align-self: flex-start; }
.mega__panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.mega__panel[hidden] { display: none; }
.nav .mega__link {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--cream);
  font-size: 0.95rem; font-weight: 500; white-space: normal; line-height: 1.25; text-shadow: none;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav .mega__link::after { display: none; }
.mega__link svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-ink); }
.nav .mega__link:hover, .nav .mega__link[aria-current="page"] { border-color: var(--navy); background: #fff; }
@media (max-width: 1100px) and (min-width: 901px) { .mega__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent;
  color: var(--navy); cursor: pointer; border-radius: 50%;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform 0.35s var(--ease), opacity 0.35s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .brand-mark { position: relative; z-index: 2; }
  .brand-mark img, .site-header.is-solid .brand-mark img { width: 160px; }
  .site-header__bar, .site-header.is-solid .site-header__bar { height: 68px; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--cream); opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav { justify-content: safe center; overflow-y: auto; padding: 96px 24px 40px; }
  .nav a { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
  /* In the full-screen menu the collections fold out under Recipes */
  .nav-item { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .nav-sub-toggle { width: 36px; height: 36px; }
  .nav-sub-toggle svg { width: 16px; height: 16px; }
  .nav-menu, .nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
    position: static; flex-basis: 100%; display: none; margin: 8px 0 0; padding: 0; gap: 28px;
    justify-content: center; text-align: center; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-item.is-open .nav-menu { display: grid; }
  /* Mega menu in the full-screen menu: the groups become a row of pills, the chosen group's tiles below them */
  .mega { grid-template-columns: 1fr; gap: 16px; width: min(100%, 520px); margin-inline: auto; }
  .mega__side { display: contents; }
  .mega__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .mega__tab { width: auto; min-height: 38px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.88rem; }
  .mega__tab svg { display: none; }
  .mega__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
  .mega__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; text-align: left; }
  .nav .mega__link { font-family: var(--sans); font-size: 0.92rem; min-height: 48px; padding: 0 12px; gap: 10px; }
  .nav .mega__all { order: 1; align-self: center; margin-top: 4px; }
  .nav .btn { font-family: var(--sans); font-size: 1rem; min-height: 52px; padding: 0 30px; margin-top: 12px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would make the header the containing block for the fixed overlay */
  .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open { overflow: hidden; }
}

/* ---------- Scroll hero ---------- */
.hero { position: relative; height: 560vh; background: #eceae6; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
/* A soft cream pool in the centre of the marble, under the logo and text */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 38% 40% at 50% 50%, rgba(247, 242, 232, 0.9) 0%, rgba(247, 242, 232, 0.7) 50%, rgba(247, 242, 232, 0) 100%);
}
.hero__stage { position: absolute; inset: 0; pointer-events: none; }
/* Logo and lines are positioned from the centre; main.js drives their transform, opacity and wipe */
.hero__logo {
  position: absolute; left: 50%; top: 50%; width: clamp(220px, 30vw, 400px);
  transform: translate(-50%, -50%);
}
.hero__logo img { width: 100%; height: auto; }
.hero__lines {
  position: absolute; left: 50%; top: 46%; width: min(640px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%); text-align: center;
}
.hero__line {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0; visibility: hidden;
}
.hero__line h1, .hero__line p.big {
  font-family: var(--serif); font-size: clamp(2rem, 3.7vw, 3.3rem);
  color: var(--navy); line-height: 1.1; margin: 0 auto; max-width: 12em;
}
.hero__line .btn { pointer-events: auto; margin-top: 30px; }
.hero__line .hero__ranges {
  font: 700 0.86rem/1.6 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 18px;
}
.hero__ranges span { color: var(--gold); margin: 0 2px; }
@media (min-width: 768px) { .hero__ranges { white-space: nowrap; } }
.hero__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 600 0.68rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--navy);
  transition: opacity 0.6s var(--ease);
}
.hero__cue i { width: 1px; height: 44px; background: linear-gradient(var(--navy), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero.is-scrolled .hero__cue { opacity: 0; }

@media (max-width: 767px) {
  .hero__scrim { background: radial-gradient(ellipse 80% 40% at 50% 52%, rgba(247, 242, 232, 0.88) 0%, rgba(247, 242, 232, 0.6) 55%, rgba(247, 242, 232, 0) 100%); }
  .hero__logo { width: min(64vw, 280px); }
}

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 300; background: var(--cream);
  display: grid; place-items: center; transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(260px, 70vw); text-align: center; }
.preloader__inner img { width: 100%; margin-bottom: 26px; }
.preloader__bar { height: 1px; background: var(--rule); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; height: 100svh; }
  .hero__canvas, .hero__cue { display: none; }
  .hero__still { display: block; }
  .hero__line:last-child { opacity: 1; visibility: visible; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Section heads ---------- */
.head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 760px; }
.head--split {
  max-width: none; grid-template-columns: 1fr auto; align-items: end;
}
.head--center { text-align: center; margin-inline: auto; justify-items: center; }
.head h2, .head .lede { margin: 0; }
@media (max-width: 767px) { .head--split { grid-template-columns: 1fr; } }

/* ---------- Desire ---------- */
.desire-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tile { position: relative; }
.tile__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: var(--cream-deep);
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__media--jars {
  display: flex; align-items: flex-end; justify-content: center; gap: 0;
  padding: 18% 8% 14%;
  background: radial-gradient(ellipse at 50% 85%, #fffdf8 0%, var(--cream-deep) 70%);
}
.tile__media--jars img {
  width: 36%; height: auto; object-fit: contain; mix-blend-mode: multiply;
  margin: 0 -4%;
}
.tile__media--jars img:nth-child(2) { width: 42%; position: relative; z-index: 1; }
.tile h3 { margin: 22px 0 8px; }
.tile p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .desire-grid { grid-template-columns: 1fr; gap: 44px; }
  .tile__media { aspect-ratio: 4 / 3; }
}

/* ---------- Quick links (home, straight after the hero) ---------- */
.quick__title { margin-bottom: clamp(28px, 4vw, 48px); }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.quick-link {
  position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper);
  text-decoration: none; color: var(--navy);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.quick-link:hover { transform: translateY(-4px); box-shadow: 0 28px 52px -30px rgba(14, 33, 96, 0.55); }
.quick-link__head { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: clamp(22px, 2.6vw, 32px); }
.quick-link h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: inherit; }
.quick-link__head p { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.45; opacity: 0.85; max-width: 18em; }
.quick-link__arrow {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius);
  border: 1px solid currentColor; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.quick-link__arrow svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.quick-link:hover .quick-link__arrow { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.quick-link:hover .quick-link__arrow svg { transform: translate(2px, -2px); }
/* Three packs side by side along the bottom, each in its own equal slot so none overlap. The product shots are
   all the same 4:5 frame with the pack centred (tools/build_assets.py), so they line up on their own. */
.quick-link__packs {
  margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end;
  padding: 0 3% 4%;
}
.quick-link__packs img { width: 100%; height: auto; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.quick-link:hover .quick-link__packs img { transform: translateY(-4px); }
.quick-link:hover .quick-link__packs img:nth-child(2) { transition-delay: 0.05s; }
.quick-link:hover .quick-link__packs img:nth-child(3) { transition-delay: 0.1s; }
.quick-link:hover { border-color: rgba(20, 49, 130, 0.3); }
.quick-link--recipes { background: var(--navy-deep); border-color: transparent; color: var(--cream); }
.quick-link__photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.quick-link--recipes::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(14, 33, 96, 0.78) 0%, rgba(14, 33, 96, 0.35) 34%, rgba(14, 33, 96, 0) 55%); }
.quick-link--recipes:hover .quick-link__photo { transform: scale(1.04); }
.quick-link--recipes:hover .quick-link__arrow { background: var(--cream); border-color: var(--cream); color: var(--navy); }
@media (max-width: 900px) {
  .quick-links { grid-template-columns: 1fr; }
  .quick-link__packs { padding-inline: 16%; }
  .quick-link--recipes { min-height: 320px; }
}
@media (max-width: 480px) { .quick-link__packs { padding-inline: 6%; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.split p { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Heritage / proof ---------- */
.heritage { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.heritage__year {
  font-family: var(--serif); font-weight: 300; line-height: 0.85;
  font-size: clamp(6rem, 17vw, 15rem); color: var(--gold); letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.timeline { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid rgba(247, 242, 232, 0.18); }
.timeline li {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid rgba(247, 242, 232, 0.18);
}
.timeline b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--gold-soft); }
.timeline span { align-self: center; color: rgba(247, 242, 232, 0.86); }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(64px, 8vw, 110px); padding-top: 40px; border-top: 1px solid rgba(247, 242, 232, 0.18);
}
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--cream); }
.stat span { display: block; margin-top: 10px; font-size: 0.92rem; color: rgba(247, 242, 232, 0.7); }
@media (max-width: 900px) {
  .heritage { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .timeline li { grid-template-columns: 84px 1fr; }
}

/* ---------- Brands ---------- */
.logo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logo-row a, .logo-row div {
  display: flex; align-items: center; justify-content: center; height: 140px; padding: 32px 22px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.logo-row a:hover { border-color: rgba(20, 49, 130, 0.3); }
.logo-word { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -0.01em; color: var(--navy); }
.logo-row a > img { height: 100%; }
.logo-row a:hover { background: #fff; }
.logo-row img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; opacity: 0.88; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.logo-row a:hover img { opacity: 1; transform: scale(1.05); }
@media (max-width: 600px) { .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-row a { height: 110px; } .logo-row a:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Partner brand cards (home, under the Staffords ranges) */
.sub-head { font-size: clamp(1.3rem, 1.8vw, 1.55rem); margin: 0 0 22px; }
.ranges + .sub-head { margin-top: clamp(56px, 7vw, 88px); }
/* Distributed brands: a tall card each, logo on a white panel, then the story and the range size */
.brand-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.brand-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); text-decoration: none;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand-card:hover { border-color: rgba(20, 49, 130, 0.3); transform: translateY(-4px); box-shadow: 0 26px 50px -32px rgba(14, 33, 96, 0.45); }
.brand-card__logo { display: grid; place-items: center; height: 168px; padding: 34px 40px; background: #fff; border-bottom: 1px solid var(--rule); }
.brand-card__logo img { max-height: 100px; max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.6s var(--ease); }
.brand-card:hover .brand-card__logo img { transform: scale(1.05); }
.brand-card__body { flex: 1; padding: 24px 26px 0; }
.brand-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.brand-card__body p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--muted); }
.brand-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 22px 26px 0; padding: 16px 0 22px; border-top: 1px solid var(--rule);
  font-size: 0.88rem; font-weight: 500; color: var(--navy);
}
.brand-card__foot svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-ink); transition: transform 0.4s var(--ease); }
.brand-card:hover .brand-card__foot svg { transform: translateX(4px); }
@media (max-width: 760px) { .brand-cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .brand-cards { grid-template-columns: 1fr; }
  .brand-card__logo { height: 132px; padding-block: 26px; }
  .brand-card__logo img { max-height: 80px; }
}

.care {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-top: clamp(64px, 8vw, 110px); padding: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.care h3 { white-space: nowrap; }
.care p { margin: 0; color: var(--muted); max-width: 52em; }
@media (max-width: 767px) { .care { grid-template-columns: 1fr; padding-inline: 0; } .care h3 { white-space: normal; } }

/* ---------- Ranges ---------- */
.ranges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.range {
  display: flex; flex-direction: column; text-decoration: none;
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.range:hover { border-color: rgba(20, 49, 130, 0.3); transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(14, 33, 96, 0.35); }
.range__media {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center;
  padding: 8% 2% 6%;
  background: radial-gradient(ellipse at 50% 90%, #fffdf8 0%, var(--cream-deep) 75%);
}
.range__media img { width: 44%; height: auto; mix-blend-mode: multiply; margin: 0 -5%; transition: transform 0.6s var(--ease); }
.range__media img:nth-child(2) { width: 52%; z-index: 1; position: relative; }
.range:hover .range__media img:nth-child(1) { transform: translateX(-6px) rotate(-2deg); }
.range:hover .range__media img:nth-child(3) { transform: translateX(6px) rotate(2deg); }
.range__body { padding: 24px 24px 26px; display: grid; gap: 8px; flex: 1; }
.range__body h3 { display: flex; justify-content: space-between; align-items: center; }
.range__body h3 svg { width: 18px; height: 18px; color: var(--gold); transition: transform 0.4s var(--ease); }
.range:hover .range__body h3 svg { transform: translateX(4px); }
.range__body p { margin: 0; font-size: 0.94rem; color: var(--muted); }
@media (max-width: 1024px) { .ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ranges { grid-template-columns: 1fr; } }

/* ---------- Recipe cards ---------- */
.recipe-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.recipe-card { text-decoration: none; display: block; }
.recipe-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--cream-deep); }
.recipe-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.recipe-card:hover .recipe-card__media img { transform: scale(1.04); }
.recipe-card h3 { margin-top: 22px; }
.recipe-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.recipe-card__meta span + span::before { content: "·"; margin-right: 10px; color: var(--gold); }
.recipe-card h3 { transition: color 0.3s; }
.recipe-card:hover h3 { color: var(--navy-deep); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 767px) { .recipe-cards { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Where to buy ---------- */
.buy { text-align: center; }
.buy .head { margin-bottom: 48px; }
.retailers { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.retailer {
  display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 30px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1.08rem;
  background: var(--cream); color: var(--navy-deep);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.retailer:hover { background: #fff; transform: translateY(-2px); }
.retailer svg { width: 16px; height: 16px; color: var(--gold); }
.retailer--sm { min-height: 50px; padding: 0 22px; font-size: 0.95rem; background: transparent; color: var(--cream); border: 1px solid rgba(247, 242, 232, 0.3); }
.retailer--sm:hover { background: rgba(247, 242, 232, 0.08); border-color: var(--cream); }
.retailers--sm { margin-top: 18px; align-items: center; }
.retailers--sm > span { font-size: 0.9rem; color: rgba(247, 242, 232, 0.65); margin-right: 4px; }
.buy__trade { margin: 48px 0 0; color: rgba(247, 242, 232, 0.75); }
.buy__trade a { color: var(--gold-soft); }

/* Where-to-buy sheet: the header button slides it up from the bottom (main.js). The page stays in view, dimmed,
   above it; the header stays on top so its button closes the sheet again. */
.wtb-backdrop {
  position: fixed; inset: 0; z-index: 98; background: rgba(14, 33, 96, 0.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.wtb-sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 99; width: min(1100px, 100%); max-height: calc(100% - 110px); overflow-y: auto;
  padding: clamp(64px, 7vw, 88px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 64px);
  border-radius: 16px 16px 0 0; background: var(--navy-deep); color: var(--cream);
  box-shadow: 0 -30px 70px -30px rgba(14, 33, 96, 0.6);
  transform: translate(-50%, 104%); visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
.wtb-open .wtb-backdrop { opacity: 1; visibility: visible; }
.wtb-open .wtb-sheet { transform: translate(-50%, 0); visibility: visible; transition: transform 0.55s var(--ease); }
.wtb-open { overflow: hidden; }
.wtb-sheet h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.wtb-sheet .lede { color: rgba(247, 242, 232, 0.78); margin: 0 auto 36px; }
.wtb-sheet .buy__trade { margin-top: 40px; }
.wtb-sheet__close {
  position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(247, 242, 232, 0.3); border-radius: 50%; background: transparent; cursor: pointer;
  color: var(--cream); font-size: 1.5rem; line-height: 1; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.wtb-sheet__close:hover { border-color: var(--cream); background: rgba(247, 242, 232, 0.08); }
/* The header button shows the sheet is open */
.nav a.btn[aria-expanded="true"] { background: var(--gold); color: var(--navy-deep); }
@media (max-width: 560px) { .wtb-sheet .retailer { width: 100%; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .wtb-sheet, .wtb-open .wtb-sheet, .wtb-backdrop { transition: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(247, 242, 232, 0.75); padding: 0 0 32px; font-size: 0.95rem; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 72px; border-top: 1px solid rgba(247, 242, 232, 0.14);
}
.site-footer img.footer-logo { width: 220px; margin-bottom: 20px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: var(--cream); }
.site-footer address { font-style: normal; display: grid; gap: 14px; }
.site-footer address b { display: block; color: var(--cream); font-weight: 500; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(247, 242, 232, 0.25); }
.socials a:hover { border-color: var(--cream); }
.socials svg { width: 16px; height: 16px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(247, 242, 232, 0.14);
  font-size: 0.82rem; color: rgba(247, 242, 232, 0.5);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter: top of the footer on every page, and in a dialog opened from the side tab ---------- */
.newsletter {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding-block: clamp(56px, 7vw, 92px); border-top: 1px solid rgba(247, 242, 232, 0.14);
}
.site-footer .newsletter h2 { color: var(--cream); font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.newsletter__copy p { margin: 0; max-width: 30em; }
.newsletter + .site-footer__grid { padding-top: 56px; }
.newsletter__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; }
.newsletter__fields label { display: block; }
.newsletter__fields input {
  width: 100%; min-height: 54px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 0.98rem;
  border: 1px solid rgba(247, 242, 232, 0.28); background: rgba(247, 242, 232, 0.06); color: var(--cream);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.newsletter__fields input::placeholder { color: rgba(247, 242, 232, 0.6); }
.newsletter__fields input:focus { outline: none; border-color: var(--gold); background: rgba(247, 242, 232, 0.1); }
.newsletter__fields .btn { min-height: 54px; }
.newsletter__note { margin: 14px 0 0 4px; font-size: 0.84rem; color: rgba(247, 242, 232, 0.55); }
.newsletter__note.is-shown { margin-left: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--gold-soft); color: var(--navy-deep); font-size: 0.92rem; }
@media (max-width: 900px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .newsletter__fields { grid-template-columns: 1fr; } }
/* The same form in the dialog, on a light background */
.nl-dialog .newsletter__fields { grid-template-columns: 1fr; margin-top: 6px; }
.nl-dialog .newsletter__fields input { border-color: var(--rule); background: var(--cream); color: var(--ink); }
.nl-dialog .newsletter__fields input::placeholder { color: var(--muted); }
.nl-dialog .newsletter__fields input:focus { border-color: var(--navy); background: #fff; }
.nl-dialog .newsletter__note { color: var(--muted); margin-left: 0; }
.nl-dialog .newsletter__note.is-shown { color: var(--navy-deep); }

/* Side tab: appears once the visitor scrolls, hides at the footer sign-up, and stays away once closed */
.nl-tab {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: stretch;
  border-radius: 10px; background: var(--navy-deep); color: var(--cream);
  box-shadow: 0 20px 44px -18px rgba(14, 33, 96, 0.6);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.nl-tab:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateY(18px); }
.nl-tab__open {
  display: flex; align-items: center; gap: 12px; padding: 13px 6px 13px 16px; border: 0; background: none; cursor: pointer;
  color: inherit; font-size: 0.9rem; font-weight: 500; line-height: 1.3; text-align: left;
}
.nl-tab__open svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold); }
.nl-tab__open em { font-style: normal; color: var(--gold-soft); }
.nl-tab__hide {
  width: 38px; border: 0; border-left: 1px solid rgba(247, 242, 232, 0.14); background: none; cursor: pointer;
  color: rgba(247, 242, 232, 0.6); font-size: 1.25rem; line-height: 1; border-radius: 0 10px 10px 0;
}
.nl-tab__hide:hover { color: var(--cream); background: rgba(247, 242, 232, 0.06); }
@media (max-width: 560px) { .nl-tab { left: 12px; bottom: 12px; } .nl-tab__open { font-size: 0.84rem; padding-block: 10px; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(84px + clamp(56px, 8vw, 110px)) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { max-width: 14em; margin-bottom: 24px; }
.page-hero--image { display: grid; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs span { margin: 0 8px; color: var(--gold); }

/* ---------- Brands page ---------- */
.brand-list { border-top: 1px solid var(--rule); }
.brand-row {
  display: grid; grid-template-columns: 260px 1fr auto; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--rule);
}
.brand-row__logo { display: grid; place-items: center; height: 120px; padding: 18px 28px; background: var(--paper); border-radius: var(--radius); }
.brand-row__logo img { max-height: 100%; width: auto; object-fit: contain; }
.brand-row__logo .logo-word { font-size: 2.4rem; }
.brand-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.brand-row p { margin: 0; color: var(--muted); max-width: 40em; }
.brand-row__tag { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
@media (max-width: 900px) {
  .brand-row { grid-template-columns: 1fr; gap: 20px; }
  .brand-row__logo { justify-self: start; width: 220px; height: 110px; }
}

.trade-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--radius); background: var(--navy-deep); color: var(--cream);
}
.trade-cta h2 { color: var(--cream); font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
.trade-cta p { margin: 0; color: rgba(247, 242, 232, 0.75); }
@media (max-width: 767px) { .trade-cta { grid-template-columns: 1fr; } }

/* ---------- Products page ---------- */
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 3.5vw, 52px); align-items: start; }

/* Filter sidebar */
.shop-filters {
  position: sticky; top: 96px; display: flex; flex-direction: column;
  max-height: calc(100vh - 116px);
}
.shop-filters__head { display: none; }
.shop-filters__scroll { overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.shop-filters__foot { display: none; }
.shop-filters__backdrop { display: none; }

.shop-search {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; margin-bottom: 26px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--muted);
  transition: border-color 0.3s var(--ease);
}
.shop-search:focus-within { border-color: var(--navy); }
.shop-search svg { width: 17px; height: 17px; flex-shrink: 0; }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; }

.facet { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.facet legend {
  padding: 0 0 10px; margin-bottom: 4px; width: 100%; border-bottom: 1px solid var(--rule);
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.facet__children { padding-left: 14px; margin-left: 9px; border-left: 1px solid var(--rule); }
.check {
  display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer;
  color: var(--ink); font-size: 0.97rem;
}
.check--parent { font-weight: 500; color: var(--navy); }
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0; width: 19px; height: 19px; cursor: pointer;
  border: 1.5px solid rgba(20, 49, 130, 0.35); border-radius: 4px; background: var(--paper) center / 13px no-repeat;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check:hover input { border-color: var(--navy); }
.check input:checked {
  background-color: var(--navy); border-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23f7f2e8' stroke-width='2'/%3E%3C/svg%3E");
}
.check input:indeterminate {
  background-color: var(--navy); border-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7h7' fill='none' stroke='%23f7f2e8' stroke-width='2'/%3E%3C/svg%3E");
}
.check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check span { flex: 1; }
.check em { font-style: normal; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Results toolbar */
.shop-bar {
  position: sticky; top: 72px; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 12px 0; margin-bottom: 8px;
  background: var(--cream); border-bottom: 1px solid var(--rule);
}
.shop-bar__toggle {
  display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); font-size: 0.92rem; font-weight: 500;
}
.shop-bar__toggle svg { width: 18px; height: 18px; }
.shop-bar__badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep); font-size: 0.75rem; font-weight: 600;
}
.shop-bar__badge[hidden] { display: none; }
.shop-bar__count { margin: 0 auto 0 0; font-size: 0.92rem; color: var(--muted); }
.shop-bar__count b { color: var(--navy); font-weight: 600; }
.shop-sort { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.shop-sort select {
  appearance: none; -webkit-appearance: none; min-height: 42px; padding: 0 40px 0 18px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--navy); font: inherit; font-size: 0.92rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23143182' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.shop-sort select:hover, .shop-sort select:focus-visible { border-color: var(--navy); outline: 0; }

.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.shop-chips[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 14px; cursor: pointer;
  border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 0.85rem;
}
.chip span { font-size: 1.1em; line-height: 1; opacity: 0.75; }
.chip:hover span { opacity: 1; }
.chip--clear { background: transparent; color: var(--navy); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }

.shop-empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--rule); border-radius: var(--radius); }
.shop-empty[hidden] { display: none; }
.shop-empty h3 { margin-bottom: 8px; }
.shop-empty p { color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: 24px; }
.product {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper);
  border: 1px solid transparent; transition: border-color 0.35s var(--ease), box-shadow 0.45s var(--ease);
}
.product:hover { border-color: var(--rule); box-shadow: 0 22px 44px -30px rgba(14, 33, 96, 0.4); }
.product__media {
  aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 0;
  background: radial-gradient(ellipse at 50% 75%, #fffdf8 0%, var(--cream-deep) 85%);
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
}
/* Product shots are all 4:5 with the pack centred at a consistent size (tools/build_assets.py) */
.product__media img {
  width: 100%; height: auto; mix-blend-mode: multiply;
  transition: transform 0.7s var(--ease);
}
.product:hover .product__media img { transform: translateY(-6px) scale(1.03); }
.product__body { padding: 18px 20px 20px; display: grid; gap: 4px; flex: 1; align-content: start; }
.product__cat { font: 600 0.68rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.product h3 { font-size: 1.2rem; line-height: 1.25; }
.product__size { font-size: 0.88rem; color: var(--muted); }
.product__buy {
  margin: 0 20px 20px; min-height: 42px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--navy); font-size: 0.9rem; font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product__buy:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.product[hidden], .product-group[hidden] { display: none; }
.product-group {
  grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 40px 0 6px; padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.product-group:first-child { margin-top: 0; }
.product-group span { font: 400 0.9rem/1 var(--sans); color: var(--muted); white-space: nowrap; }
.product__media--soon { background: var(--cream-deep); }
.product__placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.product__placeholder img { width: 62%; max-height: 40%; object-fit: contain; opacity: 0.9; mix-blend-mode: multiply; }
.product__wordmark { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); }
.product-grid > .product-group:first-child { margin-top: 0; }
@media (max-width: 1100px) and (min-width: 961px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Below 960px the sidebar becomes a slide-in drawer */
@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; }
  .shop-bar { top: 68px; }
  .shop-bar__toggle { display: inline-flex; }
  .shop-filters {
    position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(360px, 88vw); max-height: none;
    background: var(--cream); box-shadow: 30px 0 60px -30px rgba(14, 33, 96, 0.45);
    transform: translateX(-102%); visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .shop-filters.is-open { transform: none; visibility: visible; transition: transform 0.4s var(--ease); }
  .shop-filters__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; border-bottom: 1px solid var(--rule);
  }
  .shop-filters__head h2 { font-size: 1.6rem; }
  .shop-filters__close {
    width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--cream-deep); color: var(--navy); font-size: 1.5rem; line-height: 1;
  }
  .shop-filters__scroll { flex: 1; padding: 20px; }
  .shop-filters__foot {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--cream);
  }
  .shop-filters__foot .btn { min-height: 46px; padding: 0 20px; font-size: 0.92rem; }
  .shop-filters__backdrop { display: block; position: fixed; inset: 0; z-index: 200; background: rgba(14, 33, 96, 0.4); }
  .shop-filters__backdrop[hidden] { display: none; }
  .filters-open { overflow: hidden; }
  .check { min-height: 44px; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__body { padding: 14px 14px 16px; } .product__buy { margin: 0 14px 14px; } .product h3 { font-size: 1.05rem; }
  .shop-bar { flex-wrap: wrap; gap: 10px 12px; }
  .shop-bar__count { order: 3; flex-basis: 100%; font-size: 0.85rem; }
  .shop-sort { margin-left: auto; }
  .shop-sort > span { display: none; }
}

/* Cards that open a product page: the title link covers the card, the buy button sits above it */
.product { position: relative; }
.product__link { color: inherit; text-decoration: none; }
.product__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product__link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.product__link:focus-visible { outline: none; }
.product__link:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 2px; }
.product__buy { position: relative; z-index: 1; }

/* ---------- Product page ---------- */
.pdp-hero { padding: calc(84px + clamp(40px, 6vw, 80px)) 0 clamp(56px, 8vw, 110px); }
.pdp { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.pdp__media {
  position: sticky; top: 104px; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 3% 14%;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 72%, #fffdf8 0%, var(--cream-deep) 80%);
}
.pdp__media img { max-height: 100%; max-width: 100%; width: auto; mix-blend-mode: multiply; }
.pdp__media--soon { background: var(--cream-deep); }
.pdp__media--soon .product__placeholder img { width: 70%; max-height: 50%; }
.pdp__info h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); margin: 6px 0 10px; }
.pdp__size {
  display: inline-block; margin: 0 0 24px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--rule); font-size: 0.9rem; color: var(--navy);
}
.pdp__desc { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--ink); max-width: 34em; }
.pdp__label {
  margin: 30px 0 12px; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink);
}
.pdp__uses { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__uses li { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: 0.92rem; color: var(--navy); }
.pdp__buy { margin-top: 34px; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.pdp__buy .pdp__label { margin-top: 0; }
.pdp__buy p { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.pdp__buy-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pdp__buy-links .btn { min-height: 46px; padding: 0 14px; font-size: 0.9rem; }
.pdp .recipe-facts { margin-top: 34px; }
.pdp-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.pdp-section__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 6px; }
.pdp-section__head .lede { margin: 14px 0 0; }
.pdp-section__head .text-link { white-space: nowrap; }
.pdp-section__actions { display: flex; align-items: center; gap: 20px; }

/* Recipe carousel on product pages: swipe, drag with the mouse, scroll sideways or use the arrows */
.recipe-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--carousel-gap)) / 3);
  --carousel-gap: clamp(16px, 2.4vw, 32px); gap: var(--carousel-gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab; outline-offset: 6px;
}
.recipe-carousel::-webkit-scrollbar { display: none; }
.recipe-carousel .recipe-card { scroll-snap-align: start; }
.recipe-carousel .recipe-card h3 { font-size: 1.35rem; }
.recipe-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.recipe-carousel.is-dragging .recipe-card { pointer-events: none; }
.recipe-card__note { margin: 6px 0 0; font-size: 0.85rem; color: var(--gold-ink); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav[hidden] { display: none; }
.carousel-nav__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--navy);
  transition: border-color 0.3s var(--ease), opacity 0.3s;
}
.carousel-nav__btn:hover { border-color: var(--navy); }
.carousel-nav__btn:disabled { opacity: 0.35; cursor: default; border-color: var(--rule); }
.carousel-nav__btn svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .recipe-carousel { grid-auto-columns: calc((100% - var(--carousel-gap)) / 2); } }
@media (max-width: 600px) {
  .pdp-section__actions { width: 100%; justify-content: space-between; }
  .pdp-section__actions .text-link { white-space: normal; }
  .recipe-carousel { grid-auto-columns: 82%; margin-right: -16px; padding-right: 16px; scroll-padding-right: 16px; }
}
.product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 1024px) { .pdp__buy-links { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: static; aspect-ratio: 5 / 4; padding: 2% 24%; }
  .pdp__buy-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pdp__buy-links { grid-template-columns: 1fr; }
  .pdp-section__head { flex-direction: column; align-items: start; }
}

/* ---------- Recipes page: filter sidebar (shares the products page's .shop layout) ---------- */
/* The groups fold open and closed; the sidebar scrolls with the page instead of sticking, as it's long */
@media (min-width: 961px) { .recipe-shop .shop-filters { position: static; max-height: none; } .recipe-shop .shop-filters__scroll { overflow: visible; padding-right: 0; } }
.facet summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--rule); cursor: pointer; list-style: none;
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.facet summary::-webkit-details-marker { display: none; }
.facet summary:hover { color: var(--navy); }
.facet__arrow { width: 15px; height: 15px; transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.facet:not([open]) .facet__arrow { transform: none; }
.facet:not([open]) summary { margin-bottom: 0; }
.check__icon { width: 19px; height: 19px; flex-shrink: 0; color: var(--gold-ink); margin-left: -2px; }
.facet__more[hidden], [data-facet-more][hidden] { display: none; }
.facet__toggle {
  margin: 6px 0 0 31px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--navy); font-size: 0.88rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px;
}
/* Newsletter prompt at the foot of the filters */
.filter-cta {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; margin-top: 8px; padding: 20px; cursor: pointer;
  border: 0; border-radius: var(--radius); background: var(--navy-deep); color: rgba(247, 242, 232, 0.75); text-align: left;
  font-size: 0.88rem; line-height: 1.45; transition: background-color 0.3s var(--ease);
}
.filter-cta:hover { background: var(--navy); }
.filter-cta .icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold); }
.filter-cta b { display: block; margin-bottom: 4px; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.2; color: var(--cream); }
.recipe-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 1.6vw, 22px); margin-top: 24px; }
.recipe-cards--grid .recipe-card h3 { margin-top: 16px; font-size: 1.25rem; line-height: 1.2; }
.recipe-cards--grid .recipe-card__meta { font-size: 0.86rem; gap: 8px; }
.recipe-cards--grid .recipe-card__meta span + span::before { margin-right: 8px; }
.recipe-card[hidden] { display: none; }
.recipe-more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }
.recipe-more [hidden] { display: none; }
@media (max-width: 1100px) { .recipe-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .recipe-cards--grid { grid-template-columns: 1fr; gap: 36px; } .recipe-cards--grid .recipe-card h3 { font-size: 1.4rem; } }

/* Headings, menus, buttons and links start every word with a capital. Done here so the copy (and recipe files)
   can be typed in any case. The small uppercase labels (footer headings, filter groups, recipe facts) stay as they are. */
h1, h2, h3, .hero__line p.big, .crumbs, .nav a, .mega__tab, .btn, .text-link, .product__buy, .shop-sort select,
.check span, .chip, .filter-cta b, .nl-tab__open span, .share-menu__item span, .facet__toggle,
.shop-bar__toggle { text-transform: capitalize; }

.made-with { margin-top: 36px; }
.made-with h3 { font-size: 1.3rem; margin-bottom: 14px; }
.made-with__list { display: grid; gap: 10px; }
.made-with__item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); text-decoration: none; color: var(--navy);
  transition: border-color 0.3s var(--ease);
}
.made-with__item:hover { border-color: var(--navy); }
.made-with__item img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.made-with__item span { font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }
.made-with__item small { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

/* Where-to-buy dialog, and the newsletter dialog (made by main.js) */
.buy-dialog, .nl-dialog {
  width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 10px;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(14, 33, 96, 0.5);
}
.buy-dialog::backdrop, .nl-dialog::backdrop { background: rgba(14, 33, 96, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.buy-dialog[open], .nl-dialog[open] { animation: rise 0.45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.buy-dialog__inner { padding: 36px 32px 30px; display: grid; gap: 12px; }
.buy-dialog h2, .nl-dialog h2 { font-size: 1.7rem; padding-right: 32px; }
.buy-dialog p, .nl-dialog p { color: var(--muted); margin: 0 0 8px; }
.buy-dialog a.btn { justify-content: space-between; }
.buy-dialog .close, .nl-dialog .close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--navy); font-size: 1.5rem; line-height: 1;
}
.buy-dialog .close:hover, .nl-dialog .close:hover { background: var(--cream-deep); }

/* ---------- Recipe page ---------- */
.recipe-hero { padding-top: calc(84px + clamp(40px, 6vw, 80px)); }
.recipe-hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.recipe-hero__media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.recipe-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 22px; }
/* Facts sit in equal columns, so a second row lines up under the first. Every fact has a line above it and a divider
   on its left, so a row that wraps gets its own faint line; the strip is shifted left and clipped so the first fact
   on each row loses its divider and lines up with the text above */
.recipe-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 32px; margin-left: -29px; clip-path: inset(0 0 0 29px);
}
.recipe-facts div { padding: 16px 20px 16px 28px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.recipe-facts dt { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.recipe-facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--navy); }
@media (max-width: 900px) { .recipe-hero__grid { grid-template-columns: 1fr; } .recipe-hero__media { order: -1; } }
@media (max-width: 480px) {
  .recipe-facts { margin-left: -17px; clip-path: inset(0 0 0 17px); grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .recipe-facts div { padding: 14px 12px 14px 16px; }
}

.recipe-body { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.recipe-body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 26px; }
.ingredients { position: sticky; top: 104px; }
/* Amounts share one column, as wide as the longest amount (up to 8.5em), so the ingredients line up beside them.
   The build keeps each measure together ("1 x 120 g"), so an amount only wraps between measures. */
.ingredients ul {
  list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: fit-content(8.5em) minmax(0, 1fr); column-gap: 16px;
}
.ingredients li {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
}
.ingredients li b { font-weight: 500; color: var(--navy); }
.ingredients li a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.shop-box { margin-top: 32px; padding: 26px; border-radius: var(--radius); background: var(--navy-deep); color: var(--cream); }
.shop-box h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: 8px; }
.shop-box p { font-size: 0.92rem; color: rgba(247, 242, 232, 0.75); margin-bottom: 18px; }
.shop-box .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-box .btn { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.method ol { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.method ol > li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--rule); }
.method ol > li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--gold); }
.method ol > li p { margin: 0; font-size: 1.08rem; }
.tip { margin-top: 40px; padding: 26px 30px; border-left: 2px solid var(--gold); background: var(--paper); }
.tip b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.tip p { margin: 0; color: var(--muted); }
.example-note { margin-top: 28px; font-size: 0.85rem; color: var(--muted); font-style: italic; }
@media (max-width: 900px) { .recipe-body { grid-template-columns: 1fr; } .ingredients { position: static; } }

/* Share and print, under the recipe facts */
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.recipe-actions .btn { min-height: 46px; padding: 0 22px; font-size: 0.92rem; }
.recipe-actions .btn svg { width: 17px; height: 17px; }
.recipe-actions .btn:hover svg { transform: none; }
.share { position: relative; }
.share-menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 220px; padding: 8px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(20, 49, 130, 0.14); animation: rise 0.25s var(--ease);
}
.share-menu[hidden] { display: none; }
.share-menu__item {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 4px;
  background: none; color: var(--navy); font-size: 0.93rem; text-decoration: none; text-align: left; cursor: pointer;
}
.share-menu__item:hover { background: var(--cream); }
.share-menu__item svg { width: 18px; height: 18px; color: var(--navy); }

/* Related tags and share buttons, at the end of the method */
.recipe-extras { display: grid; gap: 34px; margin: 48px 0 40px; padding-top: 34px; border-top: 1px solid var(--rule); }
.recipe-extras h3 { font-size: 1.3rem; margin-bottom: 14px; }
.tag-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-links a {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  color: var(--navy); font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tag-links a:hover { border-color: var(--navy); background: #fff; }
.tag-links svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--gold-ink); }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.share-link {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--navy); color: var(--cream); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.share-link:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.share-link svg { width: 19px; height: 19px; }
[data-copy-link].is-copied { background: var(--gold); color: var(--navy-deep); }
.share-menu__item[data-copy-link].is-copied { background: var(--gold-soft); }
.related-recipes .recipe-card h3 { font-size: 1.35rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-list { display: grid; gap: 32px; }
.contact-list h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.contact-list p { margin: 0; font-size: 1.08rem; }
.contact-list a { text-decoration: none; }
.contact-list .phone { font-family: var(--serif); font-size: 2rem; color: var(--navy); }
.form { display: grid; gap: 18px; padding: clamp(28px, 4vw, 48px); background: var(--paper); border-radius: var(--radius); }
.form h2 { font-size: 2rem; margin-bottom: 8px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--cream); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-note.is-shown { padding: 14px 16px; border-radius: var(--radius); background: var(--gold-soft); color: var(--navy-deep); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.office h3 { margin-bottom: 6px; }
.office p { color: var(--muted); margin-bottom: 18px; }
.office iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); filter: grayscale(0.6) sepia(0.12); background: var(--cream-deep); }
@media (max-width: 767px) { .offices { grid-template-columns: 1fr; gap: 48px; } }

/* Utilities */
.mt-l { margin-top: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Printing a recipe (the Print or save PDF button) ---------- */
@media print {
  @page { margin: 14mm 16mm; }
  body { background: #fff; color: #222; font-size: 10.5pt; line-height: 1.5; }
  .site-header, .site-footer, .skip-link, .crumbs, .recipe-actions, .recipe-extras, .related-recipes,
  .made-with, .shop-box, .method > .btn, .nl-tab, dialog { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .recipe-hero { padding-top: 0; }
  .recipe-hero__grid { grid-template-columns: 1fr 36%; gap: 24px; align-items: start; }
  .recipe-hero__media { order: 0; }
  .recipe-hero h1 { font-size: 24pt; margin-bottom: 10px; }
  .recipe-hero .lede { font-size: 10.5pt; color: #444; max-width: none; }
  .recipe-facts { margin-top: 14px; }
  .recipe-facts div { padding-block: 8px; }
  .recipe-facts dd { font-size: 12pt; }
  .section { padding-block: 18px 0; }
  .recipe-body { grid-template-columns: 2fr 3fr; gap: 28px; }
  .recipe-body h2 { font-size: 15pt; margin-bottom: 10px; }
  .ingredients { position: static; }
  .ingredients li { padding: 5px 0; }
  .ingredients li a { text-decoration: none; color: inherit; }
  .method ol > li { grid-template-columns: 34px 1fr; gap: 10px; padding: 9px 0; break-inside: avoid; }
  .method ol > li::before { font-size: 13pt; }
  .method ol > li p { font-size: 10.5pt; }
  .tip { margin-top: 16px; padding: 12px 16px; break-inside: avoid; }
}
