:root {
  --grass: #4a9459;
  --grass-deep: #3d7f4c;
  --teal: #0e5a6e;
  --teal-deep: #0a4453;
  --mint: #eef5f1;
  --paper: #fbfcfa;
  --ink: #1d2a2c;
  --muted: #55656a;
  --line: #d5e2dc;
  --accent: #e0a13a;
  --radius: 6px;
  --max: 1120px;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --pattern: url("images/newsletter/border-pattern.png");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a1c;
    --mint: #132427;
    --ink: #e6eeef;
    --muted: #a9bcc0;
    --line: #26393d;
  }
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) table.committee,
  :root:not([data-theme="light"]) ul.docs a { background: #172629; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--grass-deep); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 99; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.strip { height: 22px; background: var(--paper) var(--pattern) repeat-x center / auto 22px; }

/* Header */
header.site { background: var(--grass); color: #fff; position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .7rem; }
.brand .mark { width: 40px; height: 40px; display: block; flex: none; }
.brand .mark img { width: 40px; height: 40px; display: block; border-radius: 4px; }
.brand .mark svg { width: 24px; height: 24px; }
.brand strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; display: block; }
.brand small { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; }
nav a:hover, nav a:focus { text-decoration: underline; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
nav a.join-btn { background: var(--teal); padding: .42rem .95rem; border-radius: 999px; text-decoration: none; }
nav a.join-btn:hover { background: var(--teal-deep); }
.menu-toggle { display: none; background: none; border: 1px solid #ffffff88; color: #fff; border-radius: 6px; padding: .35rem .75rem; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  nav { display: none; width: 100%; padding-bottom: 1rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav a { display: block; padding: .55rem 0; border-top: 1px solid #ffffff33; }
  .bar { flex-wrap: wrap; padding: .6rem 0; }
}

/* Hero */
.hero { background: var(--grass); color: #fff; padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.kicker { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem; display: flex; align-items: center; gap: .6rem; }
.kicker::after { content: ""; flex: 1; height: 2px; background: #ffffffaa; max-width: 240px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; margin: 0 0 .4rem; letter-spacing: -.01em; }
.hero h1 span { display: block; font-family: var(--sans); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.5rem); letter-spacing: .12em; text-transform: uppercase; margin-top: .6rem; }
.hero p { font-size: 1.15rem; max-width: 34rem; margin: 1.25rem 0 1.75rem; }
.hero-photo { background: var(--teal); border-radius: var(--radius); min-height: 320px; position: relative; overflow: hidden; border: 8px solid #fff; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: var(--teal); color: #fff; padding: .8rem 1rem; font-size: .9rem; }

/* Page header (inner pages) */
.page-head { background: var(--grass); color: #fff; padding: 3rem 0 2.5rem; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 .5rem; }
.page-head p { font-size: 1.15rem; max-width: 42rem; margin: 0; }
.crumbs { font-size: .9rem; margin: 0 0 1rem; opacity: .9; }
.crumbs a { color: #fff; }

.btn { display: inline-block; padding: .72rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 600; margin: .25rem .4rem .25rem 0; border: 2px solid transparent; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--mint); color: var(--teal-deep); }

/* Sections */
section { padding: 4.25rem 0; }
section.tint { background: var(--mint); }
section.teal { background: var(--teal); color: #fff; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 .9rem; color: var(--teal); }
section.teal h2 { color: #fff; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin: 0 0 .4rem; color: var(--teal); }
.rule { width: 100%; height: 4px; background: var(--teal); margin: 0 0 1.25rem; border-radius: 2px; }
section.teal .rule { background: #fff; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
section.teal .lead { color: #e3eef0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card.tealcard { background: var(--teal); border-color: var(--teal); color: #fff; }
.card.tealcard h3 { color: #fff; }
.card.tealcard p { color: #dce9ec; }
.card .more { display: inline-block; margin-top: .75rem; font-weight: 600; }
.badge { display: inline-block; background: var(--accent); color: var(--teal-deep); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 3px; margin-bottom: .75rem; }
.stack { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }

/* Announcements */
section.announce { background: var(--teal); color: #fff; padding: 3rem 0; }
section.announce h2 { color: #fff; margin-bottom: 1.25rem; }
.announce-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.announce-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.5rem; border-top: 6px solid var(--accent); }
.announce-card h3 { color: var(--teal); }
.announce-card p { margin: 0 0 .75rem; color: var(--muted); }
.announce-card .more { font-weight: 600; }
.announce-card .badge { margin-bottom: .5rem; }
.announce-date { font-size: .9rem; color: var(--muted); margin: 0 0 .4rem !important; }
.announce-more { margin-top: 1.5rem; }
.announce-more a { color: #fff; font-weight: 600; }
section.announce .note { color: #e3eef0; }

/* Two-column */
.split { display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.facts li { padding: .7rem 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { color: var(--teal); }

/* Join */
.join-box { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .join-box { grid-template-columns: 1fr; } }
.price { font-family: var(--serif); font-size: 4rem; font-weight: 600; color: var(--teal); line-height: 1; margin-top: 1.25rem; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 500; display: block; margin-top: .4rem; }
ol.steps { padding-left: 1.3rem; }
ol.steps li { margin-bottom: .6rem; }
dl.bank { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 1rem 0 0; background: var(--mint); border-radius: var(--radius); padding: 1rem 1.2rem; }
dl.bank dt { color: var(--muted); }
dl.bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.note { font-size: .95rem; color: var(--muted); }

/* Committee */
table.committee { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.committee th, table.committee td { text-align: left; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
table.committee tr:last-child th, table.committee tr:last-child td { border-bottom: 0; }
table.committee th { width: 40%; color: var(--grass-deep); font-weight: 600; }
table.committee td { font-family: var(--serif); font-size: 1.15rem; }
@media (max-width: 560px) {
  table.committee th, table.committee td { display: block; width: 100%; }
  table.committee th { padding-bottom: 0; border-bottom: 0; }
}

/* Documents */
ul.docs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
ul.docs a { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--grass); border-radius: var(--radius); padding: .85rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 500; }
ul.docs a:hover { border-left-color: var(--teal); color: var(--teal); }
ul.docs span { color: var(--grass-deep); font-weight: 600; font-size: .95rem; }

/* Contact */
.contact-box { background: var(--grass); color: #fff; border-radius: 10px; padding: 2.75rem; display: grid; gap: 1.5rem; grid-template-columns: 1.2fr .8fr; align-items: center; }
@media (max-width: 760px) { .contact-box { grid-template-columns: 1fr; } }
.contact-box h2 { color: #fff; }
.contact-box p { margin: 0; }
.contact-box .lead { color: #f0f7f2; }
.email-big { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.email-big a { color: #fff; }
.email-big a:hover { color: var(--accent); }

footer.site { background: #1f4a35; color: #d5e4da; padding: 2.75rem 0 2rem; font-size: .95rem; }

/* Autumn-inspired dark hero (home page) */
.hero-dark { background: #1f4a35; }
.hero-dark h1 { color: #ead9a6; }
.hero-dark .kicker { color: #ead9a6; }
.hero-dark .kicker::after { background: #ead9a6aa; }
.hero-dark .btn-primary { background: #ead9a6; color: #1f4a35; }
.hero-dark .btn-primary:hover { background: #f5e9c4; color: #1f4a35; }
footer.site a { color: #fff; }
footer.site .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
footer.site p { margin: .25rem 0; }
footer.site .fine { margin-top: 2rem; border-top: 1px solid #ffffff22; padding-top: 1rem; font-size: .85rem; opacity: .8; }

/* Join form */
.join-form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
.join-form .full { grid-column: 1 / -1; }
.join-form label { display: grid; gap: .3rem; font-weight: 600; color: var(--teal); }
.join-form label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--ink); }
.join-form input, .join-form select, .join-form textarea {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.join-form textarea { min-height: 6rem; }
.join-form button { justify-self: start; }
.join-form .hp { position: absolute; left: -9999px; }
@media (max-width: 700px) { .join-form { grid-template-columns: 1fr; } }

/* Downloads */

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 2rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.gallery figcaption { margin-top: .4rem; font-size: .95rem; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
dialog.lightbox::backdrop { background: #000c; }
dialog.lightbox img { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; border-radius: var(--radius); }
dialog.lightbox p { color: #fff; text-align: center; margin: .6rem 0 0; }
dialog.lightbox button { position: absolute; top: .5rem; right: .5rem; background: #fff; color: var(--teal); border-radius: 999px; padding: .3rem .8rem; }

/* Gallery albums */
.album { margin-top: 3rem; }
.album:first-child { margin-top: 2rem; }
.album-jump { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; }
.album-jump a { font-weight: 600; }

/* Hero photo carousel (home page) */
.hero-photo .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; margin: 0; }
.hero-photo .slide.is-active { opacity: 1; }
.hero-photo .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: var(--teal); color: #fff; padding: .8rem 1rem 2.6rem; font-size: .9rem; }
.hero-photo { min-height: 340px; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #1f4a35; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.slide-prev { left: .6rem; }
.slide-next { right: .6rem; }
.slide-btn:hover, .slide-btn:focus-visible { background: #fff; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: .75rem; z-index: 2; display: flex; justify-content: center; gap: .45rem; }
.slide-dot { width: .65rem; height: .65rem; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.slide-dot[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-photo .slide { transition: none; } }

/* Consent checkbox: keep it small so the text beside it has room */
.join-form label.check input[type="checkbox"] { width: auto; flex: 0 0 auto; margin: .3rem 0 0; }
.join-form label.check span { flex: 1 1 auto; }

/* Newsletter cover thumbnail */
.newsletter-thumb { display: block; max-width: 260px; margin: 0 0 1.25rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); border: 6px solid #fff; border-radius: 3px; }
.newsletter-thumb img { display: block; width: 100%; height: auto; }

/* Documents page: collapsible older years */
.more-docs { margin: .5rem 0 1.5rem; }
.more-docs summary { cursor: pointer; font-weight: 600; color: var(--teal); padding: .4rem 0; }
.more-docs[open] summary { margin-bottom: .5rem; }

/* Hero carousel: slimmer caption and controls so the photo fills the frame */
.hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
.hero-photo .slide figcaption { background: linear-gradient(to top, rgba(14,90,110,.9), rgba(14,90,110,0)); padding: 1.6rem .9rem .5rem; font-size: .85rem; }
.slide-btn { width: 2rem; height: 2rem; font-size: 1.25rem; }
.slide-prev { left: .4rem; }
.slide-next { right: .4rem; }
.slide-dots { bottom: .4rem; gap: .35rem; }
.slide-dot { width: .5rem; height: .5rem; }

/* Area map (About page) */
.area-map { margin: 1.5rem auto 0; max-width: 620px; }
.area-map img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.area-map figcaption { font-size: .9rem; color: var(--muted, #555); margin-top: .5rem; }

/* Gallery page: tighter top spacing, visible album links */
.album-jump a { color: var(--teal); }
.album-jump a:hover { text-decoration: underline; }
.album:first-child { margin-top: .5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
