/* MEAT ON THE MENU — Tier-1 demo
   Cross-industry pull: third-wave coffee roaster (workshopcoffee.com) + Cape winelands cellar door
   Dials: DV=6 (restrained variance), MI=3 (sparse motion), VD=5 (middle density)
   Cage being escaped: standard SA butcher grammar (red meat on block, green/red palette, braai)
*/

:root {
  --roast:       #2B1810;  /* primary, anchor ink */
  --brass:       #C9A961;  /* biltong fat-cap gold, heritage */
  --paprika:     #7A2E1F;  /* accent, one per page max */
  --paper:       #F4EEE2;  /* butcher-paper cream background */
  --espresso:    #1A0F0A;  /* body copy, never pure black */
  --twine:       #8B7355;  /* dividers, meta, captions */

  --paper-deep:  #E8DFCC;
  --roast-soft:  #4A2E22;
  --rule:        rgba(43, 24, 16, 0.12);
  --rule-strong: rgba(43, 24, 16, 0.28);

  --type-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --type-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --rad-s: 3px;
  --rad-m: 6px;
  --rad-l: 12px;

  --pad-1: 0.5rem;
  --pad-2: 1rem;
  --pad-3: 1.5rem;
  --pad-4: 2rem;
  --pad-6: 3rem;
  --pad-8: 4.5rem;
  --pad-12: 7rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--type-body);
  color: var(--espresso);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--type-display);
  color: var(--roast);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 var(--pad-2);
  line-height: 1.15;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); font-weight: 500; font-variation-settings: "opsz" 30; }
h4 { font-size: 0.92rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--type-mono); color: var(--twine); }
p  { margin: 0 0 var(--pad-2); max-width: 62ch; }
a  { color: var(--roast); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--brass); }
a:hover { color: var(--paprika); text-decoration-color: var(--paprika); }

.wrap   { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad-3); }
.narrow { max-width: 740px;  margin: 0 auto; padding: 0 var(--pad-3); }

/* ───────── header ───────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 238, 226, 0.93);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.bar-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem var(--pad-3);
  max-width: 1180px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--roast);
  font-family: var(--type-display);
  font-weight: 500; font-size: 1.1rem; letter-spacing: 0.02em;
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--roast); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--type-mono); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--brass);
}
.nav { display: flex; gap: 1.4rem; align-items: center; font-size: 0.95rem; }
.nav a { color: var(--roast); text-decoration: none; }
.nav a:hover { color: var(--paprika); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: var(--roast); color: var(--paper);
  border: 1px solid var(--roast);
  border-radius: var(--rad-s);
  font-family: var(--type-body); font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
  transition: background 220ms ease, transform 220ms ease;
}
.btn:hover { background: var(--roast-soft); color: var(--paper); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--roast); }
.btn.ghost:hover { background: var(--roast); color: var(--paper); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: var(--roast); }
.btn.brass:hover { background: var(--roast); color: var(--paper); border-color: var(--roast); }

/* ───────── hero ───────── */
.hero {
  position: relative;
  padding: var(--pad-12) var(--pad-3) var(--pad-8);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--pad-6); align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--type-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  color: var(--twine); text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-deep);
  margin-bottom: var(--pad-3);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.hero h1 { margin-bottom: var(--pad-3); }
.hero h1 .accent { color: var(--paprika); }
.hero-lede {
  font-size: 1.18rem; color: var(--espresso); max-width: 52ch;
  margin-bottom: var(--pad-4);
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: var(--pad-4);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: var(--pad-3);
  border-top: 1px solid var(--rule);
}
.hero-meta .item h4 { color: var(--twine); margin-bottom: 0.35rem; }
.hero-meta .item p { font-family: var(--type-display); font-size: 1.05rem; color: var(--roast); margin: 0; }
.hero-img {
  position: relative;
  border-radius: var(--rad-m);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--roast);
  box-shadow: 0 30px 60px -20px rgba(43, 24, 16, 0.4);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img .stamp {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(244, 238, 226, 0.95);
  padding: 0.5rem 0.85rem;
  border-radius: var(--rad-s);
  font-family: var(--type-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--roast);
}

/* image placeholder — swap for <img> when renders land */
.img-placeholder {
  width: 100%; height: 100%;
  background: var(--roast);
  display: grid; place-items: center;
  color: var(--brass);
  font-family: var(--type-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--brass);
}
.img-placeholder::before {
  content: attr(data-render);
  display: block;
}

