/* ==========================================================================
   GR Foods — "Heritage Kraft" theme
   Colours are sampled from the village illustration (organic-slider-1.jpg).
   ========================================================================== */

:root {
  --kraft: #a97a51;
  --kraft-d: #8b603b;
  --kraft-l: #e3c9a1;
  --parch: #f3e8d3;
  --parch-2: #eadbbd;
  --paper: #fffaf0;
  --ink: #3a2213;
  --ink-2: #6a4a33;
  --terra: #a4442a;
  --green: #4a6530;
  --green-d: #34481f;
  --slate: #2a2f27;
  --note: #f6e48c;

  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 14px 30px -14px rgba(58, 34, 19, .45);
  --shadow-lg: 0 30px 60px -24px rgba(58, 34, 19, .55);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  font-family: var(--f-body); font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--parch);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--terra); }
strong { font-weight: 800; }
[lang="ta"] { font-family: "Noto Sans Tamil", var(--f-body); }
::selection { background: var(--terra); color: var(--paper); }
:focus-visible { outline: 3px dashed var(--terra); outline-offset: 4px; }

.wrap { width: min(1220px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

.grain { position: fixed; inset: 0; z-index: 400; pointer-events: none; background: url("../../images/noise_pattern.png"); opacity: .22; mix-blend-mode: multiply; }

.script { font-family: var(--f-hand); font-size: 1.7rem; font-weight: 700; color: var(--terra); line-height: 1.1; display: inline-block; }

/* Torn paper edge (teeth point up). Colour comes from the background. */
.deckle {
  height: 12px; background: var(--parch);
  -webkit-mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 24px 12px repeat-x;
          mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 24px 12px repeat-x;
}

/* ---------- Buttons & links ---------- */
.stamp-btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.7em; border-radius: 6px;
  background: var(--terra); color: var(--paper);
  font-weight: 800; font-size: .88rem; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 0 3px var(--parch), 0 0 0 5px var(--terra);
  rotate: -1.5deg; transition: rotate .4s var(--spring), scale .3s var(--spring), background .3s;
}
.stamp-btn:hover { rotate: 0deg; scale: 1.05; background: var(--ink); box-shadow: 0 0 0 3px var(--parch), 0 0 0 5px var(--ink); }
.stamp-btn:active { scale: .95; }
.stamp-btn--light { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 3px transparent, 0 0 0 5px var(--paper); }
.stamp-btn--light:hover { background: var(--note); box-shadow: 0 0 0 3px transparent, 0 0 0 5px var(--note); }

.text-link { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.1rem; text-decoration: underline wavy var(--terra) 1.5px; text-underline-offset: 6px; transition: color .3s, text-underline-offset .3s; }
.text-link:hover { color: var(--terra); text-underline-offset: 9px; }
.text-link--light { color: var(--paper); text-decoration-color: var(--note); }
.text-link--light:hover { color: var(--note); }

/* ---------- Headings ---------- */
.heading { margin-bottom: clamp(36px, 5vw, 60px); }
.heading h2 { margin: 0; }
.heading--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.scribble { display: block; width: 180px; height: 16px; margin-top: 6px; stroke: var(--terra); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.4s var(--ease) .4s; }
.center .scribble { margin-inline: auto; }
.scribble.is-in, .no-js .scribble { stroke-dashoffset: 0; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--kraft); color: var(--paper); transition: transform .5s var(--ease), box-shadow .4s, background .4s; }
.nav.is-scrolled { background: rgba(169, 122, 81, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .5); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); max-width: 1400px; margin-inline: auto; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__seal {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--kraft-l); font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 0 0 3px var(--kraft), 0 0 0 5px var(--ink);
  transition: rotate .7s var(--spring);
}
.brand:hover .brand__seal { rotate: -20deg; }
.brand__seal--lg { width: 84px; height: 84px; font-size: 1.8rem; background: var(--kraft-l); color: var(--ink); box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px var(--kraft-l); }
.brand__text { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--ink); }
.brand__logo { display: block; width: auto; height: 32px; } /* logo.png is 157×32 — never upscale it */
.brand__text small { display: block; margin-top: 4px; font-family: var(--f-body); font-size: .66rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); }

.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__link { position: relative; padding: 8px 14px; font-weight: 700; font-size: .95rem; color: var(--paper); }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5C25 1 50 7 98 3' fill='none' stroke='%233a2213' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { clip-path: inset(0 0 0 0); }
.nav__link.is-active { color: var(--ink); }

.nav__drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 16px); left: 50%; width: 460px; padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--paper); color: var(--ink); border-radius: 4px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: -50% 12px; rotate: -1deg;
  transition: opacity .3s, translate .45s var(--ease), rotate .45s var(--ease), visibility 0s .3s;
}
.drop::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.nav__drop:hover .drop, .nav__drop:focus-within .drop, .nav__drop.is-open .drop { opacity: 1; visibility: visible; translate: -50% 0; rotate: 0deg; transition-delay: 0s; }
.drop a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 4px; font-weight: 700; font-size: .92rem; transition: background .25s, translate .3s var(--ease); }
.drop a:hover { background: var(--parch); translate: 4px 0; }
.drop img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 2px solid var(--kraft-l); }

