/* Seasonal palettes derived from the four original local photographs. */
:root[data-season="spring"] {
  --ink:#3f4b29; --paper:#f8f6e8; --soft:#e6ecd3; --sand:#eeebd5;
  --accent:#566d35; --line:#c8ceaa; --header:#465832; --trim:#a8b563;
}
:root,
:root[data-season="summer"] {
  --ink:#204b33; --paper:#f8f3e7; --soft:#e0e9ce; --sand:#f5e6b5;
  --accent:#366515; --line:#c8d6b3; --header:#193d29; --trim:#e5b94f;
}
:root[data-season="autumn"] {
  --ink:#553616; --paper:#faf3e6; --soft:#efe0c8; --sand:#f5e8d1;
  --accent:#794c1e; --line:#d8bf98; --header:#643c15; --trim:#bc9357;
}
:root[data-season="winter"] {
  --ink:#344653; --paper:#f4f6f7; --soft:#e0e7ef; --sand:#e9edf0;
  --accent:#475d6f; --line:#c4cdd7; --header:#414e5c; --trim:#a5acb6;
}

* { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.6 system-ui, sans-serif; color: var(--ink); background: var(--paper); }
header { position: sticky; top: 0; z-index: 20; background: var(--header); color: white; border-bottom: 3px solid var(--trim); overflow-anchor: none; }
html { scroll-padding-top: 7rem; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; max-width: 70rem; margin: auto; padding: 1rem; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand { font-size: 1.55rem; font-weight: 800; letter-spacing: -.04em; margin-right: auto; }
header.compact nav { padding-block: .35rem; gap: .25rem 1.4rem; font-size: .9rem; }
header.compact .brand { font-size: 1.15rem; }
@media (max-width: 38rem) {
  nav { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,1fr); gap: .35rem .6rem; padding: .75rem 1rem; font-size: .85rem; }
  nav .brand { grid-column: 1/-1; }
  nav a:not(.brand) { min-width: 0; overflow-wrap: anywhere; }
  header.compact nav { padding-block: .25rem; gap: .1rem .6rem; font-size: .8rem; }
  html { scroll-padding-top: 8rem; }
}
main, footer { max-width: 70rem; margin: auto; padding: 1rem; }
section { margin-block: 2.5rem; }
h1, h2 { font-family: system-ui, sans-serif; color: var(--ink); line-height: 1.2; letter-spacing: -.035em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
a { color: var(--ink); text-underline-offset: .16em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; left: .5rem; top: -10rem; background: white; padding: .5rem; z-index: 30; }
.skip:focus { top: .5rem; }
.notice { border-left: 4px solid #8b5a12; padding: .6rem 1rem; background: #fff4df; }
.button { display: inline-block; padding: .65rem 1rem; background: var(--accent); color: #fff; border-radius: .45rem; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--header); }
footer { border-top: 3px solid var(--trim); background: var(--header); color: #fff; border-radius: .75rem .75rem 0 0; padding: 1.5rem; }
footer a { color: #fff; }

/* Home: original seasonal photo with a compact, readable top-left overlay. */
.welcome { display: grid; grid-template-columns: minmax(0,1fr); position: relative; isolation: isolate; overflow: hidden; min-height: clamp(20rem,39vw,29rem); background: var(--header); border-radius: 1rem; margin: 0 0 1.75rem; }
.welcome-landscape { margin: 0; position: absolute; inset: 0; min-height: 0; z-index: -1; }
.welcome-landscape img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome-copy { align-self: start; justify-self: start; width: min(18rem,calc(100% - 1.5rem)); margin: .75rem; padding: .65rem .85rem; color: #fff; background: rgba(16,26,22,.62); border: 1px solid #ffffff44; border-radius: .5rem; text-shadow: 0 1px 2px #000e,0 0 4px #000a; }
.welcome-copy h1 { color: #fff; line-height: 1.08; font-size: clamp(1.45rem,2.4vw,2rem); margin: .2rem 0 .35rem; }
.welcome-copy p { font-size: .9rem; margin: 0 0 .45rem; }
.welcome-copy .eyebrow { color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.welcome-copy .button { font-size: .85rem; padding: .35rem .65rem; background: var(--sand); color: var(--ink); text-shadow: none; }
.welcome-landscape[hidden], #upcoming-list[hidden], #upcoming-status[hidden] { display: none; }
.upcoming { margin: 1.75rem 0; }
.upcoming h2 { font-size: clamp(1.4rem,3vw,1.9rem); margin: 0 0 .85rem; }
.upcoming p { margin: .25rem 0; }
.upcoming ul { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.upcoming li { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; gap: .5rem; border: 1px solid var(--line); border-top: 3px solid var(--trim); border-radius: .6rem; padding: .85rem; background: var(--soft); }
.upcoming li:nth-child(even) { background: var(--sand); }
.upcoming time { font-weight: 750; color: var(--ink); font-size: .85rem; }
.upcoming li span { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
.section-heading h2 { margin: 0; }
:root[data-season="summer"] .section-heading .button { background: var(--trim); color: var(--header); }
:root[data-season="summer"] .section-heading .button:hover { background: #f0ca6c; }
.directory { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: .7rem; padding: 0; list-style: none; }
.directory a { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 8.5rem; background: #fff; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); font-size: .88rem; padding: .8rem; font-weight: 600; text-align: center; text-decoration: none; }
.directory a:hover { background: var(--soft); border-color: var(--accent); }
.directory img { width: 100%; height: 5.1rem; object-fit: contain; margin-bottom: .6rem; }
.directory span { overflow-wrap: anywhere; }
.association-invitation { max-width: 42rem; margin-block: 1.5rem; }
.association-invitation h2 { margin-bottom: .5rem; }
@media (max-width: 55rem) { .upcoming ul { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 38rem) {
  .welcome { min-height: clamp(15.5rem,80vw,22rem); }
  .welcome-copy { width: min(12.5rem,calc(100% - 1rem)); margin: .5rem; padding: .5rem .65rem; }
  .welcome-copy h1 { font-size: 1.35rem; }
  .welcome-copy p { font-size: .8rem; }
  .welcome-copy .eyebrow { font-size: .7rem; }
  .upcoming ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .upcoming li { padding: .65rem; }
  .upcoming li:last-child:nth-child(odd) { grid-column: 1/-1; }
  .directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Event form: retain the established field order and readiness gate. */
.event-fields { max-width: 36rem; }
.event-fields fieldset { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .3rem; }
.event-fields label { display: block; margin-top: .8rem; font-weight: 600; }
.event-fields input, .event-fields textarea, .event-fields select, .event-fields button { width: 100%; padding: .65rem; border: 1px solid var(--line); border-radius: .3rem; font: inherit; }
.event-fields textarea { resize: vertical; }
.event-fields .privacy-check { display: flex; align-items: baseline; gap: .5rem; font-weight: 400; }
.event-fields .privacy-check input { width: auto; flex: none; margin: 0; }
.event-fields button { margin-top: 1rem; background: #e5e9e6; color: #48564e; }
.event-fields :disabled { cursor: not-allowed; opacity: 1; }
.event-fields .field-note { font-size: .9rem; line-height: 1.35; margin: .1rem 0 .45rem; }
.event-fields .field-note u { text-underline-offset: .12em; }
.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
.time-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .25rem; align-items: center; }
.time-fields select { min-width: 0; }
@media (max-width: 30rem) { .date-fields { grid-template-columns: 1fr; } }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.event-fields button:not(:disabled) { background: var(--accent); color: white; cursor: pointer; }
button.button { border: 0; font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
