/* ==========================================================================
   Appalachian Foodways Project — Hearth & Harvest
   Design tokens + components. No build step. No runtime compiler.
   All color pairs contrast-verified; see design-system/.../MASTER.md
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:        #F7F1E3;
  --paper-raised: #FDFAF3;
  --clay-tint:    #F0E0D5;
  --olive-tint:   #E6E8DC;
  --woodsmoke:    #1C1815;
  --woodsmoke-2:  #2A241F;

  /* Ink */
  --ink:       #2E241C;   /* 13.1:1 on paper */
  --ink-soft:  #5A4A3C;   /* 7.5:1  on paper */
  --bone:      #EDE6D8;   /* 14.2:1 on woodsmoke */
  --bone-soft: #C4B8A4;   /* 9.0:1  on woodsmoke */

  /* Accent */
  --clay:      #A85536;   /* 5.2:1 with white text */
  --clay-dark: #8A4229;
  --clay-link: #8F452A;   /* 5.8:1 on paper */
  --olive:     #4A5233;   /* 7.3:1 on paper, 8.3:1 with white */
  --gold-deep: #7A6A45;   /* logo + icons on light grounds. 4.69:1 on paper */
  --gold:      #B0A080;   /* logo gold. 6.9:1 on woodsmoke, 2.3:1 on paper
                             (logotype — exempt from WCAG 1.4.3, see MASTER.md) */

  /* Lines */
  --rule: #DED3BC;        /* decorative only */
  --edge: #8C7B5E;        /* control boundaries — 3.65:1 */
  --rule-dark: #3D352E;

  /* Feedback */
  --danger:  #9B2C1F;
  --success: #3F6138;

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --step-display: clamp(2.5rem, 1.4rem + 4.6vw, 4.25rem);
  --step-h1:      clamp(2rem, 1.35rem + 2.7vw, 3.25rem);
  --step-h2:      clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
  --step-h3:      clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-body:    1.0625rem;
  --step-lead:    clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-sm:      0.9375rem;
  --step-label:   0.75rem;

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

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --prose: 68ch;
  --gutter: 20px;

  /* Radius */
  --r-sm: 2px; --r-md: 4px; --r-lg: 8px; --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --t-fast: 140ms; --t-base: 200ms; --t-slow: 520ms;

  /* Elevation — floating layers only */
  --shadow-drawer: 0 12px 48px rgba(28,24,21,.22);
  --shadow-sticky: 0 -2px 20px rgba(28,24,21,.10);

  /* Z scale */
  --z-grain: 1; --z-sticky: 20; --z-header: 40; --z-drawer: 60; --z-toast: 100;
}

@media (min-width: 768px)  { :root { --gutter: 32px; --step-body: 1.125rem; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;   /* sticky header clearance for anchor + focus */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }

/* --- 3. Type ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;      /* progressive: UA-controlled, never forced */
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1.22; }

p { text-wrap: pretty; overflow-wrap: anywhere; }

.display { font-family: var(--font-display); font-size: var(--step-display);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }

.lead { font-size: var(--step-lead); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.prose { max-width: var(--prose); }
.prose p + p { margin-top: var(--s5); }
.small { font-size: var(--step-sm); }
.muted { color: var(--ink-soft); }
.serif { font-family: var(--font-display); }

.label {
  font-size: var(--step-label); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-link); font-family: var(--font-ui);
}
.label--olive { color: var(--olive); }
.label--bone  { color: var(--bone-soft); }

a { color: var(--clay-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-dark); }

/* Tabular figures wherever numbers align or tick */
.tnum, .price, .qty-value, .stat-num, time { font-variant-numeric: tabular-nums; }

/* --- 4. Focus ------------------------------------------------------------ */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--clay-dark);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--bone); }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: var(--z-toast);
  background: var(--woodsmoke); color: var(--bone);
  padding: var(--s3) var(--s5); border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus-visible { top: var(--s4); color: var(--bone); }

