/* ============================================================
   SnackYak — shared site styles
   Rustic / heritage · Himalayan pickle brand
   ============================================================ */


/* ---------- Tokens ---------- */
:root {
  /* brand core */
  --brown:    #1A1410;
  --orange:   #C4622A;
  --chilli:   #B8341C;

  /* warm neutrals / paper */
  --cream:    #F6EEDF;
  --cream-2:  #EFE3CE;
  --kraft:    #E4D3B4;
  --kraft-d:  #D8C39C;
  --ink:      #2A2018;
  --ink-soft: #6B5C49;
  --line:     #D8C7A8;

  /* accents */
  --leaf:     #5E6B38;
  --leaf-d:   #485524;
  --gold:     #CE8A3C;
  --whatsapp: #B8341C;   /* brand decision: WhatsApp CTA in chilli red */
  --whatsapp-d:#8F2614;

  /* type */
  --serif:  'Newsreader', Georgia, serif;          /* @kind font */
  --sans:   'Bricolage Grotesque', system-ui, sans-serif; /* @kind font */
  --label:  'Space Grotesk', monospace;             /* @kind font */

  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 3px;
  --maxw: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1); /* @kind other */

  /* Chilli glyph for the spice/heat meter. Used as a CSS mask, so the visible
     colour comes from each dot's background (off = kraft, on = chilli). */
  --ic-chilli: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%23000'%3E%3Cpath%20d='M12.7%207c3.5.3%205.7%203.2%205.3%206.8-.5%204.3-3.4%208-7%209.4-.5.2-1.1%200-1.3-.6-.2-.5%200-1%20.4-1.3%202.9-1.9%204.8-5.1%205.2-8.3.2-2-.9-3.6-2.8-4.1z'/%3E%3Cpath%20d='M13%207.4c-.7-1.8-.4-3.6.8-4.9.9.9%201.3%202.2%201%203.5%201.2-.3%202.4%200%203.3.9-1.3.3-2.2%201-2.6%202.1-.6-1-1.5-1.6-2.5-1.6z'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .05; /* grain: removed mix-blend-mode multiply — a fixed+blended full-viewport layer forced a whole-page repaint on every scroll frame */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type utilities ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.018em;
}
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow {
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}
.eyebrow.muted { color: var(--ink-soft); }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); }
.measure { max-width: 60ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.section { padding: var(--s10) 0; }
.section.tight { padding: var(--s9) 0; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
  color: var(--cream);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s6); width: 100%; }
