/* ==========================================================================
   Усадьба Деревягино — brand site
   iPhone-first: base styles are for a ~390px screen, larger screens add on top.
   Palette and type follow the brand used on вкусы-калуги.рф
   ========================================================================== */

:root {
  --rind: #4a3223;
  --cellar: #2b1d14;
  --curd: #f4ecdf;
  --linen: #e7dac5;
  --brass: #a8834f;
  --rust: #9b5536;
  --meadow: #6d7448;

  --ink: var(--rind);
  --ink-soft: rgba(74, 50, 35, .7);
  --on-dark: var(--curd);
  --on-dark-soft: rgba(244, 236, 223, .64);
  --hair: rgba(74, 50, 35, .16);
  --hair-dark: rgba(244, 236, 223, .14);

  --serif: "Prata", "Cormorant Garamond", Georgia, serif;
  --hand: "Great Vibes", "Prata", cursive;
  --sans: "Golos Text", -apple-system, system-ui, "Segoe UI", Arial, sans-serif;
  --text: "Lora", "Georgia", serif;
  --fs-hero: clamp(2.8rem, 12.4vw, 5.4rem);
  --fs-h2: clamp(2.05rem, 8.4vw, 3.1rem);
  --fs-h3: clamp(1.3rem, 4.8vw, 1.6rem);
  --fs-lead: clamp(1.06rem, 4.3vw, 1.22rem);

  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: calc(20px + max(var(--safe-l), var(--safe-r)));
  --maxw: 1320px;
  --section-y: clamp(64px, 7vw, 104px);
  --radius: 20px;
  --card-r: 14px;
  --wedge: var(--card-r);
  --wedge-r: var(--card-r);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .2 0 0 0 0 .14 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 44V27C70 15 150 9 240 13s150 17 250 17 170-21 290-21 160 19 270 19 150-15 240-17 110 6 150 11V44z'/%3E%3C/svg%3E");
}
@media (min-width: 768px) { :root { --gutter: clamp(32px, 4vw, 56px); --radius: 24px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* reading text is Lora; controls, navigation and small labels stay in the sans for legibility */
.header, .menu, .btn, .chip, .chips, .crumbs, .footer, .kpi__label, .ledger__label, .post-card__meta, .post-card__tag, .post-cta__kicker, .post-meta, .recipe__meta, .shelf__note, .cycle, .facts, .rail-dots, button, input, select, textarea, label { font-family: var(--sans); }
.footer .hand { font-family: var(--hand); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font: 400 1.0625rem/1.62 var(--text); color: var(--ink); background: var(--curd);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; background: var(--grain); opacity: .5; mix-blend-mode: multiply; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--rind); color: var(--curd); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.ext { width: .8em; height: .8em; flex: none; }

/* ---------- type ---------- */
.display, .h2, .h3 { font-family: var(--serif); font-weight: 500; }
.display { font-size: var(--fs-hero); line-height: .92; letter-spacing: -.015em; }
/* signature script (Great Vibes): hero name, about title, quote sign-off, footer sign-off. Nowhere else. */
.hand { font-family: var(--hand); font-style: normal; font-weight: 400; color: var(--brass); letter-spacing: 0; }
.display .hand { font-size: 1.08em; line-height: .8; letter-spacing: 0; }
.section--dark .hand, .section--rind .hand, .footer .hand { color: #d4b27c; }
.hero__title .line:last-child { padding-bottom: .3em; margin-bottom: -.3em; }
.h2 { font-size: var(--fs-h2); line-height: .98; letter-spacing: -.012em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.08; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 32em; text-wrap: pretty; }
.muted { color: var(--ink-soft); }
.soft { color: var(--on-dark-soft); }
.prose { max-width: 34em; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--cellar); color: var(--on-dark); }
.section--linen { background: var(--linen); }
.section--rind { background: var(--rind); color: var(--on-dark); }
/* section edge: one soft, uneven rind line across the width, mirrored on every other section */
.wave-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -31px; height: 32px; background: inherit; pointer-events: none;
  -webkit-mask: var(--wave) no-repeat center top / max(100%, 980px) 100%; mask: var(--wave) no-repeat center top / max(100%, 980px) 100%;
}
.wave-top:nth-of-type(even)::before { transform: scaleX(-1); }
.head { display: grid; gap: 12px; margin-bottom: clamp(28px, 3.5vw, 44px); }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--rind); --fg: var(--curd);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 24px; border-radius: 999px; font: 500 1rem/1 var(--sans);
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease-out), transform .2s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brass); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover::before { transform: none; } .btn--ghost:hover, .btn--light:hover { color: var(--curd); } }
.btn:active { transform: scale(.97); }
.btn--ghost { --bg: transparent; --fg: var(--rind); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--light { --bg: var(--curd); --fg: var(--rind); }
.btn--ghost-light { --bg: transparent; --fg: var(--curd); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 0 1px; background-position: 100% 100%; } }

/* ---------- icons (one line set, sprite in the page chrome) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- logo (one PNG recoloured through a mask) ---------- */
.logo { display: block; aspect-ratio: 900 / 579; background: currentColor; -webkit-mask: url("/img/logo-mask.png") center / contain no-repeat; mask: url("/img/logo-mask.png") center / contain no-repeat; }

/* ==========================================================================
   Header + menu
   ========================================================================== */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s; }
.header__inner { display: flex; align-items: center; gap: 12px; height: 64px; transition: height .4s var(--ease-out); }
.header__logo { width: 70px; color: var(--rind); flex: none; transition: width .4s var(--ease-out), color .4s; }
.header__nav { display: none; margin-inline: auto; gap: 36px; font-weight: 400; font-size: .95rem; letter-spacing: .01em; }
.header__nav a { position: relative; padding: 6px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header.is-scrolled { background: rgba(244, 236, 223, .92); backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); box-shadow: 0 1px 0 var(--hair); }

