/* Common Table Food Bank. A harvest crate: kraft paper, stenciled crate lettering cut from Chivo,
   three doors in harvest orange, deep green and kraft. */
:root {
  --harvest: #E7742A;
  --green: #224B38;
  --green-2: #1A3B2C;
  --kraft: #CDB28A;
  --cream: #FBF5EA;
  --ink: #2A1B0C;
  --harvest-deep: #A84A12;
  --green-ink: #3E5A4C;
  --rule: rgba(34, 75, 56, .2);
  --top-h: 76px;
  --font: "Chivo", "Segoe UI", sans-serif;
  --blotch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .16 0 0 0 1.6 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .55' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .26 0 0 0 0 .14 0 0 0 -1.2 .78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.32'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 .22 0 0 0 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink-wear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -14 12.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--green); font: 400 18px/1.55 var(--font);
  background-color: var(--cream); background-image: var(--grain);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
button, select, label, summary, [role="tab"] { cursor: pointer; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--cream); padding: 12px 18px; font-weight: 700; }
.skip:focus, .skip:hover { top: 12px; color: var(--cream); }

/* Stenciled crate lettering: worn ink everywhere, bridges cut by app.js */
.stencil { font-weight: 800; letter-spacing: -.01em; -webkit-mask-image: var(--ink-wear); mask-image: var(--ink-wear); -webkit-mask-size: 180px 180px; mask-size: 180px 180px; }

/* Buttons: flat fills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 3px; font: 700 18px/1.1 var(--font); text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-harvest { background: var(--harvest); color: var(--ink); border-color: var(--harvest); }
.btn-harvest:hover { background: #D8661E; border-color: #D8661E; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-ink:hover { background: #46301A; border-color: #46301A; color: var(--cream); }
.btn-green { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn-green:hover { background: var(--green-2); color: var(--cream); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--kraft); }
.btn-wide { width: 100%; min-height: 56px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: var(--top-h); padding: 0 32px; background-color: var(--cream); background-image: var(--grain); border-bottom: 2px solid var(--green); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; min-height: 44px; margin-right: auto; }
.brand:has(+ .pantry-pill) { margin-right: 0; }
.pantry-pill { margin-right: auto; }
.brand:hover { color: var(--green); }
/* Logo: a long table set for six with one place still open, beside the Chivo wordmark. The two o's of
   Food share one stroke, like plates set side by side. --lg is the wordmark size; the rest is in em of it. */
