/* =====================================================================
   THE CLARITY HOUSE — main.css
   Mobile-first. One stylesheet for the whole site.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --teal: #0F4C5C;
  --teal-deep: #0B3A47;
  --forest: #102F31;
  --forest-deep: #0B2224;
  --parchment: #F6EBDD;
  --parchment-deep: #EEDFC9;
  --sage: #86A98C;
  --sage-deep: #5F8A67;
  --clay: #E07A5F;
  --clay-deep: #C4634A;
  --clay-text: #A8482F; /* clay darkened for text on light backgrounds (WCAG AA) */
  --charcoal: #252525;
  --ink: #1B1B1B;
  --offwhite: #FAF9F6;
  --white: #FFFFFF;
  --muted: #5B615F;
  --line: rgba(16, 47, 49, 0.14);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 5vw, 5.25rem);
  --fs-hand: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 3rem + 5vw, 7.5rem);

  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow-soft: 0 10px 30px rgba(16, 47, 49, 0.12);
  --shadow-print: 0 14px 34px rgba(16, 47, 49, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; color: inherit; }
h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--teal-deep); }
ul, ol { padding-left: 1.25rem; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }
::selection { background: var(--clay); color: var(--white); }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--forest); color: var(--white); padding: 0.6rem 1rem; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout helpers ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 46rem; }
.container--wide { max-width: 90rem; }
.section { padding-block: var(--space-6); position: relative; }
.section--tight { padding-block: var(--space-5); }
.section--dark { background: var(--forest); color: var(--offwhite); }
.section--teal { background: var(--teal); color: var(--offwhite); }
.section--parchment { background: var(--parchment); }
.section--dark a:not(.btn), .section--teal a:not(.btn) { color: var(--parchment); }
.section--dark .eyebrow, .section--teal .eyebrow { color: var(--sage); }
.paper { position: relative; }
.paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper > * { position: relative; }
.grid { display: grid; gap: var(--space-3); }
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 64em) { .grid--2-1 { grid-template-columns: 2fr 1fr; } .grid--1-1 { grid-template-columns: 1fr 1fr; align-items: center; } .grid--3-2 { grid-template-columns: 3fr 2fr; align-items: center; } .grid--2-3 { grid-template-columns: 2fr 3fr; align-items: center; } }
.stack > * + * { margin-top: var(--space-2); }
.stack--lg > * + * { margin-top: var(--space-3); }
.center { text-align: center; }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mb-0 { margin-bottom: 0; }
.measure { max-width: 62ch; }
.measure--sm { max-width: 46ch; }
.lead { font-size: var(--fs-lg); line-height: 1.55; }
.muted { color: var(--muted); }
.section--dark .muted, .section--teal .muted { color: rgba(250, 249, 246, 0.72); }
.small { font-size: var(--fs-sm); }