.burger { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--rind); color: var(--curd); }
.burger span { position: relative; width: 16px; height: 1.5px; background: currentColor; transition: background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor; transition: transform .45s var(--ease-out); }
.burger span::before { transform: translateY(-5px); }
.burger span::after { transform: translateY(5px); }
.menu-open .burger { background: var(--curd); color: var(--rind); }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: rotate(45deg); }
.menu-open .burger span::after { transform: rotate(-45deg); }
.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .header__logo { color: var(--curd); }
.menu-open .header__shop { opacity: 0; pointer-events: none; }

@media (min-width: 1060px) {
  .header__inner { height: 84px; gap: 28px; }
  .header__logo { width: 88px; }
  .header.is-scrolled .header__inner { height: 68px; }
  .header.is-scrolled .header__logo { width: 72px; }
  .header__nav { display: flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--cellar); color: var(--curd);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + var(--safe-b));
  clip-path: circle(0 at calc(100% - var(--gutter) - 22px) calc(32px + env(safe-area-inset-top, 0px)));
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s; visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 32px); visibility: visible; transition: clip-path .7s var(--ease-in-out); }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: center; justify-content: space-between; font: 500 clamp(2.5rem, 12vw, 3.6rem)/1.15 var(--serif); padding-block: 4px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu nav a .ext { width: .45em; height: .45em; opacity: .6; }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .06s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .12s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .18s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .24s; }
.menu nav a:first-child { transition-delay: 0s; }
.menu-open .menu nav a { transition-delay: calc(.16s + var(--i, 0) * .06s); }
.menu__foot { display: grid; gap: 10px; color: var(--on-dark-soft); font-size: .95rem; }
.menu__foot a { color: var(--curd); font-size: 1.2rem; font-weight: 500; }
html.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: calc(92px + env(safe-area-inset-top, 0px)); overflow: hidden; background: linear-gradient(var(--curd) 62%, var(--linen)); }
.hero__grid { display: grid; gap: 22px; }
/* lines rise from below: clip only the bottom edge while they move, so script swashes are never cut */
.hero__title .line { display: block; clip-path: inset(-.6em -1em 0 -1em); padding-bottom: .07em; margin-bottom: -.07em; }
.is-loaded .hero__title .line { clip-path: inset(-.6em -1em -.6em -1em); transition: clip-path 0s 1.4s; }
.hero__title .line > span { display: block; }
.hero__aside { display: grid; gap: 22px; }
.hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .hero__ctas { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .hero { padding-top: 128px; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 64px; }
  .hero__title { font-size: clamp(3.4rem, 4.9vw, 5.3rem); }
  .hero__aside { padding-bottom: 10px; }
}

.plate { position: relative; margin: 24px calc(var(--gutter) * -1) 0; aspect-ratio: 1 / 1.02; }
.plate__ink {
  position: absolute; inset: 0; background: var(--rind);
  -webkit-mask: url("/img/engraving-v4-1100.png") 97% 70% / cover no-repeat; mask: url("/img/engraving-v4-1100.png") 97% 70% / cover no-repeat;
}
.plate::before { content: ""; position: absolute; inset: auto 0 0; height: 16%; z-index: 1; background: linear-gradient(rgba(231, 218, 197, 0), var(--linen)); pointer-events: none; }
.plate::after { content: ""; position: absolute; inset: 0 0 auto; height: 30%; background: linear-gradient(var(--curd), rgba(244, 236, 223, 0)); pointer-events: none; }
@media (min-width: 701px) {
  .plate { aspect-ratio: 16 / 6.4; margin-top: 32px; }
  .plate__ink { -webkit-mask-image: url("/img/engraving-v4-1920.png"); mask-image: url("/img/engraving-v4-1920.png"); -webkit-mask-position: center 74%; mask-position: center 74%; }
}

/* load sequence */
.js .hero__title .line > span { transform: translateY(108%); }
.js .hero__aside > * { opacity: 0; transform: translateY(14px); }
.js .plate__ink { opacity: 0; }
.is-loaded .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero__aside > * { opacity: 1; transform: none; transition: opacity .8s .5s, transform 1s .5s var(--ease-out); }
.is-loaded .hero__aside > *:nth-child(2) { transition-delay: .62s; }
.plate-ready .plate__ink { opacity: 1; transition: opacity .9s ease; }

/* ==========================================================================
   Rails: native swipe on phones, grid on desktop
   ========================================================================== */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 360px); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.rail-dots span { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .25; transition: width .4s var(--ease-out), opacity .3s; }
.rail-dots span.is-on { width: 20px; opacity: .9; }
@media (min-width: 900px) {
  .rail--grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .rail--grid + .rail-dots { display: none; }
  .rail--grid > :nth-child(n+5) { display: none; }
}

/* ==========================================================================
   Recipe cards
   ========================================================================== */
