/* 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); }
/* Three tall photo cards, built from Media/Image Ideas/staffords-explore.html. Each card fades into its own
   colour wash (--wash, an r,g,b triple) behind the title, with a round arrow button bottom-right. */
.quick-link {
  --wash: 38, 22, 16; --crop: 50% 45%;
  position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden;
  min-height: clamp(380px, 42vw, 574px); border-radius: 10px;
  background-color: rgb(var(--wash)); color: #fffaf0; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.quick-link--recipes { --wash: 61, 28, 33; --crop: 52% 44%; }
.quick-link--brands { --wash: 43, 43, 19; --crop: 51% 50%; }
.quick-link__photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--crop); transition: transform 0.55s ease;
}
.quick-link::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--wash), .98) 0%, rgba(var(--wash), .95) 12%, rgba(var(--wash), .82) 25%, rgba(var(--wash), .27) 46%, rgba(var(--wash), 0) 65%);
}
.quick-link--brands::after {
  background: linear-gradient(to top, rgba(var(--wash), .98) 0%, rgba(var(--wash), .92) 15%, rgba(var(--wash), .64) 25%, rgba(var(--wash), .20) 32%, rgba(var(--wash), 0) 39%);
}
.quick-link__body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px;
  padding: clamp(17px, 2.2vw, 32px);
}
/* The title spans the full card width on one line; the description and arrow share the row below. */
.quick-link__body > div { display: contents; }
.quick-link h3 { grid-column: 1 / -1; margin: 0; color: inherit; font-size: clamp(1.6rem, 2.9vw, 3rem); line-height: 1.02; white-space: nowrap; }
.quick-link__body p { margin: 9px 0 0; max-width: 28ch; color: #fffaf0; font-size: clamp(.9rem, 1.15vw, 1.05rem); line-height: 1.4; }
.quick-link__arrow {
  display: grid; place-items: center; width: clamp(40px, 3.75vw, 54px); aspect-ratio: 1; border-radius: 50%;
  background: #fffaf0; color: var(--navy); transition: background-color .2s ease, color .2s ease;
}
.quick-link__arrow svg { width: 40%; height: 40%; }
@media (hover: hover) {
  .quick-link:hover .quick-link__photo { transform: scale(1.045); }
  .quick-link:hover .quick-link__arrow { background: var(--navy); color: #fffaf0; }
}
.quick-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
@media (max-width: 759px) {
  .quick-links { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .quick-link { min-height: 0; aspect-ratio: 4 / 5; }
  .quick-link__body { padding: clamp(18px, 5vw, 28px); }
  .quick-link h3 { font-size: clamp(2.1rem, 7.75vw, 3.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .quick-link__photo, .quick-link__arrow { transition: none; }
  .quick-link:hover .quick-link__photo { transform: none; }
}

.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: one timeline, everything hangs off the gold line ----------
   Built from Media/Mockups/heritage-timeline.html. Each stop is a column: a top block (the heading or a photo),
   a marker on the line, then its text. Every top block is the same height, so the markers sit on one straight line.
   The stage stays pinned while you scroll; initLineStory (main.js) slides the strip along, and after "Today"
   the cream closing panel rises over it. Without JS or with reduced motion, the strip scrolls sideways by hand. */
.line-story {
  --panel: min(540px, 44vw);         /* width of one stop */
  --top: min(42vh, 400px);           /* height of the block above the line */
  --mark: 76px;                      /* height of the row the line runs through */
  --header: 72px;                    /* the fixed header, kept clear of the content */
  --start: max(var(--gutter), (100vw - var(--wrap)) / 2);  /* lines the first stop up with the page */
  background: var(--navy-deep); color: var(--cream);
}
/* Scroll length: 70vh per step along the line, then 90vh for the closing panel to rise */
.line-story__track { position: relative; height: calc((var(--stops) - 1) * 70vh + 90vh + 100vh); }
.line-story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.line-story__scene { position: absolute; inset: var(--header) 0 0; display: flex; align-items: center; transform-origin: 50% 0; }

.line-story__strip {
  position: relative; display: flex; padding-left: var(--start); padding-right: calc(100vw - var(--panel));
  will-change: transform; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.line-story__strip.is-dragging { cursor: grabbing; }
.line-story__strip.is-dragging .stop { transition: none; }
.line-story__strip img { -webkit-user-drag: none; pointer-events: none; }

/* The line itself, and the gold that fills it as you travel */
.line-story__line, .line-story__fill {
  position: absolute; top: calc(var(--top) + var(--mark) / 2 - 1px); height: 2px; border-radius: 2px;
  left: var(--start); pointer-events: none;
}
.line-story__line { right: calc(100vw - 9px); background: rgba(247, 242, 232, 0.16); } /* ends on the last dot */
.line-story__fill { width: var(--fill, 0px); background: var(--gold); }

.stop { flex: 0 0 var(--panel); padding-right: clamp(28px, 4vw, 56px); transition: opacity 0.5s var(--ease); }
.stop:not(.is-active) { opacity: 0.42; }
.stop:not(.is-active):hover { opacity: 0.7; }
.stop.is-past:not(.is-active) { opacity: 0.3; }

.stop__top { height: var(--top); display: flex; flex-direction: column; justify-content: flex-end; }
.stop__photo {
  position: relative; height: 100%; margin: 0; border-radius: 10px; overflow: hidden; background: #1a2350;
  transform: scale(0.94); transform-origin: bottom left; transition: transform 0.7s var(--ease);
}
.stop.is-active .stop__photo { transform: none; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.7); }
.stop__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Each era graded to look its age; the oldest two also get film grain */
.stop[data-era="1921"] img { filter: sepia(1) contrast(1.05) brightness(0.92) saturate(0.7); }
.stop[data-era="1951"] img { filter: sepia(0.7) saturate(0.55) contrast(0.95) brightness(0.96); }
.stop[data-era="1977"] img { filter: sepia(0.3) saturate(1.15) hue-rotate(-6deg) contrast(0.96); }
.stop[data-era="1921"] .stop__photo::after, .stop[data-era="1951"] .stop__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.5;
  box-shadow: inset 0 0 110px rgba(20, 10, 0, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.stop[data-era="1951"] .stop__photo::after { opacity: 0.32; }

/* The marker: a dot on the line, then the year sitting on the line (its navy backing cuts the line) */
.stop__mark { height: var(--mark); display: flex; align-items: center; gap: 14px; }
.stop__dot {
  appearance: none; flex: 0 0 auto; width: 18px; height: 18px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(247, 242, 232, 0.45); background: var(--navy-deep);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.stop.is-past .stop__dot, .stop.is-active .stop__dot { border-color: var(--gold); background: var(--gold); }
.stop.is-active .stop__dot { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(221, 168, 22, 0.2); }
.stop__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.stop__year {
  padding: 0 12px 0 4px; background: var(--navy-deep);
  font: 600 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--serif); letter-spacing: -0.02em; color: rgba(247, 242, 232, 0.55);
  transition: color 0.4s;
}
.stop.is-active .stop__year, .stop.is-past .stop__year { color: var(--gold); }

.stop__text { max-width: 30em; }
.stop__text h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; color: var(--cream); }
.stop__text p { margin: 10px 0 0; color: rgba(247, 242, 232, 0.8); font-size: 0.98rem; line-height: 1.55; }

/* First stop: the section heading itself */
.stop--intro { opacity: 1 !important; }
.stop--intro .stop__top { padding-bottom: 6px; }
.stop--intro h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 0.98; color: var(--cream); }
.stop--intro h2 em { display: block; font-style: normal; color: var(--gold); } /* "good taste." on its own line */
.stop__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--gold-soft); font-size: 0.88rem; font-weight: 500; }
.stop__hint svg { width: 18px; height: 18px; animation: line-story-nudge 1.6s ease-in-out infinite; }
@keyframes line-story-nudge { 50% { transform: translateX(5px); } }

/* Prev / next, lined up with the right end of the gold line */
.line-story__nav {
  position: absolute; right: var(--gutter); top: 50%; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(14, 33, 96, 0.9); box-shadow: 0 0 0 1px rgba(247, 242, 232, 0.14);
  transition: opacity 0.3s;
}
.line-story__nav button {
  appearance: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--navy); cursor: pointer; transition: background-color 0.2s, opacity 0.2s;
}
.line-story__nav button:hover:not(:disabled) { background: var(--gold); color: var(--navy-deep); }
.line-story__nav button:disabled { opacity: 0.3; cursor: default; }
.line-story__nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.line-story__nav svg { width: 18px; height: 18px; }
.line-story__count { min-width: 3.4em; text-align: center; font-size: 0.82rem; font-weight: 500; color: rgba(247, 242, 232, 0.75); font-variant-numeric: tabular-nums; }

/* The closing panel: rises from the bottom once the line reaches today */
.line-story__end {
  position: absolute; inset: 0; z-index: 3; padding-top: var(--header); background: var(--cream); color: var(--navy);
  display: flex; align-items: center; transform: translateY(calc((1 - var(--rise, 0)) * 100%));
  border-radius: calc((1 - var(--rise, 0)) * 28px) calc((1 - var(--rise, 0)) * 28px) 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.35);
}
.end { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
/* The gold line carries on into the panel, ending in a dot over the heading */
.end__line { display: flex; align-items: center; margin-bottom: clamp(24px, 4vh, 40px); }
.end__line::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(221, 168, 22, 0.2); }
.end__line::after { content: ""; flex: 1; height: 2px; margin-left: 14px; background: linear-gradient(90deg, var(--gold), rgba(221, 168, 22, 0)); }
.end h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; color: var(--navy); }
.end h2 em { display: block; font-style: normal; color: var(--gold-ink); } /* the second sentence starts its own line */
.end__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(32px, 6vh, 64px); padding-top: clamp(20px, 3vh, 32px); border-top: 1px solid var(--rule);
}
.end__stats b { display: block; font: 300 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.end__stats span { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--muted); line-height: 1.35; }
.end__cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(28px, 5vh, 48px);
  padding: 6px 6px 6px 24px; border-radius: 999px; background: var(--navy); color: var(--cream);
  font-weight: 500; text-decoration: none; transition: background-color 0.25s;
}
.end__cta span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--navy); transition: transform 0.3s var(--ease); }
.end__cta span svg { width: 16px; height: 16px; }
.end__cta:hover { background: var(--navy-deep); }
.end__cta:hover span { transform: translateX(3px); }