/* ───────── wedge band ───────── */
.wedge {
  background: var(--roast);
  color: var(--paper);
  padding: var(--pad-8) var(--pad-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wedge .wrap {
  display: grid; grid-template-columns: 0.4fr 1fr; gap: var(--pad-6); align-items: start;
}
.wedge h4 { color: var(--brass); margin-bottom: 0; }
.wedge h2 {
  color: var(--paper); font-family: var(--type-display); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.22; max-width: 28ch;
}
.wedge p { color: rgba(244, 238, 226, 0.78); max-width: 60ch; }

/* ───────── story section ───────── */
.story {
  padding: var(--pad-8) 0;
  background: var(--paper);
}
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad-6); align-items: center; }
.story .copy h4 { margin-bottom: var(--pad-2); }
.story .copy p { font-size: 1.05rem; }
.story .copy .pull {
  font-family: var(--type-display); font-size: 1.4rem; line-height: 1.4;
  color: var(--roast); border-left: 2px solid var(--brass);
  padding-left: var(--pad-3); margin: var(--pad-3) 0;
  max-width: 38ch;
}
.story .img-wrap {
  aspect-ratio: 4/5;
  border-radius: var(--rad-m); overflow: hidden;
  background: var(--roast);
}
.story .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ───────── today's cuts ───────── */
.cuts {
  background: var(--paper-deep);
  padding: var(--pad-8) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cuts .head {
  display: grid; grid-template-columns: 1fr 0.6fr;
  gap: var(--pad-4); margin-bottom: var(--pad-6); align-items: end;
}
.cuts h2 { margin-bottom: 0; }
.cuts .head p { color: var(--espresso); margin: 0; opacity: 0.78; }
.cuts .head .date {
  font-family: var(--type-mono); font-size: 0.78rem; color: var(--twine);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.5rem; display: block;
}
.cuts-list {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--rad-m);
  overflow: hidden;
}
.cut-row {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 0.3fr;
  padding: 1.1rem var(--pad-3);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  gap: var(--pad-2);
}
.cut-row:last-child { border-bottom: 0; }
.cut-row .name { font-family: var(--type-display); font-size: 1.15rem; color: var(--roast); font-weight: 500; }
.cut-row .desc { font-size: 0.92rem; color: var(--twine); display: block; margin-top: 0.2rem; }
.cut-row .price { font-family: var(--type-mono); font-size: 1rem; color: var(--roast); text-align: right; font-weight: 500; }
.cut-row .unit { font-family: var(--type-mono); font-size: 0.78rem; color: var(--twine); text-align: right; letter-spacing: 0.05em; }