.recipe { position: relative; display: block; border-radius: var(--wedge); overflow: hidden; aspect-ratio: 4 / 5.2; color: var(--curd); background: var(--rind); isolation: isolate; text-align: left; width: 100%; transform: translateZ(0); transition: transform .25s var(--ease-out); }
.recipe:active { transform: scale(.98); }
.recipe__media { position: absolute; inset: 0; z-index: -1; }
.recipe__media img { width: 100%; height: 100%; object-fit: cover; transition: filter .18s var(--ease-out); }
.recipe__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 21, 14, .1) 30%, rgba(31, 21, 14, .86) 100%); }
.recipe__media svg { position: absolute; left: 16%; right: 16%; top: 13%; width: 68%; color: var(--curd); transition: opacity .18s var(--ease-out); }
.recipe--brass { background: var(--brass); } .recipe--meadow { background: var(--meadow); } .recipe--rust { background: var(--rust); } .recipe--rind { background: var(--rind); }
@media (hover: hover) and (pointer: fine) { .recipe:hover .recipe__media img { filter: brightness(.9); } .recipe:hover .recipe__media svg { opacity: .85; } }
.recipe__cheese { font-size: .86rem; color: var(--on-dark-soft); }
.recipe__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: grid; gap: 8px; }
.recipe__cheese + .recipe__title { margin-top: -4px; }
.recipe__title { font: 500 clamp(1.55rem, 6.6vw, 1.9rem)/1.04 var(--serif); text-wrap: balance; }
.recipe__meta { display: flex; gap: 14px; font-size: .86rem; color: var(--on-dark-soft); }
.recipe__meta span { display: inline-flex; align-items: center; gap: 5px; }
.recipe__meta svg { width: 14px; height: 14px; }

.recipes-foot { margin-top: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }

/* ==========================================================================
   Recipe sheet: bottom sheet on iPhone, side drawer on desktop
   ========================================================================== */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; border: 0; width: 100%; max-width: none;
  max-height: calc(100dvh - 44px - env(safe-area-inset-top, 0px)); height: auto;
  border-radius: 26px 26px 0 0; background: var(--curd); color: var(--ink);
  overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .55s var(--ease-out);
}
.sheet[open] { display: flex; }
.sheet:not([open]) { display: none; }
.sheet.is-open { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging { transition: none; }
.sheet::backdrop { background: rgba(31, 21, 14, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet__grab { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 3; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet__grab::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: rgba(244, 236, 223, .85); box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(31, 21, 14, .45); color: var(--curd); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet__close svg { width: 14px; height: 14px; }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(28px + var(--safe-b)); }
.sheet__hero { position: relative; aspect-ratio: 4 / 3; background: var(--rind); color: var(--curd); overflow: hidden; touch-action: none; }
.sheet__hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet__hero svg { position: absolute; left: 22%; right: 22%; top: 16%; width: 56%; }
.sheet__hero.recipe--brass { background: var(--brass); } .sheet__hero.recipe--meadow { background: var(--meadow); } .sheet__hero.recipe--rust { background: var(--rust); }
.sheet__content { padding: 24px var(--gutter) 0; display: grid; gap: 26px; }
.sheet__title { font: 500 clamp(2rem, 8.6vw, 2.7rem)/1 var(--serif); text-wrap: balance; }
.sheet__facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--hair); }
.sheet__facts div { padding: 12px 0; }
.sheet__facts div + div { padding-left: 14px; border-left: 1px solid var(--hair); }
.sheet__facts dt { font-size: .78rem; color: var(--ink-soft); }
.sheet__facts dd { font-weight: 500; font-size: .95rem; line-height: 1.3; }
.sheet h3 { font: 500 1.6rem/1.1 var(--serif); margin-bottom: 12px; }
.checklist li + li { border-top: 1px solid var(--hair); }
.checklist label { display: flex; gap: 14px; align-items: center; min-height: 48px; padding: 6px 0; cursor: pointer; }
.checklist input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-soft); display: grid; place-items: center; transition: background .25s, box-shadow .25s; }
.checklist input::after { content: ""; width: 10px; height: 6px; border: solid var(--curd); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s var(--ease-out); }
.checklist input:checked { background: var(--rind); box-shadow: none; }
.checklist input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.checklist input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--brass); }
.steps { counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps li::before { content: counter(step); font: 500 1.9rem/1 var(--serif); color: var(--brass); }
.tip { background: var(--linen); border-radius: 16px; padding: 18px 20px; }
.tip strong { display: block; font: 500 1.3rem/1.2 var(--serif); margin-bottom: 4px; font-weight: 400; }
.sheet__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.share { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--rind); }
.share svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .sheet { inset: 0 0 0 auto; width: min(560px, 46vw); max-height: none; height: 100dvh; border-radius: 0; transform: translateX(100%); }
  .sheet.is-open { transform: none; }
  .sheet__grab { display: none; }
  .sheet__close { top: 18px; right: 18px; }
  .sheet__content { padding-inline: 40px; }
}
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 120; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--cellar); color: var(--curd); font-size: .92rem; transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Our cheeses: a quiet list, links out to the shop
   ========================================================================== */
/* Ассортимент: shop photos, each a link to its product */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 900px) { .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
.shelf__card { display: grid; gap: 4px; align-content: start; }
.shelf__media { display: block; aspect-ratio: 4 / 5; border-radius: var(--wedge); overflow: hidden; background: var(--linen); margin-bottom: 10px; }
.shelf__media { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.shelf__media img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease; }
.shelf__name { font: 500 clamp(1.3rem, 4.6vw, 1.55rem)/1.1 var(--serif); }
.shelf__note { font-size: .9rem; line-height: 1.35; color: var(--ink-soft); }
.shelf__note .ext { display: inline-block; width: .7em; height: .7em; margin-left: 2px; color: var(--brass); }
.shelf__card--all .shelf__media { display: grid; place-items: center; background: var(--rind); }
.shelf__wheel { display: grid; place-content: center; gap: 4px; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--curd); color: var(--rind); text-align: center; box-shadow: inset 0 0 0 6px var(--linen), inset 0 0 0 7px var(--brass); }
.shelf__wheel span { font: 500 clamp(1.2rem, 4.4vw, 1.6rem)/1.05 var(--serif); }
.shelf__wheel small { font-size: .78rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .shelf__card:hover .shelf__media { transform: translateY(-4px); box-shadow: 0 18px 32px -22px rgba(58, 42, 26, .5); }
  .shelf__card:hover .shelf__media img { filter: brightness(.94); }
  .shelf__card:hover .shelf__name { color: var(--rust); }
  .shelf__card--all:hover .shelf__wheel { background: var(--linen); }
}

