:root {
  color-scheme: light;
  --green: #01a949;
  --deep: #005f35;
  --ink: #173c2d;
  --muted: #536b5c;
  --cream: #f8f7f0;
  --paper: #fffef9;
  --line: #d5e0d1;
  --pale: #edf5e8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 18px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
a { color: inherit; }
input, textarea, button { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 8px 15px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-inner { min-height: 76px; padding-block: 10px; }
.brand { width: 112px; border-radius: 2px; overflow: hidden; flex: 0 0 auto; }
.header-inner nav { display: flex; align-items: center; gap: 25px; }
.header-inner nav > a:first-child { font-size: 14px; text-underline-offset: 4px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--deep);
  border-radius: 7px;
  background: var(--deep);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.button:hover:not(:disabled) { background: #004b2a; }
.button:disabled { opacity: .65; }
.button-small { min-height: 41px; padding-inline: 14px; font-size: 14px; }

.donation-layout { display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(28px, 5.3vw, 76px); padding-block: clamp(34px, 5.3vw, 75px) 54px; align-items: start; }
.story { padding-top: 25px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.story h1 { margin-top: 18px; font-size: clamp(50px, 6.7vw, 94px); line-height: .98; letter-spacing: -.066em; }
.story h1 em { display: block; color: var(--deep); font-weight: 400; }
.story-copy { margin-top: 22px; max-width: 415px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.food-photo { margin-top: 30px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.food-photo img { border-radius: 4px; }

.donation-card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); padding: clamp(21px, 3.1vw, 38px); }
.donation-card h2 { margin-bottom: 22px; font-size: clamp(29px, 3.1vw, 43px); letter-spacing: -.045em; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: var(--pale); border: 1px solid var(--line); border-radius: 8px; }
.quantity-row label, .field label { font-size: 14px; font-weight: 700; }
.quantity-row p { color: var(--muted); font-size: 13px; }
.quantity { display: flex; align-items: center; border: 1px solid #c8dac5; border-radius: 7px; background: var(--paper); }
.quantity button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 6px; background: var(--paper); color: var(--deep); font-size: 24px; line-height: 1; }
.quantity button:hover:not(:disabled) { background: #e3f0df; }
.quantity button:disabled { opacity: .36; }
.quantity input { width: 55px; min-width: 0; height: 42px; padding: 2px; border: 0; border-inline: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; text-align: center; appearance: textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-block: 13px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.total-row span { color: var(--muted); font-size: 14px; }
.total-row output { color: var(--deep); font-family: var(--serif); font-size: 29px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label span { color: var(--muted); font-size: 12px; font-weight: 400; }
.field input, .field textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); padding: 8px 10px; font-size: 16px; }
.field textarea { min-height: 82px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #687b6d; opacity: 1; }
.note-field { margin-top: 12px; }
.follow-up { display: flex; align-items: flex-start; gap: 10px; margin-block: 14px; padding: 12px; border-radius: 7px; background: var(--pale); font-size: 14px; line-height: 1.45; cursor: pointer; }
.follow-up input { width: 19px; height: 19px; flex: 0 0 auto; margin: 0; accent-color: var(--deep); }
.button-submit { width: 100%; }
.form-note { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-status { margin: 0 0 10px; color: #8d3929; font-size: 14px; }
.receipt { padding: 22px; border-radius: 8px; background: var(--pale); }
.receipt h3 { font-size: 30px; }
.receipt p { margin-top: 9px; }
.receipt-reference { overflow-wrap: anywhere; }
.receipt .button { margin-top: 16px; }

.reports { padding: 24px 0 40px; border-top: 1px solid var(--line); }
.reports h2 { margin-bottom: 9px; font-size: 27px; }
.reports p { color: var(--muted); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 13px; }
.report-record { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.report-record h3 { font-size: 23px; }
.report-record dl { margin: 10px 0 0; }
.report-record dl div { display: flex; justify-content: space-between; gap: 10px; padding-top: 5px; }
.report-record dt { color: var(--muted); }
.report-record dd { margin: 0; font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: 14px; }
.footer-inner a { color: var(--deep); text-underline-offset: 4px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 44px); }
  .story { padding-top: 12px; }
  .contact-fields { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .brand { width: 87px; }
  .header-inner nav { gap: 12px; }
  .header-inner nav > a:first-child, .button-small { font-size: 12px; }
  .button-small { min-height: 37px; padding-inline: 9px; }
  .donation-layout { grid-template-columns: 1fr; gap: 23px; padding-block: 23px 28px; }
  .story { padding-top: 0; }
  .story h1 { margin-top: 8px; font-size: clamp(39px, 9.5vw, 60px); }
  .story h1 em { display: inline; }
  .story-copy { margin-top: 9px; }
  .food-photo { display: none; }
  .donation-card { padding: 17px; border-radius: 12px; }
  .donation-card h2 { margin-bottom: 15px; }
  .reports { padding-block: 18px 24px; }
}

@media (max-width: 350px) {
  .header-inner nav { gap: 8px; }
  .header-inner nav > a:first-child { font-size: 11px; }
  .quantity-row { padding: 9px; }
  .quantity button { width: 36px; }
  .quantity input { width: 45px; }
}
