/* Birchwood Ridge Beef, sample farm shop.
   Archetype: butcher's wall chart. Paper, ink, kraft, one stamp colour.
   Grid: 4 cols at phone width, 8 at tablet, 12 at desktop. Baseline 8px.
   Knobs a client would change are marked KNOB. */

@font-face { font-family: 'Bevan'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/bevan-400.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/archivo-400-700.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/courierprime-400.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/courierprime-700.woff2) format('woff2'); }

:root {
  /* grid */
  --cols: 4;
  --gutter: 16px;
  --margin: 16px;
  --maxw: 1280px;
  --bl: 8px;

  /* paper theme (default) */
  --paper: #f2ecdf;
  --paper-2: #e8dfcc;
  --paper-3: #dcd1b8;
  --kraft: #c49a62;            /* KNOB 1: accent paper colour */
  --kraft-deep: #7d5a2e;
  --kraft-soft: #e6d2ad;
  --ink: #1b1813;
  --ink-2: #4f483d;
  --ink-3: #665e51;
  --rule: rgba(27, 24, 19, .24);
  --rule-soft: rgba(27, 24, 19, .12);
  --stamp: #8f3a2d;            /* KNOB 2: stamp ink colour (barn red) */
  --stamp-soft: rgba(143, 58, 45, .12);
  --meat: #8c2c27;
  --stamp2: #3f5b3a;           /* pasture green, a quiet second accent */
  --btn-bg: #1b1813;
  --btn-fg: #f2ecdf;
  --btn-hover: #8f3a2d;
  --scrim: rgba(27, 24, 19, .5);
  --float: 0 18px 48px rgba(27, 24, 19, .26);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --f-display: 'Bevan', 'Rockwell', 'Georgia', serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #161817;
  --paper-2: #1f2321;
  --paper-3: #2b302d;
  --kraft: #c49a62;
  --kraft-deep: #d9b885;
  --kraft-soft: #46392a;
  --ink: #ebe4d3;
  --ink-2: #c0b7a5;
  --ink-3: #8f887b;
  --rule: rgba(235, 228, 211, .28);
  --rule-soft: rgba(235, 228, 211, .12);
  --stamp: #e09a7c;
  --stamp-soft: rgba(224, 154, 124, .16);
  --meat: #d9736c;
  --btn-bg: #c49a62;
  --btn-fg: #161817;
  --btn-hover: #d9b885;
  --scrim: rgba(0, 0, 0, .62);
  --float: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --cols: 8; --gutter: 24px; --margin: 32px; }
}
@media (min-width: 1024px) {
  :root { --cols: 12; --gutter: 24px; --margin: 48px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  /* uncoated paper grain, one tiny tiled SVG, no network request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
::selection { background: var(--kraft-soft); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.5rem + 3.9vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  line-height: 1.08;
  text-wrap: balance;
}
.h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.lede { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 36ch; }
.small { font-size: .9375rem; color: var(--ink-2); }
.measure { max-width: 62ch; }
.mono { font-family: var(--f-mono); }
.label {
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stamp);
}
.prose p + p { margin-top: calc(var(--bl) * 2); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- stamps + ledgers ---------- */
.stamp {
  display: inline-block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid currentColor;
  border-radius: 3px;
  padding: 5px 8px 4px;
  background: var(--paper);
}
.stamp--kraft { color: var(--kraft-deep); }
.stamp--ink { color: var(--ink); }
.stamp--meat { color: var(--meat); }
.stamp--tilt { transform: rotate(-2.5deg); }
.stamp--solid { background: var(--stamp); color: var(--paper); border-color: var(--stamp); }
[data-theme="dark"] .stamp--solid { color: #161817; }

.ledger { font-family: var(--f-mono); font-size: .875rem; line-height: 1.4; }
.ledger > div, .ledger__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0 6px;
  border-bottom: 1px dashed var(--rule);
}
.ledger dt { color: var(--ink-2); flex: 0 0 auto; }
.ledger dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ledger--loose > div { padding: 11px 0 10px; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--thick { border-top-width: 3px; border-color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--btn-bg);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: scale(.985); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.textlink {
  display: inline-block;
  padding: 9px 0;
  margin: -9px 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--kraft);
  transition: text-decoration-color .3s var(--ease);
}
.textlink:hover { text-decoration-color: var(--ink); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-moon { display: none; }
[data-theme="dark"] .ico-moon { display: block; }
[data-theme="dark"] .ico-sun { display: none; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 44px; height: 30px; }
.brand__mark path { fill: var(--ink); }
.brand__word { font-family: var(--f-display); font-size: 1.1875rem; line-height: 1; letter-spacing: .01em; }
@media (max-width: 419.98px) { .top .brand__word { font-size: 1.0625rem; display: block; max-width: 9em; } }
.brand__sub { display: none; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  border-bottom: 3px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav a:hover { border-color: var(--kraft); }
.nav a[aria-current="page"] { border-color: var(--ink); }
.top__acts { display: flex; align-items: center; gap: 4px; }
.cart-btn { position: relative; font-weight: 600; font-size: .9375rem; }
.cart-btn__n {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .75rem;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  border-radius: 3px;
  background: var(--paper);
}
.cart-btn__n[hidden] { display: none; }
.cart-btn__t { display: none; }
.menu-btn { display: inline-flex; }
@media (min-width: 720px) {
  .top__in { min-height: 72px; }
  .brand__word { font-size: 1.375rem; }
  .brand__sub { display: block; }
  .cart-btn__t { display: inline; }
}
@media (min-width: 1024px) {
  .nav { display: flex; gap: 4px; }
  .menu-btn { display: none; }
}

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.menu.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.menu__head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid var(--rule); }
.menu__list { padding-block: calc(var(--bl) * 3); }
.menu__list a {
  display: block;
  padding: 14px 0;
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px dashed var(--rule);
  transform: translateY(16px);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .12s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .18s; }
.menu__foot { margin-top: auto; padding-block: calc(var(--bl) * 3); }

/* ---------- sections ---------- */
.sec { padding-block: calc(var(--bl) * 7); }
.sec--tight { padding-block: calc(var(--bl) * 5); }
.sec--alt { background: var(--paper-2); }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: calc(var(--bl) * 4); }
.sec__head .lede { margin-top: var(--bl); }
.sec__num { display: block; margin-bottom: var(--bl); }
@media (min-width: 1024px) {
  .sec { padding-block: calc(var(--bl) * 12); }
  .sec--tight { padding-block: calc(var(--bl) * 8); }
  .sec__head { margin-bottom: calc(var(--bl) * 6); }
}

/* ---------- photo-led hero ---------- */
.phero { position: relative; }
.phero__media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.phero__card {
  position: relative;
  margin: -84px var(--margin) 0;
  padding: 26px 22px 24px;
  background: var(--paper);
  border-top: 5px solid var(--stamp);
  box-shadow: var(--float);
}
.phero__card .label { color: var(--stamp); }
.phero__card .display { margin-top: 12px; font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.02; overflow-wrap: break-word; }
.phero__card .lede { margin-top: 16px; max-width: 42ch; }
.phero__card .lead__acts { margin-top: 24px; }
.phero__note { margin-top: 18px; font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-3); }
.phero__note b { color: var(--ink-2); font-weight: 700; }
@media (min-width: 720px) {
  .phero__media { aspect-ratio: 2 / 1; }
  .phero__card { position: absolute; left: var(--margin); bottom: 36px; margin: 0; width: min(540px, 66%); }
}
@media (min-width: 1024px) {
  .phero__media { aspect-ratio: 16 / 7; }
  .phero__card { left: calc(50% - var(--maxw) / 2 + var(--margin)); width: min(560px, 48%); padding: 38px 38px 34px; }
}

/* one animal, nine cuts: the chart as a demoted feature, not the hero */
.cutmap { align-items: start; }
.cutmap__chart, .cutmap__text { grid-column: 1 / -1; }
.cutmap__text .h2 { margin-top: var(--bl); }
.cutmap__text .lede { margin-top: calc(var(--bl) * 2); }
.cutmap__text .lead__acts { margin-top: calc(var(--bl) * 3); }
.cutmap__chart { margin-top: calc(var(--bl) * 4); }
@media (min-width: 1024px) {
  .cutmap__text { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; }
  .cutmap__chart { grid-column: 5 / -1; margin-top: 0; }
}

/* ---------- hero ---------- */
.lead { padding-block: calc(var(--bl) * 5) calc(var(--bl) * 6); }
.lead__text { grid-column: 1 / -1; }
.lead__chart { grid-column: 1 / -1; margin-top: calc(var(--bl) * 3); }
.lead .display { margin-top: calc(var(--bl) * 2); }
.lead .lede { margin-top: calc(var(--bl) * 3); }
.lead__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: calc(var(--bl) * 4); }
.lead__sched { margin-top: calc(var(--bl) * 5); max-width: 420px; }
.lead__sched dt { color: var(--ink-3); }
@media (min-width: 1024px) {
  .lead { padding-block: calc(var(--bl) * 9) calc(var(--bl) * 10); }
  .lead__text { grid-column: 1 / span 5; align-self: center; }
  .lead__chart { grid-column: 6 / -1; margin-top: 0; }
}