/* ==========================================================================
   Field to plate: five icon steps, a timeline on phones, one row on desktop
   ========================================================================== */
.journey { background: var(--linen); }
.cycle { display: flex; gap: 12px; align-items: center; justify-self: start; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--curd); font-size: .95rem; line-height: 1.35; color: var(--ink-soft); }
.cycle__icon { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--brass); color: var(--curd); }
.cycle strong { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .cycle { justify-self: end; } }
.flow { display: grid; }
.flow__step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; padding-bottom: 34px; }
.flow__icon { grid-row: span 3; align-self: start; position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--curd); color: var(--rind); box-shadow: inset 0 0 0 1px var(--hair); }
.flow__icon .icon { width: 30px; height: 30px; }
.flow__num { font: 500 .78rem/1 var(--sans); letter-spacing: .08em; color: var(--brass); }
.flow__title { font: 600 1.35rem/1.15 var(--serif); margin-top: 2px; }
.flow__text { color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.flow__arrow { display: none; }
/* phones: steps swap sides, a dashed path snakes from one icon to the next */
.flow__step:nth-child(even) { grid-template-columns: 1fr 64px; text-align: right; }
.flow__step:nth-child(even) .flow__icon { grid-column: 2; grid-row: 1 / span 3; }
.flow__step:nth-child(even) > :not(.flow__icon) { grid-column: 1; }
.flow__step:not(:last-child)::before { content: ""; position: absolute; pointer-events: none; top: 70px; bottom: 0; left: 31px; right: 31px; border: 0 dashed var(--brass); border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 28px; opacity: .6; }
.flow__step:nth-child(even):not(:last-child)::before { border-width: 0 1.5px 1.5px 0; border-radius: 0 0 28px 0; }
.flow__step:not(:last-child)::after { content: ""; position: absolute; bottom: -1px; width: 9px; height: 9px; border: solid var(--brass); border-width: 1.5px 1.5px 0 0; opacity: .8; right: 36px; transform: rotate(45deg); }
.flow__step:nth-child(even):not(:last-child)::after { right: auto; left: 36px; transform: rotate(-135deg); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-bottom: 8px; }
  .flow__step, .flow__step:nth-child(even) { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; row-gap: 6px; padding: 0; }
  .flow__step:nth-child(even) { margin-top: clamp(96px, 9vw, 132px); }
  .flow__step:nth-child(even) .flow__icon, .flow__step:nth-child(even) > :not(.flow__icon) { grid-column: auto; grid-row: auto; }
  .flow__step::before, .flow__step::after { display: none; }
  .flow__icon { grid-row: auto; width: 88px; height: 88px; margin-bottom: 12px; }
  .flow__icon .icon { width: 38px; height: 38px; }
  .flow__arrow { display: block; position: absolute; top: 58px; left: calc(100% + 12px); transform: translateX(-50%) rotate(26deg); width: clamp(64px, 6.4vw, 96px); height: auto; color: var(--brass); }
  .flow__step:nth-child(even) .flow__arrow { top: -40px; transform: translateX(-50%) scaleY(-1) rotate(26deg); }
}

/* ==========================================================================
   Story + ledger
   ========================================================================== */