.nav__call { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; color: var(--ink); }
.nav__call .script { font-size: 1.2rem; color: var(--paper); }
.nav__call:hover { color: var(--paper); }

.burger { display: none; margin-left: auto; width: 46px; height: 46px; position: relative; z-index: 130; }
.burger span { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 120; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px; padding: 110px var(--gutter) 36px;
  background: var(--kraft-l); color: var(--ink);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.drawer nav { display: flex; flex-direction: column; }
.drawer__link { font-family: var(--f-display); font-size: clamp(2.1rem, 9vw, 3rem); font-weight: 700; line-height: 1.25; }
.drawer__link.is-active { font-style: italic; color: var(--terra); }
.drawer__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__cats a { padding: 6px 14px; border: 2px dashed var(--ink-2); border-radius: 4px; font-weight: 700; }
.drawer__call { align-self: flex-start; margin-top: auto; }
.drawer__link, .drawer__head, .drawer__cats a, .drawer__call { opacity: 0; translate: 0 24px; transition: opacity .5s, translate .6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 200ms); }
.menu-open .drawer__link, .menu-open .drawer__head, .menu-open .drawer__cats a, .menu-open .drawer__call { opacity: 1; translate: 0 0; }
.menu-open .nav { background: var(--kraft-l); box-shadow: none; }
.menu-open .brand__text small { color: var(--ink-2); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-done { transition-delay: 0s; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms + 80ms); }
.js .split.is-in .w > span { transform: none; }

.js .reveal-stamp { opacity: 0; scale: 2.2; rotate: -25deg; }
.js .reveal-stamp.is-in { animation: stampIn .55s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 100ms); }