@media (max-width: 760px) {
  .line-story { --panel: 84vw; --top: 30svh; --mark: 64px; --header: 68px; }
  .stop { padding-right: 20px; }
  .stop__year { font-size: 2.1rem; }
  .stop__text h3 { font-size: 1.3rem; }
  .stop__text p { font-size: 0.92rem; line-height: 1.5; }
  .stop--intro h2 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  /* Still on the line's right end, just smaller, so it stays clear of the newsletter tab at the bottom */
  .line-story__nav { right: 12px; gap: 4px; padding: 4px; }
  .line-story__nav button { width: 36px; height: 36px; }
  .line-story__count { min-width: 2.8em; font-size: 0.76rem; }
  .end h2 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .end__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .end__stats b { font-size: 2.4rem; }
}

.line-story:not(.is-enhanced) .line-story__track { height: auto; }
.line-story:not(.is-enhanced) .line-story__stage { position: static; height: auto; overflow: visible; }
.line-story:not(.is-enhanced) .line-story__scene { position: static; overflow-x: auto; padding-block: 72px; scroll-snap-type: x mandatory; }
.line-story:not(.is-enhanced) .stop { opacity: 1; scroll-snap-align: start; }
.line-story:not(.is-enhanced) .stop__photo { transform: none; }
.line-story:not(.is-enhanced) .line-story__end { position: static; transform: none; border-radius: 0; padding-block: 72px; box-shadow: none; }
.line-story:not(.is-enhanced) .line-story__fill,
.line-story:not(.is-enhanced) .line-story__nav,
.line-story:not(.is-enhanced) .stop__hint { display: none; }
@media (prefers-reduced-motion: reduce) { .stop__hint svg { animation: none; } }

