/* Fresh Rescue of Michigan — freshmi.org
   Colors are taken from the FRoM logo. Edit them here to change the whole site. */
:root {
  --forest: #0A5210;      /* headings, links, rule under the logo */
  --forest-deep: #073A0B; /* dark bands */
  --leaf: #57A522;        /* accents only (too light for text) */
  --leaf-soft: #E8F3DE;
  --tomato: #C8200E;      /* main buttons */
  --tomato-dark: #A11A0B;
  --ground: #F5F8F1;      /* page background */
  --paper: #FFFFFF;
  --ink: #18261A;         /* body text */
  --muted: #4E5E52;
  --line: #D9E3D3;
  --radius: 8px;
  --max: 1120px;
  --display: "Alegreya", Georgia, "Times New Roman", serif;
  --text: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 18px/1.6 var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--tomato-dark); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; color: var(--forest); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tomato); margin-bottom: .6em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.prose { max-width: 68ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header: small logo top-left above a thin dark-green rule */
.site-header { background: var(--paper); border-bottom: 3px solid var(--forest); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.brand img { width: 128px; }
.brand .byline { max-width: 190px; margin-top: 4px; font: italic 600 .76rem/1.25 var(--text); color: var(--forest); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { background: var(--leaf-soft); color: var(--forest); }
.nav a[aria-current="page"] { color: var(--forest); box-shadow: inset 0 -3px 0 var(--leaf); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--forest); color: var(--forest); border-radius: 6px; padding: 6px 12px; font: 700 1rem var(--text); cursor: pointer; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; padding: 8px 20px 18px; border-bottom: 3px solid var(--forest); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; font-weight: 700; }
  .nav .btn { margin: 12px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; font: 700 1.05rem var(--text); text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary, .nav a.btn-primary { background: var(--tomato); color: #fff; }
.btn-primary:hover, .nav a.btn-primary:hover { background: var(--tomato-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--leaf-soft); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn[disabled], .btn.is-placeholder { background: #E7E9E4; color: #5E665F; border: 2px dashed #9AA39B; cursor: not-allowed; }

/* Sections */
section { padding-block: 64px; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.band-dark { background: var(--forest-deep); color: #EAF3E4; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: #CFEAB8; }

/* Hero */
.hero { padding-block: 48px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero { padding-block: 44px 20px; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin-top: 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.1rem, 4vw, 2.8rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; color: #CFE3C2; }
.stats-light .stat b { color: var(--forest); }
.stats-light .stat span { color: var(--muted); }
.source-note { font-size: .9rem; margin-top: 22px; opacity: .85; }

/* Path cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card p { flex: 1; }
.card .arrow { font-weight: 700; text-decoration: none; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 3 / 2; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

.org-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px 28px; }
.org-list li { padding-left: 28px; position: relative; font-weight: 500; }
.org-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); box-shadow: inset 0 0 0 3px var(--leaf-soft); }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--leaf); box-shadow: inset 0 0 0 4px var(--leaf-soft); }

/* Steps: a real sequence */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--tomato); line-height: 1; margin-bottom: 8px; }

/* Support band on home */
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: center; }
@media (max-width: 800px) { .support { grid-template-columns: 1fr; } }

/* Chart */
.chart { display: grid; gap: 26px; max-width: 760px; }
.chart h3 { margin-bottom: 10px; }
.bar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 8px; }
.bar-row .label { font-size: .95rem; color: var(--muted); }
.bar { height: 30px; border-radius: 4px; background: var(--leaf); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 90px; }
.bar.y3 { background: var(--forest); }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr; gap: 4px; } }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person .ph { aspect-ratio: 1 / 1; background: repeating-linear-gradient(45deg, #EEF2EA, #EEF2EA 10px, #E5EBE0 10px, #E5EBE0 20px); display: grid; place-items: center; color: #7A877C; font-size: .85rem; text-align: center; padding: 12px; }
.person .ph b { display: block; font-family: var(--display); font-size: 2.4rem; color: #A7B5A6; }
.person .body { padding: 16px 18px 20px; }
.person h3 { margin-bottom: 2px; font-size: 1.2rem; }
.person .role { color: var(--tomato-dark); font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.person p { font-size: .95rem; margin: 0; }

/* Quotes */
.statement { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4; border-left: 4px solid var(--leaf); padding-left: 22px; margin: 0 0 28px; max-width: 62ch; }

/* Forms */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: 1rem var(--text); padding: 11px 12px; border: 1px solid #B9C6B4; border-radius: 6px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); outline: 2px solid var(--leaf-soft); }
.hidden { display: none; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 6px; }
.choice { display: flex; gap: 8px; align-items: center; font-weight: 400; margin-bottom: 4px; }
.choice input { width: auto; }

/* Give */
.give-box { background: var(--paper); border: 2px solid var(--forest); border-radius: var(--radius); padding: 28px; }
.address { font-family: var(--display); font-size: 1.25rem; line-height: 1.45; background: var(--leaf-soft); border-radius: 6px; padding: 14px 18px; margin: 10px 0 16px; }
.placeholder-note { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.disclosure { font-size: .95rem; background: var(--ground); border-left: 4px solid var(--forest); padding: 12px 16px; }

/* Footer */
.site-footer { background: var(--forest-deep); color: #D6E6CC; padding-block: 44px 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { background: #fff; border-radius: 8px; padding: 8px 10px; display: inline-block; margin-bottom: 12px; }
.footer-logo img { width: 130px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.sponsor { border-top: 1px solid rgba(255,255,255,.18); margin-top: 32px; padding-top: 18px; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* People as a list: photo beside text, so any number of members lines up cleanly */
.people { grid-template-columns: 1fr; gap: 18px; max-width: 900px; }
.person { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.person .ph { aspect-ratio: auto; min-height: 170px; height: 100%; }
.person .body { padding: 20px 24px; }
@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
  .person .ph { aspect-ratio: 16 / 9; min-height: 0; }
}
[id] { scroll-margin-top: 110px; }
.person img.ph { padding: 0; background: none; width: 100%; height: 100%; min-height: 170px; object-fit: cover; object-position: center 20%; }
@media (max-width: 560px) { .person img.ph { aspect-ratio: 1 / 1; max-height: 320px; } }

.nowrap { white-space: nowrap; }
