/* ==========================================================================
   The Pasta Company — design system
   Palette and rhythm are sampled from the brand's reference design; the deep
   green and saffron accents carry the whole identity.

   @font-face rules live in fonts.css, linked ahead of this file in the page
   head. An @import here resolved against the document rather than the
   stylesheet, so the link is explicit.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --green-900: #0c2b21;
  --green-800: #123f30;
  --green-700: #17513c;
  --green-600: #21684d;
  --green-300: #7fae99;
  --green-100: #dfece5;
  --green-50: #eef5f1;

  /* Gold and ink-3 are darkened to clear WCAG AA (4.5:1) as text on cream.
     --gold-500 stays a surface colour and is only ever paired with
     --green-900 text (5.7:1). */
  --gold-600: #9d5a03;
  --gold-500: #e08c07;
  --gold-400: #f2a72a;
  --gold-100: #fdefd6;

  --cream: #fdf9f1;
  --cream-2: #fbf5ea;
  --card: #fbf4e8;
  --ink: #16241e;
  --ink-2: #3d4f47;
  --ink-3: #5f716a;
  --line: rgba(18, 63, 48, 0.14);
  --line-soft: rgba(18, 63, 48, 0.08);
  --white: #ffffff;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --script: "Kaushan Script", "Segoe Script", cursive;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
  --step-1: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-5: clamp(2.8rem, 1.7rem + 5.5vw, 5.6rem);

  --shell: 1240px;
  --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 2.75rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(12, 43, 33, 0.06), 0 2px 8px rgba(12, 43, 33, 0.05);
  --shadow-md: 0 4px 12px rgba(12, 43, 33, 0.07), 0 14px 34px rgba(12, 43, 33, 0.08);
  --shadow-lg: 0 10px 26px rgba(12, 43, 33, 0.1), 0 30px 70px rgba(12, 43, 33, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

ul[class], ol[class] { list-style: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-800);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.65rem;
}

.eyebrow--light { color: var(--gold-400); }

/* Section heading with the brand's short gold rule beneath. */
.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 3rem);
}

.head__title { position: relative; padding-bottom: 0.7rem; }
.head__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 46ch;
}

.script { font-family: var(--script); font-weight: 400; line-height: 1.1; }
.gold { color: var(--gold-600); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--green-800);
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --- layout ------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 1440px; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }

/* --- buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: var(--cream);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82em 1.5em;
  min-height: 46px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

/* An unsized <svg> fills the flex line and blows the button up. */
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn .arr { transition: transform 0.22s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--green-900); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); --btn-bd: var(--green-800); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--green-800); }
.btn--sm { padding: 0.6em 1.15em; min-height: 40px; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- header ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(253, 249, 241, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(12, 43, 33, 0.06); }

.header__bar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.4rem + 1.6vw, 2rem);
  min-height: var(--header-h);
}

/* Wordmark, rebuilt as live type so it stays crisp at every size. */
.logo {
  display: grid;
  gap: 0;
  font-family: var(--serif);
  color: var(--green-800);
  text-decoration: none;
  line-height: 0.82;
  margin-right: auto;
  flex-shrink: 0;
}
.logo__the { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; }
.logo__pasta { font-size: 2.05rem; font-weight: 800; letter-spacing: -0.03em; }
.logo__company {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: flex-start;
  gap: 1px;
}
.logo__tm { font-size: 0.42em; font-family: var(--sans); font-weight: 600; margin-top: 0.32em; }

.nav { display: flex; align-items: center; gap: clamp(0.5rem, 0.2rem + 1.1vw, 1.4rem); }
.nav__link {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.5px;
  border-radius: 99px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--green-800); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: 0.4rem; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green-800);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--green-50); transform: translateY(-1px); }
.icon-btn svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: 2px; right: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

.burger { display: none; }

@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: grid; }
}

/* Mobile navigation drawer */
.mnav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 89;
  background: var(--cream);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.mnav.is-open { opacity: 1; transform: none; visibility: visible; }