/* --- 5. Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(var(--s8), 9vw, var(--s10)); }
.section--tight { padding-block: clamp(var(--s7), 6vw, var(--s8)); }

.section--dark { background: var(--woodsmoke); color: var(--bone); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--bone); }
.section--dark .muted { color: var(--bone-soft); }
.section--dark a:not(.btn) { color: var(--bone); }

.section--tint  { background: var(--clay-tint); }
.section--olive { background: var(--olive-tint); }

.stack > * + * { margin-top: var(--s5); }
.stack-sm > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s7); }

.grid { display: grid; gap: var(--s6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(var(--s7), 5vw, var(--s9)); }
  .split--wide-left  { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}
@media (min-width: 900px) { .split--flip > *:first-child { order: 2; } }

.section-head { max-width: 640px; margin-bottom: var(--s7); }
.section-head .label { display: block; margin-bottom: var(--s3); }
.section-head p { margin-top: var(--s4); color: var(--ink-soft); font-size: var(--step-lead); }

.rule { height: 1px; background: var(--rule); border: 0; }
.section--dark .rule { background: var(--rule-dark); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cluster--lg { gap: var(--s4); }

/* --- 6. Grain ------------------------------------------------------------ */
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none; opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- 7. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5);
  font-family: var(--font-ui); font-size: var(--step-sm); font-weight: 600;
  letter-spacing: .02em; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; text-align: center;
  border: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              transform 90ms var(--ease-out);
  touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: scale(.985); }

.btn--primary { background: var(--clay); color: #fff; }        /* 5.2:1 */
.btn--primary:hover:not(:disabled) { background: var(--clay-dark); color: #fff; }

.btn--olive { background: var(--olive); color: #fff; }          /* 8.3:1 */
.btn--olive:hover:not(:disabled) { background: #3B4229; color: #fff; }

.btn--ghost { border-color: var(--edge); color: var(--ink); background: transparent; }
.btn--ghost:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--on-dark { border-color: var(--bone-soft); color: var(--bone); background: transparent; }
.btn--on-dark:hover:not(:disabled) { background: var(--bone); color: var(--woodsmoke); border-color: var(--bone); }

.btn--lg { min-height: 56px; padding: var(--s4) var(--s7); font-size: 1rem; }
.btn--block { width: 100%; }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none;
}
/* Loading state: reserve label width so nothing reflows */
.btn[data-loading="true"] { pointer-events: none; }
.btn[data-loading="true"] .btn-label { visibility: hidden; }
.btn[data-loading="true"]::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn[data-loading="true"]::after { animation-duration: 1.6s; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 600; font-size: var(--step-sm); text-decoration: none;
  color: var(--clay-link); min-height: 44px;
}
.link-arrow svg { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--bone); }

/* --- 8. Header ----------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); min-height: 72px;
}
@media (min-width: 1024px) { .header-inner { min-height: 84px; } }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }

/* Explicit width AND height at both breakpoints: the box is reserved before the
   image loads, so the header never shifts (CLS). 600x144 lockup = 4.1667:1. */
.brand-logo, .brand picture { display: block; }
.brand-logo { width: 40px; height: 40px; }
@media (min-width: 640px)  { .brand-logo { width: 175px; height: 42px; } }
@media (min-width: 1024px) { .brand-logo { width: 196px; height: 47px; } }

.footer .brand-logo { width: 208px; height: 50px; }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; align-items: center; gap: var(--s2); } }
.nav a {
  position: relative; display: inline-flex; align-items: center; white-space: nowrap;
  min-height: 44px; padding: 0 var(--s3);
  font-size: var(--step-sm); font-weight: 500; color: var(--ink);
  text-decoration: none; border-radius: var(--r-sm);
  transition: color var(--t-base) var(--ease-out);
}
.nav a::after {
  content: ''; position: absolute; left: var(--s3); right: var(--s3); bottom: 14px;
  height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav a:hover { color: var(--clay-link); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--clay-link); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.header-actions .btn { display: none; }
@media (min-width: 1024px) { .header-actions .btn { display: inline-flex; } }

/* Between 1024 and 1280 the seven nav items, two buttons and the cart run out
   of room and "Supper Table" wraps to two lines. Tighten the nav, and below
   1200 drop the Donate button from the bar (it stays in the footer). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav { gap: 0; }
  .nav a { padding: 0 var(--s2); font-size: 0.875rem; }
  .nav a::after { left: var(--s2); right: var(--s2); }
  .header-inner { gap: var(--s4); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-actions .btn--ghost { display: none; }
}

.icon-btn {
  position: relative; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  color: var(--ink); transition: background-color var(--t-base) var(--ease-out);
}
.icon-btn:hover { background: var(--clay-tint); }
.menu-btn { display: grid; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.cart-count {
  position: absolute; top: 6px; right: 5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--clay); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: var(--r-pill); font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none; }

/* --- 9. Mobile drawer ---------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(20,17,14,.55);
  opacity: 0; visibility: hidden;
  /* visibility flips instantly on open (so focus can land) and only waits on close */
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.scrim[data-open="true"] {
  opacity: 1; visibility: visible;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s;
}

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(400px, 88vw);
  background: var(--paper); box-shadow: var(--shadow-drawer);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  /* Same reason: a focus() call on a visibility:hidden subtree is ignored. */
  transition: transform 300ms var(--ease-out), visibility 0s linear 300ms;
  overscroll-behavior: contain;
}
.drawer[data-open="true"] {
  transform: translateX(0); visibility: visible;
  transition: transform 300ms var(--ease-out), visibility 0s;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--rule);
  min-height: 72px; flex: none;
}
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s5) var(--s5) var(--s7); }
.drawer-foot {
  flex: none; padding: var(--s5); border-top: 1px solid var(--rule);
  background: var(--paper-raised);
  padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom));
}
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: var(--s3) 0;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.drawer-nav a[aria-current="page"] { color: var(--clay-link); }
.drawer-nav a svg { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .scrim { transition-duration: 1ms; }
}