.story { display: grid; gap: 28px; }
@media (min-width: 960px) { .story { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; } }
.story__video { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--rind); }
.story__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.story__text { display: grid; gap: 18px; align-content: start; }
.story__text > .link { justify-self: start; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ledger__row { display: grid; grid-template: 'icon fig' auto 'icon label' auto / auto 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--linen); }
.ledger__row .icon { grid-area: icon; width: 26px; height: 26px; color: var(--brass); }
.ledger__row dd { grid-area: fig; }
.ledger__row dt { grid-area: label; }
.ledger__fig { font: 600 1.6rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.ledger__fig small { font-size: .6em; margin-left: .15em; }
.ledger__label { font-size: .82rem; line-height: 1.3; color: var(--ink-soft); }
.section--dark .ledger, .section--dark .ledger__row { border-color: var(--hair-dark); }
.section--dark .ledger__row, .section--rind .ledger__row { background: rgba(244, 236, 223, .08); color: var(--curd); }
.section--dark .ledger__label { color: var(--on-dark-soft); }

/* ==========================================================================
   Where to buy
   ========================================================================== */
.buy { display: grid; gap: 12px; }
@media (min-width: 960px) { .buy { grid-template-columns: 1.25fr 1fr; gap: 24px; } }
.buy-card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.buy-card--fair { background: var(--curd); color: var(--rind); }
.buy-card--fair img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.buy-card--shop { background: var(--rind); color: var(--curd); }
.buy-card__body { display: grid; gap: 16px; padding: 24px; align-content: start; flex: 1; }
@media (min-width: 768px) { .buy-card__body { padding: 32px; } }
@media (min-width: 960px) { .buy-card--fair img { aspect-ratio: 16 / 8; } }
.facts { display: grid; gap: 10px; font-size: .97rem; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts .icon { width: 22px; height: 22px; color: var(--brass); }
.facts a { font-weight: 500; }
.buy-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .97rem; }
.buy-card dt { color: var(--ink-soft); }
.buy-card--shop dt { color: var(--on-dark-soft); }
.buy-card dd { font-weight: 500; }
.buy-card .btn { margin-top: 8px; }
@media (min-width: 560px) { .buy-card .btn { justify-self: start; } }

.partners { margin-top: clamp(48px, 10vw, 96px); display: grid; gap: 22px; }
.partners__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; align-items: center; }
@media (min-width: 900px) { .partners__row { grid-template-columns: repeat(8, 1fr); gap: 40px; } }
.partners__row li { height: 40px; display: grid; place-items: center; }
@media (min-width: 900px) { .partners__row li { height: 54px; } }
.partner-logo { width: 100%; height: 100%; background: var(--linen); opacity: .6; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* ==========================================================================
   Wholesale + footer
   ========================================================================== */
.trade { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .trade { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.trade__contacts { display: grid; gap: 10px; justify-items: start; }
.trade__lead { margin-top: 16px; }
.trade__contacts a { display: inline-flex; align-items: center; gap: 14px; font: 500 clamp(1.6rem, 6.4vw, 2.2rem)/1.2 var(--serif); }
.trade__contacts .icon { width: .8em; height: .8em; color: var(--brass); }

.footer { background: var(--cellar); color: var(--on-dark-soft); padding: clamp(56px, 12vw, 112px) 0 calc(24px + var(--safe-b)); font-size: .95rem; }
.footer__top { display: grid; gap: 36px 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.2fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }
.footer__logo { width: 132px; color: var(--curd); }
.footer h3 { font: 500 .9rem/1.4 var(--sans); color: var(--curd); margin-bottom: 12px; }
.footer li + li { margin-top: 8px; }
.footer a { display: inline-flex; align-items: center; gap: .35em; }
.footer__big { color: var(--curd); font-weight: 500; }
.footer__legal { margin-top: clamp(40px, 8vw, 80px); padding-top: 20px; border-top: 1px solid var(--hair-dark); display: grid; gap: 8px; font-size: .8rem; }
@media (min-width: 900px) { .footer__legal { display: flex; justify-content: space-between; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { padding: calc(112px + env(safe-area-inset-top, 0px)) 0 clamp(36px, 7vw, 72px); }
@media (min-width: 960px) { .page-head { padding-top: 160px; } }
.page-head .lead { margin-top: 18px; }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 22px; }
.page-title { font-size: clamp(3rem, 13vw, 6.5rem); }

.contact-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.contact-card { background: var(--linen); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
@media (min-width: 768px) { .contact-card { padding: 32px; } }
.contact-card > a { justify-self: start; }
.contact-card--dark { background: var(--rind); color: var(--curd); }
.contact-card .big { font: 500 clamp(1.7rem, 7vw, 2.1rem)/1.15 var(--serif); }
.contact-card .muted { font-size: .95rem; }
.contact-card--dark .muted { color: var(--on-dark-soft); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--linen); margin-top: 12px; }
@media (min-width: 768px) { .map { aspect-ratio: 16 / 8; margin-top: 20px; } }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.35) saturate(.8); }

.gallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.gallery figure { border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 260px; gap: 20px; } .gallery figure, .gallery figure:first-child { aspect-ratio: auto; grid-column: auto; border-radius: var(--radius); } .gallery figure:first-child { grid-row: span 2; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery figure { position: relative; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgb(250 245 236 / .88); color: var(--rind); font: 500 .82rem/1.2 var(--sans); backdrop-filter: blur(6px); }
.gallery figure:first-child { aspect-ratio: 4 / 5; }
.gallery img[src*="forming"] { object-position: 50% 22%; }
@media (min-width: 900px) { .gallery { grid-auto-rows: 300px; } .gallery figure:first-child { aspect-ratio: auto; } }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
.wide-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
@media (min-width: 768px) { .wide-photo { aspect-ratio: 16 / 7; } }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

.notfound { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 22px; padding: 120px var(--gutter); }

/* ---------- scroll reveal: blocks rise in softly, siblings one after another ---------- */
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- single image reveal ---------- */
.js .reveal-img { clip-path: inset(10% 0 0 0 round var(--radius)); }
.js .reveal-img img { transform: scale(1.12); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-out); }
.js .reveal-img.is-in img { transform: none; transition: transform 1.6s var(--ease-out); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .hero__title .line > span, .js .hero__aside > * { transform: none; opacity: 1; }
  .js .plate__ink { opacity: 1; }
  .js .reveal-img { clip-path: none; }
  .js .rv { opacity: 1; transform: none; }
  .js .reveal-img img { transform: none; }
}

/* recipes page grid */
.recipe-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .recipe-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.footer a, .contact-card a, .trade__contacts a { overflow-wrap: anywhere; }

/* desktop type: the phone-first scale tops out too large in a two-column hero */
@media (min-width: 960px) {
  :root { --fs-hero: clamp(3.6rem, 5vw, 5.4rem); --fs-h2: clamp(2.4rem, 3.4vw, 3.5rem); }
  .rail--grid .recipe__title { font-size: clamp(1.4rem, 1.7vw, 1.75rem); }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { min-height: 44px; padding: 0 15px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--hair); font-weight: 500; font-size: .95rem; transition: background .25s, color .25s, box-shadow .25s; }
.chip span { opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--rind); color: var(--curd); box-shadow: none; }

.post-grid { display: grid; gap: 36px 20px; }
@media (min-width: 600px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; } }
.post-card { display: grid; gap: 10px; align-content: start; }
.post-card[hidden] { display: none; }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--linen); margin-bottom: 6px; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: filter .18s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .post-card:hover .post-card__img { filter: brightness(.92); } }
.post-card__tag { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--curd); font-size: .8rem; font-weight: 500; }
.post-card__meta { font-size: .85rem; color: var(--ink-soft); }
.post-card__title { font: 500 clamp(1.45rem, 6vw, 1.7rem)/1.1 var(--serif); text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__desc { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* post */
.post-head, .post-cover { max-width: 1040px; }
.post-head { padding-top: calc(108px + env(safe-area-inset-top, 0px)); padding-bottom: 28px; }
@media (min-width: 960px) { .post-head { padding-top: 156px; padding-bottom: 40px; } }
.post-title { font: 500 clamp(2.1rem, 8.6vw, 4rem)/1.02 var(--serif); letter-spacing: -.012em; max-width: 20ch; text-wrap: balance; }
.post-meta { display: flex; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.post-cover img { width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--linen); }

.prose { max-width: 680px; margin: clamp(36px, 8vw, 72px) auto var(--section-y); font-size: 1.0625rem; line-height: 1.7; }
@media (min-width: 768px) { .prose { font-size: 1.125rem; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 500 clamp(1.85rem, 7vw, 2.6rem)/1.06 var(--serif); margin-top: 1.9em; text-wrap: balance; }
.prose h3 { font: 500 1.15rem/1.35 var(--sans); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { font-weight: 500; }
.prose a:not(.btn):not(.link) { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.prose ul, .prose ol { display: grid; gap: .55em; }
.prose ul > li { position: relative; padding-left: 1.3em; }
.prose ul > li::before { content: ""; position: absolute; left: .15em; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.prose ol { counter-reset: li; }
.prose ol[start] { counter-reset: li calc(var(--start, 1) - 1); }
.prose ol > li { position: relative; padding-left: 2em; counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .05em; font: 500 1.2rem/1.4 var(--serif); color: var(--brass); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
@media (min-width: 760px) { .table-wrap { margin-inline: 0; padding-inline: 0; } }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.prose th { text-align: left; font-weight: 500; padding: 10px 14px 10px 0; border-bottom: 1.5px solid var(--rind); vertical-align: bottom; }
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose td:first-child { font-weight: 500; }

.faq { border-top: 1px solid var(--hair); }
.faq + .faq { margin-top: 0; }
.faq:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; min-height: 44px; font-weight: 500; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .35em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.faq[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq__a { padding-bottom: 20px; color: var(--ink-soft); }
.faq__a > * + * { margin-top: .8em; }

.post-cta { margin-block: 2em; padding: 26px 24px; border-radius: var(--radius); background: var(--rind) var(--grain); color: var(--curd); display: grid; gap: 6px; }
.prose > .post-cta { margin-top: 2em; }
.post-cta__kicker { font-size: .85rem; color: var(--on-dark-soft); }
.post-cta__title { font: 500 clamp(1.8rem, 7vw, 2.3rem)/1.05 var(--serif); }
.post-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 14px; }
.post-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.related { padding-block: var(--section-y); }
.related__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }

/* recipe photos from blog covers: the dish sits on the right, text on the left */
.recipe__media img.is-cover, .sheet__hero img.is-cover { object-position: 80% 50%; }

/* ==========================================================================
   Trust: facts, retail partners, reviews — one compact band after the hero
   ========================================================================== */
.trust { position: relative; background: var(--linen); padding-block: clamp(12px, 3vw, 32px) calc(clamp(28px, 7vw, 56px) + 20px); overflow: hidden; }
.trust__head { display: grid; gap: 14px; }
@media (min-width: 900px) { .trust__head { grid-template-columns: auto minmax(0, 1fr); gap: 56px; } .kpis { max-width: 760px; justify-self: end; width: 100%; } }
.trust__title { font: 500 clamp(1.8rem, 7vw, 2.6rem)/1 var(--serif); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { display: grid; align-content: start; gap: 4px; padding: 14px 12px 16px; border-radius: var(--card-r); background: var(--curd); box-shadow: 0 1px 0 rgba(58, 42, 26, .06), 0 10px 24px -18px rgba(58, 42, 26, .35); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.kpi__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--linen); color: var(--brass); margin-bottom: 6px; }
.kpi__icon .icon { width: 18px; height: 18px; }
.kpi__num { font: 600 clamp(1.7rem, 7.4vw, 2.6rem)/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.kpi__label { font-size: clamp(.78rem, 3.3vw, .92rem); line-height: 1.3; color: var(--ink-soft); }
@media (min-width: 560px) { .kpis { gap: 14px; } .kpi { padding: 20px 20px 22px; } }
@media (min-width: 900px) { .trust__head { align-items: center; } .kpi { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; } .kpi__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; } .kpi__icon .icon { width: 22px; height: 22px; } }
@media (hover: hover) and (pointer: fine) { .kpi:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(58, 42, 26, .06), 0 16px 30px -18px rgba(58, 42, 26, .45); } }
.marquee { display: flex; overflow: hidden; margin-top: clamp(24px, 4vw, 36px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; align-items: center; gap: clamp(40px, 6vw, 72px); padding-right: clamp(40px, 6vw, 72px); animation: marquee 38s linear infinite; }
.marquee__track li { display: grid; width: clamp(96px, 22vw, 132px); height: clamp(30px, 7vw, 40px); }
.marquee .partner-logo { display: block; background: var(--rind); opacity: .72; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; flex: 1; justify-content: center; padding: 0; }
  .marquee__track[aria-hidden] { display: none; }
}

.reviews { margin-top: clamp(22px, 5vw, 36px); margin-inline: calc(var(--gutter) * -1); }
.reviews__rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.reviews__rail::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .reviews__rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.review { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--curd); }
.review__stars { color: var(--brass); letter-spacing: .02em; font-size: .9rem; }
.review__text { margin: 0; font-size: .98rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review__who { font-size: .85rem; color: var(--ink-soft); }
.review__who a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- why: four questions (brand voice, facts from docs/FACTS.md) ---------- */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.why__item { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); background: var(--curd); border-radius: var(--wedge); padding: 18px 16px 20px; display: grid; gap: 6px; align-content: start; }
@media (hover: hover) and (pointer: fine) { .why__item:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(58, 42, 26, .4); } }
.why__icon { display: grid; place-items: center; width: clamp(44px, 12vw, 52px); height: clamp(44px, 12vw, 52px); border-radius: 50%; background: var(--linen); color: var(--brass); margin-bottom: 8px; }
.why__icon .icon { width: 26px; height: 26px; }
.why__q { font: 600 clamp(1.2rem, 5vw, 1.6rem)/1.1 var(--serif); text-wrap: balance; }
.why__a { color: var(--ink-soft); font-size: clamp(.86rem, 3.6vw, .98rem); line-height: 1.45; text-wrap: pretty; }
.why__a .link { display: inline; color: var(--ink); }
.why__quote { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 22em; text-align: center; font: 500 clamp(1.6rem, 6.6vw, 2.5rem)/1.12 var(--serif); text-wrap: balance; }
.why__sign { margin-top: 16px; font-size: clamp(1.9rem, 6.6vw, 2.5rem); line-height: 1; }
.footer__sign { margin-top: 14px; font-size: 1.7rem; line-height: 1; }
.why__quote::before { content: ""; display: block; width: 48px; height: 1px; background: var(--brass); margin: 0 auto 24px; }
@media (min-width: 560px) { .why { gap: 16px; } .why__item { padding: 24px; gap: 8px; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .why__item { padding: 28px; } }
#why + .section { background: var(--curd); }

/* about: timeline */
.tl { display: grid; gap: clamp(24px, 4vw, 44px); }
.timeline { display: grid; gap: 10px; counter-reset: t; }
.timeline li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--hair); }
.timeline li:last-child { border-bottom: 1px solid var(--hair); }
.timeline b { font: 600 1.55rem/1 var(--serif); color: var(--brass); }
.timeline span { font-size: 1.08rem; line-height: 1.45; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .timeline li, .timeline li:last-child { grid-template-columns: 1fr; gap: 12px; padding: 22px 0 0; border-bottom: 0; border-top: 1.5px solid var(--rind); }
  .timeline b { font-size: 2.2rem; }
}

/* about: craft (two photos, three steps) */
.craft { display: grid; gap: clamp(32px, 5vw, 64px); }
.craft__text { display: grid; gap: 24px; align-content: center; }
.craft__steps { display: grid; gap: 12px; }
.craft__steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--card-r); background: var(--curd); box-shadow: 0 1px 0 rgb(60 40 20 / .05), 0 10px 24px -18px rgb(60 40 20 / .35); }
.craft__steps b { display: block; font: 600 1.25rem/1.15 var(--serif); }
.craft__steps li span:not(.craft__icon) { display: block; margin-top: 3px; font-size: .95rem; color: var(--ink-soft); }
.craft__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--linen); color: var(--brass); }
.craft__icon .icon { width: 22px; height: 22px; }
.craft__photos { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.craft__photos figure { position: relative; border-radius: var(--card-r); overflow: hidden; aspect-ratio: 4 / 5; }
.craft__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.craft__photos figure:hover img { transform: scale(1.03); }
.craft__a { grid-column: 1 / 10; grid-row: 1; }
.craft__b { grid-column: 6 / 13; grid-row: 1; margin-top: 62%; box-shadow: 0 0 0 6px var(--linen), 0 24px 40px -24px rgb(60 40 20 / .45); }
.craft__b img { object-position: 50% 20%; }
.craft__photos figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgb(250 245 236 / .9); color: var(--rind); font: 500 .82rem/1.2 var(--sans); backdrop-filter: blur(6px); }
@media (min-width: 900px) {
  .craft { grid-template-columns: 5fr 7fr; align-items: center; }
  .craft__b { margin-top: 48%; }
}
@media (prefers-reduced-motion: reduce) { .craft__photos img { transition: none; } }