.mnav a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--green-800);
  text-decoration: none;
}
.mnav__cta { margin-top: 1.5rem; }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(1rem, -2rem + 4vw, 3rem);
  min-height: min(760px, 88vh);
  padding-block: clamp(2.5rem, 1rem + 5vw, 4.5rem);
}

.hero__copy { position: relative; z-index: 2; max-width: 33rem; }

.hero__title {
  font-family: var(--script);
  font-size: var(--step-5);
  line-height: 1.02;
  color: var(--green-800);
  margin-bottom: 1.1rem;
  letter-spacing: 0;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-500);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.1em;
  height: 0.14em;
  border-radius: 99px;
  background: var(--gold-400);
  opacity: 0.55;
}

.hero__sub {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 34ch;
  margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); }

.trust { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(0.9rem, 0.4rem + 1.6vw, 2rem); }
.trust__item { max-width: 9.5rem; text-align: center; }
.trust__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--green-800);
}
.trust__icon svg { width: 27px; height: 27px; }
.trust__label { font-size: 0.82rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

.hero__media {
  position: relative;
  align-self: stretch;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--green-50);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Fades the photo into the page so the split never reads as a hard seam. */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--cream-2) 0%, rgba(253, 249, 241, 0) 26%);
  pointer-events: none;
}

/* The hand-stuck pack note from the reference design. */
.sticky {
  position: absolute;
  right: clamp(0.75rem, -1rem + 3vw, 2rem);
  top: clamp(1rem, 0.2rem + 3vw, 3rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(118px, 9vw, 168px);
  aspect-ratio: 1;
  padding: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffd977, var(--gold-500) 72%);
  box-shadow: 0 10px 26px rgba(184, 111, 4, 0.32);
  transform: rotate(-7deg);
}
.sticky p {
  font-family: var(--script);
  font-size: clamp(0.82rem, 0.6vw + 0.72rem, 1.12rem);
  line-height: 1.22;
  color: var(--green-900);
  text-align: center;
}

.hero__marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.4rem;
  padding: 1.1rem var(--gutter);
  background: var(--green-800);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero__marquee li { display: flex; align-items: center; gap: 0.55rem; }
.hero__marquee svg { width: 15px; height: 15px; color: var(--gold-400); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { max-width: none; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; }
  .hero__media::before { background: linear-gradient(180deg, var(--cream-2) 0%, rgba(253, 249, 241, 0) 30%); }
  .trust { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .trust { grid-template-columns: 1fr; gap: 1.1rem; }
  .trust__item { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: center; max-width: none; text-align: left; }
  .trust__icon { margin: 0; width: 46px; height: 46px; }
  .sticky { width: 104px; top: 0.6rem; right: 0.6rem; }
}

/* --- product range ------------------------------------------------------ */
.range__tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  margin-bottom: 1.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}
.range__tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover { background: var(--green-50); color: var(--green-800); }
.tab[aria-selected="true"] { background: var(--green-800); color: var(--cream); font-weight: 600; }

.range__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(0.9rem, 0.4rem + 1.4vw, 1.5rem);
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pcard.is-hidden { display: none; }