/* --- 10. Cards ----------------------------------------------------------- */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: var(--s6); height: 100%;
  display: flex; flex-direction: column;
  transition: border-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.card--link:hover { border-color: var(--edge); transform: translateY(-3px); }
.card--flush { padding: 0; overflow: hidden; }
.card--flush .card-body { padding: var(--s6); display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: var(--s3); }
.card .stack-sm a { display: inline-block; padding-block: 5px; }
.card p { color: var(--ink-soft); }
.card .link-arrow { margin-top: auto; padding-top: var(--s5); }

/* Brand icons sit on a fixed-height baseline strip rather than in a box, so
   headings line up across a row even though the icons differ wildly in
   proportion (the knife is 5:1, the ham is 3:4). */
.card-icon {
  height: 62px; margin-bottom: var(--s5); flex: none;
  display: flex; align-items: flex-end;
  color: var(--gold-deep);
}
.card-icon--olive { color: var(--gold-deep); }  /* family stays one ink */

/* Two deliberate tiers: hand-drawn brand objects for places, programs and
   physical things; Phosphor line glyphs for abstract ideas (About, Contact).
   No single row ever mixes the two languages. */
.card-icon > svg:not(.ic) { width: 30px; height: 30px; }

.ic { display: block; width: auto; }
.ic--knife  { height: 26px; }
.ic--rake   { height: 34px; }   /* fine line art needs length to read at all */
.ic--spoon  { height: 32px; }   /* traced, 1868 */
.ic--ham    { height: 40px; }   /* lying on its side, like the knife */
.ic--fire   { height: 60px; }   /* traced, 1877: fine lines need room */
.ic--jar    { height: 48px; }
.ic--books  { height: 40px; }
.ic--table  { height: 42px; }   /* traced, PSF */
.ic--bean   { height: 28px; }
.ic--cheese { height: 38px; }

/* Inline with an eyebrow label */
.label .ic { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.label .ic--knife, .label .ic--rake, .label .ic--spoon, .label .ic--bean { height: 13px; vertical-align: -1px; }
.label .ic--ham { height: 15px; vertical-align: -3px; }
.label .ic--jar, .label .ic--fire { height: 22px; vertical-align: -6px; }
.label .ic--books, .label .ic--table, .label .ic--cheese { height: 17px; vertical-align: -4px; }

.section--dark .card {
  background: var(--woodsmoke-2); border-color: var(--rule-dark);
}
.section--dark .card p { color: var(--bone-soft); }
.section--dark .card-icon { color: var(--gold); }

/* --- 11. Image slots (no photography yet — zero-CLS placeholders) --------- */
.slot {
  position: relative; width: 100%;
  background: var(--clay-tint);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 4 / 3;
}
.slot--portrait { aspect-ratio: 3 / 4; }
.slot--square   { aspect-ratio: 1 / 1; }
.slot--wide     { aspect-ratio: 16 / 9; }
.slot--hero     { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .slot--hero { aspect-ratio: 3 / 4; } }
.slot--olive { background: var(--olive-tint); }
.slot--dark  { background: var(--woodsmoke-2); border-color: var(--rule-dark); }
.slot::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(46,36,28,.045) 0 1px, transparent 1px 11px);
}
.slot-label {
  position: relative; text-align: center; padding: var(--s5);
  max-width: 30ch; color: var(--ink-soft);
  font-size: var(--step-label); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.7;
}
.slot--dark .slot-label { color: var(--bone-soft); }
.slot-label svg { margin: 0 auto var(--s3); opacity: .5; }
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Map: facade reserves the exact box the iframe will fill -> no layout shift */
.map { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.map-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--olive-tint);
}

/* --- 12. Stats ----------------------------------------------------------- */
.stat { padding-top: var(--s5); border-top: 2px solid var(--clay); }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  font-weight: 500; line-height: 1; letter-spacing: -.02em;
}
.stat-label { margin-top: var(--s3); font-size: var(--step-sm); color: var(--ink-soft); }
.section--dark .stat { border-top-color: var(--bone-soft); }
.section--dark .stat-label { color: var(--bone-soft); }