/* hero KPIs: quiet figures on the first screen */
.hero__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-block: 1px solid var(--hair); }
.hero__kpis li { display: grid; align-content: start; gap: 4px; padding: 14px 10px 14px 0; }
.hero__kpis li + li { padding-left: 12px; border-left: 1px solid var(--hair); }
.hero__kpis b { font: 600 clamp(1.6rem, 7vw, 2.4rem)/1 var(--serif); color: var(--rind); font-variant-numeric: lining-nums; }
.hero__kpis span { font: 400 clamp(.74rem, 3.2vw, .9rem)/1.3 var(--sans); color: var(--ink-soft); }
@media (min-width: 960px) {
  .hero__kpis { margin-top: 44px; }
  .hero__kpis li { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 18px 24px 18px 0; }
  .hero__kpis li + li { padding-left: 28px; }
  .hero__kpis span { max-width: 15em; }
}

/* where to buy: webshop first, partners below */
.buy-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
@media (min-width: 960px) { .buy-card img { aspect-ratio: 16 / 8; } .buy { align-items: stretch; } }
.buy-card__kicker { font: 500 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #d4b27c; margin-bottom: -6px; }
.partners { margin-top: clamp(36px, 6vw, 56px); display: grid; gap: 4px; }
.partners__title { font: 500 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); text-align: center; }
.section--dark .marquee .partner-logo { background: var(--curd); opacity: .66; }

