:root {
  --ink: #3e4f4b;
  --green: #1b5439;
  --green-deep: #2d4a40;
  --sage: #98b4a9;
  --sage-soft: #eef3f0;
  --line: #d5e0db;
  --white: #fff;
  --serif-display: 'Hedvig Letters Serif', Georgia, serif;
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --radius: 1rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem; /* 18px base, was ~11–13pt with descriptions at ~8pt */
  line-height: 1.65;
}
@media (min-width: 64rem) { body { font-size: 1.1875rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; line-height: 1.25; margin: 0 0 0.75em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: 0.5rem 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--max); margin: 0 auto; padding: 0.6rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand span { font-family: var(--serif-display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.95rem; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
#site-nav a {
  display: block; padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
#site-nav a:hover { border-color: var(--green); color: var(--green); }
.menu-toggle { display: none; }

@media (max-width: 52rem) {
  .menu-toggle {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  }
  .burger, .burger::before, .burger::after {
    display: block; width: 1.1rem; height: 2px; background: var(--ink); position: relative; transition: transform 0.2s;
  }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu-toggle[aria-expanded='true'] .burger { background: transparent; }
  .menu-toggle[aria-expanded='true'] .burger::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] .burger::after { transform: translateY(-6px) rotate(-45deg); }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; padding: 1rem var(--gutter) 1.25rem; }
  #site-nav a { text-align: center; padding: 0.85rem 1rem; font-size: 0.875rem; }
  .brand span { font-size: 0.85rem; letter-spacing: 0.16em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--sage); }
.btn-ghost:hover { border-color: var(--green); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) var(--gutter);
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem);
}
.hero-text { text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 0.6em; }
.tagline { text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 400; line-height: 1.8; margin: 0 auto 2.25rem; max-width: 34rem; }
.hero-logo { width: min(100%, 22rem); justify-self: center; }
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
  .hero-logo { order: -1; width: 11rem; }
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.section-tint { max-width: none; background: var(--sage-soft); }
.section-tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-title {
  text-align: center; text-transform: uppercase; letter-spacing: 0.24em;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1.5em;
}
.section-title.small { font-size: 1.5rem; margin-bottom: 1em; }
.prose p { margin: 0 0 1em; }
.prose-center { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.ivy { width: min(100%, 44rem); margin: 2.5rem auto 0; }
.empty, .subscribe { text-align: center; }
.subscribe { margin-top: 2.5rem; font-size: 1rem; }

/* ---------- events ---------- */
.event-list { display: grid; gap: 2rem; }
.event-card {
  display: grid; grid-template-columns: minmax(0, 18rem) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); max-width: 60rem; margin: 0 auto; width: 100%;
}
.event-image { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 18rem; margin: 0 auto; }
.event-date { font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin: 0 0 0.5rem; }
.event-card h3, .event-detail h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--green); margin-bottom: 0.6em; }
.event-meta { margin: 0 0 1.25rem; display: grid; gap: 0.4rem; }
.event-meta div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; }
.event-meta dt { font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.3rem; color: var(--ink); }
.event-meta dd { margin: 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 40rem) {
  .event-card { grid-template-columns: 1fr; text-align: left; }
  .event-image { max-width: 12rem; }
  .actions .btn { flex: 1 1 100%; }
}

.page { max-width: 60rem; }
.back { margin: 0 0 2rem; font-size: 1rem; }
.event-detail { display: grid; grid-template-columns: minmax(0, 16rem) 1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
@media (max-width: 40rem) { .event-detail { grid-template-columns: 1fr; gap: 1.5rem; } .event-detail .event-image { max-width: 12rem; } }

/* ---------- forms ---------- */
.form-card {
  max-width: 38rem; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem);
}
.site-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field > span { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink); width: 100%;
  padding: 0.75rem 0.9rem; border: 1px solid #b9c9c2; border-radius: 0.6rem; background: var(--white);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27, 84, 57, 0.15); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; font-size: 1rem; line-height: 1.5; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.site-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 1rem; min-height: 1.5em; }