/* --- 13. Forms ----------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field label { font-size: var(--step-sm); font-weight: 600; }
.req { color: var(--danger); margin-left: 2px; }
.hint { font-size: var(--step-sm); color: var(--ink-soft); }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  background: var(--paper-raised); color: var(--ink);
  border: 1px solid var(--edge); border-radius: var(--r-sm);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.textarea { min-height: 140px; padding-top: var(--s3); resize: vertical; }
.select {
  appearance: none; padding-right: var(--s8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235A4A3C' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s4) center;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-soft); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  border-color: var(--clay-dark);
  box-shadow: 0 0 0 1px var(--clay-dark);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger);
}
.input::placeholder, .textarea::placeholder { color: #8A7A6B; }

.error-text {
  display: none; align-items: center; gap: 6px;
  font-size: var(--step-sm); font-weight: 600; color: var(--danger);
}
.error-text[data-show="true"] { display: flex; }

.error-summary {
  display: none; padding: var(--s5);
  border: 2px solid var(--danger); border-radius: var(--r-md);
  background: #FBEDEA; color: var(--ink);
}
.error-summary[data-show="true"] { display: block; }
.error-summary h2 { color: var(--danger); font-size: 1.125rem; margin-bottom: var(--s3); }
.error-summary ol { list-style: decimal; padding-left: var(--s5); }
.error-summary li + li { margin-top: var(--s2); }
.error-summary a { color: var(--danger); font-weight: 600; }

.form-success {
  display: none; align-items: flex-start; gap: var(--s3);
  padding: var(--s5); border: 1px solid var(--success);
  border-left: 3px solid var(--success);
  border-radius: var(--r-md); background: #EEF3EC;
}
.form-success[data-show="true"] { display: flex; }
.form-success, .form-success span { color: var(--ink); }   /* don't inherit on dark */
.footer .error-text { color: #F0A093; }                    /* 8.5:1 on woodsmoke */
.form-success svg { color: var(--success); flex: none; margin-top: 2px; }

/* --- 14. Quantity stepper ------------------------------------------------ */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--edge); border-radius: var(--r-sm);
  background: var(--paper-raised); overflow: hidden;
}
.qty button {
  width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--ink); transition: background-color var(--t-fast) var(--ease-out);
}
.qty button:hover:not(:disabled) { background: var(--clay-tint); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty-value {
  min-width: 48px; text-align: center; font-weight: 600;
  border-inline: 1px solid var(--rule); align-self: stretch;
  display: grid; place-items: center;
}

/* --- 14b. Seating choice in the booking panel ---------------------------- */
.seat-options { border: 0; padding: 0; margin: 0 0 var(--s5); }
.seat-options legend { font-weight: 600; margin-bottom: var(--s3); padding: 0; }
.seat-option { position: relative; }
.seat-option + .seat-option { margin-top: var(--s2); }
.seat-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seat-option label {
  display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3);
  min-height: 56px; padding: var(--s3) var(--s4); cursor: pointer;
  border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--paper-raised);
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.seat-name { font-weight: 600; }
.seat-desc { grid-column: 1; font-size: var(--step-sm); color: var(--ink-soft); }
.seat-left { grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-size: var(--step-sm); font-weight: 600; color: var(--success); font-variant-numeric: tabular-nums; }
.seat-option label:hover { border-color: var(--ink); }
.seat-option input:checked + label { border: 2px solid var(--clay); background: var(--clay-tint);
  padding: calc(var(--s3) - 1px) calc(var(--s4) - 1px); }
.seat-option input:focus-visible + label { outline: 3px solid var(--clay-dark); outline-offset: 2px; }
.seat-option input:disabled + label { cursor: not-allowed; background: transparent; border-style: dashed; }
.seat-option input:disabled + label .seat-name,
.seat-option input:disabled + label .seat-desc { color: var(--ink-soft); }
.seat-option input:disabled + label .seat-left { color: var(--ink-soft); }

/* --- 15. Ticket / event rows --------------------------------------------- */
.event {
  display: grid; gap: var(--s5);
  padding: var(--s6) 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 900px) {
  .event { grid-template-columns: 132px 1fr auto; gap: var(--s7); align-items: center; }
}
.event-date {
  display: flex; flex-direction: row; gap: var(--s3); align-items: baseline;
  padding-bottom: var(--s3); border-bottom: 2px solid var(--clay);
}
@media (min-width: 900px) {
  .event-date { flex-direction: column; gap: 0; border-bottom: 0;
    border-left: 2px solid var(--clay); padding: var(--s1) 0 var(--s1) var(--s4); }
}
.event-month { font-size: var(--step-label); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay-link); }
.event-day { font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; line-height: 1; }
.event-year { font-size: var(--step-sm); color: var(--ink-soft); }
.event-actions { display: flex; flex-direction: column; gap: var(--s2); align-items: stretch; }
@media (min-width: 900px) { .event-actions { align-items: flex-end; min-width: 170px; } }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px var(--s3); border-radius: var(--r-pill);
  font-size: var(--step-label); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.badge--open   { color: var(--success); }