.pcard__shape {
  display: grid;
  place-items: center;
  padding: 1.35rem 1rem 0.75rem;
  background: linear-gradient(180deg, #fdf6e9 0%, var(--card) 100%);
}
.pcard__shape img { width: 100%; max-width: 210px; height: 96px; object-fit: contain; }

.pcard__body { padding: 0.4rem 1.15rem 1.25rem; text-align: center; }
.pcard__title { font-size: var(--step-1); margin-bottom: 0.35rem; }
/* Reserve exactly two lines (1.65 line-height) so a one-line blurb does not
   pull its card's Add to Cart button above the rest of the row. */
.pcard__blurb { font-size: 0.86rem; color: var(--ink-2); margin-bottom: 1rem; min-height: 3.3em; }

/* Size picker: three pack renders plus their labels. */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 1rem; }
.size {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.2rem 0.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.size:hover { background: var(--white); transform: translateY(-2px); }
.size[aria-pressed="true"] { border-color: var(--green-800); background: var(--white); }
.size img { height: 66px; width: auto; max-width: 100%; object-fit: contain; }
.size__label { font-size: 0.74rem; font-weight: 600; color: var(--ink); }
.size__price { font-size: 0.76rem; font-weight: 600; color: var(--green-700); }

.pcard__add { margin-top: auto; }

/* --- trust strip -------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.25rem, 0.6rem + 2vw, 2.5rem);
  padding: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--green-800);
  color: var(--cream);
}
.pillar { display: grid; gap: 0.5rem; }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(253, 249, 241, 0.12);
  color: var(--gold-400);
}
.pillar__icon svg { width: 25px; height: 25px; }
.pillar h3 { color: var(--cream); font-size: var(--step-1); }
.pillar p { color: rgba(253, 249, 241, 0.82); font-size: 0.92rem; }

/* --- recipes band ------------------------------------------------------- */
.recipes-band { background: var(--green-800); color: var(--cream); position: relative; overflow: hidden; }
.recipes-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 12% 10%, rgba(224, 140, 7, 0.16), transparent 70%),
    radial-gradient(50% 70% at 90% 90%, rgba(224, 140, 7, 0.1), transparent 70%);
  pointer-events: none;
}
.recipes-band .shell { position: relative; }

.recipes-band .head__title::after { background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); }
.recipes-band h2 { color: var(--cream); }
.recipes-band .lede { color: rgba(253, 249, 241, 0.78); }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(0.9rem, 0.4rem + 1.4vw, 1.5rem);
}

.rcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink-2);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.rcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.rcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-50); }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.rcard:hover .rcard__media img { transform: scale(1.05); }
.rcard__kicker {
  position: absolute;
  left: 0.7rem; top: 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 99px;
  background: rgba(12, 43, 33, 0.78);
  backdrop-filter: blur(6px);
  color: var(--gold-400);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rcard__body { padding: 1rem 1.15rem 1.35rem; display: flex; align-items: center; gap: 0.75rem; }
.rcard__body h3 { font-size: 1.12rem; line-height: 1.22; margin-right: auto; }
.rcard__go {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--cream);
}
.rcard__go svg { width: 17px; height: 17px; }

.rcard__meta {
  display: flex;
  gap: 1rem;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.78rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
  margin: 0 1.15rem;
  padding-inline: 0;
  padding-bottom: 1rem;
}
.rcard__meta li { display: flex; align-items: center; gap: 0.35rem; }
.rcard__meta svg { width: 14px; height: 14px; color: var(--gold-600); }

/* --- trade -------------------------------------------------------------- */
.trade-grid { display: grid; gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem); }
.trade-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .trade-grid--2 { grid-template-columns: 1fr; } }

.tradecard {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.tradecard__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; gap: 1.1rem; }
/* The trade headings run long, so they sit a step below the page h2 scale. */
.tradecard__body h2 { font-size: var(--step-2); line-height: 1.16; }
.tradecard--dark { background: var(--green-800); border-color: transparent; }
.tradecard--dark h2, .tradecard--dark h3 { color: var(--cream); }
/* The deep gold is tuned for cream; on the dark panel it needs the light step. */
.tradecard--dark .gold { color: var(--gold-400); }
.tradecard--dark .trade-list__text { color: rgba(253, 249, 241, 0.88); }
.tradecard--dark .trade-list__detail { color: rgba(253, 249, 241, 0.62); }
.tradecard__media { position: relative; min-height: 240px; }
.tradecard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tradecard__cta { margin-top: auto; align-self: flex-start; }

@media (max-width: 780px) {
  .tradecard { grid-template-columns: 1fr; }
  .tradecard__media { aspect-ratio: 16 / 9; min-height: 0; order: -1; }
}

.trade-list { display: grid; gap: 0.85rem; }
.trade-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.trade-list__tick {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--green-900);
}
.trade-list__tick svg { width: 14px; height: 14px; }
.trade-list__text { font-weight: 500; color: var(--ink); }
.trade-list__detail { display: block; font-size: 0.86rem; color: var(--ink-3); }