/* ---------- 4. Type flourishes ---------- */
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-text); margin-bottom: 0.9rem; }
.hand { font-family: var(--hand); font-size: var(--fs-hand); font-weight: 500; line-height: 1.1; color: var(--clay-deep); letter-spacing: 0; }
.hand--light { color: var(--parchment); }
.hand--teal { color: var(--teal); }
.hand--rotate { display: inline-block; transform: rotate(-3deg); }
.scribble { position: relative; display: inline; }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.08em; height: 0.35em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 2, 80 11, 120 6 S 180 4, 198 8' fill='none' stroke='%23E07A5F' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.section--dark .scribble::after, .section--teal .scribble::after { filter: none; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.65rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='4' fill='%230F4C5C'/%3E%3Cpath d='M7 12.5l3.2 3.2L17.5 8.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.section--dark .checklist li::before, .section--teal .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='4' fill='%2386A98C'/%3E%3Cpath d='M7 12.5l3.2 3.2L17.5 8.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.1; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn--clay { background: var(--clay); color: var(--forest-deep); border-color: var(--clay); }
.btn--clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--forest); border-color: currentColor; }
.btn--ghost:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn--ghost-light { background: transparent; color: var(--offwhite); border-color: rgba(250, 249, 246, 0.7); }
.btn--ghost-light:hover { background: var(--offwhite); color: var(--forest); border-color: var(--offwhite); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn .arrow { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.textlink { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; color: var(--teal); border-bottom: 2px solid var(--clay); padding-bottom: 1px; }
.textlink:hover { color: var(--clay-text); }
.textlink .arrow { width: 1em; height: 1em; }
.section--dark .textlink, .section--teal .textlink { color: var(--parchment); }

/* ---------- 6. Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 249, 246, 0.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--forest); }
.brand img { width: auto; height: 3rem; }
.brand__text { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1; letter-spacing: 0.01em; }
.brand__text small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.nav { display: none; }
.nav__list { list-style: none; display: flex; gap: clamp(0.5rem, 1.4vw, 1.4rem); margin: 0; padding: 0; align-items: center; }
.nav__list a { text-decoration: none; color: var(--forest); font-weight: 600; font-size: var(--fs-sm); padding: 0.45rem 0.25rem; border-bottom: 2px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--clay); color: var(--teal); }
.nav__cta { margin-left: 0.5rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 2px solid var(--forest); border-radius: var(--radius); color: var(--forest); font: inherit; font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; min-height: 2.75rem; padding: 0.4rem 0.8rem; cursor: pointer; }
.nav-toggle .bars { width: 1.1rem; height: 0.8rem; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars span { top: 5px; } .nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.header-donate { display: inline-flex; }
@media (min-width: 64em) { .header-donate { display: none; } }
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: var(--forest); color: var(--offwhite); padding: 5.5rem var(--gutter) 2rem; overflow-y: auto; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0s 0.35s; }
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 0.35s var(--ease), opacity 0.3s; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid rgba(250, 249, 246, 0.12); }
.mobile-nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; font-family: var(--serif); font-size: 1.6rem; color: var(--offwhite); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--sage); }
.mobile-nav .hand { margin-top: 2rem; }
body.nav-open { overflow: hidden; }
@media (min-width: 64em) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
  .brand img { height: 3.4rem; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: min(92svh, 56rem); color: var(--offwhite); isolation: isolate; overflow: hidden; }
.hero--short { min-height: min(62svh, 40rem); align-items: end; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 34, 36, 0.25) 0%, rgba(11, 34, 36, 0.35) 40%, rgba(11, 34, 36, 0.86) 100%); }
.hero__inner { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 12ch; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25); }
.hero .lead { max-width: 52ch; color: rgba(250, 249, 246, 0.92); }
.hero .hand { position: absolute; right: var(--gutter); top: clamp(1.5rem, 5vw, 3rem); max-width: 40vw; text-align: right; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
@media (max-width: 40em) { .hero .hand { position: static; max-width: none; text-align: left; margin-bottom: 1rem; } }
.hero--page { min-height: min(70svh, 44rem); }
.hero--page h1 { max-width: 16ch; }

/* ---------- 8. Doors strip ---------- */
.doors { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
.door { background: var(--offwhite); padding: 1.5rem 1.15rem; text-decoration: none; color: var(--forest); display: flex; flex-direction: column; gap: 0.5rem; transition: background-color 0.25s; min-height: 100%; }
.door:hover { background: var(--parchment); color: var(--forest); }
.door__icon { width: 2.4rem; height: 2.4rem; color: var(--teal); }
.door:nth-child(2) .door__icon { color: var(--clay); } .door:nth-child(3) .door__icon { color: var(--clay-deep); } .door:nth-child(4) .door__icon { color: var(--teal); } .door:nth-child(5) .door__icon { color: var(--sage-deep); }
.door__title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.door__text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
@media (min-width: 48em) { .doors { grid-template-columns: repeat(5, 1fr); } .door { padding: 2rem 1.5rem; } }
@media (max-width: 47.99em) { .door:last-child { grid-column: 1 / -1; } }

/* ---------- 9. Feature / editorial blocks ---------- */
.feature { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 64em) { .feature { grid-template-columns: 1fr 1fr; gap: var(--space-5); } .feature--flip > :first-child { order: 2; } }
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--parchment-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 0.8s var(--ease); }
.photo--4x5 { aspect-ratio: 4 / 5; } .photo--3x4 { aspect-ratio: 3 / 4; } .photo--1x1 { aspect-ratio: 1; } .photo--4x3 { aspect-ratio: 4 / 3; } .photo--16x9 { aspect-ratio: 16 / 9; } .photo--3x2 { aspect-ratio: 3 / 2; }
a.photo:hover img, .card:hover .photo img { transform: scale(1.04); }
@media (max-width: 39.99em) { .card .photo--4x5 { aspect-ratio: 4 / 3; } }
.photo--grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.caption-tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--parchment); color: var(--forest); font-family: var(--hand); font-size: 1.35rem; line-height: 1; padding: 0.45rem 0.85rem; transform: rotate(-2deg); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.caption-tag--right { left: auto; right: 1rem; transform: rotate(2deg); }
.polaroid { background: var(--white); padding: 0.75rem 0.75rem 2.6rem; box-shadow: var(--shadow-print); transform: rotate(var(--tilt, -2deg)); position: relative; max-width: 100%; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: var(--focus, 50% 50%); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 0.6rem; text-align: center; font-family: var(--hand); font-size: 1.35rem; color: var(--charcoal); }
.polaroid::before { content: ""; position: absolute; top: -0.55rem; left: 50%; width: 5rem; height: 1.2rem; transform: translateX(-50%) rotate(-3deg); background: rgba(246, 235, 221, 0.85); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* ---------- 10. Cards ---------- */
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; text-decoration: none; color: inherit; }
.card__body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0; }
.card__text { color: var(--muted); font-size: var(--fs-sm); margin: 0; flex: 1; }
.card__link { margin-top: 0.4rem; }
.card--dark { background: var(--forest-deep); border-color: rgba(250, 249, 246, 0.1); color: var(--offwhite); }
.card--dark .card__text { color: rgba(250, 249, 246, 0.72); }
.card--dark .card__title { color: var(--offwhite); }
.story-cards { display: grid; gap: var(--space-3); }
@media (min-width: 40em) { .story-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .story-cards { grid-template-columns: repeat(4, 1fr); } }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 2px; background: var(--parchment); color: var(--teal-deep); }
.tag--recovery { background: #DDE9E4; color: var(--teal-deep); }
.tag--music { background: #F7DDD4; color: #8F3E28; }
.tag--art { background: #EFE1F2; color: #6D3F7A; }
.tag--community { background: #E3ECDF; color: var(--sage-deep); }
.tag--food { background: #FBEBC8; color: #8A5A0E; }
.tag--family { background: #FFE0D6; color: #8F3E28; }
.tag--special { background: var(--forest); color: var(--parchment); }

/* ---------- 11. Photo story / mosaic ---------- */
.mosaic { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
.mosaic > * { overflow: hidden; border-radius: var(--radius); position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 0.9s var(--ease); }
.mosaic > *:hover img { transform: scale(1.04); }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
@media (min-width: 48em) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 16vw; gap: 1rem; } }
@media (min-width: 90em) { .mosaic { grid-auto-rows: 14rem; } }
.mosaic__note { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--parchment); padding: 1.25rem; }
.mosaic__note .hand { color: var(--teal); }

/* ---------- 11b. Background photo for dark sections ---------- */
.bg-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); opacity: 0.32; filter: grayscale(100%); }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 47, 49, 0.92) 0%, rgba(16, 47, 49, 0.55) 60%, rgba(16, 47, 49, 0.35) 100%); }
.has-bg { position: relative; isolation: isolate; overflow: hidden; }

