/* A quiet palette: light surfaces, charcoal text, selective brand accents. */
:root {
  --forest: #2E3A26;
  --water: #2E6B75;
  --terracotta: #C05A2E;
  --cream: #F3ECDD;
  --ink: #20271C;
  --paper: #FAF9F6;
  --stone: #E7E7DF;
  --muted: #62645B;
  --line: #D8D8CD;
  --control-line: #77796E;
  /* Keep existing components on the same neutral color system. */
  --shoal: var(--stone);
  --mist: var(--cream);
  --bark: var(--muted);
  --chesapeake: var(--forest);
  --clay: var(--stone);
  --tidewater: var(--forest);
  --meadow: var(--stone);
}

body, .site-header, .mobile-nav.is-open, dialog {
  background: var(--paper);
  color: var(--ink);
}

.hero h1 .accent, .card-number { color: var(--terracotta); }
.image-placeholder,
.farm-card:nth-child(2) > .image-placeholder,
.farm-card:nth-child(3) > .image-placeholder {
  background: var(--stone);
  color: var(--ink);
}
.placeholder-foot { border-color: var(--control-line); }
.image-caption {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
}
.regional-strip {
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.state-list span:not(:last-child)::after { color: var(--muted); }
.community-block, .region-section, .pathway-section, .newsletter-section {
  background: var(--cream);
  color: var(--ink);
}
.pathway-section { border-block: 1px solid var(--line); }
.region-grid { border-color: var(--line); }
.region-item { border-color: var(--line); }
.region-item .display { color: var(--forest); }
.pathway-heading .eyebrow, .newsletter-layout .eyebrow { color: var(--ink); }
.pathway-tabs { border-color: var(--forest); }
.pathway-tabs button { color: var(--ink); }
.pathway-tabs button[aria-selected="true"] {
  background: var(--forest);
  color: var(--paper);
}
.pathway-step { border-color: var(--line); }
.step-number { color: var(--forest); }
.advanced-grid article, .advanced-grid article:last-child {
  background: var(--cream);
}
.regional-resources { background: var(--paper); border-block: 1px solid var(--line); }
.resource-card { background: var(--paper); color: var(--ink); }
.resource-card.farm-card { background: transparent; }
.resource-card .eyebrow, .calendar-note p, .muted, .form-note,
.calendar-empty-note, .sample-disclaimer { color: var(--muted); }

.text-link:hover, .desktop-nav a:hover, .resource-link:hover,
.dialog-close:hover, .mobile-nav a[aria-current="page"],
.pathway-step .text-link:hover {
  color: var(--forest);
}
.text-link:hover, .desktop-nav a:hover,
.mobile-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.desktop-nav .nav-involved:hover,
.desktop-nav .nav-involved[aria-current="page"] { color: var(--paper); }

.field input, .field select, .field textarea,
.newsletter-form .field input, .newsletter-form .field select {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--control-line);
}
.field input::placeholder, .field textarea::placeholder,
.newsletter-form input::placeholder { color: var(--muted); opacity: 1; }
.newsletter-form select option { background: var(--paper); color: var(--ink); }
.newsletter-form .form-note { color: var(--muted); opacity: 1; }
.newsletter-form .button {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}
.newsletter-form .button:hover { background: var(--ink); border-color: var(--ink); }
.form-result, .newsletter-form .form-result {
  color: var(--ink);
  background: var(--cream);
  border-left-color: var(--forest);
}
.checkbox-label input { accent-color: var(--forest); }
.icon-button, .today-button, .tag { border-color: var(--control-line); }
.calendar-event, .calendar-event.workshop, .calendar-event.online {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--control-line);
}
.calendar-event .event-dot,
.calendar-event.gathering .event-dot,
.calendar-event.online .event-dot { background: var(--forest); }
.calendar-empty, .event-list-item:hover { background: var(--cream); }

:is(a,button,input,select,textarea):focus-visible,
.pathway-tabs button:focus-visible,
.newsletter-form input:focus-visible,
.newsletter-form select:focus-visible { outline-color: var(--forest); }
.footer { background: var(--forest); color: var(--cream); }
.footer .brand-mark::after { border-color: var(--forest); }
.footer :is(a,button):focus-visible { outline-color: var(--cream); }
.footer .text-link:hover { color: var(--cream); }

