/* Display face: Vollkorn (design/DESIGN_SPEC.md ss1.4 - approved 2026-07-11
   after a 3-candidate type-specimen round; the earlier candidate's wonky
   poster grade distorted letterforms). Variable 400-900 + true italic,
   served same-origin from /assets/fonts/ - see _build_site()/FONTS_ASSET_DIR. */
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/vollkorn-variable.woff2) format('woff2');
}
@font-face {
  font-family: 'Vollkorn';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/vollkorn-italic-variable.woff2) format('woff2');
}

/* Design tokens - design/DESIGN_SPEC.md ss1. Implementers look values up
   there; this :root is the literal transcription and is covered by
   tests/test_artisanfood_design.py's token-lint (existence + regression). */
:root {
  --paper: #F7F7F1; --surface: #FFFFFF; --ink: #1E241C; --ink-soft: #5B6154;
  --line: #E1E1D5; --line-soft: #ECECE2;
  --navy: #012169; --navy-deep: #0A1633; --navy-wash: #E9EAE3;
  --red: #C8102E; --red-dark: #A00D25; --ochre: #7C6A2E;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --t-2: 0.72rem; --t-1: 0.85rem; --t0: 1rem;    --t1: 1.2rem;
  --t2: 1.44rem;  --t3: 1.73rem;  --t4: 2.07rem; --t5: 2.6rem;
  --t-hero: clamp(2.5rem, 5.4vw, 4.2rem);

  --font-display: 'Vollkorn', 'Iowan Old Style', Georgia, serif;
  --font-body: Seravek, 'Gill Sans', 'Noto Sans', Calibri, system-ui, sans-serif;

  --radius: 2px;
  --shadow-lift: 0 14px 34px -18px rgba(30, 36, 28, 0.38);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased; position: relative;
}
/* paper grain - one tiny SVG turbulence tile over everything (design/
   mockups/home.html) - the "handcrafted, not screen-printed" texture cue. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.19 0 0 0 0 0.16 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: none; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px; border-radius: var(--radius);
}
.af-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s5); }
.af-eyebrow { font-size: var(--t-2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.af-eyebrow--ochre { color: var(--ochre); }
.af-chip {
  display: inline-block; font-size: var(--t-2); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 3px var(--s2); color: var(--ink-soft); background: var(--surface);
}
.af-byline { font-size: var(--t-2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.af-rule-double { border: none; border-top: 3px double var(--ink); margin: 0; opacity: 0.85; }
.af-rule-thin { border: none; border-top: 1px solid var(--line); margin: 0; }

/* masthead (design/mockups/home.html - approved 2026-07-11) */
.af-top-ink-bar { height: 4px; background: var(--navy); }
.af-top-red-rule { height: 1px; background: var(--red); margin-top: 2px; }
.af-masthead { padding: var(--s5) 0 var(--s4); }
/* minmax(0, 1fr) rather than a bare 1fr - two 1fr tracks only stay equal
   width when their content's min-width happens to match; with mismatched
   content (a long eyebrow label vs a short "About" link) a bare 1fr lets
   the wider side's track grow past its fr-share, dragging the centred
   logo off true-centre. minmax(0, ...) pins both tracks to an equal share
   of the leftover space regardless of content, so the middle (logo)
   column is always dead-centre - including on mobile, where the two
   side items are display:none (zero content on both sides either way). */
.af-masthead-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s4); }
.af-masthead-right { text-align: right; }
.af-masthead-right a { color: var(--ink-soft); }
.af-masthead-right a + a { margin-left: var(--s4); }
/* Explicit grid-column: on mobile the left/right items are display:none
   (removed from grid placement entirely), so with only one item left in
   the row, default auto-placement would drop it into column 1 (flush
   left) instead of the middle column - pin it to column 2 explicitly so
   it's centred regardless of which siblings are actually rendered. */
.af-logo-lockup { display: flex; align-items: center; grid-column: 2; }
.af-logo-img { height: 64px; width: auto; display: block; }

/* nav - no JavaScript anywhere on this site, <details>/<summary> native
   disclosure. .af-nav-menu is deliberately `position: static` (NOT
   `relative`) so .af-shelf's positioning bubbles up to .af-nav (`position:
   relative`) instead of anchoring to whichever summary opened it - see
   _render_nav()'s docstring for why that was the actual overflow bug. */