.badge--few    { color: var(--clay-dark); }
.badge--sold   { color: var(--ink-soft); }
.badge--solid  { background: var(--clay); color: #fff; border-color: var(--clay); }
.badge svg { flex: none; }

/* --- 16. Product grid ---------------------------------------------------- */
.product { display: flex; flex-direction: column; height: 100%; }
.product .slot { border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 0; }
.product-body {
  flex: 1; display: flex; flex-direction: column;
  padding: var(--s5); border: 1px solid var(--rule); border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md); background: var(--paper-raised);
}
.product-meta { font-size: var(--step-label); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s2); }
.product h3 { font-size: 1.1875rem; margin-bottom: var(--s2); }
.product-desc { font-size: var(--step-sm); color: var(--ink-soft); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); margin-top: var(--s5); }
.price { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }

/* --- 17. Cart panel ------------------------------------------------------ */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.cart-line .slot { aspect-ratio: 1/1; border-radius: var(--r-sm); }
.cart-line .slot::before { opacity: .6; }
.cart-line-name { font-weight: 600; font-size: var(--step-sm); line-height: 1.4; }
.cart-line-ctl { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); }
.cart-empty { text-align: center; padding: var(--s8) var(--s4); color: var(--ink-soft); }
.cart-empty svg { margin: 0 auto var(--s4); opacity: .4; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--s4); font-size: 1.0625rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }

.qty--sm { border-radius: var(--r-sm); }
.qty--sm button { width: 36px; height: 36px; }
.qty--sm .qty-value { min-width: 34px; font-size: var(--step-sm); }
.link-danger { background: none; border: 0; color: var(--danger);
  font-size: var(--step-sm); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding-inline: 2px; }

/* --- 18. Accordion ------------------------------------------------------- */
.acc { border-bottom: 1px solid var(--rule); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); min-height: 68px; padding: var(--s4) 0; text-align: left;
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500;
  color: var(--ink); transition: color var(--t-base) var(--ease-out);
}
.acc-trigger:hover { color: var(--clay-link); }
.acc-icon { flex: none; color: var(--clay-link);
  transition: transform var(--t-base) var(--ease-out); }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-out); }
.acc-panel[data-open="true"] { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: var(--s5); color: var(--ink-soft); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .acc-panel { transition-duration: 1ms; } }

/* --- 19. Donation tiers -------------------------------------------------- */
.toggle-group {
  display: inline-flex; padding: var(--s1);
  background: var(--clay-tint); border-radius: var(--r-pill);
}
.toggle-group button {
  min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-pill);
  font-size: var(--step-sm); font-weight: 600; color: var(--ink-soft);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.toggle-group button[aria-pressed="true"] { background: var(--paper-raised); color: var(--ink); }

.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 640px) { .amount-grid { grid-template-columns: repeat(4, 1fr); } }
.amount {
  min-height: 72px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--edge); border-radius: var(--r-sm);
  background: var(--paper-raised);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 500;
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.amount span { font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.amount:hover { border-color: var(--ink); }
.amount[aria-pressed="true"] {
  border-color: var(--clay); border-width: 2px;
  background: var(--clay-tint);
}
.amount[aria-pressed="true"] span { color: var(--clay-dark); }

/* --- 20. Footer ---------------------------------------------------------- */
.footer { background: var(--woodsmoke); color: var(--bone-soft);
  padding-block: var(--s9) var(--s6); }
.footer h2, .footer h3 { color: var(--bone); }
.footer-grid { display: grid; gap: var(--s7); }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-title { font-size: var(--step-label); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bone); margin-bottom: var(--s4); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px;
  color: var(--bone-soft); text-decoration: none; font-size: var(--step-sm);
  transition: color var(--t-base) var(--ease-out); }
.footer-nav a:hover { color: var(--bone); text-decoration: underline; }
.footer a:not(.btn) { color: var(--bone); }
.footer-bottom a {
  display: inline-block; padding: 4px 2px;   /* >=24px target (WCAG 2.2) */
  text-decoration: underline; text-underline-offset: 3px;
}
.footer .brand { color: var(--bone); }
.footer-bottom {
  margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6);
  justify-content: space-between; align-items: center;
  font-size: var(--step-sm);
}
.social { display: flex; gap: var(--s2); }
.social a { width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--rule-dark); border-radius: var(--r-sm); color: var(--bone-soft);
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out); }
.social a:hover { color: var(--bone); border-color: var(--bone-soft); }