/* ---------- the wall chart ---------- */
.chart {
  position: relative;
  border: 1px solid var(--rule);
  padding: 20px 16px 16px;
  background: var(--paper);
}
.chart::before {
  /* inner hairline, like a printed poster frame */
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.chart__tag { position: absolute; top: -12px; left: 16px; }
.chart__svg { width: 100%; height: auto; margin-top: 8px; }
.chart__cut {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
  transition: fill .35s var(--ease);
}
.chart__far { fill: var(--paper-3); stroke: var(--ink-3); stroke-width: 2; stroke-linejoin: round; }
.chart__head { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.chart__detail { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__eye { fill: var(--ink); }
.chart__num circle { fill: var(--paper); stroke: var(--stamp); stroke-width: 2.5; }
.chart__num text { font-family: var(--f-mono); font-weight: 700; font-size: 26px; fill: var(--stamp); text-anchor: middle; dominant-baseline: central; }
.chart__name { font-family: var(--f-mono); font-size: 19px; letter-spacing: .08em; fill: var(--ink-2); text-anchor: middle; display: none; }
.chart__link { cursor: pointer; outline: none; }
.chart__link:hover .chart__cut, .chart__link:focus-visible .chart__cut, .chart__link.is-hover .chart__cut, .chart__link.is-active .chart__cut { fill: var(--kraft-soft); }
.chart__link.is-active .chart__cut { fill: var(--kraft); }
.chart__link:focus-visible .chart__cut { stroke: var(--stamp); stroke-width: 4; }
.chart__link.is-active .chart__num circle { fill: var(--stamp); }
.chart__link.is-active .chart__num text { fill: var(--paper); }
.chart__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 720px) {
  .chart { padding: 28px 24px 20px; }
  .chart__name { display: block; }
}

/* numbered legend under the chart */
.legend { margin-top: calc(var(--bl) * 3); border-top: 3px solid var(--ink); }
.legend li { border-bottom: 1px dashed var(--rule); }
.legend a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  text-decoration: none;
  transition: background-color .3s var(--ease);
}
.legend__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.legend a:hover, .legend a.is-hover, .legend a.is-active { background: var(--kraft-soft); }
.legend a.is-active .legend__n { background: var(--stamp); color: var(--paper); }
.legend__n {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--stamp); border-radius: 50%;
  font-family: var(--f-mono); font-weight: 700; font-size: .9375rem; color: var(--stamp);
}
.legend__name { font-weight: 700; font-size: 1rem; }
.legend__what { display: block; font-size: .875rem; color: var(--ink-2); }
.legend__price { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 720px) {
  .legend { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: var(--gutter); border-top: 0; }
  .legend li { border-top: 3px solid var(--ink); border-bottom: 0; }
  .legend li:nth-child(n+4) { border-top: 1px dashed var(--rule); }
  .legend a { padding-right: 8px; }
  .legend--stack { display: block; border-top: 3px solid var(--ink); margin-top: 0; }
  .legend--stack li { border-top: 0; border-bottom: 1px dashed var(--rule); }
  .legend--stack a { min-height: 52px; }
}
.shop-top { align-items: start; }
.shop-top__chart, .shop-top__legend { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .shop-top__chart { grid-column: 1 / span 7; }
  .shop-top__legend { grid-column: 8 / -1; }
}