/* ---------- Brands (home): four brands in the corners of one stage; the hovered (or tapped,
   or focused) brand grows to fill it. Built from Media/Image Ideas/staffords-brand-showcase.html ---------- */
/* One number, --t, drives each brand panel from its corner (0) to full size (1).
   Every position, size, clip and fade below is worked out from it, so the
   whole panel moves as one and can reverse smoothly half-way through. */
@property --t {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.staffords-brands {
  --navy: #143182;
  --paper: #f7f2e8;
  --card: #fffdf8;
  --gold: #dda816;
  --rule: #d5d3ce;
  --ink-soft: #494f69;
  color: var(--navy);
  font: 400 1rem/1.5 "DM Sans", Arial, sans-serif;
}

.staffords-brands, .staffords-brands * { box-sizing: border-box; }

.staffords-brands__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: fit-content;   /* as wide as the heading, so the copy lines up with its end */
  max-width: 100%;
  gap: clamp(14px, 1.8vw, 22px);
  margin-bottom: clamp(28px, 4vw, 52px);
}

.staffords-brands h2 {
  margin: 0;
  font: 400 clamp(2.4rem, 5.4vw, 5rem)/.99 "Fraunces", Georgia, serif;
  letter-spacing: -.045em;
  text-wrap: balance;
  color: var(--navy);
}