.site-header.solid {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(26,20,16,.5);
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand .seal { width: 38px; height: 38px; flex: 0 0 auto; }
.brand .wordmark {
  font-family: var(--sans); font-weight: 700; font-size: 24px;
  letter-spacing: -0.035em; line-height: 1;
}
.brand .wordmark .y { color: var(--orange); }
.nav { display: flex; align-items: center; gap: var(--s6); margin-left: var(--s7); }
.nav a {
  font-family: var(--label); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  position: relative; padding: 4px 0; opacity: .82;
  transition: opacity .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--orange); transition: width .28s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { opacity: 1; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--label); font-weight: 500; font-size: 13.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 26px; border: none; border-radius: var(--radius);
  background: var(--chilli); color: var(--cream);
  transition: transform .15s var(--ease), background .2s, box-shadow .2s;
  box-shadow: 0 1px 0 rgba(0,0,0,.15) inset, 0 10px 22px -14px var(--chilli);
}
.btn:hover { background: var(--whatsapp-d); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn.orange { background: var(--orange); box-shadow: 0 10px 22px -14px var(--orange); }
.btn.orange:hover { background: #A9501F; }
.btn.ghost {
  background: transparent; color: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn.ghost:hover { background: currentColor; color: var(--cream); }
.btn.dark { background: var(--brown); box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); }
.btn.dark:hover { background: #0d0a07; }
.btn.lg { padding: 17px 34px; font-size: 14.5px; }
.btn.sm { padding: 10px 16px; font-size: 12px; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff;
  font-family: var(--label); font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 20px; border-radius: var(--radius); border: none;
  box-shadow: 0 8px 22px -12px rgba(184,52,28,.9);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-whatsapp:hover { background: var(--whatsapp-d); transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(184,52,28,.7); }
.btn-whatsapp svg { width: 17px; height: 17px; fill: currentColor; }

.textlink {
  font-family: var(--label); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500; color: var(--orange);
  display: inline-flex; align-items: center; gap: 7px;
}
.textlink .arrow { transition: transform .25s var(--ease); }
.textlink:hover .arrow { transform: translateX(5px); }

/* ---------- Reveal on scroll ----------
   Visible by default. Only hidden while JS is actively managing reveals
   (html.js-reveal). Adding .in removes the hiding rule (no specificity
   fight), so revealed elements reliably return to the visible base state. */
[data-reveal] { transition: opacity .85s var(--ease), transform .85s var(--ease); }
html.js-reveal [data-reveal]:not(.in) { opacity: 0; transform: translateY(26px); }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal]:not(.in) { opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--kraft);
  padding: 15px 0;
}
.marquee.dark { background: var(--brown); color: var(--cream); border-color: rgba(255,255,255,.1); }
.marquee__track { display: inline-flex; gap: var(--s7); animation: marquee 28s linear infinite; will-change: transform; }
.marquee__track span {
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink);
  display: inline-flex; align-items: center; gap: var(--s7);
}
.marquee.dark .marquee__track span { color: var(--cream); }
.marquee__track span::after { content: "✻"; font-style: normal; color: var(--orange); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product card ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s5);
}
.product-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(26,20,16,.55); border-color: var(--kraft-d); }
.product-card .ph { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--kraft); }
.product-card .ph image-slot { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.product-card:hover .ph image-slot { transform: scale(1.04); }
.product-card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--label); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--brown); color: var(--cream); padding: 5px 10px; border-radius: 2px;
}
.product-card .tag.hot { background: var(--chilli); }
.product-card .body { padding: var(--s5) var(--s5) var(--s6); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.product-card .desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.product-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s3); }
.product-card .price { font-family: var(--sans); font-weight: 700; font-size: 18px; }
.heat { display: inline-flex; gap: 3px; align-items: center; }
/* Chilli-shaped spice indicator (was a red circle). Same on/off meaning:
   off = muted kraft fill, on = chilli red. Shape comes from a CSS mask so the
   .dot.on background colour and all existing heat-meter rules keep working. */
.heat .dot {
  width: 10px; height: 14px; border-radius: 0; background: var(--kraft-d);
  -webkit-mask-image: var(--ic-chilli); mask-image: var(--ic-chilli);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.heat .dot.on { background: var(--chilli); }

/* category chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s3); }
.chip {
  font-family: var(--label); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 100px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink-soft); transition: all .2s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active { background: var(--brown); border-color: var(--brown); color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--cream); padding: var(--s9) 0 var(--s6); }
.site-footer a { color: var(--cream); opacity: .72; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; color: var(--orange); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s6); padding-bottom: var(--s8); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col h4 { font-family: var(--label); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--s4); }
.footer-col .stack a, .footer-col .stack span { padding: 6px 0; display: block; font-size: 15px; }
.footer-brand .wordmark { font-family: var(--sans); font-weight: 700; font-size: 30px; letter-spacing: -0.035em; margin-bottom: var(--s3); }
.footer-brand .wordmark .y { color: var(--orange); }
.footer-brand p { color: rgba(246,238,223,.6); font-size: 15px; max-width: 30ch; }
.newsletter { display: flex; gap: 8px; margin-top: var(--s4); }
.newsletter input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 12px 14px; color: var(--cream); font-family: var(--sans); font-size: 14px;
}
.newsletter input::placeholder { color: rgba(246,238,223,.4); }
.newsletter input:focus { outline: none; border-color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s5); font-family: var(--label); font-size: 12px; letter-spacing: 0.04em; color: rgba(246,238,223,.5); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(196,98,42,.12); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Decorative ---------- */
.rule { height: 1px; background: var(--line); border: none; }
.kraft-band { background: var(--kraft); }
.dark-band { background: var(--brown); color: var(--cream); }
.dark-band .eyebrow.muted { color: rgba(246,238,223,.55); }
.dark-band .lead { color: rgba(246,238,223,.7); }

/* floaters (ingredient motion) */
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.floater { position: absolute; will-change: transform; }
@keyframes drift {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(var(--dx,12px), var(--dy,-18px)) rotate(var(--dr,8deg)); }
  100% { transform: translate(0,0) rotate(0deg); }
}

