/* Emma: "Face plate". Built from the 2017 Emma brand guide.
   Red #c72127 (with the guide's radial gradient), bright white and soft grey, modern uppercase sans
   for headings (Jost, a Futura revival), and the packaging's signature: a white face plate with a
   black border and a slight tilt, set in a retro geometric face (Josefin Sans) over a condensed
   secondary line (Barlow Condensed). The green "Product of" stamp marks country of origin only. */

:root {
  --white: #fff;
  --mist: #f2f2f2;
  --mist-2: #e7e6e3;
  --ink: #1d1d1b;
  --ink-soft: #5a5955;
  --line: #dddcd8;
  --red: #c72127;
  --red-hot: #e2252b;
  --red-deep: #9f171d;
  --green: #36964a;
  --red-gradient: radial-gradient(120% 150% at 42% 38%, #e2252b 0%, #c72127 48%, #9f171d 100%);

  --sans: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --plate: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --tilt: -4deg; /* the packaging face plate's tilt, measured from the brand guide artwork */
  --header-h: 88px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-weight: 700; line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 16px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ type */
.kicker { font: 600 .8rem/1.3 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: block; }
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .96; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: .03em; }
.h1 .red, .h2 .red { color: var(--red); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 38em; }
.muted { color: var(--ink-soft); }
.reg { font-size: .45em; vertical-align: .9em; letter-spacing: 0; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--red); --fg: #fff; --bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .7em 1.5em;
  border: 2px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { --bg: var(--red-deep); --bd: var(--red-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --bd: var(--ink); color: #fff; }
.btn--white { --bg: #fff; --fg: var(--red); --bd: #fff; }
.btn--white:hover { --bg: var(--ink); --bd: var(--ink); color: #fff; }
.btn--small { min-height: 42px; padding: .55em 1.1em; font-size: .82rem; }
.link-arrow { font: 600 .9rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--red); display: inline-flex; gap: .5em; align-items: center; }
.link-arrow:hover { color: var(--red-deep); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ the face plate */
.plate {
  position: relative; display: inline-block; max-width: 100%; padding: 14px 20px 12px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); outline: 5px solid #fff; transform: rotate(var(--tilt));
  box-shadow: 0 1px 0 5px #fff, 6px 10px 18px -4px rgba(0, 0, 0, .32);
}
.plate__title { display: block; font: 700 clamp(1.15rem, 2.2vw, 1.6rem)/1.08 var(--plate); letter-spacing: .05em; text-transform: uppercase; margin: 0; color: var(--ink); }
.plate__sub { display: flex; gap: 14px; margin-top: 8px; padding-top: 7px; border-top: 1.5px solid var(--ink); font: 600 1rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.plate__sub span + span { padding-left: 14px; border-left: 1.5px solid var(--ink); }
.plate--big .plate__title { font-size: clamp(1.6rem, 3.8vw, 2.9rem); }
.plate--big { padding: 18px 26px 14px; }

/* the green "Product of" stamp (country of origin only, per the brand guide) */
.stamp { width: 92px; height: 92px; color: var(--green); flex: none; }
.stamp svg { width: 100%; height: 100%; }
.stamp text { font: 700 9.4px var(--cond); letter-spacing: .14em; fill: #fff; text-transform: uppercase; }
.stamp .stamp__country { font: 700 15px var(--plate); letter-spacing: .04em; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); padding-block: 10px; }
.brand { flex: none; line-height: 0; }
.brand img { width: auto; height: 62px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav__list a { display: block; padding: 8px 0; font: 600 .9rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav__list a:hover { color: var(--red); }
.nav__list a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.header-cta { flex: none; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0; cursor: pointer; font: 600 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.menu { position: fixed; inset: calc(var(--header-h) + 1px) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 18px 0 40px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.menu-open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.menu__list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font: 700 1.6rem/1.1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.menu__list a::after { content: "→"; color: var(--red); font-weight: 400; }
.menu__list a[aria-current="page"] { color: var(--red); }
.menu__foot { margin-top: 28px; }
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .menu { display: none; } }
@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .brand img { height: 50px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.section--mist { background: var(--mist); }
.section--red { background: var(--red-gradient); color: #fff; }
.section--red h2, .section--red h3 { color: #fff; }
.section--red .kicker { color: #ffd9d3; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; margin-bottom: clamp(30px, 4.5vw, 52px); }
.section-head > div { max-width: 46rem; }
.section-head .lead { margin-top: 14px; }

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(30px, 4vw, 52px); }
.page-head .lead { margin-top: 18px; }
.crumbs { font: 600 .82rem/1.4 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 .7em; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(36px, 5vw, 70px) clamp(64px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .lead { margin-top: 22px; }
.hero .actions { margin-top: 32px; }
.hero__media { position: relative; padding-bottom: 46px; }
.hero__photo { aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; background: var(--mist); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__plate { position: absolute; left: -4%; bottom: 0; max-width: 72%; text-decoration: none; transition: transform .25s ease; z-index: 2; }
.hero__plate:hover { transform: translateY(-3px); }
.hero__plate .plate__title { font-size: clamp(1.35rem, 2.5vw, 2.05rem); }
.hero__pack { position: absolute; right: -4%; bottom: -6px; width: 30%; transform: rotate(7deg); filter: drop-shadow(8px 14px 14px rgba(0, 0, 0, .3)); z-index: 3; }

/* ------------------------------------------------------------------ recipe cards */
.recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 32px); }
.recipe-card { position: relative; }
.recipe-card a { display: block; color: inherit; text-decoration: none; }
.recipe-card__photo { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--mist); }
.recipe-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card a:hover .recipe-card__photo img { transform: scale(1.04); }
.recipe-card .plate { margin: -34px 0 0 14px; padding: 10px 14px 9px; max-width: calc(100% - 28px); transition: transform .25s ease; }
.recipe-card .plate__title { font-size: 1.06rem; }
.recipe-card .plate__sub { font-size: .9rem; margin-top: 6px; padding-top: 6px; }
.recipe-card a:hover .plate { transform: rotate(-2deg) translateY(-2px); }
.recipe-card__uses { margin: 12px 4px 0; font-size: .92rem; color: var(--ink-soft); }
.recipes--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ product categories */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px 18px; background: #fff; border-radius: 10px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35); color: var(--ink); }
.cat img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(4px 10px 10px rgba(0, 0, 0, .18)); }
.cat .plate { padding: 7px 11px 6px; outline-width: 3px; box-shadow: 4px 6px 12px -4px rgba(0, 0, 0, .3); }
.cat .plate__title { font-size: .92rem; text-align: center; }
.cat:nth-child(even) .plate { --tilt: 3deg; }

/* ------------------------------------------------------------------ story band */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.story__photo { border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 4; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story .prose { margin-top: 20px; }
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.collection { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; isolation: isolate; }
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.collection::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .62)); }
.collection:hover img { transform: scale(1.05); }
.collection__text { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.collection__text h3 { color: #fff; font-size: 1.5rem; }
.collection__text p { margin-top: 6px; font: 600 .9rem/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: #ffe2dd; }

/* ------------------------------------------------------------------ recipe page */
.recipe-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.recipe-hero__photo { position: relative; border-radius: 10px; overflow: hidden; background: var(--mist); }
.recipe-hero__photo img { width: 100%; height: auto; }
.recipe-hero .plate { margin-bottom: 26px; }
.recipe-intro { display: grid; gap: 1em; color: var(--ink-soft); font-size: 1.1rem; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font: 600 1rem/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.recipe-meta b { color: var(--red); font-weight: 700; }
.recipe-body { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ingredients { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: var(--mist); border-radius: 10px; }
.ingredients h2, .directions h2 { font-size: 1.5rem; margin-bottom: 18px; }
.ingredients h3 { font: 700 .95rem/1.2 var(--cond); letter-spacing: .14em; color: var(--red); margin: 22px 0 8px; }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding: 9px 0; border-bottom: 1px solid var(--mist-2); display: flex; gap: 10px; align-items: baseline; }
.ingredients li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transform: translateY(-2px); }
.ingredients li.is-emma::before { background: var(--red); }
.ingredients li a { color: var(--ink); text-decoration-color: rgba(199, 33, 39, .5); }
.ingredients li a:hover { color: var(--red); }
.ingredients__note { margin-top: 16px; font-size: .85rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.ingredients__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.directions ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.directions li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 1.08rem; }
.directions li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red-gradient); color: #fff; font: 700 1.1rem/1 var(--sans); }
.uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.use { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font: 600 .82rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.use img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(3px 8px 8px rgba(0, 0, 0, .18)); }
.use:hover { border-color: var(--red); color: var(--red); }

/* ------------------------------------------------------------------ recipe finder */
.finder { display: grid; gap: 18px; padding: 22px; background: var(--mist); border-radius: 10px; margin-bottom: 36px; }
.finder__search { display: flex; gap: 10px; align-items: center; }
.finder__search input { flex: 1; min-height: 50px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 1.05rem; }
.finder__search input:focus { outline: 3px solid rgba(199, 33, 39, .35); outline-offset: 0; border-color: var(--red); }
.finder fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.finder legend { float: left; margin-right: 8px; font: 700 .85rem/36px var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: .45em; min-height: 36px; padding: .3em .9em; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font: 600 .82rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.opt small { font: 600 .8rem/1 var(--cond); color: var(--ink-soft); }
.opt input:hover + span { border-color: var(--red); color: var(--red); }
.opt input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.opt input:checked + span small { color: #ffd9d3; }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.opt input:disabled + span { opacity: .4; cursor: default; }
.finder__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 .95rem/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.finder__clear { background: none; border: 0; padding: 4px 0; color: var(--red); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.empty { padding: 48px 24px; text-align: center; border: 2px dashed var(--line); border-radius: 10px; color: var(--ink-soft); }
.empty p { margin-bottom: 14px; }

/* ------------------------------------------------------------------ product pages */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.cat-nav a { padding: .45em 1em; border: 1.5px solid var(--line); border-radius: 999px; font: 600 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.cat-nav a:hover { border-color: var(--red); color: var(--red); }
.cat-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-list { display: grid; gap: clamp(20px, 3vw, 32px); }
.product { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; padding: clamp(22px, 3.4vw, 40px); background: var(--mist); border-radius: 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.product__media { position: relative; }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(8px 16px 16px rgba(0, 0, 0, .22)); }
.product__media .stamp { position: absolute; left: -6px; bottom: -6px; transform: rotate(-12deg); }
.product .plate { margin-bottom: 20px; }
.product__intro { color: var(--ink-soft); max-width: 40em; }
.product details { margin-top: 14px; border-top: 1.5px solid var(--mist-2); }
.product details:last-of-type { border-bottom: 1.5px solid var(--mist-2); }
.product summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; font: 700 .95rem/1.2 var(--cond); letter-spacing: .16em; text-transform: uppercase; }
.product summary::-webkit-details-marker { display: none; }
.product summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--red); transition: transform .2s; }
.product details[open] summary::after { transform: rotate(45deg); }
.product details > div { padding: 0 2px 18px; }
.product details img { background: #fff; border: 1px solid var(--line); border-radius: 4px; max-width: 260px; }
.product__sku { margin-top: 14px; font: 600 .85rem/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ------------------------------------------------------------------ prose */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2:not(.h2) { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }
.prose blockquote { padding: 6px 0 6px 22px; border-left: 4px solid var(--red); font-size: 1.3rem; line-height: 1.45; font-style: italic; }
.prose figure img { border-radius: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.photo { border-radius: 10px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* stories */
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.story-card a { display: block; color: inherit; text-decoration: none; }
.story-card__photo { aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--mist); }
.story-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story-card a:hover img { transform: scale(1.04); }
.story-card time, .article time { display: block; margin: 14px 0 6px; font: 600 .85rem/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.story-card h2 { font-size: 1.3rem; }
.story-card a:hover h2 { color: var(--red); }
.story-card p { margin-top: 8px; color: var(--ink-soft); font-size: .98rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-card { display: grid; gap: 22px; }
.contact-card h2 { font-size: 1rem; letter-spacing: .14em; color: var(--red); margin-bottom: 6px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: clamp(22px, 4vw, 40px); background: var(--mist); border-radius: 12px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 .9rem/1.3 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.field label small { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; background: #fff; border: 1.5px solid #bcbab4; border-radius: 6px; font-size: 1rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(199, 33, 39, .3); outline-offset: 0; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red); font-size: .9rem; font-weight: 600; }
.field__error:empty { display: none; }
.form__hp { position: absolute; left: -9999px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__foot p { font-size: .9rem; color: var(--ink-soft); flex: 1 1 260px; }
.form__status { grid-column: 1 / -1; padding: 14px 16px; background: #fff; border-left: 4px solid var(--red); border-radius: 2px; }

/* preview placeholders: content the client must confirm before launch */
.tbc { outline: 2px dashed rgba(199, 33, 39, .55); outline-offset: 6px; border-radius: 2px; }
.tbc-note { display: block; margin-bottom: 8px; font: 600 .8rem/1.4 var(--cond); letter-spacing: .06em; color: var(--red); text-transform: none; }
.tbc-note::before { content: "TO CONFIRM · "; font-weight: 700; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #d9d8d4; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb4ab; text-decoration: underline; }
.footer__stripe { height: 10px; background: var(--red-gradient); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 60px 44px; }
.footer__brand img { height: 78px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 26em; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; }
.footer__social a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__col h2 { font: 700 .85rem/1.3 var(--cond); letter-spacing: .2em; color: #ff9d92; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li + li { margin-top: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; color: #a9a8a3; }

/* ------------------------------------------------------------------ 404 */
.lost { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.lost .plate { margin-bottom: 34px; }
.lost .lead { margin: 16px auto 0; }
.lost .actions { justify-content: center; margin-top: 28px; }

/* ------------------------------------------------------------------ utilities (no inline styles: the CSP blocks them) */
.u-mt10 { margin-top: 10px; }
.u-mt20 { margin-top: 20px; }
.u-mt28 { margin-top: 28px; }
.u-mt40 { margin-top: 40px; }
.u-pt0 { padding-top: 0 !important; }
.u-center { text-align: center; }

/* ------------------------------------------------------------------ reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recipes--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__grid, .story, .split, .recipe-hero, .recipe-body, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .recipes, .story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collections { grid-template-columns: minmax(0, 1fr); }
  .collection { aspect-ratio: 16 / 9; }
  .ingredients { position: static; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__media { max-width: 300px; margin-inline: auto; }
  .hero__media { margin-top: 8px; }
}
@media (max-width: 560px) {
  .recipes, .recipes--four, .story-list { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { padding: 16px 10px 14px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__plate { left: -2%; max-width: 74%; }
  .hero__pack { width: 32%; right: -2%; }
  .plate--big .plate__title { font-size: 1.5rem; }
  .finder { padding: 16px; }
  .directions li { grid-template-columns: 40px minmax(0, 1fr); font-size: 1.02rem; }
  .directions li::before { width: 36px; height: 36px; font-size: 1rem; }
  .ingredients { padding: 20px; }
}

@media print {
  .site-header, .site-footer, .finder, .actions, .uses-section, .more-section { display: none !important; }
  .recipe-body { grid-template-columns: 1fr 1.4fr; }
  .ingredients { position: static; background: none; padding: 0; }
  .plate { transform: none; box-shadow: none; }
}
.stamp--wax { filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, .3)); }
.stamp--wax circle { stroke: rgba(255, 230, 220, .55); }
.stamp--wax text { fill: #f4dcd3; }
