/* Welch's Meats & Country Smokehouse.
   Colors + type: "Ember & Hickory" brand kit (brand/BRAND_HANDOFF.md, rev 2: clean & bold). Layout: the
   original farm-to-table page the owner preferred (esp. on phones). Solid color blocks, big Anton headlines,
   4px radius on buttons/tags, 6px on cards/frames, 60x4 Ember bar under titles, Bark/Ember card tops.
   NO grain, torn edges, tape, rotated stamps, double rules, gradients or soft-shadow cards. */

:root {
  --char: #17120F;
  --char-deep: #0E0B09;
  --bark: #7A1E16;
  --paper: #EFE3CC;
  --paper-shade: #E4D5B9;
  --paper-rule: #C9B999;
  --ember: #D9541E;
  --gold: #E0A526;
  --pasture: #3F4A33;
  --hickory: #3B2A20;
  --ash: #8C8378;
  --muted-on-dark: #B9AFA2;
  --muted-on-paper: #5E5248;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-accent: "Zilla Slab", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(64px, 8vw, 96px);
  --bar-h: 0px;
  --radius: 4px;
  --radius-lg: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--char); font-family: var(--font-body); font-size: 17px; line-height: 1.6; padding-bottom: var(--bar-h); }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); line-height: .95; text-transform: uppercase; letter-spacing: .5px; }
h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .3px; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--char); color: var(--paper); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Links underlined = clickable. */
a { color: var(--bark); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--char); text-decoration-thickness: 2px; }
.dark a:not(.btn) { color: var(--gold); }
.dark a:not(.btn):hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--char); outline-offset: 3px; }
.dark :focus-visible, .action-bar :focus-visible, .strip :focus-visible, .tile-hero :focus-visible { outline-color: var(--gold); }


/* Buttons: primary = solid block + arrow; secondary = 2px outline. Pressed state nudges down (feedback). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; text-align: center; border: 2px solid transparent; border-radius: var(--radius); transition: transform .08s, background-color .15s; }
.btn:hover { text-decoration: none; }
.btn-bark { background: var(--bark); color: var(--paper); }
.btn-bark:hover { background: #63170F; color: var(--paper); }
.btn-ember { background: var(--ember); color: var(--char); }
.btn-ember:hover { background: #E8682F; color: var(--char); }
.btn:active { transform: translateY(2px); }
.btn-line { background: transparent; color: var(--char); border-color: var(--char); font-weight: 600; }
.btn-line:hover { background: var(--char); color: var(--paper); }
.dark .btn-line { color: var(--paper); border-color: var(--paper); }
.dark .btn-line:hover { background: var(--paper); color: var(--char); }
.btn-paper { background: var(--paper); color: var(--char); }
.btn-paper:hover { background: #fff6e4; color: var(--char); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

.eyebrow { font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; color: var(--bark); }
.dark .eyebrow { color: var(--gold); }
.lead { font-family: var(--font-accent); font-size: clamp(20px, 2.1vw, 24px); line-height: 1.45; }
.ember { color: var(--ember); }
/* Short Ember accent bar under section titles. */
.section-head h2::after, .ag-copy h2::after, .sweets h2::after, .visit-copy h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--ember); margin-top: 16px; }
.sweets h2::after { margin-left: auto; margin-right: auto; }
.section { padding: var(--pad) 0; }
.paper { background: var(--paper); }
.paper-shade { background: var(--paper-shade); }
.ruled { border-top: 2px solid var(--char); border-bottom: 2px solid var(--char); }
.dark { background: var(--char); color: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-bottom: 44px; }
.intro { font-size: 19px; color: var(--muted-on-paper); margin-top: 8px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--char); }
.header-cta { white-space: nowrap; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 76px; }
.wordmark { display: flex; align-items: center; gap: 12px; line-height: 1; text-decoration: none; color: var(--char); }
.wm-mark { display: grid; place-items: center; width: 54px; height: 54px; flex: none; color: var(--bark); }
.wm-mark svg { width: 54px; height: 54px; }
.wm-text { display: flex; flex-direction: column; }
.wordmark:hover { color: var(--char); }
/* Name and tag sized to the same width (measured in Anton / Zilla Slab italic). Resize them as a pair. */
.wm-name { font-family: var(--font-display); font-size: 34px; color: var(--bark); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.wm-tag { font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: 22.4px; margin-top: 2px; white-space: nowrap; }
.nav { display: flex; gap: 4px 26px; }
.nav a { color: var(--char); text-decoration: none; font-weight: 600; white-space: nowrap; padding: 12px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--ember); color: var(--char); }
/* Scroll-spy with no JS (CSP blocks scripts): Chrome/Edge 140+ mark the link whose section is on screen. Other browsers just skip it. */
.nav { scroll-target-group: auto; }
.nav a:target-current { border-bottom-color: var(--ember); }