/* ---------- Interior page hero band ---------- */
.page-hero { padding-top: calc(var(--header-h) + var(--s8)); padding-bottom: var(--s7); }
.page-hero.kraft-band { background: var(--kraft); }
.page-hero.dark-band { background: var(--brown); color: var(--cream); }
.page-hero .crumb { font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7vw, 96px); line-height: .98; letter-spacing: -0.02em; }
.page-hero h1 em { font-style: italic; color: var(--orange); }
.page-hero .sub { margin-top: 22px; max-width: 52ch; font-size: clamp(16px,1.5vw,20px); line-height: 1.55; color: var(--ink-soft); }
.page-hero.dark-band .sub { color: rgba(246,238,223,.72); }

/* ---------- Collections toolbar ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s7); }
.count { font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Featured collection banner ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature .media { position: relative; }
.feature .media image-slot { width: 100%; height: 100%; }
.feature .copy { background: var(--brown); color: var(--cream); padding: clamp(32px,5vw,68px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.feature .copy h2 { font-family: var(--serif); font-size: clamp(32px,4vw,52px); line-height: 1.02; }
.feature .copy p { color: rgba(246,238,223,.72); max-width: 38ch; }

/* ---------- About: timeline / values ---------- */
.timeline { display: grid; gap: 0; }
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: var(--s6); padding: var(--s6) 0; border-top: 1px solid var(--line); align-items: start; }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-row .yr { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--orange); }
.tl-row h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.tl-row p { color: var(--ink-soft); max-width: 60ch; }
.bigquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px,4vw,52px); line-height: 1.18; letter-spacing: -0.01em; max-width: 22ch; }
.bigquote .by { display: block; font-family: var(--label); font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-top: 26px; }

/* ---------- Stories ---------- */
.feature-story { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s8); align-items: center; }
.feature-story .media { aspect-ratio: 4/3; }
.feature-story .media image-slot { width: 100%; height: 100%; }
.feature-story .cat { font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.feature-story h2 { font-family: var(--serif); font-size: clamp(30px,4vw,52px); line-height: 1.04; margin: 14px 0 16px; }
.feature-story p { color: var(--ink-soft); margin-bottom: 22px; max-width: 50ch; }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s6) var(--s5); }
.meta-row { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.meta-row .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--kraft-d); }

/* Journal cards (story grid + related) */
.jcard .media { display: block; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; background: var(--cream-2); }
.jcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.jcard:hover .media img { transform: scale(1.04); }
.jcard .cat { font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.jcard h3 { font-family: var(--serif); font-size: clamp(20px,2.1vw,26px); line-height: 1.1; margin: 8px 0 8px; }
.jcard h3 a:hover { color: var(--orange); }
.jcard p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.feature-story .media { display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.feature-story .media img { width: 100%; height: 100%; object-fit: cover; }
.feature-story h2 a:hover { color: var(--orange); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
.contact-form { display: grid; gap: var(--s4); }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); background: var(--cream-2); }
.info-card + .info-card { margin-top: var(--s4); }
.info-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.info-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.info-card a.line-link { color: var(--orange); }
.map-slot { width: 100%; aspect-ratio: 16/7; margin-top: var(--s5); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-slot image-slot { width: 100%; height: 100%; }
.faq dt { font-family: var(--serif); font-size: 21px; padding-top: var(--s5); }
.faq dd { margin: 8px 0 0; color: var(--ink-soft); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }

/* ---------- Article / long-form prose ---------- */
.article-hero { padding-top: calc(var(--header-h) + var(--s7)); padding-bottom: var(--s6); }
.article-hero .crumb { font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.article-hero .crumb a:hover { color: var(--ink); }
.article-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; }
.article-hero h1 em { font-style: italic; color: var(--orange); }
.article-hero .standfirst { margin-top: 22px; max-width: 56ch; font-size: clamp(17px,1.6vw,21px); line-height: 1.55; color: var(--ink-soft); font-family: var(--serif); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; font-family: var(--label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.article-meta .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--kraft-d); }
.article-figure { margin: 0; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

.prose { max-width: 68ch; margin: 0 auto; }
.prose > * + * { margin-top: var(--s5); }
.prose p { font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose .lead-para { font-size: 21px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-family: var(--serif); font-size: clamp(26px,3vw,38px); line-height: 1.1; margin-top: var(--s8); }
.prose h3 { font-family: var(--serif); font-size: clamp(21px,2.2vw,27px); margin-top: var(--s7); }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--kraft-d); }
.prose a:hover { text-decoration-color: var(--orange); }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink); }
.prose li { font-size: 18px; line-height: 1.7; margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--orange); padding: 4px 0 4px var(--s5); margin: var(--s7) 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px,2.6vw,28px); line-height: 1.4; color: var(--ink); }
.prose figure { margin: var(--s7) 0; }
.prose figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-family: var(--label); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; }