.af-nav { position: relative; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.af-nav-row { display: flex; justify-content: center; gap: var(--s2); }
.af-nav-menu { position: static; }
.af-nav-row summary {
  list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  padding: var(--s3) var(--s4); min-height: 44px; display: flex; align-items: center; gap: var(--s2);
  font-size: var(--t-1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.af-nav summary::-webkit-details-marker { display: none; }
.af-nav-row summary::after {
  content: ""; width: var(--s2); height: var(--s2); border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.55;
}
.af-nav-row details[open] summary { color: var(--red); }
.af-nav-row details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.af-shelf {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  background: var(--surface); border-bottom: 1px solid var(--ink); box-shadow: var(--shadow-lift);
}
.af-shelf-inner { max-width: 1160px; margin: 0 auto; padding: var(--s5);
  display: grid; grid-template-columns: 220px 1fr; gap: var(--s6); }
.af-shelf-lead .af-eyebrow { display: block; margin-bottom: var(--s2); }
.af-shelf-lead p { font-size: var(--t-1); color: var(--ink-soft); margin-bottom: var(--s3); }
.af-shelf-lead a { font-weight: 600; font-size: var(--t-1); }
.af-shelf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1) var(--s5); align-content: start; }
.af-shelf-links a { padding: var(--s2) var(--s1); min-height: 40px; display: flex; align-items: center;
  color: var(--ink); font-size: var(--t-1); border-bottom: 1px solid var(--line-soft); }
.af-shelf-links a:hover { color: var(--navy); text-decoration: none; border-bottom-color: var(--navy); }

/* mobile menu (hidden above the 640px breakpoint - see the media query
   below). A single grouped burger+"Menu" control, not three separate
   elements that could look unrelated - a 2026-07-11 design review comment. */
.af-mobile-menu { display: none; }

.af-btn-primary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s5);
  background: var(--red); color: #fff !important; font-weight: 600; font-size: var(--t-1);
  letter-spacing: 0.04em; border-radius: var(--radius); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.22); }
.af-btn-primary:hover { background: var(--red-dark); }

/* homepage hero (design/mockups/home.html) - a dedicated component (the
   old flag-bg .af-hero/.af-hero-compact treatment it superseded is fully
   removed as of Phase 3.5, once _plain_header() replaced its last
   callers). Light background, text + mounted "plate" - no real
   photography yet (Phase 5), so the plate shows an honest branded
   placeholder (the stamp motif on navy) rather than a fake illustrative
   "photo", matching this site's no-fabricated-content stance. */
.af-home-hero { padding: var(--s8) 0; }
.af-home-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--s8); align-items: center; }
.af-home-hero h1 { font-size: var(--t-hero); font-weight: 600; letter-spacing: -0.01em; margin: var(--s4) 0; }
.af-home-amble { font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: var(--t1); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; margin: 0 0 var(--s5); }
.af-home-hero-ctas { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.af-link-quiet { font-weight: 600; font-size: var(--t-1); }
.af-home-hero-smallprint { margin-top: var(--s5); font-size: var(--t-2); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); }

/* mounted "plate" (photo-or-honest-placeholder), reused by guide/article
   hero plates in Phase 3 tasks 3.3/3.4 */
.af-plate { background: var(--surface); border: 1px solid var(--line); padding: var(--s3);
  box-shadow: var(--shadow-lift); position: relative; margin: 0; }
.af-plate-art { overflow: hidden; position: relative; aspect-ratio: 4 / 4.6; background: var(--navy);
  display: flex; align-items: center; justify-content: center; }
.af-plate-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.af-plate-caption { display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s3); padding: var(--s3) var(--s1) var(--s1); }
.af-plate-caption .af-cap { font-family: var(--font-display); font-style: italic;
  font-size: var(--t-1); color: var(--ink-soft); }
.af-stamp { position: absolute; top: -14px; right: -12px; width: 92px; height: 92px;
  transform: rotate(8deg); z-index: 2; }

/* trust strip */
.af-trust { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
.af-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.af-trust-item { padding: var(--s4) var(--s5); display: flex; gap: var(--s3); align-items: center; }
.af-trust-item + .af-trust-item { border-left: 1px solid var(--line); }
.af-trust-item svg { flex: none; color: var(--navy); }
.af-trust-item span { font-size: var(--t-1); color: var(--ink); line-height: 1.35; }

/* journal cards (lead + row) */
.af-j-lead { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift); text-decoration: none !important; color: inherit; }
.af-j-lead-art { position: relative; min-height: 320px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; }
.af-j-lead-body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3); justify-content: center; }
.af-j-lead-body h3 { font-size: var(--t3); color: var(--ink); }
.af-j-lead-body .af-standfirst { font-family: var(--font-display); font-style: italic;
  font-size: var(--t0); color: var(--ink-soft); line-height: 1.5; }