/* --- split feature (about / cooking guide) ------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 0.5rem + 3.5vw, 4rem);
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.stat__n { font-family: var(--serif); font-size: var(--step-3); color: var(--green-800); line-height: 1; }
.stat__l { font-size: 0.84rem; color: var(--ink-3); margin-top: 0.35rem; }

/* --- cook guide --------------------------------------------------------- */
/* Scrolls horizontally on narrow screens rather than crushing the columns. */
.cook-table { width: 100%; min-width: 540px; border-collapse: collapse; margin-top: 1.5rem; }
.cook-table th, .cook-table td { text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.cook-table th { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.cook-table td { color: var(--ink); }
.cook-table td:first-child { font-family: var(--serif); font-weight: 600; color: var(--green-800); }
.cook-scroll {
  overflow-x: auto;
  /* Hint that the table continues when it scrolls. */
  background:
    linear-gradient(90deg, var(--cream) 30%, rgba(253, 249, 241, 0)) left / 36px 100% no-repeat local,
    linear-gradient(90deg, rgba(253, 249, 241, 0), var(--cream) 70%) right / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(12, 43, 33, 0.14), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(12, 43, 33, 0.14), transparent) right / 12px 100% no-repeat scroll;
}

/* --- forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field > label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field__hint { font-size: 0.8rem; color: var(--ink-3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(33, 104, 77, 0.16);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
  border-color: #a8341f;
  box-shadow: 0 0 0 3px rgba(168, 52, 31, 0.13);
}

.form__note { font-size: 0.82rem; color: var(--ink-3); }
.form-status {
  padding: 0.85rem 1.05rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-300);
}
.form-status[hidden] { display: none; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.88rem; }
.checkbox input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--green-700); }

/* --- panels ------------------------------------------------------------- */
.panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.panel--flush { padding: 0; overflow: hidden; }

.contact-list { display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: center; }
.contact-list svg { width: 20px; height: 20px; color: var(--green-700); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.faq { display: grid; gap: 0.7rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  padding: 0.35rem 1.15rem;
}
.faq summary {
  padding: 0.85rem 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--green-800);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 11px; height: 11px;
  border-right: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600);
  transform: rotate(45deg);
  transition: transform 0.24s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 1rem; }

/* --- recipe detail ------------------------------------------------------ */
.recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  align-items: center;
}
@media (max-width: 880px) { .recipe-hero { grid-template-columns: 1fr; } }
.recipe-hero__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.recipe-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Buy panel beside a recipe */
.panel--buy { margin-top: 1.75rem; padding: 1.35rem; }
.panel--buy__row { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; margin-bottom: 1.1rem; }
.panel--buy__art { width: 96px; height: 56px; object-fit: contain; }
.panel--buy__name { font-size: var(--step-1); }
.panel--buy__note { font-size: 0.86rem; color: var(--ink-3); }
.panel--buy .sizes { margin-bottom: 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 1.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 99px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 500;
}
.chip svg { width: 14px; height: 14px; color: var(--gold-600); }

.recipe-cols { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .recipe-cols { grid-template-columns: 1fr; } }

.ingredients { display: grid; gap: 0.1rem; }
.ingredients li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}
.ingredients b { color: var(--green-800); font-weight: 600; }

.method { display: grid; gap: 1.1rem; counter-reset: step; }
.method li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  font-size: 0.98rem;
  line-height: 1.7;
}
.method li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
}

.tips li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.tips li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* --- cart drawer -------------------------------------------------------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 43, 33, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 121;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  box-shadow: -20px 0 60px rgba(12, 43, 33, 0.2);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: var(--step-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.1rem 1.35rem; }
.drawer__foot { padding: 1.15rem 1.35rem 1.5rem; border-top: 1px solid var(--line); background: var(--white); }

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-line img { width: 58px; height: 72px; object-fit: contain; }
.cart-line__name { font-weight: 600; color: var(--ink); font-size: 0.94rem; }
.cart-line__meta { font-size: 0.8rem; color: var(--ink-3); }
.cart-line__price { font-weight: 600; color: var(--green-800); white-space: nowrap; font-size: 0.94rem; }