.logo { --lg: 27px; display: inline-flex; align-items: center; gap: .3em; font-size: var(--lg); color: var(--green); }
.logo-icon { width: 1.62em; height: 1.62em; flex: none; }
.logo-table { fill: var(--green); }
.logo-text { display: grid; justify-items: start; gap: .14em; }
.logo-word { font: 800 1em/1 var(--font); letter-spacing: .005em; white-space: nowrap; }
.logo-sub { font: 700 max(15px, .54em)/1.15 var(--font); color: var(--green-ink); letter-spacing: .015em; white-space: nowrap; }
.logo-oo { letter-spacing: -.245em; }
.logo.on-dark { color: var(--cream); }
.logo.on-dark .logo-table { fill: var(--cream); }
.logo.on-dark .logo-sub { color: #E9F0EA; }
.logo-stack { display: inline-grid; justify-items: start; gap: .16em; }
.logo-stack .logo-icon { width: 1.9em; height: 1.9em; margin-left: -.08em; }
.logo-stack .logo-text { gap: .1em; }
.logo-stack .logo-sub { font-size: .6em; }
.pantry-pill { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; background-color: var(--kraft); background-image: var(--fibers); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; white-space: nowrap; transform: rotate(-1.5deg); outline: 1.5px dashed rgba(42, 27, 12, .55); outline-offset: -5px; }
.pantry-pill:hover { background-color: #D8BF98; color: var(--ink); }
.pantry-pill:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.pill-k { font-weight: 800; font-size: 17px; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; font-size: 17px; text-decoration: none; border-radius: 3px; }
.nav a:hover { background: rgba(205, 178, 138, .45); color: var(--green); }
.burger { display: none; }
.scrim { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: max(330px, calc(100svh - var(--top-h) - 480px)); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 30px 40px 30px 48px; }
h1 { font-size: clamp(56px, 6.1vw, 120px); line-height: .9; letter-spacing: -.025em; color: var(--green); }
h1 span { display: block; }
.lede { margin-top: 20px; max-width: 52ch; font-size: 19px; line-height: 1.5; color: var(--green); }
.hero-photo { margin: 0; position: relative; overflow: hidden; border-left: 2px solid var(--green); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 26%; transform: scale(1.14); transform-origin: 58% 62%; filter: saturate(.95) contrast(1.03) sepia(.06); }

/* The three doors */
.doors { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 39fr) minmax(0, 25fr); min-height: 480px; border-top: 2px solid var(--green); }
.door-tabs { display: none; }
.door { position: relative; padding: 24px 30px 26px; min-width: 0; }
.door[hidden] { display: none; }
.door-name { font-size: 54px; line-height: .95; letter-spacing: -.02em; margin-bottom: 14px; }
.door-give { background-color: var(--harvest); color: var(--ink); }
.door-vol { background-color: var(--green); background-image: var(--grain); color: var(--cream); }
.door-food { background-color: var(--kraft); background-image: var(--fibers), var(--blotch); color: var(--ink); }
.door-give .door-name, .door-food .door-name { color: var(--ink); }
.door-vol .door-name { color: var(--cream); }

/* Give */
.give { display: block; }
.gv-step[hidden] { display: none; }
.freq { display: inline-grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.freq label { position: relative; }
.freq input, .amounts input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.freq span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; font-weight: 700; font-size: 16px; }
.freq label + label span { border-left: 2px solid var(--ink); }
.freq input:checked + span { background: var(--ink); color: var(--harvest); }
.freq label:hover span { background: rgba(42, 27, 12, .12); }
.freq label:hover input:checked + span { background: var(--ink); }
.freq input:focus-visible + span, .amounts input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.amounts label { position: relative; }
.amounts span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 66px; padding: 8px 4px; line-height: 1; border: 2px solid var(--ink); border-radius: 3px; font-weight: 800; font-size: 23px; font-variant-numeric: tabular-nums; transition: background-color .15s ease; }
.amounts label:hover span { background: rgba(42, 27, 12, .12); }
.amounts input:checked + span { background: var(--ink); color: var(--harvest); transform: rotate(-2.5deg); -webkit-mask-image: var(--ink-wear); mask-image: var(--ink-wear); -webkit-mask-size: 180px 180px; mask-size: 180px 180px; }
.amounts span { transition: background-color .15s ease, transform .2s ease; }
.amounts small { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.amt-other span { font-size: 18px; font-weight: 800; }
.other-field { display: grid; gap: 4px; margin-top: 10px; font-weight: 700; font-size: 16px; max-width: 200px; }
.other-field[hidden] { display: none; }
.dollar { position: relative; }
.dollar::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; }
.dollar input { padding-left: 26px; }
.impact { margin-top: 14px; font-size: 19px; line-height: 1.4; }
.impact b { font-weight: 800; }
.tally { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px 9px; height: 55px; margin: 12px 0 16px; overflow: hidden; }
.tally svg { width: 20px; height: 24px; flex: none; overflow: visible; }
.tally path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.tally .more { align-self: center; font-weight: 800; font-size: 17px; }
.field { display: grid; gap: 5px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.field input, .other-field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 3px; background: #FFF8EF; color: var(--ink); font-size: 18px; font-weight: 400; }
.field input:focus-visible, .other-field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-width: 3px; border-color: #7A1D06; }
.gv-sum { margin: 10px 0 14px; font-size: 19px; font-weight: 700; }
.gv-note { margin-bottom: 14px; font-size: 17px; line-height: 1.45; }
.form-error { margin-bottom: 12px; font-size: 17px; font-weight: 700; color: #6B1804; }
.door-vol .form-error { color: #FFD9C2; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 2px; margin-left: -2px; background: none; border: 0; border-radius: 3px; font-weight: 700; font-size: 17px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { background: rgba(42, 27, 12, .12); }
.stamp { display: inline-block; margin-bottom: 12px; padding: 8px 16px 9px; border: 3px solid currentColor; border-radius: 4px; font-size: 30px; font-weight: 800; transform: rotate(-4deg); -webkit-mask-image: var(--ink-wear); mask-image: var(--ink-wear); -webkit-mask-size: 180px 180px; mask-size: 180px 180px; }
.gv-done h3 { font-size: 32px; line-height: 1.05; margin-bottom: 10px; }
.gv-done p:not(.stamp) { font-size: 19px; line-height: 1.5; margin-bottom: 8px; }

/* Volunteer */
.door-sub { font-size: 17px; line-height: 1.45; margin: -4px 0 12px; color: #E4EDE6; max-width: 46ch; }
.shifts { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid rgba(251, 245, 234, .3); }
.shift { border-bottom: 1.5px solid rgba(251, 245, 234, .3); }
.shift-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 8px 0; }
.sh-date { display: grid; justify-items: center; line-height: 1; }
.sh-date b { font-size: 15px; font-weight: 700; color: #E4EDE6; }
.sh-date strong { font-size: 34px; font-weight: 800; margin-top: 3px; }
.sh-info h3 { font-size: 19px; font-weight: 800; line-height: 1.15; }
.sh-info p { font-size: 17px; color: #E4EDE6; line-height: 1.3; }
.sh-spots { margin-top: 2px; font-size: 16px; font-weight: 700; color: #FFC59B; }
.shift.full .sh-spots { color: #E4EDE6; }
.shift .btn { min-height: 46px; padding: 8px 14px; font-size: 16px; white-space: nowrap; }
.btn-tag { border: 0; padding: 8px 18px 8px 34px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); -webkit-mask: radial-gradient(circle 3.5px at 15px 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 3.5px at 15px 50%, transparent 98%, #000 100%); }
.shift .btn.btn-tag { padding: 8px 16px 8px 32px; }
.btn-tag.btn-cream { background: var(--cream); color: var(--green); }
.btn-tag.btn-cream:hover { background: #FFFFFF; color: var(--green); }
.btn-cream { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-cream:hover { background: var(--cream); color: var(--green); }
.btn-wait { background: transparent; color: var(--cream); border-color: rgba(251, 245, 234, .75); }
.btn-wait:hover { background: var(--cream); color: var(--green); }
.shift.full .sh-info h3 { text-decoration: line-through; text-decoration-thickness: 2px; }
.shift.in .sh-spots { color: var(--cream); }
.sh-done { padding: 0 0 14px 72px; font-size: 17px; line-height: 1.45; color: var(--cream); }
.shift-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 4px 0 14px; }
.shift-form[hidden] { display: none; }
.shift-form .field { margin: 0; font-size: 15px; }
.shift-form .field input { min-height: 46px; background: #F7F1E6; border-color: var(--cream); font-size: 17px; }
.people { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; border: 0; margin: 0; padding: 0; }
.people legend { float: left; margin-right: 8px; font-size: 15px; font-weight: 700; }
.people label { position: relative; }
.people input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.people span { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--cream); border-radius: 3px; font-weight: 800; }
.people input:checked + span { background: var(--cream); color: var(--green); }
.people input:focus-visible + span { outline: 3px solid var(--harvest); outline-offset: 2px; }
.shift-form .form-error, .shift-form .btn { grid-column: 1 / -1; }
.shift-form .btn { min-height: 48px; }
.door-vol :focus-visible { outline-color: var(--harvest); }

/* Get food */
.food[lang] { display: block; }
.next-label { font-weight: 800; font-size: 17px; }
.next-day { margin-top: 2px; font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.next-time { margin-top: 4px; font-size: 19px; font-weight: 700; }
.open-now { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 12px; background: var(--green); color: var(--cream); font-size: 15px; font-weight: 700; vertical-align: 2px; }
.food-where { margin-top: 12px; font-size: 18px; line-height: 1.45; }
.food-points { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 6px; }
.food-points { gap: 0; border-top: 1.5px dashed rgba(42, 27, 12, .5); }
.food-points li { padding: 8px 0; border-bottom: 1.5px dashed rgba(42, 27, 12, .5); font-size: 17px; line-height: 1.4; }
.food-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.food-actions .btn { min-height: 48px; padding: 10px 16px; font-size: 17px; }

/* Sections */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.find, .vol, .ways, .partners { padding: 112px 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(56px, 7vw, 108px); line-height: .9; letter-spacing: -.03em; }
.sec-head p { font-size: 19px; max-width: 50ch; padding-bottom: 6px; }

.find-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.days { width: 100%; border-collapse: collapse; }
.days thead th { text-align: left; padding: 0 12px 10px 0; font-size: 16px; font-weight: 700; color: var(--green-ink); border-bottom: 2px solid var(--green); }
.days tbody th, .days td { padding: 18px 12px 18px 0; border-bottom: 1.5px solid var(--rule); vertical-align: top; text-align: left; }
.days tbody th { font-size: 24px; font-weight: 800; width: 170px; }
.days td { font-size: 18px; }
.days td span { display: block; font-size: 17px; color: var(--green-ink); }
.days td:last-child { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.today-tag { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 12px; background: var(--harvest); color: var(--ink); font-size: 15px; font-weight: 700; vertical-align: 4px; }
.days-note { margin-top: 18px; font-size: 17px; color: var(--green-ink); max-width: 60ch; }
.find-photo { margin: 0; }
.find-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--green); filter: saturate(.95) sepia(.06); }

.vol { background-color: var(--green); background-image: var(--grain); color: var(--cream); }
.vol .sec-head p, .vol p { color: #E9F0EA; }
.vol h2, .vol h3 { color: var(--cream); }
.jobs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.35fr); gap: 28px; align-items: end; }
.job { margin: 0; }
.job img { width: 100%; object-fit: cover; border: 3px solid var(--cream); filter: saturate(.95) sepia(.05); }
.job:nth-child(1) img { aspect-ratio: 3 / 4; }
.job:nth-child(2) img { aspect-ratio: 4 / 5; }
.job:nth-child(3) img { aspect-ratio: 4 / 3; }
.job figcaption { margin-top: 14px; }
.job h3 { font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.job p { font-size: 18px; }
.groups { margin-top: 64px; padding-top: 28px; border-top: 2px solid var(--harvest); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.groups h3 { font-size: 34px; line-height: 1; }
.groups p { font-size: 19px; max-width: 62ch; }

.ways { background-color: var(--kraft); background-image: var(--fibers), var(--blotch); color: var(--ink); }
.ways h2, .ways h3 { color: var(--ink); }
.ways-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: 44px; align-items: start; }
.needed { padding: 26px 28px; border: 3px solid var(--ink); background: rgba(251, 245, 234, .55); }
.needed h3 { font-size: 26px; margin-bottom: 12px; }
.crate-list { list-style: none; margin: 0; padding: 0; }
.crate-list li { padding: 11px 0; border-bottom: 1.5px dashed rgba(42, 27, 12, .45); font-size: 19px; font-weight: 700; }
.needed-note { margin-top: 14px; font-size: 17px; }
.ways-list { display: grid; gap: 30px; }
.way h3 { font-size: 26px; margin-bottom: 6px; }
.way p { font-size: 18px; }
.ways-photo { margin: 0; }
.ways-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 3px solid var(--ink); filter: saturate(.92) sepia(.08); }

.partners-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.partners h2 { font-size: clamp(56px, 7vw, 108px); line-height: .9; letter-spacing: -.03em; margin-bottom: 22px; }
.partners-lede { font-size: 19px; max-width: 48ch; }
.partners-photo { margin: 30px 0 0; }
.partners-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid var(--green); filter: saturate(.92) sepia(.06); }
.partner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; padding-top: 12px; }
.partner-cols h3 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--green); margin-bottom: 4px; }
.partner-cols ul { list-style: none; margin: 0; padding: 0; }
.partner-cols li { padding: 9px 0; border-bottom: 1.5px solid var(--rule); font-size: 18px; }

.foot { background-color: var(--green); background-image: var(--grain); color: #E9F0EA; padding: 72px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.foot p { font-size: 17px; }
.foot-logo { margin-bottom: 14px; }
.foot-logo .logo { --lg: 36px; }
.foot-h { font-weight: 800; color: var(--cream); margin-bottom: 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-weight: 800; font-size: 20px; text-decoration: none; }
.foot a:hover { color: var(--harvest); }
.demo-line { border-top: 1.5px solid rgba(251, 245, 234, .25); padding: 22px 48px 28px; text-align: center; font-size: 17px; color: #E9F0EA; }

/* Load moment: the meal count is marked on the crate, stroke by stroke */
@media (prefers-reduced-motion: no-preference) {
  .tally.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: stroke .16s calc(.35s + var(--d) * 22ms) ease-out forwards; }
  .tally.redraw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: stroke .12s calc(var(--d) * 9ms) ease-out forwards; }
}
@keyframes stroke { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* 1100 to 1279: Give and Volunteer side by side, Get Food as a wide band */
@media (min-width: 1100px) and (max-width: 1279px) {
  .doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .door-food { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .door-food .door-name { grid-row: span 2; }
  .door-food .food { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .door-food .food-points, .door-food .food-actions { grid-column: 2; }
  .door-food .food-points { grid-row: 1 / span 4; margin-top: 0; }
}

/* Below 1100: the doors become three big tabs */
@media (max-width: 1279px) {
  .pantry-pill { display: none; }
}
@media (max-width: 1099px) {
  .nav { display: none; }
  .burger {
    display: inline-grid; place-content: center; gap: 5px; width: 48px; height: 48px; padding: 0; flex: none;
    background: transparent; border: 2px solid var(--green); border-radius: 3px;
  }
  .burger span { display: block; width: 22px; height: 2.5px; background: var(--green); border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .top { gap: 14px; padding: 0 16px 0 20px; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; padding: 6px 20px 20px; background-color: var(--cream); background-image: var(--grain); border-bottom: 2px solid var(--green); box-shadow: 0 18px 30px rgba(0, 0, 0, .25); }
  .menu[hidden] { display: none; }
  .menu-list { list-style: none; margin: 0 0 16px; padding: 0; }
  .menu-list li { font-size: 17px; }
  .menu-list a { display: flex; align-items: center; min-height: 50px; font-size: 24px; font-weight: 800; text-decoration: none; border-bottom: 1.5px solid rgba(34, 75, 56, .3); letter-spacing: -.01em; }
  .menu-cta { width: 100%; min-height: 54px; }
  .menu-crate { padding: 16px 16px 18px; background-color: var(--kraft); background-image: var(--fibers); border-radius: 3px; }
  .menu-food { display: flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 10px; border: 2px solid var(--ink); border-radius: 3px; font-weight: 700; color: var(--ink); text-decoration: none; }
  .menu-food:hover { background: var(--ink); color: var(--kraft); }
  .menu-foot { margin-top: 16px; font-size: 17px; line-height: 1.5; color: var(--ink); }
  .menu-foot b { display: block; margin-bottom: 2px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(26, 40, 30, .86); }
  .top:has(.burger[aria-expanded="true"]) .top-cta { visibility: hidden; }
  .scrim[hidden] { display: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 34px 28px 26px; }
  .hero-photo { border-left: 0; border-top: 2px solid var(--green); aspect-ratio: 16 / 8; }
  .doors { display: block; min-height: 0; }
  .door-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt { display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 92px; padding: 12px 16px; border: 0; text-align: center; }
  .dt .stencil { font-size: 30px; line-height: 1; -webkit-mask: none; mask: none; }
  .dt small { font-size: 15px; font-weight: 700; line-height: 1.25; }
  .dt-give { background: var(--harvest); color: var(--ink); }
  .dt-vol { background: var(--green); color: var(--cream); }
  .dt-food { background-color: var(--kraft); background-image: var(--fibers); color: var(--ink); }
  .dt[aria-selected="false"] { box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18); }
  .dt[aria-selected="true"] { position: relative; }
  .dt[aria-selected="true"]::after { content: ""; position: absolute; left: calc(50% - 11px); bottom: -11px; width: 22px; height: 12px; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 1; }
  .dt:focus-visible { outline-offset: -6px; }
  .door { padding: 30px 28px 32px; }
  .door-name { display: none; }
  .door-sub { margin-top: 0; }
  .find, .vol, .ways, .partners { padding: 88px 0; }
  .wrap { padding: 0 28px; }
  .find-grid { grid-template-columns: 1fr; }
  .find-photo img { aspect-ratio: 16 / 9; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .job:nth-child(3) { grid-column: 1 / -1; }
  .ways-grid { grid-template-columns: 1fr 1fr; }
  .ways-photo { grid-column: 1 / -1; }
  .ways-photo img { aspect-ratio: 16 / 9; }
  .partners-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 699px) {
  :root { --top-h: 64px; }
  .top { height: var(--top-h); padding: 0 12px 0 16px; }
  .brand .logo { --lg: 21px; }
  .brand .logo-sub { display: none; }
  .top-cta { min-height: 46px; padding: 8px 14px; font-size: 17px; }
  .hero-text { padding: 26px 18px 30px; }
  h1 { font-size: clamp(44px, 13vw, 62px); }
  .lede { font-size: 18px; margin-top: 14px; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-photo img { object-position: 50% 30%; }
  .dt { min-height: 86px; padding: 10px 10px; }
  .dt .stencil { font-size: 24px; }
  .dt-vol .stencil { font-size: 21px; }
  .dt small { font-size: 15px; }
  .door { padding: 36px 18px 30px; }
  .amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tally { height: 55px; }
  .shift-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .shift .btn { grid-column: 2; justify-self: start; }
  .shift-form { grid-template-columns: 1fr; }
  .sh-done { padding-left: 60px; }
  .next-day { font-size: 30px; }
  .wrap { padding: 0 18px; }
  .find, .vol, .ways, .partners { padding: 72px 0; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .sec-head h2, .partners h2 { font-size: 54px; }
  .sec-head p { font-size: 18px; }
  .days thead { display: none; }
  .days, .days tbody, .days tr, .days th, .days td { display: block; width: auto; }
  .days tr { padding: 14px 0; border-bottom: 1.5px solid var(--rule); }
  .days tbody th, .days td { padding: 0; border: 0; }
  .days tbody th { font-size: 24px; }
  .days td { margin-top: 4px; }
  .jobs { grid-template-columns: 1fr; }
  .groups { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .ways-grid { grid-template-columns: 1fr; gap: 36px; }
  .needed { padding: 20px; }
  .partner-cols { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .demo-line { padding: 20px 18px 26px; }
}
@media (max-width: 429px) {
  .dt small { display: none; }
  .dt { min-height: 68px; }
}
@media (max-width: 374px) {
  .brand .logo { --lg: 20px; }
  .brand .logo-icon { display: none; }
  .brand .logo-word { letter-spacing: -.01em; }
  .top-cta { padding: 8px 12px; font-size: 16px; }
  .dt .stencil { font-size: 21px; }
  .dt-vol .stencil { font-size: 18px; }
}