/* closed cycle on phones: the same hand-drawn arrows as on desktop, in the empty side of each step */
@media (max-width: 899px) {
  .flow__step { padding-bottom: 40px; }
  .flow__step:last-child { padding-bottom: 0; }
  .flow__step:nth-child(odd):not(:last-child) { padding-right: 76px; }
  .flow__step:nth-child(even) { padding-left: 76px; }
  .flow__step::before, .flow__step::after { display: none; }
  .flow__arrow { display: block; position: absolute; top: 22px; right: 2px; width: 78px; height: auto; color: var(--brass); transform: rotate(62deg); transform-origin: 50% 50%; }
  .flow__step:nth-child(even) .flow__arrow { right: auto; left: 2px; transform: scaleX(-1) rotate(62deg); }
  .flow__step > .flow__arrow, .flow__step:nth-child(even) > .flow__arrow { grid-column: auto; grid-row: auto; }
}

/* hero: the engraving fills the first screen behind the text */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 20px; background: var(--curd); }
.hero > .wrap { flex: 1; display: flex; flex-direction: column; }
.hero__grid { position: relative; z-index: 2; }
.hero .plate { position: absolute; inset: auto 0 0; z-index: 0; margin: 0; height: 58%; aspect-ratio: auto; }
.hero .plate::after { height: 42%; }
.hero__kpis { border: 1px solid rgb(255 255 255 / .55); border-radius: var(--card-r); background: rgb(250 245 236 / .72); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 12px 30px -20px rgb(60 40 20 / .45); }
.hero__kpis li { padding: 12px 8px 12px 14px; }
.hero__kpis li + li { padding-left: 12px; }
.hero__aside { padding-bottom: 24px; }
@media (min-width: 701px) { .hero .plate { height: 66%; } }
@media (min-width: 960px) {
  .hero { padding-bottom: 28px; }
  .hero__grid { align-items: start; }
  .hero__aside { padding-top: 12px; }
  .hero__kpis li { padding: 16px 22px; }
  .hero__kpis li + li { padding-left: 26px; }
}