.newsletter { display: flex; gap: var(--s2); flex-wrap: wrap; }
.newsletter .input {
  flex: 1 1 180px; background: var(--woodsmoke-2);
  border-color: var(--bone-soft); color: var(--bone);
}
.newsletter .input::placeholder { color: #9A8E7C; }

/* --- 21. Page hero ------------------------------------------------------- */
.page-hero { padding-block: clamp(var(--s7), 7vw, var(--s9)); border-bottom: 1px solid var(--rule); }
.page-hero .label { display: block; margin-bottom: var(--s4); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: var(--s5); }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  font-size: var(--step-sm); color: var(--ink-soft); margin-bottom: var(--s5); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--clay-link); text-decoration: underline; }
.crumbs svg { opacity: .5; }

/* --- 22. Toast ----------------------------------------------------------- */
.toast-region {
  position: fixed; z-index: var(--z-toast);
  left: var(--s4); right: var(--s4);
  bottom: calc(var(--s4) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s2); align-items: center;
  pointer-events: none;
}
@media (min-width: 640px) { .toast-region { left: auto; right: var(--s6); align-items: flex-end; } }
.toast {
  display: flex; align-items: center; gap: var(--s3);
  max-width: 400px; padding: var(--s4) var(--s5);
  background: var(--woodsmoke); color: var(--bone);
  border-radius: var(--r-md); box-shadow: var(--shadow-drawer);
  font-size: var(--step-sm); font-weight: 500;
  animation: toast-in 260ms var(--ease-out);
}
.toast svg { flex: none; color: #9BBF92; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* --- 23. Sticky mobile CTA ---------------------------------------------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: var(--z-sticky);
  padding: var(--s3) var(--gutter);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  box-shadow: var(--shadow-sticky);
}
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* --- 24. Motion --------------------------------------------------------- */
/* Applied only when JS is confirmed running — no-JS shows everything. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* --- 24b. Editorial components ----------------------------------------- */
/* These replace most card grids. A site built from one repeated card pattern
   reads as a template; varying the form per section is what reads as made. */

/* Index list: the homepage's "what happens here", numbered like a contents page */
.index-list { border-top: 1px solid var(--edge); }
.index-row {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s3) var(--s4);
  padding: var(--s6) 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  transition: background-color var(--t-base) var(--ease-out);
}
.index-row:hover { color: var(--ink); background: var(--paper-raised); }
.index-num { font-family: var(--font-display); font-size: 1.0625rem; color: var(--gold-deep);
  font-variant-numeric: tabular-nums; padding-top: 4px; }
.index-art, .index-body, .index-go { grid-column: 2; }
.index-art { height: 52px; display: flex; align-items: flex-end; color: var(--gold-deep); }
.index-body h3 { font-size: var(--step-h3); }
.index-body p { color: var(--ink-soft); margin-top: var(--s2); max-width: 56ch; }
.index-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: var(--step-sm); font-weight: 600; color: var(--clay-link); }
.index-go svg { transition: transform var(--t-base) var(--ease-out); }
.index-row:hover .index-go svg { transform: translateX(4px); }
@media (min-width: 900px) {
  .index-row { grid-template-columns: 3.5rem 13rem 1fr 10rem; align-items: center;
    padding: var(--s6) var(--s4); gap: var(--s6); }
  .index-art, .index-body, .index-go { grid-column: auto; }
  .index-art { height: 56px; align-items: center; }
  .index-go { justify-self: end; }
}

/* Upright drawings look small beside the long tools; give them more height here */
.index-art { min-height: 64px; }
.index-art .ic--ham  { height: 44px; }
.index-art .ic--fire { height: 78px; }
.index-art .ic--jar  { height: 60px; }
.index-art .ic--books{ height: 48px; }
@media (min-width: 900px) { .index-row .index-art { height: 80px; } }

/* Full-bleed image band: breaks the contained column rhythm */
.bleed .slot { border-radius: 0; border-left: 0; border-right: 0; aspect-ratio: 21 / 8; }
@media (max-width: 640px) { .bleed .slot { aspect-ratio: 4 / 3; } }

/* The opening note and the pull quote: type as the picture */
.letter { font-family: var(--font-display); font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.45; letter-spacing: -.01em; max-width: 34ch; }
.letter + .letter { margin-top: var(--s5); }
.pullquote { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 1.05rem + 3vw, 3.25rem); line-height: 1.18;
  letter-spacing: -.02em; max-width: 24ch; text-wrap: balance; }