.staffords-brands__intro p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: clamp(.99rem, 1.3vw, 1.15rem);
  width: 0;             /* don't widen the column; then fill it */
  min-width: 100%;
  text-wrap: pretty;
}

/* Set by the script below: copy on one line, sized to end where the heading ends */
.staffords-brands__intro p.is-fit { white-space: nowrap; text-wrap: nowrap; }

.staffords-brands a { color: var(--navy); text-decoration: none; }
.staffords-brands__all:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }

.staffords-brands__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding-block: 3px;
  box-shadow: inset 0 -2px var(--gold);
  font-weight: 600;
}

/* ---------- The stage: four corners, one container ---------- */

.staffords-brands__stage {
  --gap: clamp(10px, 1.4vw, 20px);
  --hg: calc(var(--gap) / 2);          /* half the gap */
  --q: calc(50% - var(--hg));          /* one quarter's width (or height) */
  --r: 8px;
  --pad: clamp(16px, 1.8vw, 26px);     /* padding inside a corner */
  --pad-open: clamp(28px, 4vw, 60px);  /* padding when a brand fills the stage */
  position: relative;
  height: clamp(560px, 50vw, 680px);
}

.staffords-brands__panel {
  --t: 0;
  --logo-w: 140px;
  --tint: #eee2cf;
  --floor: #e3d2b7;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, var(--tint), var(--floor));
  clip-path: inset(
    calc(var(--it) * (1 - var(--t)))
    calc(var(--ir) * (1 - var(--t)))
    calc(var(--ib) * (1 - var(--t)))
    calc(var(--il) * (1 - var(--t)))
    round var(--r)
  );
  transition: --t .45s cubic-bezier(.5, 0, .25, 1);   /* closing */
  -webkit-tap-highlight-color: transparent;
}

/* Where each brand sits when it is closed */
.staffords-brands__panel[data-corner="tl"] { --x: 0px;                      --y: 0px;                      --it: 0px;                      --ir: calc(50% + var(--hg)); --ib: calc(50% + var(--hg)); --il: 0px; }
.staffords-brands__panel[data-corner="tr"] { --x: calc(50% + var(--hg));    --y: 0px;                      --it: 0px;                      --ir: 0px;                   --ib: calc(50% + var(--hg)); --il: calc(50% + var(--hg)); }
.staffords-brands__panel[data-corner="bl"] { --x: 0px;                      --y: calc(50% + var(--hg));    --it: calc(50% + var(--hg));    --ir: calc(50% + var(--hg)); --ib: 0px;                   --il: 0px; }
.staffords-brands__panel[data-corner="br"] { --x: calc(50% + var(--hg));    --y: calc(50% + var(--hg));    --it: calc(50% + var(--hg));    --ir: 0px;                   --ib: 0px;                   --il: calc(50% + var(--hg)); }