.form-status.ok { color: var(--green); font-weight: 500; }
.form-status.err { color: #a12c2c; }
@media (max-width: 40rem) { .site-form .btn { justify-self: stretch; } }

/* ---------- RSVP dialog ---------- */
.rsvp-dialog {
  width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 4vw, 2.25rem); border: none; border-radius: var(--radius);
  color: var(--ink); background: var(--white); box-shadow: 0 24px 60px rgba(20, 35, 30, 0.25);
  overflow: auto;
}
.rsvp-dialog::backdrop { background: rgba(30, 40, 38, 0.5); backdrop-filter: blur(2px); }
.dialog-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.dialog-head { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; margin: 0 2.5rem 1.75rem 0; }
.dialog-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.dialog-head h2 { font-size: 1.6rem; color: var(--green); margin: 0 0 0.3rem; }
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.25rem; color: var(--ink); }
.dialog-when { margin: 0; font-size: 1rem; line-height: 1.5; }
@media (max-width: 30rem) { .dialog-head { grid-template-columns: 1fr; } .dialog-head img { width: 72px; height: 72px; } }

/* ---------- legal pages ---------- */
.legal { max-width: 42rem; margin: 0 auto; }
.legal h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 2.25rem 0 0.5rem; color: var(--green); }
.legal p { margin: 0 0 1em; }
.legal .notice { background: var(--sage-soft); border-left: 4px solid var(--sage); padding: 0.9rem 1.1rem; font-size: 1rem; }
.legal .meta { font-size: 1rem; font-style: italic; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 3rem var(--gutter) 2.5rem; border-top: 1px solid var(--line); font-size: 1rem; }
.footer-ivy { width: min(100%, 22rem); margin: 0 auto 1.5rem; opacity: 0.9; }
.footer-name { font-family: var(--serif-display); text-transform: uppercase; letter-spacing: 0.24em; font-size: 1.1rem; margin: 0 0 0.5rem; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-links { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; }
.copyright { color: #5f6f6b; font-size: 0.9375rem; }

/* ---------- multi-page additions ---------- */
#site-nav a[aria-current='page'] { background: var(--green); border-color: var(--green); color: var(--white); }
.page-head { margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.more { text-align: center; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.past { max-width: 42rem; margin: 4rem auto 0; }
.past-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.past-list li { border-bottom: 1px solid var(--line); }
.past-list a { display: flex; gap: 1.25rem; padding: 0.85rem 0.25rem; text-decoration: none; color: var(--ink); }
.past-list a:hover { color: var(--green); }
.past-list span { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; min-width: 7.5rem; padding-top: 0.2rem; }

/* ---------- events page + month calendar ---------- */
.section-wide { max-width: 80rem; }
.events-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.events-layout .event-card { grid-template-columns: minmax(0, 13rem) 1fr; }
@media (max-width: 64rem) {
  .events-layout { grid-template-columns: 1fr; }
  .events-layout .calendar { max-width: 26rem; width: 100%; margin: 0 auto; }
}
@media (max-width: 40rem) { .events-layout .event-card { grid-template-columns: 1fr; } }

.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 5.5rem; }
@media (max-width: 64rem) { .calendar { position: static; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0; }
.cal-nav { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal-nav:hover { border-color: var(--green); color: var(--green); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; text-align: center; }
.cal-dow { font-family: var(--sans); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0; color: #5f6f6b; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 1rem; color: var(--ink); text-decoration: none; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--sage); }
.cal-day.has-event { background: var(--green); color: var(--white); font-weight: 500; }
.cal-day.has-event:hover { background: var(--green-deep); }
.cal-day.has-event.past { background: var(--sage-soft); color: var(--ink); }
.cal-events { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; font-size: 1rem; }
.cal-events a { display: grid; text-decoration: none; color: var(--ink); line-height: 1.4; }
.cal-events a:hover { color: var(--green); }
.cal-events span { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.cal-events .past a { opacity: 0.7; }
.cal-events .none { color: #5f6f6b; font-style: italic; }
.cal-subscribe { margin: 1rem 0 0; font-size: 0.95rem; text-align: center; }
.footer-sub { margin-top: 0.75rem; }
.subscribe-links { font-size: 0.95rem; }
.subscribe-links a { white-space: nowrap; }
@media (max-width: 30rem) { .section-title { letter-spacing: 0.14em; } }

[hidden] { display: none !important; }