.pullquote-cite { display: block; margin-top: var(--s5); font-size: var(--step-sm);
  color: var(--ink-soft); font-family: var(--font-ui); letter-spacing: 0; }

/* Numerals: a row of large figures instead of four bordered stat boxes */
.numerals { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
@media (min-width: 768px) { .numerals { grid-template-columns: repeat(4, 1fr); } }
.numeral b { display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 1.7rem + 3vw, 4.25rem); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; }
.numeral span { display: block; margin-top: var(--s2); font-size: var(--step-sm); color: var(--ink-soft); }
.section--dark .numeral span { color: var(--bone-soft); }

/* Ledger: seed-catalogue and collection lists as a real table */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-size: var(--step-label); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  padding: 0 var(--s5) var(--s3) 0; border-bottom: 1px solid var(--edge); }
.ledger td { padding: var(--s4) var(--s5) var(--s4) 0; border-bottom: 1px solid var(--rule);
  vertical-align: top; }
.ledger td:first-child { font-family: var(--font-display); font-size: 1.1875rem; }
.ledger .kind { white-space: nowrap; font-size: var(--step-sm); color: var(--ink-soft); }
.ledger .note { color: var(--ink-soft); max-width: 52ch; }
.section--olive .ledger td { border-bottom-color: #CDD2C0; }
@media (max-width: 700px) {
  .ledger thead { display: none; }
  .ledger tr { display: block; padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
  .ledger td { display: block; padding: 0; border: 0; }
  .ledger td + td { margin-top: 4px; }
}

/* Numbered principles (About) */
.principles { counter-reset: p; display: grid; gap: var(--s6); }
@media (min-width: 768px) { .principles { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s8); } }
.principles li { counter-increment: p; padding-top: var(--s4); border-top: 1px solid var(--edge); }
.principles li::before { content: counter(p, decimal-leading-zero); display: block;
  font-family: var(--font-display); color: var(--gold-deep); margin-bottom: var(--s3); }
.principles h3 { font-size: 1.25rem; margin-bottom: var(--s2); }
.principles p { color: var(--ink-soft); }

/* "Next at the table": a live card generated from suppers.json */
.next { background: var(--woodsmoke-2); border: 1px solid var(--rule-dark);
  border-radius: var(--r-md); padding: clamp(var(--s5), 3vw, var(--s7)); }
.next-when { color: var(--bone-soft); font-size: var(--step-sm); }
.next h3 { font-size: var(--step-h2); margin: var(--s2) 0 var(--s3); }
.next p { color: var(--bone-soft); }
.next-foot { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center;
  justify-content: space-between; margin-top: var(--s6); padding-top: var(--s5);
  border-top: 1px solid var(--rule-dark); }
.next .price { color: var(--bone); }
.section--dark .badge--few { color: #F0B79C; }
.section--dark .badge--open { color: #A9CFA0; }

/* A brand drawing used large, as illustration rather than a label */
.art-xl { display: flex; justify-content: flex-end; }
.art-xl .ic { height: auto; width: min(100%, 340px); }
@media (max-width: 899px) { .art-xl { justify-content: flex-start; } .art-xl .ic { width: min(80%, 260px); } }

/* Build-out status: AFP is not open yet, and every page says so plainly. */
.status-line {
  margin-top: var(--s4); padding: var(--s3) var(--s4);
  border-left: 3px solid var(--clay); background: var(--clay-tint);
  font-size: var(--step-sm); font-weight: 600; color: var(--ink);
  max-width: 44ch; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.opens {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2);
  font-size: var(--step-label); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clay-dark);
}
.opens::before { content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay); flex: none; }
.page-hero .opens { margin-top: var(--s4); }

/* The timeline a funder reads before anything else */
.timeline { counter-reset: none; display: grid; gap: 0; }
.phase { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s2) var(--s5);
  padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.phase:last-child { border-bottom: 1px solid var(--rule); }
.phase-when { font-size: var(--step-label); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clay-link); padding-top: 3px; }
.phase-name { font-family: var(--font-display); font-size: 1.25rem; }
.phase-note { grid-column: 2; color: var(--ink-soft); font-size: var(--step-sm); }
.phase.is-open .phase-when { color: var(--success); }
@media (max-width: 640px) {
  .phase { grid-template-columns: 1fr; gap: 2px; }
  .phase-note { grid-column: 1; }
}

/* 'Dates go up soon' in place of a listing */
.coming { border: 1px solid var(--edge); border-radius: var(--r-md);
  padding: clamp(var(--s6), 4vw, var(--s7)); background: var(--paper-raised); max-width: 60ch; }