.staffords-brands__panel--staffords { --logo-w: 164px; }
.staffords-brands__panel--twinings  { --tint: #f4e4bb; --floor: #ead49e; --logo-w: 150px; }
.staffords-brands__panel--ryvita    { --tint: #e3e9db; --floor: #d3dfca; --logo-w: 92px; }
.staffords-brands__panel--mackays   { --tint: #f0dfdc; --floor: #e9ceca; --logo-w: 156px; }

.staffords-brands__panel.is-open { --t: 1; transition-duration: .72s; transition-timing-function: cubic-bezier(.7, 0, .2, 1); }   /* opening */

/* Without JavaScript, plain hover still works */
.staffords-brands__stage:not(.is-ready) .staffords-brands__panel:is(:hover, :focus-visible) { --t: 1; z-index: 3; }

.staffords-brands__panel:focus-visible { outline: 3px solid var(--navy); outline-offset: -7px; }

/* Anything that travels between the corner and the open layout */
.staffords-brands__move {
  position: absolute;
  left:   calc(var(--l0) * (1 - var(--t)) + var(--l1) * var(--t));
  top:    calc(var(--t0) * (1 - var(--t)) + var(--t1) * var(--t));
  width:  calc(var(--w0) * (1 - var(--t)) + var(--w1) * var(--t));
  height: calc(var(--h0) * (1 - var(--t)) + var(--h1) * var(--t));
}

/* Pack shots: right-hand side of the corner, then the right half of the stage */
.staffords-brands__art {
  --l0: calc(var(--x) + var(--q) * .44);
  --t0: calc(var(--y) + var(--q) * .05);
  --w0: calc(var(--q) * .52);
  --h0: calc(var(--q) * .9);
  --l1: 45%;
  --t1: 5%;
  --w1: 51%;
  --h1: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staffords-brands__art::before {
  content: "";
  position: absolute;
  inset: 4% 2%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 253, 248, .85), rgba(255, 253, 248, 0));
}

.staffords-brands__pack {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(20, 49, 130, .14));
}


/* Ryvita's pack is wide and flat, so give it more of its corner on larger screens */
@media (min-width: 1001px) {
  .staffords-brands__panel--ryvita .staffords-brands__art { --l0: calc(var(--x) + var(--q) * .34); --w0: calc(var(--q) * .63); }
}

/* Logo: top-left of the corner, then larger at the top-left of the stage */
.staffords-brands__logo {
  --l0: calc(var(--x) + var(--pad));
  --t0: calc(var(--y) + var(--pad));
  --w0: var(--logo-w);
  --h0: 46px;
  --l1: var(--pad-open);
  --t1: var(--pad-open);
  --w1: calc(var(--logo-w) * 1.5);
  --h1: 70px;
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.staffords-brands__panel--staffords .staffords-brands__logo { mix-blend-mode: multiply; }

/* The small corner label and arrow fade out as the brand opens */
.staffords-brands__tile {
  position: absolute;
  left: calc(var(--x) + var(--pad));
  top: calc(var(--y) + var(--q) - var(--pad));
  transform: translateY(-100%);
  width: calc(var(--q) * .42);
  display: grid;
  gap: 12px;
  justify-items: start;
  opacity: calc(1 - var(--t) * 4);
}

.staffords-brands__category {
  color: var(--navy);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 600;
  line-height: 1.25;
}

.staffords-brands__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* The open layout's words fade in once the panel has mostly grown */
.staffords-brands__feature {
  position: absolute;
  left: var(--pad-open);
  bottom: var(--pad-open);
  width: min(40%, 470px);
  display: grid;
  gap: 18px;
  justify-items: start;
  opacity: calc(var(--t) * 3 - 2);
  transform: translateY(calc((1 - var(--t)) * 28px));
}

.staffords-brands__feature h3 {
  margin: 0;
  font: 400 clamp(1.9rem, 3.3vw, 3.1rem)/1.02 "Fraunces", Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.staffords-brands__feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 36ch;
}

.staffords-brands__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid rgba(20, 49, 130, .18);
  font-size: .92rem;
  font-weight: 500;
}

.staffords-brands__facts li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 18px 2px 0;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.staffords-brands__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--card);
  font-weight: 600;
}

/* Close button for touch screens (hover devices simply move away) */
.staffords-brands__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, .9);
  color: var(--navy);
  font: 400 1.6rem/1 "DM Sans", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 49, 130, .14);
}

.staffords-brands__close:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.staffords-brands__stage.is-touch.has-open .staffords-brands__close { display: grid; }