/* ---------- photo band ---------- */
.band { position: relative; }
.band__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band__card {
  margin: -40px var(--margin) 0;
  padding: 20px 20px 16px;
  background: var(--kraft);
  color: #1b1813;
  border: 1px solid rgba(27, 24, 19, .25);
  position: relative;
}
.band__card .label { color: #1b1813; }
.band__card .ledger { margin-top: 10px; }
.band__card .ledger > div { border-color: rgba(27, 24, 19, .35); }
.band__card .ledger dt, .band__card .ledger dd { color: #1b1813; }
@media (min-width: 720px) {
  .band__img { aspect-ratio: 21 / 9; }
  .band__card { position: absolute; left: var(--margin); bottom: 32px; margin: 0; width: min(420px, 60%); }
}
@media (min-width: 1024px) {
  .band__card { left: calc(50% - var(--maxw) / 2 + var(--margin)); }
}
@media (min-width: 1376px) {
  .band__card { left: calc(50% - var(--maxw) / 2 + var(--margin)); }
}

/* ---------- butcher cards ---------- */
.cards { display: grid; gap: var(--gutter); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
  transition: border-color .3s var(--ease);
}
[data-theme="dark"] .card { background: var(--paper-2); }
.card:hover { border-color: var(--ink); }
.card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--pos, 50% 50%);
}
.card__flag { position: absolute; left: 12px; top: 12px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.card__sku { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); }
.card__name { margin-top: 6px; font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.card__name a { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-decoration-color: var(--kraft); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card__ledger { margin-top: 12px; font-size: .8125rem; }
.card__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.card__price { font-family: var(--f-display); font-size: 1.625rem; line-height: 1; }
.card__price small { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-3); margin-left: 3px; }
.card__per { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-3); margin-top: 6px; }
.card--wide .card__img { aspect-ratio: 16 / 10; }
@media (min-width: 720px) {
  .card { grid-column: span 4; }
  .card--wide { grid-column: span 8; }
  .card--third { grid-column: span 4; }
}
@media (min-width: 1024px) {
  .card { grid-column: span 3; }
  .card--wide { grid-column: span 6; }
  .card--third { grid-column: span 3; }
  .card--wide .card__name { font-size: 1.375rem; }
  .card--wide .card__price { font-size: 2.125rem; }
}
/* compact row card: the shop list at phone width */
@media (max-width: 719.98px) {
  .cards--list .card { flex-direction: row; border-top-width: 1px; border-left: 4px solid var(--ink); }
  .cards--list .card__img { width: 124px; flex: 0 0 124px; aspect-ratio: auto; }
  .cards--list .card__body { padding: 12px 14px 14px; }
  .cards--list .card__ledger > div:nth-child(n+3) { display: none; }
  .cards--list .card__buy { padding-top: 10px; }
  .cards--list .card__price { font-size: 1.375rem; }
  .cards--list .card__flag { display: none; }
}
/* horizontal strip of cuts on the home page */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.strip .card { grid-column: auto; scroll-snap-align: start; }
@media (min-width: 560px) { .strip { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .strip { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); overflow: visible; } .strip .card { grid-column: span 3; } }