/* Hero */
/* Desktop hero is sized to fit one screen: type and art scale with viewport height as well as width. */
.hero { padding: clamp(32px, 6vh, 72px) 0 clamp(36px, 7vh, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 24px 56px; align-items: start; }
.hero-side { display: flex; flex-direction: column; gap: clamp(12px, 2.5vh, 24px); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.stamp { align-self: flex-start; font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: 20px; color: var(--gold); border: 1px solid var(--gold); padding: 5px 14px; border-radius: var(--radius); }
.hero h1 { font-family: var(--font-display); font-size: clamp(44px, min(7vw, 10.5vh), 108px); line-height: .92; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero .lead { color: #E4DCC8; max-width: 36rem; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.promises li { text-align: center; }
.promises li { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(224, 165, 38, .55); border-radius: var(--radius); padding: 6px 12px; white-space: nowrap; }
.promises li::before { content: "\2713\00a0"; }
.print { margin: 0 auto; width: min(100%, 300px, 42vh); }
.print-art { color: var(--gold); display: grid; place-items: center; padding: 0 6%; }
.print-art svg { width: 100%; height: auto; }
.print-art .smoke { opacity: .7; }
.print figcaption { white-space: nowrap; padding: 8px 0 0; text-align: center; font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: 19px; color: var(--gold); }

/* What-we-carry strip (static) */
.strip { background: var(--bark); color: var(--paper); border-top: 2px solid var(--char); border-bottom: 2px solid var(--char); }
.strip-list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; padding-top: 14px; padding-bottom: 14px; font-weight: 600; font-size: 15px; }
.strip-list li { white-space: nowrap; }
.strip-list li::before { content: "\2726"; margin-right: 8px; color: var(--gold); }

/* Journey + ordering steps: numbered, bordered "printed" grids. */
.journey, .steps { list-style: none; margin: 0; padding: 0; display: grid; border: 2px solid var(--char); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.journey { grid-template-columns: repeat(4, 1fr); }
.steps { grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.journey li, .steps li { padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; border-right: 2px solid var(--char); }
.journey li:last-child, .steps li:last-child { border-right: 0; }
.num { font-family: var(--font-display); font-size: 60px; line-height: .85; color: var(--ember); }
.journey p, .steps p { color: var(--hickory); }

/* The counter: bento tiles */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--hickory); border-top: 4px solid var(--ember); border-radius: var(--radius-lg); padding: 28px; }
.tile h3 { color: var(--paper); font-size: 28px; margin-bottom: 8px; }
.tile p { color: #DCD2C2; }
.tile .tag { font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: 18px; color: var(--gold); margin-bottom: 8px; }
.tile-hero { grid-column: span 2; grid-row: span 2; background: var(--bark); border-top: 4px solid var(--gold); display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 40px; }
.tile-hero h3 { font-size: clamp(40px, 5vw, 68px); line-height: .92; }
.tile-hero p { color: var(--paper); font-size: 19px; max-width: 34rem; }
.tile-hero .tag { font-size: 22px; }
.counter-note { margin-top: 32px; color: var(--muted-on-dark); }

/* Alpha-gal */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.ag-copy { display: flex; flex-direction: column; gap: 16px; }
.ag-copy h2 { font-size: clamp(36px, 4.2vw, 56px); }
.ag-copy .actions { margin-top: 8px; }
.frame { background: var(--paper); border-top: 4px solid var(--bark); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.frame h3 { color: var(--bark); }
.frame p { color: var(--muted-on-paper); }
.frame-foot { border-top: 1px solid var(--paper-rule); padding-top: 12px; font-size: 15px; }

/* Sweets */
.sweets { text-align: center; }
.sweets-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sweets p:last-child { font-family: var(--font-accent); font-size: clamp(20px, 2vw, 24px); color: var(--hickory); max-width: 40ch; }

/* Sister company: header row (copy left, buttons right) + three flavor tiles. */
.jerky-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 40px; }
.jerky-head .section-head { margin-bottom: 0; }
.jerky-head .lead { color: #E4DCC8; max-width: 40ch; }
.jerky-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch; }
.visit-copy { display: flex; flex-direction: column; gap: 20px; }
address { font-style: normal; font-size: 19px; line-height: 1.5; }
.contact { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--paper-rule); }
.contact li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 12px 0; border-bottom: 1px solid var(--paper-rule); }
.contact span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-paper); padding-top: 3px; }
.map { position: relative; min-height: 380px; border: 2px solid var(--char); border-top: 6px solid var(--bark); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-shade); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 376px; border: 0; }
/* Google's embed can't be styled without an API key, so tint it: multiply butcher paper over a desaturated map. Clicks pass through.
   Desktop only: mobile browsers (iOS Safari especially) can render a filtered or blended cross-origin iframe blank. */
