/* ==========================================================================
   Let's Eat Together Foundation — shared stylesheet
   Brand: Houschka Alt Pro, black / white / warm neutral
   ========================================================================== */

@font-face {
  font-family: 'Houschka';
  src: url('../fonts/houschka-medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Houschka';
  src: url('../fonts/houschka-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --ink: #1c1a17;
  --white: #ffffff;
  --sand: #f4f2ee;
  --sand-deep: #e7e3db;
  --rule: rgba(10, 10, 10, 0.12);
  --rule-light: rgba(255, 255, 255, 0.18);
  --maxw: 68rem;
  --measure: 46rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Houschka', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--white); color: var(--black);
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.18; }

h1 { font-size: clamp(1.75rem, 4.4vw, 3.1rem); }

h2 {
  font-size: clamp(1.35rem, 2.9vw, 2.05rem);
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

h3 { font-size: 1.05rem; letter-spacing: 0.035em; }

.eyebrow {
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  max-width: var(--measure);
}

.prose p { margin-bottom: 1.15rem; font-size: 1.05rem; max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */

.inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.inner--narrow { max-width: 54rem; }

section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }

.section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head .lede { margin-top: 0.9rem; opacity: 0.82; }

.band-sand { background: var(--sand); }
.band-dark { background: var(--black); color: var(--white); }
.band-dark .eyebrow { opacity: 0.65; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.btn:hover { background: transparent; color: var(--black); transform: translateY(-1px); }

.btn--light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--light:hover { background: transparent; color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--ghost:hover { background: var(--black); color: var(--white); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}
.btn-row--center { justify-content: center; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  color: var(--white);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color .16s ease, opacity .16s ease;
}
.nav a:hover { opacity: 0.78; }
.nav a[aria-current="page"] { border-bottom-color: var(--white); }
.nav a.btn--light {
  color: var(--black);
  border-bottom-color: var(--white);
}
.nav a.btn--light:hover { color: var(--white); opacity: 1; }
.nav .btn {
  padding: 0.5rem 1.35rem;
  font-size: 0.82rem;
  border-bottom-width: 2px;
}
.nav .btn[aria-current="page"] { border-color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1.5rem;
    border-top: 1px solid var(--rule-light);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--rule-light);
    font-size: 1rem;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule-light); opacity: 0.65; }
  .nav .btn {
    margin-top: 1.1rem;
    text-align: center;
    border: 2px solid var(--white);
    border-radius: 999px;
    padding-block: 0.75rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: 0;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.62) 45%, rgba(10,10,10,0.85) 100%);
}
.hero .inner {
  text-align: center;
  padding-block: clamp(3.75rem, 9vw, 6.5rem);
}
.hero__logo {
  width: min(230px, 52vw);
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
}
.hero h1 {
  text-transform: uppercase;
  max-width: 32ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero .lede {
  margin: 1.35rem auto 0;
  opacity: 0.93;
}

.hero--page .inner { padding-block: clamp(3rem, 6.5vw, 4.75rem); text-align: left; }
.hero--page.hero--media .inner { padding-block: clamp(4.5rem, 9vw, 7rem); }
.hero--page h1 { text-transform: uppercase; max-width: 20ch; margin-inline: 0; }
.hero--page .lede { margin-inline: 0; }

/* ---------- Photo slots ---------- */

.photo {
  position: relative;
  background: var(--sand-deep);
  border-radius: 16px;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--portrait { aspect-ratio: 4 / 5; }

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }

/* Five co-equal values: flex so the final row centres under the first
   instead of leaving a hole at the end of a rigid grid. */
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0;
}
.values > .card {
  flex: 1 1 240px;
  max-width: 320px;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  /* photo stays first in the DOM (so it leads on mobile) but sits right on desktop */
  .split--media-right > .photo { order: 2; }
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px -18px rgba(0,0,0,0.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card h3 { text-transform: uppercase; margin-bottom: 0.55rem; }
.card p { font-size: 0.97rem; opacity: 0.82; }
a.card { display: block; text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 16px 32px -20px rgba(0,0,0,0.45); }
.card--link h3::after { content: ' \2192'; opacity: 0.45; }

.band-dark .card {
  background: rgba(255,255,255,0.06);
  box-shadow: none;
  border: 1px solid var(--rule-light);
  color: var(--white);
}
.band-dark .card p { opacity: 0.8; }

/* Program cards — photo over copy, to give the What We Do band some depth */
.progcards {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.progcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 14px 30px -22px rgba(0,0,0,0.5);
}
.progcard__media {
  aspect-ratio: 4 / 3;
  background: var(--sand-deep);
  overflow: hidden;
}
.progcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.progcard:hover .progcard__media img { transform: scale(1.04); }
.progcard__body { padding: 1.4rem 1.4rem 1.6rem; }
.progcard__body h3 { text-transform: uppercase; margin-bottom: 0.55rem; }
.progcard__body p { font-size: 0.97rem; opacity: 0.84; }

/* Contact details — address must not inherit the browser's italic default */
.contact-block {
  font-style: normal;
  opacity: 0.84;
  line-height: 1.7;
}
.contact-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.contact-block a:hover { opacity: 0.7; }

/* Two partner photos stacked in one column of a split */
.photo-stack { display: grid; gap: 1rem; }

/* Partner wordmark — stands in for an h2, so it needs comparable optical weight */
.partner-logo {
  width: min(280px, 62%);
  height: auto;
  margin-bottom: 0.35rem;
}

/* Programs page: alternating photo features */
.feature .split { align-items: center; }
.photo--four3 { aspect-ratio: 4 / 3; }

/* Supporting detail under a feature — a set of parallel facts, not a sequence */
.marks {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.6rem;
}
.marks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.97rem;
  opacity: 0.86;
}
.marks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
}

/* Numbered program list */
.steps { display: grid; gap: 1.5rem; margin-top: 2rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__num {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  line-height: 1;
  margin-top: 0.2rem;
}
.step h3 { text-transform: uppercase; margin-bottom: 0.4rem; }
.step p { opacity: 0.84; max-width: 42rem; }

/* Stats */
.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2rem;
}
.stat {
  border-top: 2px solid currentColor;
  padding-top: 1rem;
}
.stat__value { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.stat__label { font-size: 0.9rem; opacity: 0.75; margin-top: 0.35rem; }

/* Two co-equal pillars — no numbering: these are parallel, not sequential */
.pillars {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
}
.pillar { border-top: 2px solid currentColor; padding-top: 1.05rem; }
.pillar h3 { text-transform: uppercase; margin-bottom: 0.6rem; }
.pillar p { opacity: 0.84; }
.band-dark .pillars { border-top-color: var(--rule-light); }
@media (min-width: 700px) { .pillars { grid-template-columns: 1fr 1fr; } }

/* Pull quote */
.quote {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.quote cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.15rem;
  max-width: 38rem;
  margin-top: 2rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(10,10,10,0.28);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.12);
}
.field__hint { font-size: 0.85rem; opacity: 0.68; }
.hp { position: absolute; left: -9999px; }

.form .btn { justify-self: start; cursor: pointer; }

/* ---------- Callout ---------- */

.callout {
  border: 2px solid var(--rule);
  border-radius: 18px;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--white);
}
.band-dark .callout { border-color: var(--rule-light); background: rgba(255,255,255,0.05); }

.tax-note {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.75rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(2.75rem, 6vw, 4rem) 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule-light);
}
.site-footer img { height: 66px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.95rem;
  opacity: 0.7;
}
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--white); text-decoration: none; opacity: 0.86; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { opacity: 0.82; max-width: 26rem; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.72;
}

/* ---------- Utilities ---------- */

.center { text-align: center; }
.center .lede, .center .prose p { margin-inline: auto; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .nav-toggle, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}
