:root {
  color-scheme: light;
  --ink: #1c1c1c;
  --muted: #4a4a4a;
  --line: #e6e6e6;
  --paper: #ffffff;
  --wash: #f6f6f4;
  --orange: #e67a2b;
  --orange-deep: #c45d18;
  --peach: #f4c56a;
  --yellow: #f3e27a;
  --field-bg: #ffffff;
  --field-border: #bbb;
  --btn-bg: #111;
  --btn-fg: #fff;
  --hero-wash: rgba(243, 226, 122, 0.72);
  --hero-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  --max: 1180px;
  --header: 220px;
  --serif: "Lora", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3efe8;
  --muted: #b8b0a6;
  --line: #3a342c;
  --paper: #161411;
  --wash: #221e19;
  --orange: #f08a3d;
  --orange-deep: #f4c56a;
  --field-bg: #1e1b17;
  --field-border: #5a5348;
  --btn-bg: #e67a2b;
  --btn-fg: #161411;
  --hero-wash: rgba(18, 15, 12, 0.62);
  --hero-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/karla.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/lora.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/lora-italic.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--orange-deep);
}

h1,
h2,
h3,
h4,
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #000;
  color: #fff;
  padding: 8px 12px;
}

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 680px;
  padding: 8px 0 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
}

.logo {
  text-decoration: none;
  display: grid;
  justify-items: center;
}

.logo img {
  width: 168px;
  height: auto;
}

.header-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--orange-deep);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.header-social a,
.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
}

.header-social a:hover,
.footer-social a:hover {
  color: var(--orange-deep);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 860px) {
  .nav-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 35;
  }
}

.header-social svg,
.footer-social svg {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  max-width: 1400px;
  margin: 8px auto 0;
  min-height: 42vw;
  max-height: 560px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 42vw;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: var(--hero-shadow);
}

.page-hero {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 48px 28px;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-wash);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  text-align: center;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px;
}

.wrap.narrow {
  max-width: 860px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: center;
}

.split.top {
  align-items: start;
}

.split.reverse > :first-child {
  order: 2;
}

.lede {
  font-size: 1.02rem;
}

.kicker {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* Stats marquee */
.marquee {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  white-space: nowrap;
}

.marquee-track span::after {
  content: " · ";
  margin-left: 48px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Quotes */
.quotes {
  padding: 64px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.quote-card[hidden] {
  display: none !important;
}

.quote-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
}

.quote-card cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  margin-top: 10px;
}

.quote-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.quote-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  cursor: pointer;
}

.quote-nav button[aria-current="true"] {
  background: var(--ink);
}

/* Partners */
.partners {
  text-align: center;
  padding: 20px 28px 56px;
}

.partners h2 {
  font-size: 1.8rem;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
  margin-top: 28px;
}

.partner-row img {
  height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

html[data-theme="dark"] .partner-row img {
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

.infographic {
  max-width: 920px;
  margin: 0 auto 40px;
  padding: 0 28px;
}

.infographic img {
  width: 100%;
  border-radius: 8px;
}

.wrap .infographic {
  padding: 0;
  margin: 48px auto 0;
}

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.photo-strip img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--wash);
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 48px 24px 32px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
}

.lightbox img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.lightbox figcaption {
  color: #eee;
  font-size: 14px;
  margin-top: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* Cupboard + forms */
.cupboard {
  background: var(--wash);
  padding: 64px 28px;
}

.cupboard-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: start;
}

.cupboard-inner img {
  margin-top: 20px;
  width: 100%;
}

main > .cupboard {
  background: transparent;
  padding-top: 24px;
}

.form {
  background: var(--paper);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}

.form h3,
.form .form-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  margin: 12px 0 6px;
}

.req {
  color: #b33;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  background: var(--field-bg);
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  font-size: 14px;
}

.check input {
  margin-top: 4px;
}

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-fg) !important;
  border: 0;
  padding: 11px 22px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none !important;
  margin-top: 12px;
}

.btn:hover {
  background: var(--orange-deep);
}

.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}

.honey {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 48px 28px 36px;
  text-align: center;
}

.site-footer h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.site-footer a {
  text-decoration: none;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 10px;
}

.tiny {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  font-size: 14px;
}

.footer-nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.form-note a {
  text-underline-offset: 3px;
}

.article ul,
.article ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.article li {
  margin-bottom: 0.4em;
}

/* Inner pages */
.event {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.event:last-of-type {
  border-bottom: 0;
}

.event-date {
  text-align: center;
  font-family: var(--serif);
}

.event-date .mon {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.event-date .day {
  font-size: 2rem;
  line-height: 1;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 12px;
}

.event-media {
  margin: 16px 0;
  max-width: 520px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  text-decoration: none;
  color: inherit;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 12px;
}

.blog-card h2 {
  font-size: 1.35rem;
}

.byline {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.article img.lead {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin: 8px 0 28px;
}

.bank {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin: 18px 0;
}

.bank dt {
  font-size: 13px;
  color: var(--muted);
}

.bank dd {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-family: var(--serif);
}

.copy-btn {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--ink);
  padding: 4px 8px;
  cursor: pointer;
  margin-left: 8px;
}

.contact-block p {
  margin-bottom: 0.4em;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
}

.more-posts {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.more-posts a {
  display: block;
  margin: 8px 0;
}

.thank-you {
  text-align: center;
  padding: 80px 28px;
}

/* Nourish Project News */
.news-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 40px;
}

.news-stat {
  background: var(--wash);
  padding: 20px 22px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-stat:hover {
  color: inherit;
}

.news-stat .when {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.news-stat .num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 4px;
}

.news-stat p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.news-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 8px;
  font-size: 15px;
}

.news-article {
  padding: 48px 0 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.news-article h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.news-article .highlights {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.news-signoff {
  margin-bottom: 0.35em;
}

.news-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.news-table caption {
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 16px 8px;
  caption-side: top;
}

.news-table th,
.news-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.news-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--wash);
}

.news-table tfoot td {
  font-weight: 600;
  background: var(--wash);
  border-bottom: 0;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    max-width: none;
    background: var(--paper);
    flex-direction: column;
    padding: 72px 28px;
    gap: 18px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 40;
  }

  .nav-links.open {
    transform: none;
  }

  .logo img {
    width: 120px;
  }

  .split,
  .cupboard-inner,
  .blog-grid,
  .photo-strip,
  .gallery-grid,
  .event,
  .news-stats {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }

  .hero,
  .hero img {
    height: 280px;
    min-height: 280px;
  }

  .name-row {
    grid-template-columns: 1fr;
  }

  .photo-strip img,
  .gallery-grid img {
    height: 180px;
  }
}