@media (max-width: 560px) {
  .calendar-event, .calendar-event.workshop, .calendar-event.online {
    border: 0;
    color: var(--ink) !important;
  }
}

/* Natural rhythm: generous curves at the page scale, quiet detail at the edges. */
.site-header { border-bottom: 0; }
.button, .desktop-nav .nav-involved, .menu-toggle { border-radius: 30px; }
.hero { padding-bottom: 92px; }
.hero-image {
  aspect-ratio: 1.12;
  margin-bottom: 0;
  border-radius: 40% 13% 29% 11% / 24% 15% 27% 15%;
  padding: 60px 42px 72px;
}
.placeholder-center::before, .placeholder-center::after { display: none; }
.placeholder-foot { border-top: 0; }
.waterway-art { pointer-events: none; user-select: none; object-fit: contain; }
.explore-card { border: 0; padding-top: 8px; }
.card-number {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 64px;
  background: var(--cream);
  border-radius: 50% 38% 46% 34%;
}
.explore-card:nth-child(2) .card-number { border-radius: 38% 50% 34% 46%; }
.explore-card:nth-child(3) .card-number { border-radius: 46% 34% 50% 38%; }
.community-block, .footer {
  position: relative;
  --curve-tone: var(--cream);
  margin-top: 45px;
}
.section-curve {
  position: absolute;
  top: -67px;
  left: 0;
  width: 100%;
  height: 68px;
  fill: var(--curve-tone, var(--cream));
  pointer-events: none;
}
.section-curve .shoreline {
  fill: none;
  stroke: var(--water);
  stroke-width: 1.5;
  stroke-opacity: .4;
  vector-effect: non-scaling-stroke;
}
.footer .shoreline { display: none; }
.community-block { padding-block: 48px 98px; }
.footer { --curve-tone: var(--forest); margin-top: 55px; }
.footer.footer-connected { margin-top: 0; }
.footer-bottom { border: 0; }

.region-section, .pathway-section, .newsletter-section, .regional-resources {
  position: relative;
  --curve-tone: var(--cream);
  border: 0;
  margin-block: 44px 48px;
}
.regional-resources { background: var(--cream); }
.section-curve.curve-bottom {
  top: auto;
  bottom: -67px;
  transform: rotate(180deg);
}
.mission-grid article, .pdc-block, .archive-section,
.archive-grid article, .involvement-grid article {
  border: 0;
}
.mission-grid article { padding-top: 15px; }
.image-placeholder:not(.hero-image) {
  border-radius: 76px 24px 92px 30px / 55px 24px 66px 30px;
  padding: 36px;
}
.about-image .image-placeholder { border-radius: 130px 34px 110px 38px / 76px 34px 74px 38px; }
.about-landscape-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 130px 34px 110px 38px / 76px 34px 74px 38px;
}
.region-grid { border: 0; gap: 20px; }
.region-item {
  border: 0;
  background: var(--paper);
  border-radius: 42px 18px 38px 20px;
  padding: 30px;
}
.region-item:nth-child(2n) { border-radius: 20px 42px 18px 38px; }
.region-item { gap: 12px; }
.region-item:last-child { grid-column: auto; }
.region-item .display { font-size: 2.4rem; }
.state-outline {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 116px;
  object-fit: contain;
  margin-bottom: 6px;
}
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.pathway-tabs, .view-controls { border-radius: 28px; padding: 4px; gap: 4px; }
.pathway-tabs button, .view-controls button { border-radius: 24px; }
.pathway-step { border: 0; grid-template-columns: 56px 1fr; gap: 24px; padding-block: 20px; }
.pathway-step + .pathway-step { margin-top: 12px; }
.step-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 56px;
  height: 54px;
  background: var(--paper);
  border-radius: 50% 36% 44% 34%;
}
.pathway-step:nth-child(2n) .step-number { border-radius: 36% 50% 34% 44%; }
.advanced-grid article, .archive-grid article {
  border-radius: 48px 18px 40px 22px;
  padding: 36px;
}
.advanced-grid article:last-child, .archive-grid article:last-child { border-radius: 20px 46px 20px 40px; }
.archive-grid article { background: var(--cream); }
.resource-jump, .involved-jump { border: 0; gap: 14px; padding-block: 12px; }
.resource-jump a, .involved-jump a {
  border: 1px solid var(--control-line);
  border-radius: 26px;
  padding: 8px 16px;
}
.resource-jump a:hover, .involved-jump a:hover {
  border-color: var(--forest);
  background: var(--cream);
}
.resource-card:not(.farm-card) { border: 0; background: transparent; padding: 8px 18px 0 0; }
.resource-link { border: 0; }
.farm-card > .image-placeholder {
  padding: 26px;
  border: 0 !important;
  border-radius: 48px 16px 50px 20px;
}
.farm-card:nth-child(2) > .image-placeholder { border-radius: 20px 48px 20px 50px; }
.farm-card .placeholder-top { font-size: .6875rem; }
.farm-card .placeholder-foot { font-size: .75rem; }
.icon-button, .today-button, .tag { border-radius: 22px; }
.calendar-grid { border-radius: 22px; overflow: hidden; }
.calendar-event { border-radius: 10px; }
.event-list { border: 0; }
.event-list-item { border: 0; border-radius: 26px; }
.event-list-item + .event-list-item { margin-top: 12px; }
.calendar-empty { border-radius: 28px; }
.involvement-grid article { padding-top: 12px; }
.field input, .field select, .field textarea { border-radius: 14px; }
.field input, .field select { padding-inline: 18px; }
.form-result { border-radius: 10px 18px 18px 10px; }
dialog { border-radius: 30px; }
.dialog-close { border-radius: 50%; }