.af-j-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s5); }
.af-j-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease; text-decoration: none !important; color: inherit; }
.af-j-card:hover, .af-j-lead:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.af-j-card-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy);
  display: flex; align-items: center; justify-content: center; }
.af-j-card-body { padding: var(--s4) var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.af-j-card-body h3 { font-size: var(--t1); line-height: 1.25; color: var(--ink); }
.af-j-card-body p { font-size: var(--t-1); color: var(--ink-soft); }
.af-j-noimg-title { font-family: var(--font-display); font-weight: 600; color: #fff;
  padding: 0 var(--s4); text-align: center; font-size: var(--t2); line-height: 1.2; }
.af-j-lead .af-j-noimg-title { font-size: var(--t3); }

/* guide "ticket" band */
.af-band { background: var(--navy-wash); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.af-g-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.af-g-ticket {
  background: var(--surface); border: 1px solid var(--line); border-left: 1px dashed var(--ink);
  padding: var(--s5) var(--s4) var(--s4); position: relative;
  display: flex; flex-direction: column; gap: var(--s3);
  transition: transform 0.18s ease, box-shadow 0.18s ease; text-decoration: none !important; color: inherit;
}
.af-g-ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.af-g-ticket::before, .af-g-ticket::after {
  content: ""; position: absolute; left: -8px; width: var(--s3); height: var(--s3);
  background: var(--navy-wash); border: 1px solid var(--line); border-radius: 50%;
}
.af-g-ticket::before { top: -8px; }
.af-g-ticket::after { bottom: -8px; }
.af-g-ticket h3 { font-size: var(--t1); line-height: 1.25; flex: 1; color: var(--ink); }
.af-g-ticket .af-meta { font-size: var(--t-2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.af-g-ticket .af-go { font-weight: 600; font-size: var(--t-1); }

/* "Find makers near you" region section + map widget */
.af-region-section-grid { display: grid; grid-template-columns: 1fr 420px; gap: var(--s8); align-items: center; }
.af-region-copy p { color: var(--ink-soft); max-width: 46ch; margin: var(--s4) 0; }
.af-map-card { background: var(--surface); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow-lift); color: var(--ink); }
.af-map-card h2 { font-size: var(--t0); margin: 0 0 var(--s3); }
.af-region-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 52px; gap: var(--s1); }
.af-tile {
  background: var(--paper); border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: var(--t-2); font-weight: 600; color: var(--ink); padding: var(--s1); line-height: 1.15;
}
.af-tile:hover { background: var(--navy); color: #fff !important; text-decoration: none; }
.af-tile-empty { background: transparent; }
.af-tile-span { grid-column: 1 / 3; }
.af-map-all-link { display: block; margin-top: var(--s4); font-size: var(--t-1); font-weight: 600; text-align: center; }

/* plain page below the hero */
.af-intro { max-width: 66ch; color: var(--ink); font-size: var(--t0); }
.af-intro p + p { margin-top: var(--s4); }
section.af-block { padding: var(--s7) 0; }
section.af-block + section.af-block { border-top: 1px solid var(--line); }
.af-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s5); flex-wrap: wrap; }
.af-block-head h2 { font-size: var(--t3); margin: var(--s2) 0 0; }
.af-view-all { font-size: var(--t-1); font-weight: 600; }

/* category grid */
.af-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.af-cat-tile { background: var(--surface); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); text-decoration: none; color: var(--ink); }
.af-cat-tile:hover { background: var(--paper); text-decoration: none; }
.af-cat-tile svg { color: var(--navy); }
.af-cat-tile strong { font-size: var(--t0); transition: color 0.15s ease; }
.af-cat-tile:hover strong { color: var(--navy); }
.af-cat-tile .af-meta { color: var(--ink-soft); font-size: var(--t-1); }

/* generic index list (subcategory / children listing) */
.af-index-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); margin: var(--s5) 0; }
.af-index-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); text-decoration: none; color: var(--ink); }
.af-index-list a:hover { border-color: var(--navy); }
.af-index-list .af-meta { color: var(--ink-soft); font-size: var(--t-1); margin-top: var(--s1); }

