/* ==========================================================================
   Hope Community Farm — site styles
   Drawn from the farm's own logo: a sun rising over the hills behind a horse.
   Night-field blue, sunrise amber, sunflower, field green, on clean white.
   Type: Big Shoulders Display (condensed, Midwestern, civic) + Literata.
   ========================================================================== */

:root {
  --night: #1C2541;
  --night-deep: #131A30;
  --sunrise: #F4A62A;
  --sunrise-deep: #D9861A;
  --sunflower: #F6CD3E;
  --field: #3E7B3A;
  --field-deep: #2E5E2B;
  --sky: #DCEAF5;
  --paper: #FFFFFF;
  --mist: #F3F5F8;
  --ink: #1C2541;
  --ink-soft: #4A5368;
  --line: rgba(28, 37, 65, 0.14);

  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Literata', Georgia, 'Times New Roman', serif;

  --t-sm: 0.9rem;
  --t-base: 1.1rem;
  --t-md: 1.3rem;
  --t-lg: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  --t-xl: clamp(2.4rem, 1.7rem + 2.6vw, 3.6rem);
  --t-2xl: clamp(3rem, 1.9rem + 4.4vw, 5.4rem);
  --t-hero: clamp(4rem, 1.6rem + 7.4vw, 8.6rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --wrap: 1260px;
  --section-y: clamp(4rem, 8vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--t-base); line-height: 1.7;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--field-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sunrise-deep); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: 0.005em;
  margin: 0 0 0.45em; color: var(--night); text-wrap: balance;
}
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); font-weight: 700; line-height: 1.05; }
h4 { font-size: var(--t-md); font-weight: 700; }
p { margin: 0 0 1.1em; max-width: 62ch; text-wrap: pretty; }