@media (max-width: 850px) {
  .region-grid { gap: 16px; }
  .region-item { padding: 26px; }
}

@media (max-width: 850px) {
  .hero { padding-bottom: 70px; }
  .hero-image { padding: 44px 44px 70px; }
}
@media (max-width: 560px) {
  .hero-image { padding: 43px 30px 65px; border-radius: 32% 13% 25% 11%; }
  .placeholder-top { font-size: .6875rem; }
  .placeholder-foot { font-size: .75rem; gap: 12px; }
  .section-curve { height: 42px; top: -41px; }
  .section-curve.curve-bottom { bottom: -41px; }
  .region-section, .pathway-section, .newsletter-section, .regional-resources { margin-block: 32px 34px; }
  .image-placeholder:not(.hero-image) { padding: 30px; border-radius: 54px 20px 66px 24px; }
  .about-image .image-placeholder { border-radius: 70px 20px 60px 24px; }
  .region-grid { gap: 12px; }
  .region-item { padding: 24px; border-radius: 34px 16px 30px 18px; }
  .pathway-step { grid-template-columns: 40px 1fr; gap: 15px; }
  .step-number { width: 40px; height: 42px; font-size: 1.75rem; }
  .pathway-tabs button { padding-inline: 9px; }
  .advanced-grid article, .archive-grid article { padding: 28px; }
  .farm-card > .image-placeholder { padding: 28px; }
  .resource-jump a, .involved-jump a { padding: 7px 14px; }
  .community-block { padding-block: 36px 67px; }
  .footer { margin-top: 38px; }
}