/* ---------- steps (a real sequence) ---------- */
.steps { counter-reset: step; border-top: 3px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--f-display); font-size: 3rem; line-height: 1; color: var(--kraft-deep); }
.steps h3 { grid-column: 2; font-weight: 700; font-size: 1.125rem; }
.steps p { grid-column: 2; margin-top: 6px; color: var(--ink-2); }
@media (min-width: 720px) {
  .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .steps li { display: block; border-bottom: 0; border-top: 3px solid var(--ink); padding: 20px 16px 0 0; }
  .steps li::before { display: block; margin-bottom: 16px; font-size: 3.5rem; }
}

/* ---------- tables ---------- */
.tbl { font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 12px 11px 0; border-bottom: 1px dashed var(--rule); vertical-align: top; }
.tbl th { font-family: var(--f-mono); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); border-bottom: 2px solid var(--ink); }
.tbl td:last-child, .tbl th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.tbl--mono td { font-family: var(--f-mono); font-size: .875rem; }
.tbl tfoot td { border-bottom: 0; font-weight: 700; }
.tbl-wrap { overflow-x: auto; }

/* ---------- split ---------- */
.split { align-items: center; }
.split__media, .split__text { grid-column: 1 / -1; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.split__text .h2 { margin-top: var(--bl); }
.split__text .prose { margin-top: calc(var(--bl) * 3); }
.facts { margin-top: calc(var(--bl) * 4); border-top: 3px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.facts dt { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); padding-top: 3px; }
.facts dd { margin: 0; }
@media (min-width: 1024px) {
  .split__media, .split__text { grid-row: 1; }
  .split__media { grid-column: 1 / span 7; }
  .split__text { grid-column: 8 / -1; }
  .split--flip .split__media { grid-column: 6 / -1; }
  .split--flip .split__text { grid-column: 1 / span 5; }
}

/* ---------- footer ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: calc(var(--bl) * 6) calc(var(--bl) * 4); }
[data-theme="dark"] .footer { background: #0f1110; }
.footer__grid { display: grid; gap: calc(var(--bl) * 4) var(--gutter); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.footer__col { grid-column: 1 / -1; }
.footer h2 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); margin-bottom: 12px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__contact { color: var(--ink-2); }
.footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__contact p + p { margin-top: 8px; }
.footer__bar { margin-top: calc(var(--bl) * 5); padding-top: calc(var(--bl) * 3); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-3); }
.sample { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.sample b { color: var(--stamp); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 720px) { .footer__col { grid-column: span 4; } }
@media (min-width: 1024px) { .footer__col { grid-column: span 3; } .footer__col--brand { grid-column: span 3; } }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 45; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 46;
  width: min(440px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  box-shadow: var(--float);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--rule); }
.drawer__title { font-family: var(--f-display); font-size: 1.375rem; }
.drawer__body { overflow-y: auto; padding: 16px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--rule); background: var(--paper); }
.drawer__empty { padding: 32px 0; color: var(--ink-2); }
.drawer__empty .btn { margin-top: 16px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.line__img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--rule); }
.line__name { font-weight: 700; line-height: 1.3; }
.line__var { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-3); margin-top: 2px; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.line__sum { font-family: var(--f-mono); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.qty button:hover { background: var(--paper-2); }
.qty output { min-width: 36px; text-align: center; font-family: var(--f-mono); font-weight: 700; }
.line__rm { border: 0; background: transparent; padding: 10px 0; min-height: 44px; font-family: var(--f-mono); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); }
.line__rm:hover { color: var(--meat); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: block;
  min-height: 56px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.choice span small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .75rem; margin-top: 4px; opacity: .8; }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--stamp); outline-offset: 2px; }
.field { margin-top: 12px; }
.field label { display: block; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); margin-bottom: 6px; }
.field select, .field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field input.mono { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.gate { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--stamp); font-family: var(--f-mono); font-size: .8125rem; color: var(--stamp); }
.totals { margin-top: 12px; }
.totals .big { font-family: var(--f-display); font-size: 1.5rem; }
.totals__note { margin-top: 8px; font-family: var(--f-mono); font-size: .75rem; color: var(--ink-3); }
.drawer__foot .btn { margin-top: 14px; }

/* demo receipt */
.receipt { position: relative; padding: 20px 0; }
.receipt__stamp { position: absolute; right: 0; top: 8px; }
.receipt__no { font-family: var(--f-mono); color: var(--ink-3); font-size: .8125rem; }
.receipt .h2 { margin-top: 8px; }
.receipt .ledger { margin-top: 20px; }
.receipt__note { margin-top: 20px; padding: 14px; border: 1px solid var(--rule); background: var(--paper-2); font-size: .9375rem; }
[data-theme="dark"] .receipt__note { background: var(--paper-3); }

/* ---------- shop page ---------- */
.shop-head { padding-block: calc(var(--bl) * 4) 0; }
.shop-head .display { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.shop-chart { margin-top: calc(var(--bl) * 3); }
.shop-chart .chart__name { font-size: 21px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: calc(var(--bl) * 3) calc(var(--bl) * 2); border-top: 3px solid var(--ink); margin-top: calc(var(--bl) * 4); }
.filters fieldset { border: 0; padding: 0; margin: 0; display: contents; }
.filters legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--stamp); outline-offset: 2px; }
.filters__sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.filters__sort label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); }
.filters__sort select { min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); font: inherit; font-size: .9375rem; }
.results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: calc(var(--bl) * 3); font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.cut-tag { display: inline-flex; align-items: center; gap: 8px; }
.cut-tag button { min-height: 44px; padding: 0 10px; border: 1.5px solid var(--stamp); border-radius: 3px; background: transparent; color: var(--stamp); font-family: var(--f-mono); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cut-tag button:hover { background: var(--stamp-soft); }
.shop-grid { padding-bottom: calc(var(--bl) * 10); }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--ink-2); }