.article-foot { max-width: 68ch; margin: var(--s8) auto 0; padding-top: var(--s6); border-top: 1px solid var(--line); }
.article-foot .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag { font-family: var(--label); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 100px; padding: 7px 14px; }
.article-tag:hover { border-color: var(--orange); color: var(--orange); }

.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s6) var(--s5); margin-top: var(--s6); }
@media (max-width: 960px) { .related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
  .prose p, .prose li { font-size: 17px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature, .feature-story, .contact-grid, .story-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 960px) {
  /* Stacked feature banner: give the image real height so it doesn't collapse to a strip */
  .feature { min-height: 0; }
  .feature .media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 var(--s5); }
  .section { padding: var(--s9) 0; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s7); }
}


/* ---------- Mobile navigation (hamburger + full-screen menu) ----------
   The desktop .nav is display:none under 960px. site.js builds an accessible
   menu from the existing nav links, so every page that loads site.js gets it. */
.nav-toggle {
  display: none;                 /* shown only on mobile (<=960px) */
  position: relative; flex: 0 0 auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: none; background: transparent; color: currentColor;
  border-radius: 50%; transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(26,20,16,.07); }
.site-header:not(.solid) .nav-toggle:hover { background: rgba(246,238,223,.14); }
.nav-toggle-bars { position: relative; width: 22px; height: 14px; }
.nav-toggle-bars i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 6px; }
.nav-toggle-bars i:nth-child(3) { top: 12px; }
.nav-toggle.open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--s5) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--cream); color: var(--ink);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s linear .32s;
}
.mobile-menu.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s;
}
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; flex: 0 0 auto; }
.mobile-menu-head .wordmark { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: -0.035em; }
.mobile-menu-head .wordmark .y { color: var(--orange); }
.mobile-menu-close {
  width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s;
}
.mobile-menu-close:hover { border-color: var(--ink); color: var(--chilli); }
.mobile-nav { display: flex; flex-direction: column; margin-top: var(--s6); flex: 1 1 auto; }
.mobile-nav a {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 8.5vw, 44px); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a.active { color: var(--orange); }
.mobile-menu-wa { width: 100%; justify-content: center; margin-top: var(--s6); padding: 16px 20px; font-size: 14px; }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .site-header .wrap { gap: var(--s4); }
  .header-cta { gap: 8px; }
  /* collapse the header WhatsApp text button to an icon so brand + WA + cart + menu all fit */
  .site-header .btn-whatsapp {
    width: 42px; height: 42px; padding: 0; gap: 0; border-radius: 50%;
    justify-content: center; font-size: 0;        /* hides the text node, keeps the glyph + a11y name */
  }
  .site-header .btn-whatsapp svg { width: 19px; height: 19px; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }   /* never present on desktop */

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .nav-toggle-bars i { transition: none; }
}

/* ---------- Touch scrolling on images (ALL pages) ----------
   <image-slot> sets touch-action:none on its inner <img> (for the authoring
   drag-to-reframe). On a phone that means a finger-swipe that STARTS on any
   photo - the hero, product cards, the stacked process shots, article images -
   is swallowed and the page won't scroll (it feels frozen, especially on the
   hero/top banner). Re-enable vertical panning on every image-slot through its
   exposed parts so scrolling works wherever the finger lands. The home gallery
   keeps pan-x pan-y (in index.html) for its sideways swipe via a more specific
   rule. */
image-slot { touch-action: pan-y; }
image-slot::part(frame),
image-slot::part(image) { touch-action: pan-y !important; }