.stepper { display: inline-flex; align-items: center; gap: 0.15rem; margin-top: 0.4rem; }
.stepper button {
  width: 27px; height: 27px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-800);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.stepper button:hover { background: var(--green-50); border-color: var(--green-600); }
.stepper output { min-width: 30px; text-align: center; font-size: 0.92rem; font-weight: 600; color: var(--ink); }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3); }
.cart-empty svg { width: 62px; height: 62px; margin: 0 auto 1rem; color: var(--green-100); }

.drawer__total { display: flex; justify-content: space-between; font-weight: 700; color: var(--green-800); font-size: 1.1rem; margin-bottom: 0.3rem; }
.drawer__fine { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 1rem; }

/* --- search ------------------------------------------------------------- */
.search { display: grid; gap: 1rem; }
.search__results { display: grid; gap: 0.35rem; }
.search__hit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.18s var(--ease);
}
.search__hit:hover, .search__hit:focus-visible { background: var(--green-50); }
.search__hit img { width: 44px; height: 54px; object-fit: contain; }
.search__hit small { display: block; color: var(--ink-3); font-size: 0.78rem; }
.search__empty { padding: 1.25rem 0; color: var(--ink-3); font-size: 0.9rem; }

/* --- toast -------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 140;
  transform: translate(-50%, 130%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: transform 0.34s var(--ease), opacity 0.2s var(--ease), visibility 0.2s;
  max-width: calc(100% - 2rem);
  opacity: 0;
  visibility: hidden;
}
.toast.is-up { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }

/* --- footer ------------------------------------------------------------- */
.footer { background: var(--cream-2); border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr 0.9fr;
  gap: clamp(1.5rem, 0.8rem + 2vw, 2.75rem);
  padding-bottom: clamp(2rem, 1.2rem + 2.4vw, 3rem);
}
@media (max-width: 1080px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__title { font-size: 0.95rem; font-weight: 600; color: var(--green-800); margin-bottom: 0.9rem; }
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { color: var(--ink-2); font-size: 0.9rem; text-decoration: none; }
.footer__links a:hover { color: var(--green-700); text-decoration: underline; }
.footer__col > p { font-size: 0.9rem; color: var(--ink-2); }
.footer__brand p { font-size: 0.88rem; color: var(--ink-3); margin-top: 1rem; max-width: 26ch; }

.parent { display: grid; gap: 0.45rem; justify-items: start; }
.parent__label { font-size: 0.78rem; font-weight: 500; color: var(--ink-2); }
.parent img { width: 150px; height: auto; }
.parent small { font-size: 0.6rem; letter-spacing: 0.09em; color: var(--ink-3); text-transform: uppercase; }

.socials { display: flex; gap: 0.55rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-800);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover { background: var(--green-800); color: var(--cream); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-3);
}
.footer__base nav { display: flex; gap: 1.1rem; }
.footer__base a { color: var(--ink-3); text-decoration: none; }
.footer__base a:hover { color: var(--green-700); text-decoration: underline; }

/* --- page head ---------------------------------------------------------- */
.pagehead {
  padding-block: clamp(2.25rem, 1.4rem + 3vw, 4rem) clamp(1.75rem, 1rem + 2.4vw, 3rem);
  background: linear-gradient(180deg, var(--green-50), var(--cream));
  border-bottom: 1px solid var(--line-soft);
}
.pagehead .lede { margin-top: 1rem; }

/* --- misc --------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }

.note {
  display: flex;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--gold-100);
  border: 1px solid rgba(184, 111, 4, 0.28);
  color: #6b4206;
  font-size: 0.87rem;
}
.note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-3); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumb span { color: var(--green-700); }

@media print {
  .header, .footer, .drawer, .drawer-scrim, .hero__cta, .pcard__add { display: none !important; }
  body { background: #fff; }
}