.on-dark { color: rgba(255, 255, 255, 0.86); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: var(--sunflower); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--night); color: #fff; padding: .75rem 1rem; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.lede { font-size: var(--t-md); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.on-dark .lede { color: rgba(255, 255, 255, 0.82); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--sunrise); --fg: var(--night-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.1rem; padding: .65rem 1.5rem;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bg); border-radius: 6px;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn, .on-dark .btn, .btn:visited { color: var(--fg); }
.btn:hover { --bg: var(--sunflower); }
.btn:active { transform: translateY(1px); }
.btn--night { --bg: var(--night); --fg: #fff; }
.btn--night:hover { --bg: var(--night-deep); }
.btn--field { --bg: var(--field); --fg: #fff; }
.btn--field:hover { --bg: var(--field-deep); }
.btn.btn--line { background: transparent; color: var(--night); border-color: currentColor; }
.btn.btn--line:hover { background: var(--night); color: #fff; border-color: var(--night); }
.on-dark .btn.btn--line { color: #fff; }
.on-dark .btn.btn--line:hover { background: #fff; color: var(--night); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.text-link { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--night); text-decoration: none; border-bottom: 3px solid var(--sunrise); }
.text-link:hover { border-bottom-color: var(--night); }
.on-dark .text-link { color: #fff; }

/* ---------- Header ---------- */
.announce { background: var(--field); color: #fff; text-align: center; padding: .5rem var(--gutter); font-size: .95rem; }
.announce a { color: var(--sunflower); font-weight: 600; margin-left: .4rem; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; max-width: 1400px; margin-inline: auto; padding: .55rem var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; text-decoration: none; color: var(--night); }
.brand img { width: 58px; height: 58px; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1.55rem; line-height: .9; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; letter-spacing: 0; color: var(--ink-soft); margin-top: .3rem; }
.nav { display: flex; align-items: center; gap: .1rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .75rem; border-radius: 6px;
  font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: .01em; color: var(--night);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--mist); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sunrise); }
.nav-link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + .35rem); left: 0; min-width: 270px; margin: 0; padding: .45rem; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(19, 26, 48, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.open > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: .6rem .75rem; border-radius: 7px; color: var(--night); text-decoration: none; }
.subnav a:hover { background: var(--mist); }
.subnav strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.subnav span { display: block; font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }
.header-cta { margin-left: .4rem; min-height: 2.7rem; font-size: 1.2rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: var(--night); }
.menu-toggle span { display: block; width: 26px; height: 3px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; top: var(--header-h, 76px); flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem var(--gutter) 3rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.7rem; padding: .85rem .2rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--field); }
  .subnav { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem .6rem; min-width: 0; }
  .nav-item.open > .subnav { display: block; }
  .nav .mobile-cta { display: inline-flex; margin-top: 1.4rem; align-self: flex-start; }
}
@media (min-width: 1201px) { .nav .mobile-cta { display: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--sky { background: var(--sky); }
.section--night { background: var(--night); }
.section--sunflower { background: var(--sunflower); }
.section--field { background: var(--field); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head p { font-size: var(--t-md); color: var(--ink-soft); }
.on-dark .section-head p { color: rgba(255, 255, 255, .8); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }

/* ---------- Home hero: the sunrise ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 118px); background: var(--night); }
.hero-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) clamp(11rem, 19vw, 16.5rem); color: #fff; }
.hero-title { font-size: var(--t-hero); font-weight: 900; line-height: .84; color: #fff; margin: 0 0 1.6rem; position: relative; z-index: 2; letter-spacing: -0.005em; }
.hero-title span { display: block; }
.hero-title span:nth-child(2) { color: var(--sunflower); }
.hero-title span:nth-child(3) { color: var(--sunrise); }
.hero-sub { position: relative; z-index: 2; font-size: var(--t-md); line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 34ch; margin-bottom: 2rem; }
.hero .btn-row { position: relative; z-index: 2; }
.sunrise { position: absolute; left: 50%; bottom: 0; width: min(110%, 820px); transform: translate(-50%, 0); z-index: 1; pointer-events: none; }
.sunrise svg { display: block; width: 100%; height: auto; }
.sunrise .sun { fill: url(#sun-glow); }
.sunrise .rays line { stroke: var(--sunrise); stroke-width: 5; stroke-linecap: round; opacity: .75; }
.sunrise .hill-back { fill: #24305A; }
.sunrise .hill-front { fill: var(--night-deep); }
.hero-photo { position: relative; min-height: 360px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .sunrise .sun-group { animation: rise 2.6s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .sunrise .rays { animation: rays 2.2s ease-out 1.6s both; transform-origin: 450px 300px; }
}
@keyframes rise { from { transform: translateY(190px); } to { transform: none; } }
@keyframes rays { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 56vw; order: -1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--night); color: #fff; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 440px; }
.page-hero-text { position: relative; padding: clamp(3rem, 6vw, 5.5rem) var(--gutter) clamp(5rem, 8vw, 7rem); display: flex; flex-direction: column; justify-content: center; }
.page-hero-text > * { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 14ch; }
.page-hero .lede { color: rgba(255, 255, 255, .84); }
.page-hero-photo { position: relative; min-height: 300px; }
.page-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .mini-sun { position: absolute; left: var(--gutter); bottom: -1px; width: 220px; z-index: 1; pointer-events: none; }
.page-hero .mini-sun circle { fill: var(--sunrise); }
.page-hero .mini-sun line { stroke: var(--sunrise); stroke-width: 4; stroke-linecap: round; opacity: .7; }
.breadcrumb { font-size: .95rem; margin-bottom: .8rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: var(--sunflower); }
@media (min-width: 1500px) { .page-hero-text { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { min-height: 58vw; order: -1; }
}

/* ---------- Mission ---------- */
.mission { font-family: var(--display); font-weight: 700; font-size: var(--t-xl); line-height: 1.04; color: var(--night); max-width: 26ch; margin: 0 0 1.6rem; }
.mission-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.mission-wrap img { width: clamp(90px, 12vw, 150px); }
@media (max-width: 640px) { .mission-wrap { grid-template-columns: 1fr; } }

/* ---------- Activities word-field ---------- */
.wordfield { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em; row-gap: .1em; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.6rem); line-height: 1.02; color: var(--night); }
.wordfield li { display: inline-flex; align-items: center; gap: .35em; }
.wordfield li:not(:last-child)::after { content: ''; width: .32em; height: .32em; border-radius: 50%; background: var(--sunrise); box-shadow: 0 0 0 .08em var(--sunflower); display: inline-block; transform: translateY(-.05em); }
.wordfield li:nth-child(3n+2) { color: var(--field-deep); }
.section--sunflower .wordfield li:not(:last-child)::after { background: var(--night); box-shadow: none; }
.section--sunflower p { color: var(--night); font-size: var(--t-md); }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: 1.15fr .85fr 1.2fr .8fr; gap: clamp(.5rem, 1.5vw, 1rem); align-items: end; }
.photo-strip img { width: 100%; object-fit: cover; border-radius: 4px; }
.photo-strip img:nth-child(1) { aspect-ratio: 4 / 3.3; }
.photo-strip img:nth-child(2) { aspect-ratio: 3 / 4; }
.photo-strip img:nth-child(3) { aspect-ratio: 4 / 2.8; }
.photo-strip img:nth-child(4) { aspect-ratio: 3 / 4.4; }
@media (max-width: 760px) { .photo-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.split .figure img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 4px; }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.figure { margin: 0; position: relative; }
.figure--framed::after { content: ''; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; background: var(--sunflower); z-index: -1; border-radius: 4px; }
.prose p { font-size: 1.12rem; }
.prose ul, .prose ol { padding-left: 1.2rem; max-width: 60ch; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--sunrise-deep); }
.prose blockquote { margin: 1.8rem 0; padding-left: 1.2rem; border-left: 4px solid var(--sunrise); font-family: var(--display); font-weight: 700; font-size: var(--t-lg); line-height: 1.1; color: var(--night); }
.prose img { border-radius: 4px; margin: 1.5rem 0; }

/* Pills list */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.pills li { background: var(--mist); color: var(--night); border-radius: 999px; padding: .35rem .95rem; font-size: 1rem; }
.section--mist .pills li { background: #fff; }
.on-dark .pills li { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Who it's for ---------- */
.groups { display: grid; gap: 0; margin-top: 2rem; border-top: 2px solid var(--night); }
.group { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.group h3 { font-size: 1.6rem; margin: 0; }
.group p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .group { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- Events (home preview + shared date block) ---------- */
.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.upcoming a {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.4rem; align-items: center;
  padding: 1.1rem 1.3rem; background: #fff; border-radius: 6px; text-decoration: none; color: var(--ink);
  border-left: 6px solid var(--sunrise); transition: transform .2s, box-shadow .2s;
}
.upcoming a:hover { transform: translateX(4px); box-shadow: 0 12px 30px -18px rgba(19, 26, 48, .45); }
.datebox { text-align: center; font-family: var(--display); line-height: .9; color: var(--night); }
.datebox .d { display: block; font-size: 3rem; font-weight: 900; }
.datebox .m { display: block; font-size: 1.1rem; font-weight: 700; color: var(--field-deep); }
.upcoming h3 { font-size: 1.6rem; margin: 0 0 .2rem; }
.upcoming .meta { color: var(--ink-soft); font-size: .98rem; }
.tag { display: inline-block; font-family: var(--body); font-size: .82rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--sky); color: var(--night); white-space: nowrap; }
.tag--open-farm { background: #FDEFC7; }
.tag--volunteer { background: #DCEFD9; }
.tag--workshop { background: var(--sky); }
.tag--fundraiser { background: #FCE2C2; }
.tag--veterans { background: #E2E4F0; }
@media (max-width: 640px) { .upcoming a { grid-template-columns: 72px minmax(0, 1fr); } .upcoming .tag { display: none; } .datebox .d { font-size: 2.4rem; } }

/* ---------- Quote over photo ---------- */
.quote-band { position: relative; min-height: 70vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 26, 48, .78), rgba(19, 26, 48, .25)); }
.quote-band .wrap { position: relative; z-index: 2; }
.quote-band blockquote { margin: 0 0 1rem; font-family: var(--display); font-weight: 900; font-size: var(--t-2xl); line-height: .95; max-width: 14ch; color: #fff; }
.quote-band p { color: var(--sunflower); font-size: var(--t-md); }

/* ---------- Give / volunteer panels ---------- */
.give { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
.panel { padding: clamp(2rem, 4vw, 3.2rem); border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; }
.panel h3 { font-size: var(--t-xl); margin-bottom: .3em; }
.panel p { font-size: 1.12rem; flex: 1; }
.panel--sun { background: var(--sunrise); }
.panel--sun h3, .panel--sun p { color: var(--night-deep); }
.panel--field { background: var(--field); color: #fff; }
.panel--field h3 { color: #fff; }
@media (max-width: 760px) { .give { grid-template-columns: 1fr; } }

/* ---------- Closing ---------- */
.closing { position: relative; min-height: 80vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19, 26, 48, .9) 0%, rgba(19, 26, 48, .2) 60%); }
.closing .wrap { position: relative; z-index: 2; padding-bottom: clamp(3rem, 8vw, 6rem); }
.closing h2 { font-size: var(--t-2xl); color: #fff; max-width: 15ch; }
.closing p { font-size: var(--t-md); color: rgba(255, 255, 255, .88); }

/* ---------- Columns / values ---------- */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.column { border-top: 4px solid var(--sunrise); padding-top: 1rem; }
.column:nth-child(2n) { border-top-color: var(--field); }
.column h3 { font-size: 1.75rem; margin-bottom: .4rem; }
.column p { color: var(--ink-soft); font-size: 1.04rem; }
.on-dark .column p { color: rgba(255, 255, 255, .8); }

/* Board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; }
.member .placeholder { aspect-ratio: 4 / 5; border-radius: 4px; margin-bottom: 1rem; background: var(--night); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 4rem; color: var(--sunflower); }
.member h3 { font-size: 1.8rem; margin-bottom: .1rem; }
.member .role { color: var(--field-deep); font-weight: 600; margin-bottom: .6rem; }
.member p { font-size: 1rem; color: var(--ink-soft); }

/* Horses */
.horse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.horse img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; }
.horse h2 { font-size: var(--t-lg); margin-bottom: .1rem; }
.horse .role { color: var(--field-deep); font-weight: 600; margin-bottom: .6rem; }

/* CTA band */
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: var(--t-2xl); max-width: 16ch; margin-bottom: .3em; }
.cta-band p { font-size: var(--t-md); margin: 0; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; } }

/* Donate */
.donate-box { background: var(--sunflower); border-radius: 6px; padding: clamp(2rem, 4vw, 3rem); }
.donate-box h2 { margin-bottom: .3em; }
.donate-box .note { font-size: .95rem; margin-top: 1rem; color: var(--night); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.1rem 3rem 1.1rem 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--night); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--sunrise-deep); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 0 1.3rem; color: var(--ink-soft); }
.faq-group + .faq-group { margin-top: 3rem; }

/* Gallery */
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-grid button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; break-inside: avoid; }
.gallery-grid img { width: 100%; transition: transform .5s ease; }
.gallery-grid button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(19, 26, 48, .92); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 4px; }
.lightbox p { color: #fff; text-align: center; margin: .8rem auto 0; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.news-item { text-decoration: none; color: var(--ink); }
.news-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; }
.news-item time { display: block; font-size: .92rem; color: var(--field-deep); margin-bottom: .3rem; }
.news-item h3 { font-size: 1.8rem; }
.news-item:hover h3 { text-decoration: underline; text-decoration-color: var(--sunrise); }
.news-item p { color: var(--ink-soft); font-size: 1rem; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 4px; }
.article-body h2 { font-size: var(--t-lg); margin-top: 1.6em; }

/* ---------- Forms ---------- */
.form-shell { background: var(--mist); border-radius: 6px; padding: clamp(1.5rem, 4vw, 3rem); }
.form-shell h2 { font-size: var(--t-lg); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.form > * { grid-column: 1 / -1; }
.form > .field--half { grid-column: auto; }
@media (max-width: 640px) { .form > .field--half { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--night); margin-bottom: .35rem; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 2px solid #CBD2DE; border-radius: 6px; padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 4px rgba(244, 166, 42, .35); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B23B1E; }
.field-error { color: #9B2F16; font-size: .95rem; margin: .3rem 0 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; cursor: pointer; padding: .3rem 0; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--field); flex: none; }
.form-note { font-size: .95rem; color: var(--ink-soft); background: #fff; border-radius: 6px; padding: .85rem 1rem; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 6px; padding: 1rem 1.2rem; margin: 0; }
.form-status--error { background: #FBE4DC; color: #6E2412; }
.form-success h3 { font-size: var(--t-xl); }
.form-success svg { width: 64px; height: 64px; color: var(--field); margin-bottom: 1rem; }
.form button[type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-layout .figure img { aspect-ratio: 4 / 4.6; width: 100%; object-fit: cover; border-radius: 4px; margin-top: 1.5rem; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.social-links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: rgba(255, 255, 255, .78); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand img { width: 110px; filter: invert(1); margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; }
.footer-brand .nonprofit { font-size: .92rem; color: rgba(255, 255, 255, .62); }
.site-footer h2 { font-size: 1.5rem; color: var(--sunflower); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 65vh; display: flex; align-items: center; }
.footer-address { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.photo-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 1.5vw, 1rem); margin-top: 2rem; }
.photo-mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.photo-mosaic img:nth-child(1), .photo-mosaic img:nth-child(5) { grid-row: span 2; aspect-ratio: auto; height: 100%; }
@media (max-width: 640px) { .photo-mosaic { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Events calendar (markup from views/pages/events.njk + partials/cal-*.njk)
   ========================================================================== */
.cal-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.cal-hero, .cal-detail__header { background: var(--night); color: rgba(255, 255, 255, .85); padding: clamp(3rem, 6vw, 5rem) 0; position: relative; overflow: hidden; }
.cal-hero::after, .cal-detail__header::after { content: ''; position: absolute; right: clamp(-60px, 4vw, 80px); bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: var(--sunrise); opacity: .95; }
.cal-hero .cal-wrap, .cal-detail__header .cal-wrap { position: relative; z-index: 2; }
.cal-title, .cal-detail__title { color: #fff; max-width: 16ch; }
.cal-lede, .cal-detail__lede { font-size: var(--t-md); max-width: 46ch; color: rgba(255, 255, 255, .85); }
.cal-body { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-y); }

.cal-toolbar { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.cal-views { display: inline-flex; gap: .3rem; background: var(--mist); padding: .3rem; border-radius: 8px; justify-self: start; }
.cal-views a { padding: .45rem 1rem; border-radius: 6px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--night); text-decoration: none; }
.cal-views a[aria-current], .cal-views__link--active { background: var(--night); color: #fff; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.cal-heading { margin: 0; font-size: var(--t-xl); }
.cal-heading__filter { color: var(--field-deep); }
.cal-nav__link { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--night); text-decoration: none; border: 2px solid var(--line); border-radius: 6px; padding: .35rem .8rem; }
.cal-nav__link:hover { border-color: var(--night); }
.cal-nav__today { font-size: .98rem; }
.cal-filters__list { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.cal-filter { display: inline-block; padding: .3rem .85rem; border-radius: 999px; background: var(--mist); color: var(--night); text-decoration: none; font-size: .95rem; border: 2px solid transparent; }
.cal-filter:hover { border-color: var(--night); }
.cal-filter--active, .cal-filter[aria-current] { background: var(--night); color: #fff; }

/* Month grid */
.cal-grid-wrap { overflow-x: auto; margin-bottom: 2.5rem; border: 1px solid var(--line); border-radius: 8px; }
.cal-grid { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.cal-grid__dow { padding: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-align: left; background: var(--mist); color: var(--night); }
.cal-day { vertical-align: top; height: 118px; padding: .45rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-day:first-child { border-left: 0; }
.cal-day--muted { background: #FAFBFC; color: #9AA1B0; }
.cal-day--today { box-shadow: inset 0 0 0 3px var(--sunrise); }
.cal-day__num { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.cal-day__events { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .25rem; }
.cal-event { display: block; padding: .2rem .4rem; border-radius: 4px; background: var(--sky); color: var(--night); text-decoration: none; font-size: .82rem; line-height: 1.25; border-left: 3px solid var(--night); }
.cal-event:hover { background: var(--night); color: #fff; }
.cal-event__time { font-weight: 600; margin-right: .25rem; }
.cal-event--past { opacity: .55; }
.cal-event--open-farm { background: #FDEFC7; border-left-color: var(--sunrise-deep); }
.cal-event--volunteer { background: #DCEFD9; border-left-color: var(--field); }
.cal-event--fundraiser { background: #FCE2C2; border-left-color: var(--sunrise-deep); }
.cal-event--veterans { background: #E2E4F0; }
@media (max-width: 760px) { .cal--month .cal-grid-wrap { display: none; } }

/* List */
.cal-list__month + .cal-list__month { margin-top: 2.5rem; }
.cal-list__month-title { font-size: var(--t-lg); color: var(--field-deep); margin-bottom: 1rem; }
.cal-list__day { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.cal-date { margin: 0; font-family: var(--display); line-height: .9; color: var(--night); text-align: center; }
.cal-date__dow, .cal-date__month { display: block; font-weight: 700; font-size: 1.1rem; color: var(--field-deep); }
.cal-date__day { display: block; font-weight: 900; font-size: 3rem; }
.cal-list__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cal-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--sunrise); border-radius: 6px; padding: 1.1rem 1.3rem; }
.cal-card--has-image { grid-template-columns: 180px minmax(0, 1fr); }
.cal-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.cal-card--volunteer { border-left-color: var(--field); }
.cal-card--past { opacity: .6; }
.cal-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .35rem; }
.cal-card__title { font-size: 1.8rem; margin: 0 0 .2rem; }
.cal-card__link { color: var(--night); text-decoration: none; }
.cal-card__link:hover { text-decoration: underline; text-decoration-color: var(--sunrise); }
.cal-card__when, .cal-card__where { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.cal-card__desc { margin: .5rem 0 0; font-size: 1rem; }
.cal-card__repeat { font-size: .82rem; padding: .2rem .6rem; border-radius: 999px; background: var(--mist); }
.cal-badge { display: inline-block; font-size: .82rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--sky); color: var(--night); }
.cal-badge--open-farm { background: #FDEFC7; }
.cal-badge--volunteer { background: #DCEFD9; }
.cal-badge--fundraiser { background: #FCE2C2; }
.cal-badge--veterans { background: #E2E4F0; }
.cal-empty { padding: 2rem; background: var(--mist); border-radius: 6px; }
.cal-empty__text { font-size: var(--t-md); }
@media (max-width: 640px) {
  .cal-list__day { grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; }
  .cal-date__day { font-size: 2.4rem; }
  .cal-card--has-image { grid-template-columns: 1fr; }
}

/* Detail */
.cal-breadcrumb { margin-bottom: 1rem; }
.cal-back { color: var(--sunflower); text-decoration: none; font-weight: 600; }
.cal-detail__header .cal-badge { margin-bottom: .6rem; }
.cal-detail__when { font-family: var(--display); font-weight: 700; font-size: var(--t-lg); color: var(--sunflower); margin-bottom: .4rem; line-height: 1.1; }
.cal-detail__repeat, .cal-detail__notice { color: rgba(255, 255, 255, .8); }
.cal-detail__cover { margin: 0 auto; max-width: var(--wrap); padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) 0; }
.cal-detail__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 6px; }
.cal-detail__layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4rem) var(--section-y); align-items: start; }
.cal-detail__body { font-size: 1.12rem; }
.cal-detail__body h2 { font-size: var(--t-lg); margin-top: 1.4em; }
.cal-detail__aside { background: var(--mist); border-radius: 6px; padding: 1.6rem; position: sticky; top: 7rem; }
.cal-facts { margin: 0 0 1.4rem; }
.cal-facts__row { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cal-facts__term { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--field-deep); }
.cal-facts__value { margin: 0; }
.cal-actions { display: grid; gap: .6rem; }
.cal-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .6rem 1.2rem; border-radius: 6px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; border: 2px solid var(--night); color: var(--night); background: transparent; }
.cal-btn--primary { background: var(--sunrise); border-color: var(--sunrise); color: var(--night-deep); }
.cal-btn--secondary { background: var(--night); color: #fff; }
.cal-btn:hover { filter: brightness(1.05); }
.cal-files, .cal-dates { margin-top: 2.5rem; }
.cal-files__title, .cal-dates__title { font-size: var(--t-lg); }
.cal-files__list, .cal-dates__list { list-style: none; padding: 0; margin: 0; }
.cal-file, .cal-dates__item { border-top: 1px solid var(--line); padding: .7rem 0; }
.cal-file__link, .cal-dates__link { color: var(--night); font-weight: 600; }
.cal-file__meta, .cal-dates__time { color: var(--ink-soft); font-size: .92rem; margin-left: .5rem; }
.cal-dates__item--current .cal-dates__link { color: var(--field-deep); }
.cal-detail__footer { padding-bottom: var(--section-y); }
@media (max-width: 860px) { .cal-detail__layout { grid-template-columns: 1fr; } .cal-detail__aside { position: static; } }

/* Board */
.board--page { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.member--placeholder h3 { color: var(--ink-soft); }
.member--placeholder img { filter: saturate(.9); }
.board-faces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.board-faces img { width: 84px; height: 105px; object-fit: cover; border-radius: 4px; }
@media (max-width: 860px) { .board-faces { justify-content: flex-start; } }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.gallery-filter { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; background: var(--mist); color: var(--night); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; border: 2px solid transparent; }
.gallery-filter span { font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.gallery-filter:hover { border-color: var(--night); }
.gallery-filter[aria-current] { background: var(--night); color: #fff; }
.gallery-filter[aria-current] span { color: var(--sunflower); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: clamp(.5rem, 1vw, .8rem); }
.gallery-item:nth-child(7n+3) { grid-row: span 2; }
.gallery-item:nth-child(9n+5) { grid-column: span 2; }
.gallery-item--feature { grid-column: span 2; grid-row: span 2; }
.gallery-item button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--night); cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .8rem; color: #fff; text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; background: linear-gradient(0deg, rgba(19, 26, 48, .85), rgba(19, 26, 48, 0)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.gallery-item button:hover img, .gallery-item button:focus-visible img { transform: scale(1.04); }
.gallery-item button:hover .gallery-caption, .gallery-item button:focus-visible .gallery-caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-caption { opacity: 1; transform: none; } }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .gallery-item:nth-child(9n+5) { grid-column: auto; } }
.gallery-share { margin-top: 3rem; padding: 2rem; background: var(--sunflower); border-radius: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.gallery-share p { margin: 0; font-size: var(--t-md); color: var(--night); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: #fff; margin-top: .8rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.lightbox-count { font-family: var(--body); font-weight: 400; font-size: .9rem; color: rgba(255, 255, 255, .65); margin-left: .5rem; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.lightbox-nav:hover { background: var(--sunrise); color: var(--night-deep); }
.lightbox-nav--prev { left: 1rem; }
.lightbox-nav--next { right: 1rem; }
.nav-link { white-space: nowrap; }