.coming h3 { font-size: var(--step-h3); }
.coming p { color: var(--ink-soft); margin: var(--s3) 0 var(--s5); }

/* The three pillars as a hero tagline, so the mission reads above the fold */
.tagline {
  font-size: var(--step-sm); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep);
  padding-top: var(--s4); border-top: 1px solid var(--rule);
  text-wrap: balance;   /* if it must wrap on a phone, break it evenly */
}

/* Mission statement and the three pillars (homepage) */
.mission {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.5rem); line-height: 1.25;
  letter-spacing: -.015em; max-width: 24ch; text-wrap: balance;
}
.mission em { font-style: normal; color: var(--clay-link); }
@media (min-width: 900px) { .mission { max-width: 30ch; } }

.pillars { display: grid; gap: var(--s7); }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }
.pillar { border-top: 2px solid var(--gold-deep); padding-top: var(--s5); }
.pillar .head-art { min-height: 46px; margin-bottom: var(--s4); }
.pillar .head-art .ic--jar { height: 44px; }
.pillar .head-art .ic--spoon { height: 26px; }
.pillar .head-art .ic--table { height: 34px; }
.pillar h2 { font-size: var(--step-h3); }
.pillar p { color: var(--ink-soft); margin-top: var(--s3); }
.pillar .link-arrow { margin-top: var(--s3); }

/* The facts a funder or partner scans for */
.standards { display: grid; gap: var(--s3) var(--s6); font-size: var(--step-sm);
  color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: var(--s5); }
@media (min-width: 700px)  { .standards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .standards { grid-template-columns: repeat(4, 1fr); } }
.standards li { padding-left: var(--s5); position: relative; }
.standards li::before { content: ''; position: absolute; left: 0; top: .55em;
  width: 10px; height: 2px; background: var(--gold-deep); }

/* Drawings at the top of a section, in place of a text label.
   Wide tools are sized by width, upright objects by height, so each carries
   similar visual weight. */
.hero-art, .head-art { color: var(--gold-deep); display: flex; align-items: flex-end; }
.hero-art { min-height: 72px; margin-bottom: var(--s6); }
.head-art { min-height: 54px; margin-bottom: var(--s4); }
.section--dark .hero-art, .section--dark .head-art { color: var(--gold); }
.section--olive .head-art, .section--olive .hero-art { color: var(--olive); }
.hero-art .ic--knife, .hero-art .ic--rake, .hero-art .ic--spoon, .hero-art .ic--bean { width: 220px; height: auto; }
.hero-art .ic--ham { height: 64px; }
.hero-art .ic--jar, .hero-art .ic--fire { height: 76px; }
.hero-art .ic--books, .hero-art .ic--table, .hero-art .ic--cheese { height: 58px; }
@media (max-width: 640px) {
  .hero-art .ic--knife, .hero-art .ic--rake, .hero-art .ic--spoon, .hero-art .ic--bean { width: 170px; }
}
.principles--plain li::before { content: none; }

/* Featured farmer or producer on a supper listing */
.featuring { font-weight: 600; color: var(--olive); }
.next-feature { font-weight: 600; color: var(--gold); margin-bottom: var(--s3); }

/* Founder's note (About) */
.note-sign { margin-top: var(--s5); font-family: var(--font-display); font-style: italic;
  font-size: 1.25rem; }

/* --- 24c. Signature motion: icons draw themselves in like ink ------------- */
/* The one flourish that belongs to this brand. Everything else stays still. */
.js .ic { clip-path: inset(0 100% 0 0);
  transition: clip-path 520ms cubic-bezier(.3,.1,.3,1); }
.js .ic.is-drawn { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .js .ic { clip-path: none; transition: none; }
}
/* Printing never scrolls, so nothing would ever draw in: show every icon. */
@media print {
  .js .ic { clip-path: none !important; transition: none !important; }
}

/* --- 25. Utilities ------------------------------------------------------- */
.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;
}
.center { text-align: center; }
.center .lead, .center .section-head { margin-inline: auto; }
.mt-0{margin-top:0}.mt-2{margin-top:var(--s2)}.mt-3{margin-top:var(--s3)}.mt-4{margin-top:var(--s4)}
.mt-5{margin-top:var(--s5)}.mt-6{margin-top:var(--s6)}.mt-7{margin-top:var(--s7)}.mt-8{margin-top:var(--s8)}
.mb-4{margin-bottom:var(--s4)}.mb-5{margin-bottom:var(--s5)}.mb-6{margin-bottom:var(--s6)}
.full { width: 100%; }
[hidden] { display: none !important; }