/* ---------- 12. Impact links / lists ---------- */
.impact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.impact-list a { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0; color: var(--offwhite); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(250, 249, 246, 0.14); }
.impact-list a:hover { color: var(--sage); }
.impact-list svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--sage); }

/* ---------- 13. Safety strip ---------- */
.safety { background: var(--parchment); border-top: 1px solid var(--line); }
.safety__grid { display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .safety__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.safety__item { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.safety__item svg { width: 2.6rem; height: 2.6rem; color: var(--clay); }
.safety__item h3 { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.35rem; color: var(--teal-deep); }
.safety__item p { font-size: var(--fs-sm); margin: 0; }

/* ---------- 14. Notice / callout ---------- */
.notice { border-left: 4px solid var(--clay); background: var(--parchment); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.notice--teal { border-left-color: var(--sage); background: rgba(134, 169, 140, 0.14); }
.notice h3 { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; color: var(--clay-text); }
.notice--teal h3 { color: var(--teal-deep); }
.section--dark .notice, .section--teal .notice { background: rgba(250, 249, 246, 0.08); }
.section--dark .notice h3 { color: #A9C4AE; }
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 48em) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { border-top: 2px solid var(--clay); padding-top: 0.75rem; }
.facts dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.facts dd { margin: 0.25rem 0 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.section--dark .facts dt { color: var(--sage); }

/* ---------- 15. Program categories / accordions ---------- */
.program-cat { padding-block: var(--space-5); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.program-cat__head { display: grid; gap: var(--space-3); align-items: end; margin-bottom: var(--space-4); }
@media (min-width: 64em) { .program-cat__head { grid-template-columns: 1.1fr 0.9fr; } }
.program-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.program { border-bottom: 1px solid var(--line); }
.program summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--forest); }
.program summary::-webkit-details-marker { display: none; }
.program summary .sub { display: block; font-family: var(--sans); font-weight: 500; font-size: var(--fs-sm); color: var(--muted); margin-top: 0.2rem; }
.program summary .plus { width: 2rem; height: 2rem; border: 2px solid var(--teal); border-radius: 50%; position: relative; flex: none; }
.program summary .plus::before, .program summary .plus::after { content: ""; position: absolute; background: var(--teal); left: 50%; top: 50%; transform: translate(-50%, -50%); width: 0.9rem; height: 2px; }
.program summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.25s var(--ease); }
.program[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.program__body { padding: 0 0 1.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .program__body { grid-template-columns: 1fr 14rem; } .program__body .photo { order: 2; } }
.program__body p { margin-bottom: 0.75rem; }
.program__meta { font-size: var(--fs-sm); color: var(--muted); }
.program__meta strong { color: var(--forest); }

/* ---------- 16. Events ---------- */
.event-grid { display: grid; gap: var(--space-3); }
@media (min-width: 40em) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .event-grid { grid-template-columns: repeat(3, 1fr); } }
.event { display: grid; grid-template-columns: 4.5rem 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.event__date { background: var(--teal); color: var(--offwhite); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem 0.5rem; }
.event__date .mon { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.event__date .day { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.event__date .dow { font-size: var(--fs-xs); opacity: 0.8; margin-top: 0.15rem; }
.event__date--recurring { background: var(--sage-deep); }
.event__date--recurring .day { font-size: 0.8rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.event__main { display: flex; flex-direction: column; }
.event__img { aspect-ratio: 16 / 9; overflow: hidden; }
.event__img img { width: 100%; height: 100%; object-fit: cover; }
.event__body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.event__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0; }
.event__time { font-size: var(--fs-sm); color: var(--muted); }
.event__text { font-size: var(--fs-sm); color: var(--muted); margin: 0; flex: 1; }
.events-empty { background: var(--parchment); padding: 2rem; border-radius: var(--radius); grid-column: 1 / -1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-3); }
.filter-btn { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font: inherit; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; color: var(--forest); min-height: 2.5rem; }
.filter-btn[aria-pressed="true"] { background: var(--forest); color: var(--offwhite); border-color: var(--forest); }

/* ---------- 17. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form label, .form legend { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 0.35rem; color: var(--forest); }
.form .hint { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-left: 0.25rem; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea {
  width: 100%; min-height: 3.1rem; padding: 0.75rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid rgba(16, 47, 49, 0.3); border-radius: var(--radius);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(224, 122, 95, 0.55); outline-offset: 0; border-color: var(--clay); }
.form input:user-invalid, .form textarea:user-invalid, .form select:user-invalid { border-color: #B3261E; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .checks { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.form .check { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; font-size: var(--fs-sm); padding: 0.6rem 0.75rem; background: var(--white); border: 1.5px solid rgba(16, 47, 49, 0.2); border-radius: var(--radius); cursor: pointer; margin: 0; }
.form .check input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal); flex: none; margin: 0; }
.form .error { color: #B3261E; font-size: var(--fs-sm); font-weight: 600; }
.form__note { font-size: var(--fs-xs); color: var(--muted); }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow-soft); }
.section--parchment .form input:not([type="checkbox"]), .section--parchment .form textarea, .section--parchment .form select { background: var(--white); }

/* ---------- 18. Contact block ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem; align-items: start; }
.contact-list svg { width: 1.6rem; height: 1.6rem; color: var(--clay); }
.contact-list strong { display: block; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- 19. Team ---------- */
.team { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .team { grid-template-columns: 1fr 1fr; } }
.person { display: grid; gap: 1.25rem; grid-template-columns: 7rem 1fr; align-items: start; }
.person .photo { border-radius: 2px; filter: grayscale(100%) contrast(1.05); }
.person h3 { margin-bottom: 0.1rem; }
.person .role { color: var(--sage); font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; display: block; }
.person p { font-size: var(--fs-sm); }
@media (min-width: 40em) { .person { grid-template-columns: 10rem 1fr; } }

/* ---------- 20. Press ---------- */
.press-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.press-list li { border-bottom: 1px solid var(--line); padding: 1.35rem 0; display: grid; gap: 0.35rem; }
.press-list .outlet { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--clay-text); }
.press-list a { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; text-decoration: none; color: var(--forest); }
.press-list a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- 21. Partners ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; }
.partners img { height: 3.25rem; width: auto; filter: grayscale(100%); opacity: 0.8; }
.partners img:hover { filter: none; opacity: 1; }

/* ---------- 22. Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(250, 249, 246, 0.85); padding-block: var(--space-5) 5.5rem; font-size: var(--fs-sm); }
.site-footer a { color: var(--offwhite); text-decoration: none; }
.site-footer a:hover { color: var(--sage); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 5.75rem; width: auto; margin-bottom: 1rem; background: var(--offwhite); padding: 0.6rem 0.9rem; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.footer-brand p { margin-bottom: 0.5rem; }
.footer-heading { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--sage); margin-bottom: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border: 1px solid rgba(250, 249, 246, 0.25); border-radius: 50%; }
.social a:hover { background: var(--teal); border-color: var(--teal); }
.social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(250, 249, 246, 0.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: rgba(250, 249, 246, 0.6); }
.footer-hand { font-family: var(--hand); font-size: 2rem; color: var(--sage); line-height: 1; margin-top: 0.5rem; }
@media (min-width: 64em) { .site-footer { padding-bottom: var(--space-5); } }

/* ---------- 23. Sticky mobile donate ---------- */
.sticky-donate { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(16, 47, 49, 0.96); backdrop-filter: blur(8px); display: flex; gap: 0.6rem; transform: translateY(110%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s 0.3s; }
.sticky-donate.is-visible { transform: translateY(0); visibility: visible; transition: transform 0.3s var(--ease); }
.sticky-donate .btn { flex: 1; }
@media (min-width: 64em) { .sticky-donate { display: none; } }

/* ---------- 24. Reveal (light) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 25. Page intro / breadcrumb-ish ---------- */
.page-intro { padding-block: var(--space-5) 0; }
.two-col { columns: 2; column-gap: var(--space-4); }
@media (max-width: 47.99em) { .two-col { columns: 1; } }
.big-quote { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); line-height: 1.25; font-weight: 500; font-style: italic; max-width: 26ch; }
.big-quote em { color: var(--clay); font-style: normal; }
.number-list { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.number-list li { counter-increment: n; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.number-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: var(--clay-deep); line-height: 1; padding-top: 0.15rem; }
.number-list h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.number-list p { font-size: var(--fs-sm); color: var(--muted); }
.section--dark .number-list p { color: rgba(250, 249, 246, 0.72); }
.section--dark .number-list li::before { color: var(--sage); }

/* ---------- 26. 404 ---------- */
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; }

/* ---------- 27. Print ---------- */
@media print { .site-header, .sticky-donate, .mobile-nav, .nav-toggle { display: none !important; } .hero { min-height: auto; color: var(--ink); } .hero__media { display: none; } }

/* ---------- 28. Three-door variant ---------- */
.doors--3 { grid-template-columns: 1fr; }
@media (min-width: 48em) { .doors--3 { grid-template-columns: repeat(3, 1fr); } }
.feature .facts { grid-template-columns: repeat(2, 1fr); }
.facts dd { font-size: 1.1rem; }
.nav__list a.btn[aria-current="page"] { color: var(--forest-deep); border-bottom-color: transparent; }