/* ---------- Hero ---------- */
/* fills the screen below the sticky nav (--nav-h is set by app.js) */
.hero { position: relative; background: var(--kraft); padding: clamp(24px, 3vw, 48px) 0 clamp(40px, 6vw, 70px); min-height: calc(100vh - var(--nav-h, 96px)); min-height: calc(100svh - var(--nav-h, 96px)); display: flex; flex-direction: column; justify-content: center; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 12px; background: var(--parch); -webkit-mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 24px 12px repeat-x; mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 24px 12px repeat-x; }
.hero__art { grid-column: 1; grid-row: 1; position: relative; overflow: hidden; aspect-ratio: 1238 / 420; }
/* zoom from the quote's centre so "soul." (ends ~96% across) never slides out of frame */
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 68% 50%; }
.js .hero__art { clip-path: inset(0 100% 0 0); animation: unroll 1.8s var(--ease) .15s forwards; }
.hero__grains i { position: absolute; left: calc(var(--x) * 1%); top: 76%; width: 4px; height: 2.5px; border-radius: 50%; background: #f6ead2; opacity: 0; animation: hop calc(var(--t) * 1s) ease-out infinite; animation-delay: calc(var(--dl) * 1s); }

/* art bleeds off the left edge; the note gets its own column on the right so it never covers the painted quote */
.hero__note { position: relative; z-index: 2; width: 100%; padding-right: clamp(16px, 3vw, 56px); display: grid; grid-template-columns: 1fr clamp(300px, 28vw, 480px); column-gap: clamp(20px, 2.5vw, 40px); align-items: center; }
.note {
  grid-column: 2; grid-row: 1; position: relative; margin-top: clamp(16px, 2.5vw, 48px); /* sits a little lower, clear of the nav */
  padding: clamp(20px, 1.8vw, 30px) clamp(22px, 2.2vw, 36px); background: var(--paper);
  box-shadow: var(--shadow-lg); rotate: -2.5deg;
  background-image: linear-gradient(transparent 95%, rgba(164, 68, 42, .08) 0); background-size: 100% 2em;
}
.note::before { content: ""; position: absolute; inset: auto 12px -10px 12px; height: 20px; background: rgba(58, 34, 19, .15); filter: blur(10px); z-index: -1; }
.pin { position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e06a4c, var(--terra) 60%, #6e2a18); box-shadow: 0 4px 6px rgba(0, 0, 0, .35); z-index: 2; }
.hero__title { font-size: clamp(1.7rem, 2.3vw, 2.4rem); margin: 4px 0 10px; }
.note > p { font-size: .95rem; margin: 0; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 16px; }
.stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; line-height: 1.2; }
.stamp strong { font-family: var(--f-display); font-size: 1.9rem; letter-spacing: 0; line-height: 1.1; }
.stamp--round { width: 128px; height: 128px; border-radius: 50%; border: 3px solid currentColor; box-shadow: inset 0 0 0 5px var(--kraft), inset 0 0 0 7px currentColor; --r: -12deg; }
.stamp--rect { padding: 14px 20px; border: 3px solid var(--paper); color: var(--paper); box-shadow: inset 0 0 0 4px var(--kraft), inset 0 0 0 6px var(--paper); --r: 6deg; }
.stamp--green { color: var(--green-d); --r: 10deg; }
.stamp { rotate: var(--r); }
.js .reveal-stamp.is-done { opacity: 1; scale: 1; rotate: var(--r, 0deg); }
.stamp.is-done:hover, .no-js .stamp:hover { animation: wiggle .5s ease; }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--kraft-l); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.ticker__track { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; animation: marquee 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.ticker b { color: var(--terra); font-size: 1.3rem; }

/* ---------- Pantry shelves ---------- */
.pantry { padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 8vw, 90px); }
.shelf { margin-bottom: 70px; }
.shelf__items { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 40px); padding: 0 clamp(10px, 3vw, 40px); }
.shelf__plank { position: relative; height: 26px; border-radius: 4px; background: #5b3a21 url("../../images/dark_wood.jpg") center / 400px; box-shadow: 0 22px 24px -14px rgba(0, 0, 0, .6), inset 0 3px 0 rgba(255, 255, 255, .15); }
.shelf__plank::before, .shelf__plank::after { content: ""; position: absolute; top: 100%; width: 18px; height: 34px; background: #4a2e18; clip-path: polygon(0 0, 100% 0, 100% 20%, 20% 100%, 0 100%); }
.shelf__plank::before { left: 8%; }
.shelf__plank::after { right: 8%; transform: scaleX(-1); }

.jar { position: relative; flex: 0 1 220px; display: flex; flex-direction: column; align-items: center; }
.jar__lid { width: 74%; height: 30px; border-radius: 8px 8px 4px 4px; background: repeating-linear-gradient(45deg, var(--terra) 0 6px, #b6573b 6px 12px); box-shadow: 0 3px 0 var(--ink-2); position: relative; z-index: 2; transition: translate .5s var(--spring), rotate .5s var(--spring); }
.jar__lid::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -6px; height: 7px; border-radius: 4px; background: #c9a273; }
.jar__glass {
  position: relative; width: 100%; aspect-ratio: 263 / 300; overflow: hidden;
  border-radius: 28px 28px 18px 18px; background: rgba(255, 255, 255, .45);
  border: 3px solid rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(58, 34, 19, .15), 0 10px 18px -10px rgba(58, 34, 19, .5);
}
.jar__glass img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.jar__glass::after { content: ""; position: absolute; top: 8%; left: 10%; width: 14%; height: 70%; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); }
.jar__label { position: absolute; bottom: 14%; left: 50%; translate: -50% 0; width: 82%; padding: 8px 6px; background: var(--paper); border: 1.5px solid var(--ink-2); text-align: center; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); line-height: 1.15; z-index: 3; }
.jar__label strong { display: block; font-family: var(--f-display); font-size: 1.02rem; }
.jar__label small { font-family: var(--f-hand); font-size: 1.05rem; color: var(--terra); font-weight: 700; }
.jar:hover .jar__glass, .jar:focus-visible .jar__glass { animation: jarWobble .7s var(--ease); }
.jar:hover .jar__lid { translate: 0 -14px; rotate: -8deg; }
.jar:hover .jar__glass img { scale: 1.08; }

/* ---------- Tags (product cards) ---------- */
.tag { position: relative; flex: 0 0 auto; width: 230px; padding-top: 16px; transform-origin: 50% 16px; rotate: calc(var(--r, 0deg) + var(--sway, 0) * 1deg); }
.tag:hover { animation: swing 1.4s var(--ease); }
.tag.is-hidden { display: none; }
.tag__string { position: absolute; top: 16px; left: 50%; width: 2px; height: 30px; margin-left: -1px; background: repeating-linear-gradient(180deg, #7b5232 0 4px, #b98a5c 4px 7px); }
.tag__body {
  position: relative; margin-top: 30px; padding: 30px 16px 18px; text-align: center;
  background: var(--kraft-l) url("../../images/noise_pattern.png");
  clip-path: polygon(22% 0, 78% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  filter: drop-shadow(0 12px 12px rgba(58, 34, 19, .3));
}
.tag__hole { position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--parch); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35), 0 0 0 4px #cfae81; }
.tag__img { position: relative; display: block; width: 100%; aspect-ratio: 263 / 300; background: var(--paper); padding: 6px; border: 1px solid rgba(58, 34, 19, .2); overflow: hidden; }
.tag__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.tag:hover .tag__img img { scale: 1.07; }
.tag__zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 1.4rem; line-height: 1; opacity: 0; scale: .4; transition: opacity .3s, scale .4s var(--spring); }
.tag:hover .tag__zoom, .tag__img:focus-visible .tag__zoom { opacity: 1; scale: 1; }
.tag__label { display: block; margin-top: 12px; font-family: var(--f-hand); font-size: 1.25rem; font-weight: 700; color: var(--terra); line-height: 1; }
.tag__name { font-size: 1.15rem; margin: 4px 0 10px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.tag__order { display: inline-block; font-weight: 800; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 3px; transition: background .3s, color .3s; }
.tag__order:hover { background: var(--ink); color: var(--kraft-l); }

/* Twine: tags hang from a rope that scrolls with them */
.twine-section { padding: clamp(60px, 9vw, 110px) 0; background: var(--parch-2); }
.twine {
  display: flex; gap: 34px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - 1220px) / 2 + var(--gutter))) 40px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1220px) / 2 + var(--gutter)));
  background: repeating-linear-gradient(90deg, #7b5232 0 7px, #b98a5c 7px 11px) 0 15px / 100% 3px no-repeat local;
  cursor: grab;
}
.twine::-webkit-scrollbar { display: none; }
.twine .tag { scroll-snap-align: start; }
.twine.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.twine.is-dragging .tag { pointer-events: none; }
.twine--static { justify-content: safe center; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink); font-size: 1.3rem; font-weight: 700; transition: background .3s, color .3s, rotate .4s var(--spring); }
.arrows button:hover { background: var(--ink); color: var(--parch); rotate: -10deg; }