/* product cards (guide picks, article tie-ins) - design/mockups/guide.html */
.af-p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--s5); }
.af-p-card { background: var(--surface); border: 1px solid var(--line); display: flex;
  flex-direction: column; position: relative; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.af-p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.af-p-card-art { margin: var(--s3) var(--s3) 0; border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3; overflow: hidden; }
.af-p-card-art img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.af-p-card-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.af-p-card-body h3 { font-size: var(--t1); line-height: 1.25; }
.af-p-card-body .af-seller { font-size: var(--t-2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.af-p-card-body .af-blurb { font-size: var(--t-1); color: var(--ink-soft); flex: 1; }
.af-p-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s2); }
.af-price-tag { font-variant-numeric: tabular-nums; font-weight: 700; font-size: var(--t0);
  border: 1px dashed var(--ink); padding: 3px var(--s3); border-radius: var(--radius); background: var(--paper); }
.af-btn-buy { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4);
  background: var(--red); color: #fff !important; text-decoration: none; font-weight: 600;
  font-size: var(--t-2); letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.22); }
.af-btn-buy:hover { background: var(--red-dark); }

/* ranked pick badge - order IS editorial information on a ranked shortlist.
   Unranked guides simply omit it (see .af-more below) - same card, no
   badge, and the section heading says what kind of list it is. */
.af-pick-no {
  position: absolute; top: var(--s1); left: var(--s1); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  border: 2px solid var(--surface); font-family: var(--font-display); font-weight: 600; font-size: var(--t1);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px -4px rgba(10, 22, 51, 0.6);
}

/* guide page (design/mockups/guide.html) - left-aligned editorial header,
   NOT the shared .af-hero/.af-hero-compact flag treatment (superseded). */
.af-guide-head { padding: var(--s7) 0 var(--s6); }
.af-guide-head .af-breadcrumbs { margin-bottom: var(--s5); }
.af-guide-chips { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.af-guide-head h1 { font-size: var(--t5); font-weight: 600; letter-spacing: -0.01em;
  max-width: 22ch; margin-bottom: var(--s4); }
.af-guide-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--t-2);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.af-guide-meta .af-dot { opacity: 0.45; }
.af-guide-rule { margin-top: var(--s5); }

.af-guide-plate-wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--s5); }
.af-guide-plate .af-plate-art { aspect-ratio: 21 / 9; }

.af-guide-body { padding: var(--s6) 0 0; }
.af-guide-intro { max-width: 68ch; }
.af-guide-intro p { margin-bottom: var(--s4); }
.af-guide-intro p:first-child { font-size: var(--t1); line-height: 1.55; color: var(--ink); }
.af-guide-intro p:not(:first-child) { color: var(--ink-soft); }

.af-picks { padding: var(--s6) 0 var(--s7); }
.af-picks-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s4); margin: 0 0 var(--s5); flex-wrap: wrap; }
.af-picks-head h2 { font-size: var(--t3); }
.af-picks-note { font-family: var(--font-display); font-style: italic; font-size: var(--t-1); color: var(--ink-soft); }

.af-breadcrumbs { font-size: var(--t-2); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.af-breadcrumbs a { color: var(--ink-soft); }

/* /delivery/ hub */
.af-hub-intro { margin: var(--s6) 0; }
.af-region { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.af-region:first-of-type { border-top: none; }
.af-county { border: 1px solid var(--line); border-radius: var(--radius); margin-top: var(--s2); }
.af-county summary { list-style: none; cursor: pointer; padding: var(--s3) var(--s4); font-weight: 600; display: flex; align-items: center; gap: var(--s2); }
.af-county summary::-webkit-details-marker { display: none; }
.af-county summary::before { content: "\25B8"; font-size: var(--t-2); opacity: 0.6; }
.af-county[open] summary::before { content: "\25BE"; }
.af-county .af-count { color: var(--ink-soft); font-weight: 400; font-size: var(--t-1); }
.af-town-list { list-style: none; margin: 0; padding: var(--s1) var(--s4) var(--s4) var(--s6); }
.af-town-list li { padding: var(--s1) 0; font-size: var(--t0); }
.af-soon { color: var(--ink-soft); font-size: var(--t-1); }

/* journal article page (design/mockups/article.html) - centred editorial
   header, NOT the shared .af-hero/.af-hero-compact flag treatment. */
.af-article-head { padding: var(--s7) 0 var(--s6); text-align: center; }
.af-article-head .af-breadcrumbs { justify-content: center; margin-bottom: var(--s5); }
.af-article-head .af-chip { margin-bottom: var(--s4); }
.af-article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600;
  letter-spacing: -0.01em; max-width: 24ch; margin: var(--s3) auto var(--s4); }
.af-article-head .af-byline { display: block; }
.af-article-head .af-rule-double { max-width: 220px; margin: var(--s5) auto 0; }

.af-article-plate-wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--s5); }
.af-article-plate .af-plate-art { aspect-ratio: 21 / 9; }