/* The river belongs to the composition, with a shared wave at the masthead. */
.site-header {
  background: var(--forest);
  color: var(--cream);
  --curve-tone: var(--forest);
}
.site-header .brand-mark, .site-header .menu-toggle { border-color: var(--cream); }
.site-header .brand-mark::after { border-color: var(--forest); }
.site-header .menu-toggle { color: var(--cream); }
.site-header .desktop-nav a, .site-header .desktop-nav a:hover { color: var(--cream); }
.site-header .desktop-nav a[aria-current="page"] { border-color: var(--cream); }
.site-header .desktop-nav .nav-involved,
.hero-copy .button.outline {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}
.site-header .desktop-nav .nav-involved:hover,
.hero-copy .button.outline:hover {
  background: var(--terracotta);
  color: #000;
  border-color: var(--terracotta);
}
.site-header .mobile-nav.is-open {
  background: var(--forest);
  color: var(--cream);
  border-bottom-color: var(--cream);
}
.site-header .mobile-nav a[aria-current="page"] { color: var(--cream); }
.site-header :is(a,button):focus-visible { outline-color: var(--cream); }
.site-header > .section-curve.curve-bottom { height: 48px; bottom: -47px; z-index: 0; }
.site-header .shoreline { display: none; }
.header-inner { position: relative; z-index: 2; }
.mobile-nav { z-index: 3; }
.hero-surface, .intro-surface {
  position: relative;
  isolation: isolate;
  background: var(--cream);
  --curve-tone: var(--cream);
  margin-bottom: 64px;
}
.hero-surface .hero { position: relative; z-index: 1; padding-block: 100px 96px; }
.intro-surface { margin-bottom: 82px; }
.intro-surface .page-intro { position: relative; z-index: 1; padding-block: 100px 104px; }
.intro-surface + .pathway-section { margin-top: 140px; }
.river-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 30px;
}
.hero-river {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  opacity: .9;
}

@media (max-width: 850px) {
  .hero-surface .hero { padding-block: 80px 64px; gap: 24px; }
  .river-visual { padding-block: 18px; }
  .intro-surface .page-intro { padding-block: 80px 88px; }
}
@media (max-width: 650px) {
  .section-head { display: block; }
  .section-head > p, .section-head > .text-link { margin-top: 22px; }
  .section-head > .button { margin-top: 22px; }
}
@media (max-width: 560px) {
  .site-header > .section-curve.curve-bottom { height: 34px; bottom: -33px; }
  .hero-surface { margin-bottom: 38px; }
  .intro-surface { margin-bottom: 52px; }
  .intro-surface + .pathway-section { margin-top: 92px; }
  .intro-surface .page-intro { padding-block: 65px 78px; }
  .hero-surface .hero { padding-block: 65px 56px; }
}

/* Shared type roles preserve the terracotta version's palette and layout. */
:root { --body-size: 1.125rem; }
body { font-family: var(--sans); font-size: var(--body-size); font-weight: 400; line-height: 1.6; }
#site p { font-family: var(--sans); font-size: var(--body-size); font-weight: 400; line-height: 1.6; }
#site h1, #site h2, .display { font-family: var(--serif); font-weight: 600; font-optical-sizing: auto; }
#site h3 { font-family: var(--sans); font-weight: 600; }
#site nav a { font-family: var(--sans); font-weight: 400; }
#site button, #site .button, #site label, #site legend { font-family: var(--sans); font-weight: 500; }
#site input, #site select, #site textarea { font-family: var(--sans); font-weight: 400; }
.text-link, .resource-link, strong, b { font-family: var(--sans); font-weight: 600; }
.brand-name { font-family: var(--sans); font-weight: 600; }
.brand-mark { font-family: var(--sans); font-weight: 700; }
.event-date strong, .event-list-title strong { font-family: var(--sans); font-weight: 600; }
@media (max-width: 560px) { :root { --body-size: 1.0625rem; } }

/* Supplied logo artwork retains its original proportions and transparency. */
.brand { display: block; width: 320px; max-width: 100%; min-width: 0; flex: 0 1 320px; line-height: 0; }
.brand-logo { display: block; width: 100%; height: auto; }
.footer .brand { width: 330px; }
.menu-toggle { flex-shrink: 0; }
@media (max-width: 1100px) { .site-header .brand { flex-basis: 280px; } }
@media (max-width: 560px) {
  .header-inner { gap: 16px; }
  .site-header .brand { flex-basis: 238px; }
  .footer .brand { width: 280px; }
}