/* ───────── product cards ───────── */
.products {
  padding: var(--pad-8) 0;
  background: var(--paper);
}
.products .head { max-width: 660px; margin-bottom: var(--pad-6); }
.products .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--rad-m);
  padding: var(--pad-4);
  display: flex; flex-direction: column;
  transition: transform 250ms ease, border-color 250ms ease;
}
.product:hover { transform: translateY(-3px); border-color: var(--brass); }
.product .product-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--rad-s);
  overflow: hidden;
  background: var(--roast);
  margin-bottom: var(--pad-3);
}
.product .product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product h3 { margin-bottom: 0.5rem; }
.product .tag {
  font-family: var(--type-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--twine); text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.product p { font-size: 0.95rem; color: var(--espresso); flex: 1; }
.product .price-line {
  font-family: var(--type-mono); font-size: 0.92rem; color: var(--roast);
  margin-top: var(--pad-2);
  padding-top: var(--pad-2);
  border-top: 1px dashed var(--rule);
}

/* ───────── voice band ───────── */
.voice {
  background: var(--espresso);
  color: var(--paper);
  padding: var(--pad-8) 0;
}
.voice .wrap { max-width: 880px; }
.voice h4 { color: var(--brass); margin-bottom: var(--pad-3); }
.voice .quote {
  font-family: var(--type-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3; color: var(--paper);
  font-weight: 400; max-width: 30ch;
}
.voice .quote .accent { color: var(--brass); }
.voice .attribution {
  margin-top: var(--pad-4);
  font-family: var(--type-mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass);
}

/* ───────── find us ───────── */
.find {
  padding: var(--pad-8) 0;
  background: var(--paper);
}
.find .grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--pad-6);
}
.find .info p { font-size: 1.05rem; }
.find .info .row {
  display: flex; gap: 0.8rem; align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--rule);
}
.find .info .row span:first-child {
  font-family: var(--type-mono); font-size: 0.74rem; letter-spacing: 0.12em;
  color: var(--twine); text-transform: uppercase; min-width: 110px;
}
.find .info .row span:last-child {
  font-family: var(--type-body); color: var(--roast);
}
.find .hours-table {
  margin-top: var(--pad-2);
  font-family: var(--type-mono); font-size: 0.85rem;
  color: var(--roast);
}
.find .hours-table .day {
  display: flex; justify-content: space-between;
  padding: 0.3rem 0; border-bottom: 1px dashed var(--rule);
}
.find .hours-table .day:last-child { border-bottom: 0; }
.find .hours-table .day span:first-child { color: var(--twine); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.find .map {
  border-radius: var(--rad-m);
  overflow: hidden;
  border: 1px solid var(--rule);
  min-height: 360px;
  background: var(--paper-deep);
}
.find .map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ───────── footer ───────── */
footer {
  background: var(--roast);
  color: rgba(244, 238, 226, 0.72);
  padding: var(--pad-6) 0 var(--pad-4);
  font-size: 0.9rem;
}
footer .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--pad-4);
  margin-bottom: var(--pad-4);
}
footer h4 { color: var(--brass); margin-bottom: var(--pad-2); }
footer a { color: var(--paper); text-decoration: none; }
footer a:hover { color: var(--brass); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { margin-bottom: 0.4rem; }
footer .meta {
  margin-top: var(--pad-4); padding-top: var(--pad-3);
  border-top: 1px solid rgba(244, 238, 226, 0.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem;
  font-family: var(--type-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: rgba(244, 238, 226, 0.5);
}

/* ───────── 404 / thanks ───────── */
.utility {
  min-height: 70vh;
  display: grid; place-items: center;
  padding: var(--pad-8) var(--pad-3);
  background: var(--paper);
  text-align: center;
}
.utility h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.utility .code {
  font-family: var(--type-mono); font-size: 0.82rem; letter-spacing: 0.15em;
  color: var(--brass); margin-bottom: var(--pad-3);
}
.utility p { margin: 0 auto var(--pad-4); }

/* ───────── responsive ───────── */
@media (max-width: 860px) {
  .hero-grid,
  .story .wrap,
  .cuts .head,
  .products .grid,
  .find .grid,
  .wedge .wrap,
  footer .grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero { padding: var(--pad-6) var(--pad-3); }
  .cut-row { grid-template-columns: 1.4fr 0.4fr; }
  .cut-row .unit { display: none; }
}

/* ───────── motion: subtle reveal-on-scroll (MI=3 — sparse) ───────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── the mark (brand emblem showcase) ───────── */
.mark {
  background: var(--paper);
  padding: var(--pad-8) var(--pad-3);
  border-top: 1px solid rgba(43, 24, 16, 0.08);
  border-bottom: 1px solid rgba(43, 24, 16, 0.08);
}
.mark .wrap {
  display: grid; gap: var(--pad-4);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.mark h4 {
  color: var(--twine);
  letter-spacing: 0.18em;
}
.mark figure { margin: 0; }
.mark figure img {
  display: block; max-width: 100%; height: auto;
  margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(43, 24, 16, 0.25);
  border-radius: var(--rad-s);
}
.mark figcaption {
  font-family: var(--type-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--twine);
  text-transform: uppercase;
  margin-top: var(--pad-3);
}

/* ───────── the biltong wall (full-bleed editorial interlude) ───────── */
.biltong-wall {
  position: relative;
  width: 100%;
  min-height: 78vh;
  overflow: hidden;
  background: var(--roast);
  color: var(--paper);
  display: grid;
  align-items: end;
}
.biltong-wall > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.biltong-wall::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 15, 10, 0) 0%,
    rgba(26, 15, 10, 0.25) 55%,
    rgba(26, 15, 10, 0.85) 100%
  );
  z-index: 1;
}
.biltong-wall .overlay {
  position: relative; z-index: 2;
  padding: var(--pad-8) var(--pad-3);
  width: 100%;
}
.biltong-wall .overlay-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid; gap: var(--pad-2);
}
.biltong-wall h4 {
  color: var(--brass);
  letter-spacing: 0.2em;
  margin-bottom: 0;
}
.biltong-wall h2 {
  color: var(--paper);
  font-family: var(--type-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  max-width: 22ch;
  margin: 0;
}
.biltong-wall p {
  color: rgba(244, 238, 226, 0.82);
  max-width: 60ch;
  font-size: 1.05rem;
}
.biltong-wall .receipt {
  font-family: var(--type-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(201, 169, 97, 0.75);
  border-top: 1px solid rgba(201, 169, 97, 0.18);
  padding-top: var(--pad-2);
  margin-top: var(--pad-2);
  display: inline-block;
}