.af-article { max-width: 68ch; margin: 0 auto; padding: var(--s7) var(--s5) 0; }
.af-article .af-standfirst { font-size: var(--t1); line-height: 1.5; color: var(--ink-soft);
  font-family: var(--font-display); font-style: italic; text-align: center;
  max-width: 52ch; margin: 0 auto var(--s5); }
.af-article p { margin: 0 0 var(--s4); }
/* drop cap on the article's real opening paragraph - the one immediately
   after its first section heading (content_html always opens standfirst,
   h2, p... per generate_artisanfood_articles.py, so there's no "lead
   paragraph before any heading" to target directly; this selector reaches
   the same real opening line without needing any generation-pipeline or
   stored-content change). */
.af-article h2:first-of-type + p::first-letter {
  font-family: var(--font-display); font-weight: 600; font-size: 3.4em;
  line-height: 0.82; float: left; padding: 6px 10px 0 0; color: var(--navy);
}
/* sub-headers: bold body sans, not the display serif - the earlier
   candidate's poster grade was illegible at this size; this contrast
   (serif headline, sans crossheads) is the classic editorial pairing. */
.af-article h2 {
  font-family: var(--font-body); font-size: var(--t1); font-weight: 700;
  letter-spacing: 0.01em; line-height: 1.3;
  margin: var(--s6) 0 var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line);
}
.af-article ul { margin: 0 0 var(--s4); padding-left: var(--s5); }
.af-article li { margin-bottom: var(--s2); }

/* pull quote - reserved for a future content-pipeline enhancement (no real
   article currently has pull-quote markup; generate_artisanfood_articles.py
   emits standfirst/h2/p/ul/worth_knowing only). Styled now so a pull quote
   can be added later with zero template changes. */
.af-pull { margin: var(--s6) 0; padding: var(--s2) 0 var(--s2) var(--s5); border-left: 3px solid var(--red); }
.af-pull p { font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--t2); line-height: 1.35; color: var(--ink); margin: 0; text-wrap: balance; }

/* worth-knowing aside - letterpress notice box. The <strong> "Worth
   knowing" label is baked into stored content_html by
   generate_artisanfood_articles.py - restyled via that existing selector
   rather than changing the generation pipeline or historical article rows. */
.af-worth-knowing { border: 1px solid var(--ink); border-top: 3px double var(--ink);
  background: var(--surface); padding: var(--s4) var(--s5) var(--s5); margin: var(--s6) 0; }
.af-worth-knowing strong { display: block; font-family: var(--font-body); font-size: var(--t-2);
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre);
  margin-bottom: var(--s2); }
.af-worth-knowing p { font-size: var(--t-1); color: var(--ink); margin: 0; }

/* tie-in products ("Worth trying") */
.af-tiein { max-width: 980px; margin: var(--s7) auto 0; padding: 0 var(--s5); }
.af-tiein-head { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s2); flex-wrap: wrap; }
.af-tiein-head h2 { font-size: var(--t3); }
.af-tiein-note { font-family: var(--font-display); font-style: italic; font-size: var(--t-1);
  color: var(--ink-soft); margin-bottom: var(--s5); }
.af-tiein .af-p-grid { grid-template-columns: repeat(3, 1fr); }

.af-article-related-wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--s5); }

/* related-content blocks (further reading on articles, journal links on
   guides) - design/mockups/guide.html's .related */
.af-related { border-top: 3px double var(--ink); margin-top: var(--s7); padding-top: var(--s5); }
.af-related h2 { font-family: var(--font-body); font-size: var(--t-1); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s4); }
.af-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.af-related-list li { border-bottom: 1px solid var(--line-soft); }
.af-related-list a { display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s4); padding: var(--s3) 0; color: var(--ink); }
.af-related-list a:hover { color: var(--navy); text-decoration: none; }
.af-related-list .af-r-title { font-family: var(--font-display); font-size: var(--t1); line-height: 1.3; }
.af-related-list .af-meta { font-size: var(--t-2); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; margin-left: 0; }

/* footer (design/mockups/home.html) */
.af-footer { background: var(--navy-deep); color: #CDD0C8; margin-top: var(--s8); }
.af-footer a { color: #EDEFE8; }
.af-footer-rules { height: 4px; background: var(--red); }
.af-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s7);
  padding: var(--s7) 0 var(--s6); }