/* Calendar filters and explicit text tags work in both calendar views. */
.calendar-filters { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.calendar-filters .field { flex: 1 1 180px; max-width: 300px; margin: 0; }
.calendar-filters .button { min-height: 50px; }
.calendar-result-count { margin-block: 0 18px; color: var(--muted); }
.event-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.event-tag { display: inline-block; padding: 3px 7px; border: 1px solid var(--control-line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: .75rem; line-height: 1.4; font-weight: 600; }
.event-tag.organizer-map { background: #F2B65F; color: #20271C; border-color: #956020; }
.calendar-key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.event-tag.format-tag { color: var(--water); }
.calendar-event { flex-direction: column; align-items: flex-start; padding: 8px; background: var(--cream); color: var(--ink); border: 1px solid var(--control-line); border-radius: 12px; }
.calendar-event .event-tags { gap: 4px; }
.calendar-event .event-tag { padding: 1px 4px; }
.calendar-day { min-height: 116px; }
.event-list-title { min-width: 0; }
.event-list-title strong { font-weight: 600; }
.event-list-title > span:last-child { overflow-wrap: anywhere; }
.event-list-item { border-radius: 14px; }
.dialog-heading .event-tags { margin-bottom: 16px; }
.event-details dd { min-width: 0; overflow-wrap: anywhere; }
.undated-events { margin-top: 30px; }
@media (max-width: 560px) {
 .calendar-filters { gap: 14px; }
 .calendar-filters .field { flex: 1 1 100%; max-width: none; }
 .calendar-filters .button { width: 100%; }
 .calendar-event { background: var(--cream) !important; color: var(--ink) !important; padding: 4px 2px; gap: 4px; align-items: stretch; }
 .calendar-event .event-tags { flex-direction: column; align-items: stretch; gap: 3px; }
 .calendar-event .event-tag { padding: 1px 2px; text-align: center; overflow-wrap: anywhere; }
 .event-list-item { align-items: flex-start; }
 .event-list-item > svg { margin-top: 5px; }
 .event-date strong { font-size: 1.8rem; }
 .calendar-toolbar { gap: 18px; }
}

/* Learn alternates full-width surfaces without a gap between curved edges. */
.page-learn .intro-surface { margin-bottom: 0; z-index: 1; }
.page-learn .intro-surface + .pathway-section {
  margin: 0;
  padding-block: 120px 110px;
  background: var(--paper);
}
.page-learn :is(.learning-basics-surface, .advanced-learning-surface) {
  position: relative;
  z-index: 1;
  background: var(--cream);
  --curve-tone: var(--cream);
}
.page-learn .learning-basics { padding-block: 92px 96px; }
.page-learn .learning-basics > * { min-width: 0; }
.page-learn .learning-basics .image-placeholder { width: 100%; max-width: 100%; }
.learn-principles-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 76px 24px 92px 30px / 55px 24px 66px 30px;
}
.page-learn .pdc-surface { background: var(--paper); }
.page-learn .pdc-block { padding-block: 120px 110px; }
.page-learn .advanced-learning-surface > .section { padding-block: 92px 96px; }
.page-learn .advanced-grid article { background: var(--paper); }
.page-learn + .footer { margin-top: 0; z-index: 2; }
@media (max-width: 850px) {
  .page-learn .learning-basics { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 560px) {
  .page-learn .intro-surface + .pathway-section { padding-block: 82px 80px; }
  .page-learn .learning-basics,
  .page-learn .advanced-learning-surface > .section { padding-block: 60px 64px; }
  .page-learn .pdc-block { padding-block: 82px 80px; }
}

.preview-lock { background: transparent; color: inherit; border: 0; border-bottom: 1px solid currentColor; padding: 3px 0; font: inherit; font-weight: 600; cursor: pointer; margin-top: 20px; }

/* The homepage watercolor supplies the full hero surface. */
.hero-surface { background: #faf7ed; }
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-surface .hero { min-height: 620px; }
.hero-surface > .section-curve { --curve-tone: var(--paper); bottom: -1px; transform: none; z-index: 2; }
@media (max-width: 850px) {
  .hero-surface .hero { min-height: 760px; padding-bottom: 250px; }
  .hero-backdrop { object-position: 72% center; }
  .hero-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(250,247,237,.96) 0%, rgba(250,247,237,.9) 48%, rgba(250,247,237,.25) 72%, transparent 100%);
    pointer-events: none;
  }
}