@media (hover: hover) and (pointer: fine) {
  .map iframe { filter: grayscale(.55) sepia(.2) contrast(.95); }
  .map::after { content: ""; position: absolute; inset: 0; background: var(--paper); mix-blend-mode: multiply; pointer-events: none; }
}

/* Footer */
.footer { padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 36px; align-items: end; margin-bottom: 40px; }
.footer-mark { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.footer-mark .wm-name { font-size: clamp(60px, 9vw, 120px); color: var(--paper); }
.footer-mark .wm-tag { font-size: clamp(19px, 2vw, 24px); color: var(--gold); }
.footer-mark .wm-name, .footer-mark .wm-tag { white-space: normal; }
.footer-promise { font-size: 15px; color: var(--muted-on-dark); margin-top: 10px; letter-spacing: .04em; }
.footer-label { font-weight: 600; margin-bottom: 6px; }
.footer-contact p:last-child { font-size: 17px; line-height: 1.8; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; border-top: 1px solid var(--hickory); padding-top: 22px; font-size: 15px; color: var(--muted-on-dark); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom nav a { color: var(--paper) !important; display: inline-block; padding: 4px 0; }

.action-bar { display: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { row-gap: 24px; }
  .print { display: none; }
  .header-cta { display: none; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey li { border-bottom: 2px solid var(--char); }
  .journey li:nth-child(2n) { border-right: 0; }
  .journey li:nth-last-child(-n+2) { border-bottom: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .split, .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --bar-h: 74px; }
  html { scroll-padding-top: 116px; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 2px; gap: 0; }
  .wm-name { font-size: 28px; }
  .wm-mark { width: 44px; height: 44px; }
  .wm-mark svg { width: 44px; height: 44px; }
  .wordmark { gap: 10px; }
  .wm-tag { font-size: 18.7px; }
  .nav { width: 100%; justify-content: space-between; gap: 10px; font-size: clamp(13px, 3.75vw, 15px); }
  .nav a { padding: 10px 0; }
  .actions .btn { flex: 1 1 100%; }
  .strip-list { justify-content: flex-start; gap: 4px 16px; font-size: 14px; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .diet-cards { grid-template-columns: 1fr; }
  .promises li { font-size: 13px; letter-spacing: 0; text-transform: none; padding: 7px 10px; }
  .journey, .steps, .bento { grid-template-columns: 1fr; }
  .journey li, .steps li { border-right: 0; border-bottom: 2px solid var(--char); }
  .journey li:nth-last-child(-n+2) { border-bottom: 2px solid var(--char); }
  .journey li:last-child, .steps li:last-child { border-bottom: 0; }
  .tile-hero { grid-column: auto; grid-row: auto; min-height: 0; padding: 30px 26px; }
  .contact li { grid-template-columns: 5rem 1fr; }

  .action-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--char-deep); border-top: 2px solid var(--gold); }
  .action-bar .btn { min-height: 50px; padding: 10px 14px; }
  .action-bar svg { width: 20px; height: 20px; fill: currentColor; }
}

/* Keto + gluten-free cards (inside the special-diets section). */
.diet-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.diet-card { background: var(--paper); border-top: 4px solid var(--ember); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.diet-card .eyebrow { font-size: 20px; }
.diet-card h3 { font-size: clamp(24px, 2.4vw, 30px); }
.diet-card p:not(.eyebrow) { color: var(--muted-on-paper); }
.diet-card .diet-note { font-size: 15px; border-top: 1px solid var(--paper-rule); padding-top: 10px; margin-top: auto; }

@media (max-width: 720px) {
  .diet-cards { grid-template-columns: 1fr; margin-top: 32px; }
}

@media (max-width: 960px) {
  .jerky-cards { grid-template-columns: 1fr; }
}

/* Pantry row inside The Counter. */
.pantry { margin-top: 48px; }
.pantry-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.pantry-head h3 { font-size: clamp(28px, 3vw, 40px); color: var(--paper); }
.pantry-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pantry-grid .tile { padding: 24px; }
.pantry-grid .tile h3 { font-size: 24px; }
@media (max-width: 960px) { .pantry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pantry-grid { gap: 10px; } .pantry-grid .tile { padding: 18px 16px; } .pantry-grid .tile h3 { font-size: 21px; } .pantry-grid .tile p:not(.tag) { font-size: 15px; } }

/* Price board ("Priced by the pound") inside The Counter. Rendered from content/case.json by build.py. */
.board-wrap { margin-top: 48px; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 32px; margin-bottom: 20px; }
.board-head > div { display: flex; flex-direction: column; gap: 6px; }
.board-head h3 { font-size: clamp(28px, 3vw, 40px); color: var(--paper); }
.board-note { color: var(--muted-on-dark); max-width: 44ch; font-size: 15px; }
.board { background: var(--char-deep); border-top: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 28px clamp(20px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 48px; }
.board-col h3 { font-family: var(--font-accent); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 22px; color: var(--gold); margin-bottom: 4px; }
.board ul { list-style: none; margin: 0; padding: 0; }
.row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hickory); }
.row:last-child { border-bottom: 0; }
.row .mark { width: 16px; flex: none; color: var(--gold); }
.row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .line { display: flex; gap: 10px; align-items: baseline; }
.row .name { font-weight: 600; color: var(--paper); }
.row .tag { font-size: 13px; color: var(--gold); }
.row .dots { flex: 1; min-width: 12px; border-bottom: 2px dotted #5E5248; transform: translateY(-4px); }
.row .price { font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; color: var(--gold); white-space: nowrap; }
.row .desc { font-size: 14px; color: var(--muted-on-dark); }
.row.is-out .name { color: var(--ash); }
.row .out { font-size: 14px; font-weight: 600; color: var(--ash); white-space: nowrap; }
@media (max-width: 960px) {
  .board { grid-template-columns: 1fr; }
  .pantry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pantry-grid .tile:first-child { grid-column: 1 / -1; }
}
.board-note strong { color: var(--paper); font-weight: 600; }