.af-footer h4 { color: #fff; font-size: var(--t0); margin-bottom: var(--s3); }
.af-footer-about p { font-size: var(--t-1); line-height: 1.6; max-width: 38ch; }
.af-footer-about .af-footer-motto { font-family: var(--font-display); font-style: italic;
  color: #A9ADA2; margin-top: var(--s3); }
.af-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.af-footer ul a { font-size: var(--t-1); }
.af-footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: var(--s4) 0 var(--s6);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  font-size: var(--t-2); letter-spacing: 0.06em; color: #969B90; }
.af-footer-bottom a { color: #969B90; }

@media (max-width: 900px) {
  .af-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .af-shelf-inner { grid-template-columns: 1fr; gap: var(--s4); }
  .af-shelf-links { grid-template-columns: repeat(2, 1fr); }
  .af-footer-grid { grid-template-columns: 1fr 1fr; }
  .af-home-hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .af-plate-art { aspect-ratio: 16 / 10; }
  .af-j-lead { grid-template-columns: 1fr; }
  .af-j-lead-art { min-height: 0; aspect-ratio: 16 / 9; }
  .af-j-row { grid-template-columns: repeat(2, 1fr); }
  .af-g-row { grid-template-columns: repeat(2, 1fr); }
  .af-region-section-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .af-tiein .af-p-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }

  .af-masthead { padding: var(--s3) 0; }
  .af-masthead-left, .af-masthead-right { display: none; }
  .af-logo-img { height: 44px; }

  /* nav row becomes a single full-width Menu disclosure - nothing here is
     ever absolutely positioned, so nothing can overflow. */
  .af-nav-row { display: none; }
  .af-mobile-menu { display: block; }
  .af-mobile-menu > summary {
    list-style: none; cursor: pointer; min-height: 48px;
    display: flex; align-items: center; justify-content: flex-start; gap: var(--s3);
    padding: 0 var(--s5); font-size: var(--t-1); font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .af-mobile-menu > summary::-webkit-details-marker { display: none; }
  .af-mobile-menu > summary::after { content: none; }
  .af-burger { display: inline-flex; flex-direction: column; gap: var(--s1); }
  .af-burger i { width: 20px; height: 2px; background: var(--ink);
    transition: transform 0.15s ease, opacity 0.15s ease; }
  .af-mobile-menu[open] > summary .af-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .af-mobile-menu[open] > summary .af-burger i:nth-child(2) { opacity: 0; }
  .af-mobile-menu[open] > summary .af-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .af-mobile-panel { border-top: 1px solid var(--line); background: var(--surface); }
  .af-mobile-panel details { border-bottom: 1px solid var(--line-soft); }
  .af-mobile-panel summary {
    list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center;
    justify-content: space-between; padding: 0 var(--s5); font-weight: 600; font-size: var(--t-1);
  }
  .af-mobile-panel summary::-webkit-details-marker { display: none; }
  .af-mobile-panel summary::after {
    content: ""; width: var(--s2); height: var(--s2);
    border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
    transform: rotate(45deg);
  }
  .af-mobile-panel details[open] summary::after { transform: rotate(-135deg); }
  .af-mobile-panel a { display: flex; align-items: center; min-height: 44px;
    padding: 0 var(--s6); color: var(--ink); font-size: var(--t-1);
    border-top: 1px solid var(--line-soft); }

  .af-footer-grid { grid-template-columns: 1fr; gap: var(--s5); }

  .af-home-hero { padding: var(--s6) 0; }
  .af-home-amble { font-size: var(--t0); }
  .af-trust-row { grid-template-columns: 1fr; }
  .af-trust-item + .af-trust-item { border-left: none; border-top: 1px solid var(--line); }
  .af-j-row { grid-template-columns: 1fr; }
  .af-g-row { grid-template-columns: 1fr; }
  .af-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .af-cat-tile { min-height: 0; padding: var(--s4); }
  .af-stamp { width: 72px; height: 72px; top: -10px; right: -6px; }

  .af-guide-head { padding: var(--s5) 0 var(--s5); }
  .af-guide-head h1 { font-size: var(--t4); }
  .af-p-grid { grid-template-columns: 1fr; }

  .af-article-head { padding: var(--s5) 0; }
  .af-article { padding-top: var(--s6); }
}
@media (prefers-reduced-motion: reduce) {
  .af-burger i { transition: none; }
}