/* ---------- product page ---------- */
/* space is reserved before the script renders, so nothing below it jumps */
[data-pdp] { min-height: 100vh; }
[data-grid], [data-boxes] { min-height: 320px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding-block: var(--bl); font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--rule); }
.pdp { padding-bottom: calc(var(--bl) * 8); align-items: start; }
.pdp__gallery, .pdp__buy { grid-column: 1 / -1; }
.pdp__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-3); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 50% 50%); }
.pdp__main .stamp { position: absolute; left: 16px; top: 16px; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pdp__thumbs button { padding: 0; border: 1px solid var(--rule); background: var(--paper-3); aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.pdp__thumbs button[aria-pressed="true"] { border: 2px solid var(--ink); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__buy { margin-top: calc(var(--bl) * 3); }
.pdp__title { margin-top: 8px; font-family: var(--f-display); font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.05; }
.pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-top: 16px; }
.pdp__price .big { font-family: var(--f-display); font-size: 2.75rem; line-height: 1; }
.pdp__price .per { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); }
.pdp__stock { margin-top: 10px; font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.pdp__blurb { margin-top: 16px; color: var(--ink-2); }
.variants { margin-top: 20px; border: 0; padding: 0; }
.variants legend { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); margin-bottom: 8px; padding: 0; }
.variants label { position: relative; display: block; margin-top: 8px; cursor: pointer; }
.variants input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.variants input + span { display: flex; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 2px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.variants input + span > span { display: block; }
.variants span b { display: block; font-weight: 700; }
.variants span small { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.variants span em { font-style: normal; font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.variants input:checked + span { background: var(--ink); color: var(--paper); }
.variants input:checked + span small { color: var(--paper); opacity: .8; }
.variants input:focus-visible + span { outline: 3px solid var(--stamp); outline-offset: 2px; }
.pdp__add { display: flex; gap: 12px; margin-top: 20px; }
.pdp__add .qty { border-color: var(--ink); }
.pdp__add .btn { flex: 1; }
.pdp__ok { margin-top: 10px; font-family: var(--f-mono); font-size: .8125rem; color: var(--stamp); min-height: 1.4em; }
.est { margin-top: 24px; border: 1px solid var(--rule); }
.est__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--kraft); color: #1b1813; font-family: var(--f-mono); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.est__body { padding: 14px; }
.est .choice { margin-top: 0; }
.est__out { margin-top: 12px; font-size: .9375rem; }
.est__out b { font-family: var(--f-mono); }
.est__pc { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.est__pc input { min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; }
.pdp__meta { grid-column: 1 / -1; margin-top: calc(var(--bl) * 4); }
.pdp__meta .h2 { margin-bottom: calc(var(--bl) * 3); }
.pdp__meta + .pdp__meta { margin-top: calc(var(--bl) * 6); }
.details { margin-top: 12px; }
.details li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.details li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border: 2px solid var(--kraft-deep); border-radius: 50%; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.5rem; color: var(--stamp); flex: 0 0 auto; transition: transform .3s var(--ease); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }
.faq .ans p + p { margin-top: 10px; }
@media (min-width: 1024px) {
  .pdp__gallery { grid-column: 1 / span 7; }
  .pdp__buy { grid-column: 8 / -1; margin-top: 0; position: sticky; top: 96px; }
  .pdp__meta { grid-column: 1 / span 7; }
  .pdp__meta--side { grid-column: 8 / -1; }
}
.related { padding-block: calc(var(--bl) * 6) calc(var(--bl) * 10); border-top: 1px solid var(--rule); }

/* ---------- pickup + delivery page ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.slots li { font-family: var(--f-mono); font-size: .875rem; padding: 10px 12px; border: 1.5px dashed var(--rule); text-align: center; }
.slots li.is-full { color: var(--ink-3); text-decoration: line-through; }
.pc { display: grid; gap: 8px; margin-top: 16px; }
.pc input { min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font-family: var(--f-mono); font-size: 1.125rem; letter-spacing: .12em; text-transform: uppercase; }
.pc__out { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--paper-2); font-size: .9375rem; min-height: 56px; }
.pc__out b { font-family: var(--f-mono); }
.pc__out.is-yes { border-color: var(--stamp); }
.pc__out.is-no { border-color: var(--meat); }
[data-theme="dark"] .pc__out { background: var(--paper-3); }
@media (min-width: 560px) { .pc { grid-template-columns: 1fr auto; } }
.cold { counter-reset: cold; }
.cold li { counter-increment: cold; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.cold li::before { content: counter(cold); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--stamp); border-radius: 50%; font-family: var(--f-mono); font-weight: 700; color: var(--stamp); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--rule); border-left: 6px solid var(--kraft); margin-top: calc(var(--bl) * 3); }
.notice .stamp { align-self: start; }

/* ---------- about page ---------- */
.year { position: relative; border-top: 3px solid var(--ink); }
.year li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--rule); }
.year__m { font-family: var(--f-mono); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); padding-top: 4px; }
.year h3 { font-weight: 700; font-size: 1.0625rem; }
.year p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 1024px) {
  .year { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 0; }
  .year li { display: block; border-bottom: 0; border-top: 3px solid var(--ink); padding: 16px 16px 0 0; }
  .year__m { display: block; margin-bottom: 10px; }
}
.gallery { display: grid; gap: var(--gutter); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.gallery figure { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.gallery figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 720px) { .gallery figure { grid-column: span 4; } .gallery figure:first-child { grid-column: 1 / -1; } .gallery figure:first-child img { aspect-ratio: 21 / 9; } }
@media (min-width: 1024px) {
  .gallery figure:first-child, .gallery figure:nth-child(3) { grid-column: 1 / span 8; }
  .gallery figure:first-child img, .gallery figure:nth-child(3) img { aspect-ratio: 16 / 9; }
  .gallery figure:nth-child(2) { grid-column: 9 / -1; grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .gallery figure:nth-child(2) img { aspect-ratio: auto; flex: 1; min-height: 0; }
}

/* ---------- policies, 404 ---------- */
.doc { padding-block: calc(var(--bl) * 5) calc(var(--bl) * 10); }
.doc__toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(var(--bl) * 3); }
.doc__toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 3px; font-family: var(--f-mono); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.doc__toc a:hover { background: var(--ink); color: var(--paper); }
.doc section { margin-top: calc(var(--bl) * 6); max-width: 68ch; }
.doc section .h2 { margin-bottom: calc(var(--bl) * 2); }
.lost { padding-block: calc(var(--bl) * 10) calc(var(--bl) * 14); }
.lost .display { margin-top: calc(var(--bl) * 2); }
.lost .lead__acts { margin-top: calc(var(--bl) * 4); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
