/* =============================================================
   House of Manner Foundation — site stylesheet
   Editorial system translated from the approved reference slides.
   Tokens first; every component consumes them.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --cream: #F4EFE6;          /* default canvas */
  --cream-deep: #ECE5D7;     /* quiet alternate band */
  --ink: #181715;            /* primary text / borders / dark surfaces */
  --ink-soft: #45413B;       /* long-form body */
  --taupe: #7E7568;          /* captions, metadata (AA on cream) */
  --line: #D8D0C1;           /* hairlines */
  --terra: #B75B48;          /* restrained accent */
  --terra-deep: #96432F;     /* hover / AA text accent */

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --fs-display: clamp(2.4rem, 4.4vw, 3.75rem);
  --fs-h1: clamp(2.5rem, 5.2vw, 4rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 2.75rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.7rem);
  --fs-lede: clamp(1.125rem, 1.6vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Rhythm */
  --section: clamp(72px, 10vw, 140px);
  --section-sm: clamp(48px, 6vw, 88px);
  --gap: clamp(20px, 3vw, 40px);
  --gutter: clamp(20px, 4vw, 48px);
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 420ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p  { margin: 0 0 1.1em; max-width: var(--measure); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
::selection { background: var(--terra); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--terra-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: var(--fs-small);
  padding: 12px 20px; z-index: 200; text-decoration: none;
}
.skip-link:focus-visible { left: 12px; top: 12px; outline-offset: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.shell { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.shell--tight { max-width: 1160px; }

.section { padding-block: var(--section); }
.section--sm { padding-block: var(--section-sm); }
.section--flush-top { padding-top: 0; }
.band { background: var(--cream-deep); }
.band--ink { background: var(--ink); color: var(--cream); }
.band--ink p { color: #CFC8BB; }

.rule-top { border-top: 1px solid var(--line); }
.rule-top--ink { border-top: 1px solid var(--ink); }

/* Eyebrow + accent rule */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: none;
}
.eyebrow--terra { color: var(--terra-deep); }
.accent-rule {
  width: 56px; height: 2px; background: var(--terra);
  border: 0; margin: 26px 0 0;
}
.center .accent-rule { margin-inline: auto; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

.serif-lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
}

.caption {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--taupe);
  margin-top: 10px;
  max-width: none;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 17px 34px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--terra); color: #FFF6EC; }
.btn--primary:hover { background: var(--terra-deep); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: progress; }

.text-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 5px;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--terra);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.text-link:hover::after { transform: scaleX(0.45); }
.text-link .arrow { color: var(--terra-deep); margin-left: 8px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-top: 40px; }

/* Running-text links */
.prose a {
  color: var(--terra-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.site-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { width: auto; height: 52px; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav__link {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.site-nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--terra); height: 2px; }
.site-nav .btn { padding: 13px 26px; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 12px 4px;
  margin-right: -4px;
}
.nav-toggle__line {
  display: block; width: 26px; height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: var(--cream);
  padding: 120px var(--gutter) 48px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
body.menu-open { overflow: hidden; }

.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 0;
}
.mobile-menu__link[aria-current="page"] { color: var(--terra-deep); }
.mobile-menu__cta { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu__cta .btn { width: 100%; }

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header__bar { min-height: 72px; }
  .site-header__logo img { height: 42px; }
  .site-header__mobile-donate { display: inline-block; margin-left: auto; }
}
@media (min-width: 1024px) {
  .site-header__mobile-donate { display: none; }
}
.site-header__mobile-donate.btn { padding: 11px 20px; }

/* Very small phones: tighten the header so logo + Donate + toggle fit. */
@media (max-width: 380px) {
  .site-header__bar { gap: 12px; }
  .site-header__logo img { height: 36px; }
  .site-header__mobile-donate.btn { padding: 10px 15px; letter-spacing: 0.1em; }
  .nav-toggle { padding: 12px 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: var(--section-sm) 0 40px;
  margin-top: var(--section-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px var(--gap);
}
.site-footer__logo img { height: 58px; width: auto; }
.site-footer__mission { margin-top: 22px; font-size: var(--fs-small); max-width: 34ch; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer__grid a:not(.btn) {
  text-decoration: none;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), color 250ms var(--ease);
}
.site-footer__grid a:not(.btn):hover { color: var(--terra-deep); border-bottom-color: var(--terra); }

.newsletter-form { margin-top: 4px; }
.newsletter-form label { display: block; font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 12px; }
.newsletter-form .field-row { display: flex; border: 1px solid var(--ink); }
.newsletter-form input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font-family: var(--sans); font-size: var(--fs-small);
  padding: 13px 14px; color: var(--ink);
}
.newsletter-form input:focus-visible { outline-offset: -3px; }
.newsletter-form button {
  border: 0; background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: var(--fs-label);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0 20px; cursor: pointer;
  transition: background-color 250ms var(--ease);
}
.newsletter-form button:hover { background: var(--terra-deep); }

.site-footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between; align-items: center;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer__legal a { font-size: 0.8125rem; color: var(--taupe); text-decoration: none; }
.site-footer__legal a:hover { color: var(--terra-deep); }
.site-footer__copyright { font-size: 0.8125rem; color: var(--taupe); margin: 0; }

@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 0; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lede { margin-top: 26px; }

/* ---------- Home hero ---------- */
.home-hero { padding: clamp(40px, 6vw, 96px) 0 0; }
.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.home-hero h1 {
  font-size: var(--fs-display);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 0;
}
.home-hero__kicker { margin-top: 34px; }
.home-hero__intro { margin-top: 26px; max-width: 40ch; }

.home-hero__collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(56px, 6.4vw, 96px);
  gap: clamp(12px, 1.6vw, 20px);
}
.home-hero__collage .ph { position: relative; overflow: hidden; }
.home-hero__collage img { width: 100%; height: 100%; object-fit: cover; }
.ph--a { grid-column: 1 / 8;  grid-row: 1 / 5; }
.ph--b { grid-column: 8 / 13; grid-row: 1 / 7; }
.ph--c { grid-column: 1 / 6;  grid-row: 5 / 9; }
.ph--d { grid-column: 6 / 13; grid-row: 7 / 9; }
.ph--d img { object-position: 50% 30%; }

@media (max-width: 899px) {
  .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero__collage { grid-auto-rows: clamp(48px, 10vw, 80px); }
}

/* ---------- Split sections (media + text) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
}
.split__media { grid-column: 1 / 8; }
.split__body  { grid-column: 9 / 13; }
.split--flip .split__media { grid-column: 6 / 13; order: 2; }
.split--flip .split__body  { grid-column: 1 / 5; order: 1; }
.split__media img { width: 100%; }

@media (max-width: 899px) {
  .split, .split--flip { display: block; }
  .split__body, .split--flip .split__body { margin-top: 28px; }
}

/* ---------- Impact stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.stat {
  padding: clamp(28px, 3.5vw, 48px) clamp(18px, 2.5vw, 40px) clamp(30px, 3.5vw, 52px) 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
}
.stat__value sup { font-size: 0.5em; top: -0.62em; position: relative; color: var(--terra-deep); }
.stat__label {
  display: block;
  margin-top: 16px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 899px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 419px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-top: 1px solid var(--line); padding-right: 0; }
  .stat:first-child { border-top: 0; }
}

/* Impact page — large ledger */
.ledger { border-top: 1px solid var(--ink); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: baseline;
  padding: clamp(30px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
}
.ledger__value {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.ledger__value sup { font-size: 0.45em; top: -0.85em; position: relative; color: var(--terra-deep); }
.ledger__label {
  font-size: clamp(0.8125rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 599px) {
  .ledger__row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Area rows (What We Do) ---------- */
.area {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  padding: clamp(48px, 6vw, 84px) 0;
  border-top: 1px solid var(--line);
}
.area__index {
  grid-column: 1 / 2;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--terra-deep);
}
.area__body { grid-column: 2 / 7; }
.area__media { grid-column: 8 / 13; }
.area--flip .area__body { grid-column: 7 / 12; order: 3; }
.area--flip .area__media { grid-column: 1 / 6; order: 2; grid-row: 1; }
.area--flip .area__index { grid-column: 6 / 7; order: 1; }
.area h2 { max-width: 16ch; }
.area p { max-width: 44ch; }

@media (max-width: 899px) {
  .area, .area--flip { display: block; }
  .area__index { margin-bottom: 8px; }
  .area__media { margin-top: 26px; }
}

/* ---------- Gallery (Community) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 34px) var(--gap);
  align-items: start; /* size each figure to its image + caption; never stretch */
}
.gallery figure { margin: 0; }
/* height:auto lets each figure's aspect-ratio class drive image height, so the
   caption always stays in flow beneath the image (no overflow onto the next row). */
.gallery img { width: 100%; height: auto; object-fit: cover; }
.g-span-7 { grid-column: span 7; }
.g-span-5 { grid-column: span 5; }
.g-span-6 { grid-column: span 6; }
.g-span-4 { grid-column: span 4; }
.g-span-8 { grid-column: span 8; }
.g-tall img { aspect-ratio: 3 / 4; }
.g-wide img { aspect-ratio: 16 / 10; }
.g-square img { aspect-ratio: 1 / 1; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery [class*="g-span"] { grid-column: span 2; }
  .gallery .g-half { grid-column: span 1; }
}

/* ---------- Pathways (Get Involved) ---------- */
.pathway {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: 16px var(--gap);
  align-items: center;
  padding: clamp(30px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.pathway:last-of-type { border-bottom: 1px solid var(--line); }
.pathway h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
  transition: color 300ms var(--ease);
}
.pathway p { margin: 0; font-size: var(--fs-small); max-width: 52ch; }
.pathway__arrow {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terra-deep);
  transition: transform 300ms var(--ease);
}
.pathway:hover h2 { color: var(--terra-deep); }
.pathway:hover .pathway__arrow { transform: translateX(8px); }
@media (max-width: 767px) {
  .pathway { grid-template-columns: 1fr auto; }
  .pathway p { grid-column: 1 / -1; }
}

/* ---------- Contact categories ---------- */
.contact-cats { list-style: none; margin: 0; padding: 0; }
.contact-cats li { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-cats h3 {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-cats p { font-size: var(--fs-small); margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gap); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 649px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 9px;
}
.field .optional { font-weight: 400; color: var(--taupe); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 15px;
  transition: border-color 250ms var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23181715' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--taupe); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline-offset: 0; outline-width: 1px; border-color: var(--terra-deep);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--terra-deep); }
.field__error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terra-deep);
  margin-top: 8px;
}
.field.has-error .field__error { display: block; }

.form-status {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--ink);
  font-size: var(--fs-small);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--success { border-color: var(--ink); background: var(--cream-deep); }
.form-status--error { border-color: var(--terra-deep); color: var(--terra-deep); }
.form-status h2, .form-status h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.02em; }
.form-status p { margin: 0; font-size: var(--fs-small); }
.form-status--error p { color: var(--terra-deep); }

.form-actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-note { font-size: 0.8125rem; color: var(--taupe); max-width: 44ch; }

/* Honeypot */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Donate ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  position: relative;
}
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  padding: 13px 24px;
  min-width: 92px;
  text-align: center;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.chip input:checked + span { background: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--terra-deep); outline-offset: 3px; }
.chip input:hover:not(:checked) + span { border-color: var(--terra-deep); color: var(--terra-deep); }

.donate-list { list-style: none; margin: 24px 0 0; padding: 0; columns: 2; column-gap: var(--gap); }
.donate-list li {
  break-inside: avoid;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  position: relative;
}
.donate-list li::before {
  content: "";
  position: absolute; left: 0; top: 22px;
  width: 8px; height: 2px; background: var(--terra);
}
@media (max-width: 649px) { .donate-list { columns: 1; } }

/* ---------- Outreach / counties ---------- */
.county-list { list-style: none; margin: 0; padding: 0; }
.county-list li {
  display: flex; align-items: baseline; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.county-list .n {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--terra-deep);
  min-width: 32px;
}
.county-list .name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.county-list .st {
  margin-left: auto;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- Empty state ---------- */
.empty-state {
  border: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  text-align: center;
}
.empty-state h2, .empty-state h3 { max-width: 22ch; margin-inline: auto; }
.empty-state p { margin-inline: auto; }
.empty-state .accent-rule { margin-inline: auto; margin-bottom: 28px; }

/* ---------- Teasers (programs/events/stories templates) ---------- */
.teaser {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.teaser__meta { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); }
.teaser h3 { margin: 10px 0 6px; transition: color 250ms var(--ease); }
.teaser:hover h3 { color: var(--terra-deep); }
.teaser p { font-size: var(--fs-small); margin: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.8125rem; color: var(--taupe); margin: 28px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--taupe); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terra-deep); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------- Closing invitation ---------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; margin-inline: auto; }
.closing .serif-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--terra-deep);
  letter-spacing: 0.02em;
  margin: 0 auto 18px;
}
.closing .cta-row { justify-content: center; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(80px, 14vw, 180px); }
.notfound .code { font-family: var(--serif); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; }
.notfound h1 { font-size: var(--fs-h2); }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.js .reveal {
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .text-link::after, .pathway__arrow, .site-nav__link::after { transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-menu { display: none; }
}