/* header over the hero: soft fade and blur instead of a hard bar */
.header { isolation: isolate; }
.header::before { content: ""; position: absolute; inset: 0 0 -36px; z-index: -1; background: linear-gradient(rgb(244 236 223 / .96), rgb(244 236 223 / .55) 70%, rgb(244 236 223 / 0)); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); pointer-events: none; transition: opacity .4s; }
.header.is-scrolled::before, .menu-open .header::before { opacity: 0; }

/* hero text stays readable: a soft veil and blur over the top of the engraving */
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 64%; z-index: 1; pointer-events: none; background: linear-gradient(rgb(244 236 223 / .97) 45%, rgb(244 236 223 / .6) 75%, rgb(244 236 223 / 0)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.hero { padding-bottom: 72px; }
.hero .plate::before { height: 22%; }
@media (min-width: 960px) { .hero::before { height: 52%; } .hero { padding-bottom: 96px; } }

/* KPIs: the connector between the hero and the recipes */
.kpi-strip { position: relative; z-index: 3; margin-top: -44px; padding-bottom: clamp(44px, 6vw, 64px); background: linear-gradient(transparent 44px, var(--linen) 44px); }
.kpi-strip .hero__kpis { margin: 0; background: rgb(250 245 236 / .9); }
@media (min-width: 960px) { .kpi-strip { margin-top: -56px; background: linear-gradient(transparent 56px, var(--linen) 56px); } .kpi-strip .hero__kpis { max-width: 900px; margin-inline: auto; } }
@media (max-width: 959px) { .hero .plate { height: 50%; } .hero::before { height: 70%; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); } }
.hero { min-height: calc(100svh + 44px); }
@media (min-width: 960px) { .hero { min-height: calc(100svh + 56px); } }
/* KPIs sit between the hero and the recipes, not over the engraving */
.hero { min-height: 100svh; padding-bottom: 28px; }
.kpi-strip { margin-top: 0; padding-top: clamp(20px, 4vw, 36px); background: var(--linen); }
@media (min-width: 960px) { .hero { min-height: 100svh; padding-bottom: 40px; } .kpi-strip { margin-top: 0; background: var(--linen); } }

/* ==========================================================================
   Round 10: Prata headings, hero copy, KPI section of its own
   ========================================================================== */
/* Prata is a Didone with one weight: never fake a bold or an italic */
html { font-synthesis: none; }
.display, .h2, .h3 { font-weight: 400; }
.display { line-height: 1.02; letter-spacing: -.022em; }
.display .hand { font-size: 1.2em; line-height: .7; letter-spacing: 0; }
.h2 { line-height: 1.06; letter-spacing: -.018em; }
.h3 { line-height: 1.14; letter-spacing: -.01em; }
.page-title { font-size: clamp(2.5rem, 10.4vw, 5rem); }
.trust__title, .flow__title, .why__q, .recipe__title, .shelf__name, .craft__steps b, .timeline b, .ledger__fig { font-weight: 400; }

/* hero: text keeps clear air above the engraving */
.hero .plate { height: 46%; }
.hero .plate::before { display: none; }
.hero::before { height: 60%; }
.hero { padding-bottom: 0; }
.hero__lead, .hero__aside .lead { max-width: 30em; }
@media (min-width: 960px) {
  .hero .plate { height: 54%; }
  .hero::before { height: 50%; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
}

/* KPIs: their own section under the hero, cut in with the rind edge */
.kpi-strip { margin-top: 0; padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); background: var(--linen); }
.kpi-strip .hero__kpis { max-width: none; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.kpi-strip .hero__kpis li { padding: 4px 10px 4px 0; gap: 8px; }
.kpi-strip .hero__kpis li + li { padding-left: 14px; border-left: 1px solid var(--hair); }
.kpi-strip .hero__kpis b { font: 400 clamp(2.1rem, 9.6vw, 4.4rem)/1 var(--serif); letter-spacing: -.02em; color: var(--rind); }
.kpi-strip .hero__kpis span { font: 400 clamp(.78rem, 3.3vw, .98rem)/1.35 var(--sans); color: var(--ink-soft); max-width: 14em; }
@media (min-width: 960px) {
  .kpi-strip .hero__kpis li { display: grid; grid-template-columns: 1fr; padding: 8px 40px 8px 0; }
  .kpi-strip .hero__kpis li + li { padding-left: 40px; }
}
.hero + .wave-top { z-index: 4; }