/* Tag grid: each tag hangs from its own nail */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 26px; justify-items: center; }
.tag-grid .tag { width: 100%; max-width: 250px; }
.tag-grid .tag::before { content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9c3a0, #6b4a2e); box-shadow: 0 2px 3px rgba(0, 0, 0, .4); z-index: 2; }

/* ---------- Story / polaroids ---------- */
.story { padding: clamp(70px, 10vw, 130px) 0; }
.story__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.polaroids { position: relative; min-height: 460px; }
.polaroid { margin: 0; padding: 12px 12px 0; background: var(--paper); box-shadow: var(--shadow-lg); translate: 0 var(--py, 0); }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid figcaption { display: block; text-align: center; font-size: 1.5rem; color: var(--ink-2); padding: 10px 0 12px; }
.polaroid--a { position: absolute; top: 0; left: 0; width: 72%; rotate: -4deg; }
.polaroid--a img { object-position: 30% 50%; }
.polaroid--b { position: absolute; bottom: 0; right: 0; width: 62%; rotate: 5deg; z-index: 2; }
.polaroid--a::before, .polaroid--b::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: rgba(243, 232, 211, .75); rotate: -3deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.polaroid:hover { rotate: 0deg; z-index: 3; transition: rotate .6s var(--spring); }
.dropcap::first-letter { float: left; font-family: var(--f-display); font-size: 4.2em; line-height: .8; padding: 6px 10px 0 0; color: var(--terra); font-weight: 800; }
.story__text p { font-size: 1.08rem; color: var(--ink-2); margin-top: 24px; }
.facts { display: flex; gap: 14px; margin: 30px 0; }
.facts div { flex: 1; padding: 14px 10px; text-align: center; border: 2px dashed var(--kraft); border-radius: 6px; }
.facts strong { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; display: block; }
.facts span { font-family: var(--f-hand); font-size: 1.3rem; color: var(--terra); font-weight: 700; }

/* ---------- Recipe (index) cards ---------- */
.recipes { padding: clamp(60px, 9vw, 110px) 0; background: var(--parch-2); }
.recipes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.recipe {
  position: relative; padding: 46px 30px 30px; background: var(--paper); rotate: var(--r, 0deg);
  background-image: linear-gradient(var(--terra), var(--terra)), repeating-linear-gradient(transparent 0 31px, rgba(74, 101, 48, .25) 31px 32px);
  background-size: 100% 2px, 100% 100%; background-position: 0 36px, 0 46px; background-repeat: no-repeat, repeat;
  box-shadow: var(--shadow); transition: rotate .5s var(--spring), translate .5s var(--spring), box-shadow .5s;
}
.recipe:hover { rotate: 0deg; translate: 0 -8px; box-shadow: var(--shadow-lg); }
.recipe__no { position: absolute; top: 4px; left: 30px; font-size: 1.5rem; }
.recipe h3 { font-size: 1.6rem; line-height: 32px; margin: 0 0 0; }
.recipe p { line-height: 32px; margin: 0; color: var(--ink-2); }

/* ---------- Specials ---------- */
.specials { padding: clamp(70px, 10vw, 120px) 0; }

/* ---------- Cork board ---------- */
.board { padding: clamp(60px, 9vw, 110px) 0; background: #b98c5f url("../../images/noise_pattern.png"); box-shadow: inset 0 0 0 14px #6b4527, inset 0 0 40px rgba(0, 0, 0, .35); }
.board__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.notes__head { grid-column: 1 / -1; color: var(--paper); font-size: 2.2rem; }
.sticky { position: relative; margin: 0; padding: 30px 22px 22px; background: var(--note); rotate: var(--r); box-shadow: 0 16px 18px -12px rgba(0, 0, 0, .5); transition: rotate .5s var(--spring), scale .5s var(--spring); }
.sticky:nth-child(3) { background: #f5c9a4; }
.sticky:nth-child(4) { background: #cfe2a8; grid-column: 1 / -1; max-width: 70%; justify-self: center; }
.sticky:hover { rotate: 0deg; scale: 1.04; z-index: 2; }
.sticky blockquote { margin: 0 0 10px; font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.2; font-weight: 500; }
.sticky figcaption { font-size: 1.2rem; color: var(--ink-2); }

.clipping { padding: 26px 28px 30px; background: #f5f0e4; color: #2b2116; rotate: 1.5deg; box-shadow: var(--shadow-lg); clip-path: polygon(0 1%, 4% 0, 12% 1.5%, 22% 0, 34% 1%, 47% 0, 58% 1.2%, 70% 0, 82% 1%, 93% 0, 100% 1%, 100% 99%, 94% 100%, 84% 98.8%, 72% 100%, 60% 99%, 48% 100%, 36% 98.8%, 24% 100%, 12% 99%, 3% 100%, 0 99%); }
.clipping__mast { display: block; text-align: center; font-family: var(--f-display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; padding-bottom: 8px; border-bottom: 3px double #2b2116; margin-bottom: 16px; }
.clipping h3 { font-size: 2rem; text-align: center; }
.clipping h3 span { display: block; font-size: 1rem; margin-top: 4px; color: var(--ink-2); }
.clipping img { width: 100%; filter: grayscale(1) contrast(1.1) sepia(.2); margin: 14px 0; }
.clipping p { font-family: Georgia, serif; font-size: .98rem; text-align: justify; margin: 0; }

/* ---------- Order CTA ---------- */
.order { padding: clamp(70px, 10vw, 120px) 0; background: var(--green); color: var(--paper); position: relative; overflow: hidden; }
.order::before { content: ""; position: absolute; inset: 0; background: url("../../images/noise_pattern.png"); opacity: .4; mix-blend-mode: overlay; }
.order__inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.order h2 { max-width: 700px; }
.order p { font-size: 1.15rem; opacity: .9; }
.order__stamp { width: clamp(170px, 20vw, 230px); aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--note); color: var(--note); box-shadow: inset 0 0 0 8px var(--green), inset 0 0 0 11px var(--note); display: flex; flex-direction: column; align-items: center; justify-content: center; text-transform: uppercase; font-weight: 800; letter-spacing: .2em; --r: -14deg; rotate: var(--r); }
.order__stamp strong { font-family: var(--f-display); font-style: italic; font-size: 2.6rem; letter-spacing: 0; text-transform: none; line-height: 1.1; }

/* ---------- Inner page banner ---------- */
.banner { position: relative; background: var(--kraft); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 4vw, 60px); padding: 0 var(--gutter) 0 0; overflow: hidden; }
.banner__art { width: min(440px, 38vw); aspect-ratio: 470 / 420; overflow: hidden; }
.banner__art img { width: auto; height: 100%; max-width: none; object-fit: cover; object-position: left; }
.js .banner__art img { animation: unroll 1.4s var(--ease) .1s both, kenburns 24s ease-in-out 1.5s infinite alternate; transform-origin: 30% 70%; }
.banner__copy { padding: 30px 0 40px; max-width: 640px; }
.banner__copy .script { color: var(--paper); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.banner__title { font-size: clamp(2.2rem, 6vw, 4.8rem); margin: 4px 0 10px; }
.banner__title em { color: var(--paper); }
.banner__copy p { color: var(--ink); font-size: 1.08rem; max-width: 520px; margin: 0; }
.banner .deckle { position: absolute; left: 0; right: 0; bottom: -1px; }

/* ---------- Shop (category pages) ---------- */
.shop { padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 10vw, 120px); }
.shop__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.chalk {
  position: sticky; top: 100px; padding: 30px 26px; color: #f2efe6;
  background: var(--slate) url("../../images/noise_pattern.png");
  border: 12px solid #6b4527; border-image: url("../../images/dark_wood.jpg") 40 round;
  box-shadow: var(--shadow-lg); rotate: -1deg;
}
.chalk__title { font-family: var(--f-hand); font-size: 2.3rem; text-align: center; margin-bottom: 14px; color: #fff; text-shadow: 0 0 1px rgba(255, 255, 255, .6); }
.chalk ul { list-style: none; margin: 0; padding: 0; }
.chalk a { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-family: var(--f-hand); font-size: 1.55rem; font-weight: 500; line-height: 1.2; opacity: .85; transition: opacity .3s, translate .3s var(--ease), color .3s; }
.chalk a i { flex: 1; border-bottom: 2px dotted rgba(242, 239, 230, .4); }
.chalk a:hover { opacity: 1; translate: 6px 0; }
.chalk a.is-active { opacity: 1; color: var(--note); }
.chalk a.is-active span { text-decoration: underline wavy var(--note) 1.5px; text-underline-offset: 5px; }
.chalk__foot { margin: 18px 0 0; text-align: center; font-family: var(--f-hand); font-size: 1.35rem; color: #f5c9a4; line-height: 1.2; }
.shop__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-bottom: 18px; margin-bottom: 30px; border-bottom: 2px dashed var(--kraft); }
.shop__bar p { margin: 0; font-size: 1.05rem; }
.find input { width: 260px; max-width: 100%; padding: 10px 4px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font-family: var(--f-hand); font-size: 1.5rem; color: var(--ink); outline: 0; }
.find input:focus { border-bottom-color: var(--terra); }
.empty { display: block; text-align: center; padding: 40px 0; }

/* ---------- About: editorial ---------- */
.editorial { padding: clamp(60px, 9vw, 110px) 0; }
.editorial__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.editorial__side { position: sticky; top: 110px; }
.polaroid--solo { rotate: -3deg; }
.polaroid--solo img { aspect-ratio: 1; object-position: 35% 50%; }
.editorial__body { max-width: 680px; }
.editorial__body p { font-size: 1.1rem; color: var(--ink-2); }
.editorial__body h2 { margin-bottom: 0; }
.editorial__body .scribble { margin-bottom: 24px; }
.pull { margin: 46px 0; padding: 10px 0 10px 28px; border-left: 5px solid var(--terra); font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; }

.ledger-section { padding: clamp(60px, 9vw, 110px) 0; background: var(--parch-2); }
.ledger { list-style: none; margin: 0 auto; padding: 10px 0; max-width: 860px; background: var(--paper); box-shadow: var(--shadow-lg); background-image: linear-gradient(90deg, transparent 150px, rgba(164, 68, 42, .5) 150px 152px, transparent 152px); }
.ledger__row { display: grid; grid-template-columns: 150px 1fr; align-items: start; padding: 22px 28px 22px 0; border-bottom: 1px solid rgba(74, 101, 48, .3); }
.ledger__row:last-child { border-bottom: 0; }
.ledger__year { text-align: center; font-size: 1.7rem; padding-top: 2px; }
.ledger__row > div { padding-left: 28px; }
.ledger__row h3 { font-size: 1.4rem; margin-bottom: 4px; }
.ledger__row p { margin: 0; color: var(--ink-2); }

.vision { padding: clamp(60px, 9vw, 110px) 0; }
.vision__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center; }
.vision__card { padding: clamp(30px, 5vw, 50px); background: var(--green); color: var(--paper); rotate: 1.5deg; box-shadow: var(--shadow-lg); }
.vision__card .script { color: var(--note); }
.vision__big { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; margin: 10px 0 28px; }

/* ---------- Service: split panels ---------- */
.split-panels { padding: clamp(50px, 7vw, 80px) 0 0; }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding: clamp(50px, 8vw, 100px) max(var(--gutter), calc((100vw - 1220px) / 2 + var(--gutter))); }
.panel--snacks { background: var(--green-d); color: var(--paper); }
.panel--snacks .panel__img { order: 2; }
.panel--snacks .script { color: var(--note); }
.panel--snacks p { opacity: .88; }
.panel__img { position: relative; width: min(420px, 100%); aspect-ratio: 1; justify-self: center; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 10px solid var(--paper); box-shadow: var(--shadow-lg); }
.panel__img::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px dashed currentColor; opacity: .4; animation: spin 40s linear infinite; }
.panel__text p { font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding: 6px 0 6px 34px; position: relative; font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.2; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 4px; color: var(--terra); font-family: var(--f-body); font-weight: 800; font-size: 1.3rem; }

/* ---------- Contact: postcard ---------- */
.post { padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 10vw, 120px); }
.postcard {
  display: grid; grid-template-columns: 1.3fr 1fr; background: var(--paper); box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 50px); gap: clamp(24px, 4vw, 50px); rotate: -.6deg; position: relative;
  background-image: linear-gradient(90deg, transparent calc(56.5% - 1px), rgba(58, 34, 19, .25) calc(56.5% - 1px) calc(56.5% + 1px), transparent calc(56.5% + 1px));
}
.postcard::before { content: ""; position: absolute; inset: 10px; border: 6px solid transparent; border-image: repeating-linear-gradient(45deg, var(--terra) 0 14px, transparent 14px 22px, #2c4a7a 22px 36px, transparent 36px 44px) 6; pointer-events: none; }
.postcard__hello { font-size: 2.2rem; color: var(--ink); margin-bottom: 10px; }
.line { display: flex; align-items: baseline; gap: 10px; border-bottom: 1.5px solid rgba(58, 34, 19, .35); margin-bottom: 14px; }
.line span { flex-shrink: 0; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); width: 72px; }
.line input, .line textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font-family: var(--f-hand); font-size: 1.6rem; color: var(--ink); line-height: 1.3; resize: vertical; }
.line textarea { background-image: repeating-linear-gradient(transparent 0 calc(2.08rem - 1px), rgba(58, 34, 19, .2) calc(2.08rem - 1px) 2.08rem); }
.line:focus-within { border-bottom-color: var(--terra); }
.line:focus-within span { color: var(--terra); }
.line.is-invalid { border-bottom-color: #c0392b; }
.line ::placeholder { color: rgba(58, 34, 19, .35); }
.hint { font-size: .9rem; color: var(--ink-2); }
.hint.is-error { color: #c0392b; font-weight: 800; }
.hint.is-ok { color: var(--green); font-weight: 800; }

.postcard__addr { position: relative; display: flex; flex-direction: column; padding-top: 150px; }
.postage {
  position: absolute; top: 0; right: 0; width: 104px; height: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--green); color: var(--note); font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 2rem;
  -webkit-mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 50% 0 / 14px 51% repeat-x, radial-gradient(circle 5px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 51% repeat-x;
          mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 50% 0 / 14px 51% repeat-x, radial-gradient(circle 5px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 51% repeat-x;
  rotate: 4deg; transition: rotate .5s var(--spring);
}
.postage small { font-family: var(--f-body); font-style: normal; font-size: .8rem; }
.postcard:hover .postage { rotate: -3deg; }
.postmark { position: absolute; top: 34px; right: 76px; width: 110px; height: 110px; border-radius: 50%; border: 2px solid rgba(58, 34, 19, .55); display: grid; place-items: center; text-align: center; font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: rgba(58, 34, 19, .6); rotate: -16deg; line-height: 1.4; }
.postmark::after { content: ""; position: absolute; left: 80%; top: 30%; width: 120px; height: 40px; background: repeating-linear-gradient(180deg, rgba(58, 34, 19, .45) 0 2px, transparent 2px 9px); -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
.addr-lines { display: flex; flex-direction: column; }
.addr-lines strong, .addr-lines span { border-bottom: 1.5px solid rgba(58, 34, 19, .35); padding: 6px 0; font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.2; }
.addr-lines strong { font-size: 2rem; }
.addr-links { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; font-weight: 700; }
.addr-links a { transition: color .3s, translate .3s var(--ease); }
.addr-links a:hover { color: var(--terra); translate: 6px 0; }
.polaroid--map { margin: 60px auto 0; max-width: 900px; rotate: 1deg; }
.polaroid--map iframe { display: block; width: 100%; height: 380px; border: 0; filter: sepia(.35) saturate(.85); }

/* ---------- Footer ---------- */
.footer { position: relative; background: #2e1b0f; color: rgba(243, 232, 211, .78); margin-top: 12px; }
.footer .deckle { position: absolute; left: 0; right: 0; top: -11px; background: #2e1b0f; }
.footer__wrap { width: min(1220px, 100%); margin-inline: auto; padding: 70px var(--gutter) 50px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__quote { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--kraft-l); margin: 22px 0 12px; line-height: 1.4; }
.footer h4 { font-size: 1.8rem; color: var(--kraft-l); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--note); }
.footer address { font-style: normal; line-height: 1.8; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__social a { padding: 6px 12px; border: 1.5px dashed rgba(243, 232, 211, .4); border-radius: 4px; font-size: .85rem; font-weight: 700; }
.footer__social a:hover { border-color: var(--note); }
.footer__bottom { width: min(1220px, 100%); margin-inline: auto; padding: 22px var(--gutter) 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px dashed rgba(243, 232, 211, .2); font-size: .88rem; }
.footer__bottom a { color: var(--kraft-l); }

/* ---------- Quick view ---------- */
.qv { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--gutter); visibility: hidden; transition: visibility 0s .5s; }
.qv.is-open { visibility: visible; transition-delay: 0s; }
.qv__backdrop { position: absolute; inset: 0; background: rgba(46, 27, 15, .6); opacity: 0; transition: opacity .4s; }
.qv.is-open .qv__backdrop { opacity: 1; }
.qv__panel { position: relative; width: min(820px, 100%); max-height: calc(100svh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; padding: 30px; background: var(--kraft-l) url("../../images/noise_pattern.png"); box-shadow: var(--shadow-lg); opacity: 0; translate: 0 -60px; rotate: -4deg; transform-origin: top center; transition: opacity .3s, translate .7s var(--spring), rotate .9s var(--spring); }
.qv.is-open .qv__panel { opacity: 1; translate: 0 0; rotate: 0deg; }
.qv__photo { background: var(--paper); padding: 10px 10px 34px; rotate: -2deg; box-shadow: var(--shadow); align-self: start; }
.qv__photo img { width: 100%; aspect-ratio: 263 / 334; object-fit: cover; }
.qv__body h3 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 6px 0 14px; }
.qv__body p { color: var(--ink-2); }
.qv__note { font-family: var(--f-hand); font-size: 1.4rem; color: var(--green-d) !important; line-height: 1.2; }
.qv__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 26px; }
.qv__close { position: absolute; top: 10px; right: 14px; width: 42px; height: 42px; font-size: 2rem; line-height: 1; border-radius: 50%; transition: rotate .4s var(--spring), background .3s; }
.qv__close:hover { rotate: 90deg; background: rgba(58, 34, 19, .1); }
body.no-scroll { overflow: hidden; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--kraft-l); font-size: 1.4rem; font-weight: 800; box-shadow: 0 0 0 3px var(--parch), 0 0 0 5px var(--ink); opacity: 0; scale: .5; pointer-events: none; transition: opacity .3s, scale .5s var(--spring), rotate .5s var(--spring); }
.to-top.is-visible { opacity: 1; scale: 1; pointer-events: auto; }
.to-top:hover { rotate: -15deg; }

/* ---------- Keyframes ---------- */
@keyframes unroll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes hop { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .9; } 45% { transform: translate(var(--hx, 10px), -40px); } 100% { opacity: 0; transform: translate(calc(var(--hx, 10px) * 2), 30px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stampIn { 0% { opacity: 0; scale: 2.2; rotate: -25deg; } 70% { opacity: 1; scale: .94; } 100% { opacity: 1; scale: 1; rotate: var(--r, 0deg); } }
@keyframes wiggle { 0%, 100% { rotate: var(--r); } 30% { rotate: calc(var(--r) - 8deg); } 60% { rotate: calc(var(--r) + 6deg); } }
@keyframes swing { 0% { rotate: var(--r); } 20% { rotate: calc(var(--r) + 9deg); } 40% { rotate: calc(var(--r) - 6deg); } 60% { rotate: calc(var(--r) + 3deg); } 80% { rotate: calc(var(--r) - 1.5deg); } 100% { rotate: var(--r); } }
@keyframes jarWobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 50% { rotate: 3deg; } 75% { rotate: -1.5deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__call { display: none; }
  .shelf__items { flex-wrap: wrap; }
}

@media (max-width: 920px) {
  .nav__links { display: none; }
  .burger { display: block; }
  /* still full screen when stacked: art pinned to the top, note centred in the space left below it */
  .hero { padding-top: 0; justify-content: flex-start; }
  .hero__note { flex: 1; grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-right: 0; }
  .note { grid-column: 1; grid-row: 2; align-self: center; margin: 20px var(--gutter) 0; rotate: -1deg; }
  .story__grid, .board__grid, .editorial__grid, .vision__grid, .panel, .order__inner, .shop__grid { grid-template-columns: 1fr; }
  .editorial__side { position: static; max-width: 420px; }
  .panel--snacks .panel__img { order: 0; }
  .order__inner { justify-items: start; }
  .chalk { position: static; rotate: 0deg; }
  .chalk ul { columns: 2; column-gap: 26px; }
  .recipes__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .postcard { grid-template-columns: 1fr; background-image: none; rotate: 0deg; }
  .postcard__addr { border-top: 1.5px dashed rgba(58, 34, 19, .3); padding-top: 150px; }
  .footer__wrap { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  /* trim the hut on the left (keeps x 278–1238 of the art) so the quote reads larger on phones */
  .hero__art { aspect-ratio: 960 / 420; }
  .hero__img { object-position: right center; }
  .hero__grains { display: none; } /* the mortar they spill from is cropped out */  .shelf { margin-bottom: 50px; }
  .shelf__items { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 0 6px; }
  .jar__label strong { font-size: .9rem; }
  .tag { width: 196px; }
  .tag-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .tag__body { padding: 28px 10px 14px; }
  .tag__name { font-size: 1rem; }
  .tag__order { font-size: .68rem; padding: 5px 8px; letter-spacing: .1em; }
  .polaroids { min-height: 360px; }
  .notes { grid-template-columns: 1fr; }
  .sticky:nth-child(4) { max-width: none; }
  .facts strong { font-size: 1.8rem; }
  .banner__copy { padding: 20px 0 30px; }
  .banner__copy p { display: none; }
  .ledger { background-image: none; }
  .ledger__row { grid-template-columns: 1fr; padding: 18px 20px; }
  .ledger__year { text-align: left; }
  .ledger__row > div { padding-left: 0; }
  .chalk ul { columns: 1; }
  .footer__wrap { grid-template-columns: 1fr; }
  .qv__panel { grid-template-columns: 1fr; padding: 22px; }
  .qv__photo { max-width: 260px; }
  .line { flex-direction: column; gap: 0; }
  .line span { width: auto; padding-top: 6px; }
  .postmark { right: 120px; }
  .polaroid--map iframe { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split .w > span { opacity: 1; transform: none; }
  .js .reveal-stamp { opacity: 1; scale: 1; rotate: var(--r, 0deg); }
  .js .hero__art { clip-path: none; }
}