@media (hover: hover) {
  .staffords-brands__all:hover { box-shadow: inset 0 -2px var(--navy); }
  .staffords-brands__panel:hover .staffords-brands__arrow { color: var(--card); background: var(--navy); border-color: var(--navy); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .staffords-brands__feature { width: 44%; }
  .staffords-brands__facts { display: none; }
  .staffords-brands__tile { width: calc(var(--q) * .46); }
}

/* ---------- Phone: portrait corners, pack on top ---------- */
@media (max-width: 700px) {
  .staffords-brands h2 { text-wrap: initial; }
  .staffords-brands__intro p { margin-bottom: 8px; }

  .staffords-brands__stage {
    --pad: 12px;
    --pad-open: 22px;
    height: clamp(560px, 165vw, 680px);
  }

  .staffords-brands__art {
    --l0: calc(var(--x) + var(--q) * .06);
    --t0: calc(var(--y) + var(--q) * .05);
    --w0: calc(var(--q) * .88);
    --h0: calc(var(--q) * .58);
    --l1: 10%;
    --t1: 3%;
    --w1: 80%;
    --h1: 42%;
  }

  .staffords-brands__logo {
    --t0: calc(var(--y) + var(--q) * .68);
    --w0: min(var(--logo-w) * .8, var(--q) - var(--pad) * 2);
    --h0: 32px;
    --t1: 47%;
    --w1: calc(var(--logo-w) * 1.1);
    --h1: 44px;
  }

  .staffords-brands__tile { width: calc(var(--q) - var(--pad) * 2); }
  .staffords-brands__category { font-size: .9rem; }
  .staffords-brands__arrow { display: none; }

  .staffords-brands__feature {
    right: var(--pad-open);
    width: auto;
    gap: 12px;
  }

  .staffords-brands__feature h3 { font-size: clamp(1.5rem, 6.6vw, 1.9rem); }
  .staffords-brands__feature p { font-size: .96rem; }
  .staffords-brands__cta { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .staffords-brands__panel, .staffords-brands__panel.is-open { transition-duration: .01s; }
  .staffords-brands__arrow { transition: none; }
}
  

/* 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; } }
/* Recipes page photos are tall 3:4 tiles. Portrait photos (2:3, most of them) fill the tile, with a sliver trimmed
   top and bottom. Square and landscape photos would lose too much from the sides, often where the product is, so
   they sit whole inside the tile over a soft blurred copy of themselves (.recipe-card__fill, added by
   build_recipes.py, with the same srcset so the browser only downloads the photo once). */
.recipe-cards--grid .recipe-card__media { aspect-ratio: 3 / 4; position: relative; isolation: isolate; }
.recipe-cards--grid .recipe-card:not([data-shape="portrait"]) .recipe-card__media img:not(.recipe-card__fill) { object-fit: contain; }
.recipe-card__fill {
  position: absolute; inset: -30px; z-index: -1; width: calc(100% + 60px) !important; height: calc(100% + 60px) !important;
  object-fit: cover; filter: blur(22px) saturate(1.1); opacity: 0.75; pointer-events: none;
}

/* 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; } }
/* The header photo is shown whole, never cropped, and the layout suits its shape. build_recipes.py puts the shape
   (data-shape) and the photo's proportions (--ar, and --arn as a number) on the section.
   Portrait: a big photo beside the title (5 of 11 columns, up to 600px wide); it may run below the fold on a short
   screen. Square: two equal columns. Landscape: title and facts side by side, the photo across the full width
   below. Phones: the photo on top. */
@media screen {
  .recipe-hero[data-shape] .recipe-hero__media { aspect-ratio: var(--ar); background: var(--cream-deep); }
  .recipe-hero[data-shape] .recipe-hero__media img { object-fit: contain; }
  .recipe-hero[data-shape="portrait"] .recipe-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .recipe-hero[data-shape="portrait"] .recipe-hero__media { width: min(100%, 600px); justify-self: end; }
  .recipe-hero[data-shape="square"] .recipe-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .recipe-hero[data-shape="square"] .recipe-hero__media { width: 100%; justify-self: end; }
  .recipe-hero[data-shape="landscape"] .recipe-hero__grid { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
  .recipe-hero[data-shape="landscape"] .recipe-hero__text {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: end;
  }
  .recipe-hero[data-shape="landscape"] .recipe-hero__text > :not(.recipe-facts) { grid-column: 1; }
  .recipe-hero[data-shape="landscape"] .recipe-facts { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .recipe-hero[data-shape="landscape"] .recipe-hero__media { width: 100%; }
}
/* Fact values never wrap ("2 hours 30 min" stays on one line), so on wide screens give each fact room for a long one */
@media screen and (min-width: 901px) {
  .recipe-hero[data-shape] .recipe-facts { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media screen and (max-width: 900px) {
  .recipe-hero[data-shape] .recipe-hero__grid { grid-template-columns: 1fr; }
  .recipe-hero[data-shape] .recipe-hero__media { order: -1; height: auto; justify-self: center; width: min(100%, calc(78svh * var(--arn))); }
  .recipe-hero[data-shape="landscape"] .recipe-hero__text { display: block; }
  .recipe-hero[data-shape="landscape"] .recipe-facts { margin-top: 32px; }
}
@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; }
}
