:root {
  --plum:        #57263f;   /* the sidebar — the brand's core color */
  --plum-deep:   #421c30;   /* depth: footer, hovers */
  --cream:       #f7f0e1;   /* warm page background (the welcome panel) */
  --cream-panel: #fdf9f0;   /* lightest warm white */
  --sage:        #6e8a5a;   /* the tree */
  --sage-deep:   #54704a;
  --gold:        #c7a24c;   /* the alphabet blocks */
  --ink:         #33292c;   /* warm near-black body text */
  --ink-soft:    #5c5054;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-util:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  --measure: 62ch;
  --container: 1120px;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.75rem;
}

/* shared vertical rhythm for content bands */
.band { padding-block: 5.5rem; }

/* small letter-spaced sans label used above headings */
.label {
  font-family: var(--font-util);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.site-header {
  background: var(--cream-panel);
  border-bottom: 1px solid rgba(87, 38, 63, 0.14);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand .emblem { height: 40px; width: auto; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--plum);
  letter-spacing: -0.01em;
}
.wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--sage-deep);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  font-family: var(--font-util);
  font-size: 0.92rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.site-nav a:hover { color: var(--plum); border-bottom-color: var(--gold); }

/* ---------- hero (deep plum, the thesis) ---------- */
.hero {
  background: var(--plum);
  color: var(--cream);
  text-align: center;
  padding-block: 6.5rem;
  position: relative;
}
.hero .emblem-lg {
  height: 168px;
  width: auto;
  margin: 0 auto 1.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero .locale {
  color: rgba(247, 240, 225, 0.72);
  margin-top: 1rem;
}

.rule {
  width: 54px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 2.25rem auto;
}

.hero blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  max-width: 20ch;
  margin: 0 auto;
  color: var(--cream);
}

/* button */
.btn {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-util);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--plum);
  background: var(--cream);
  padding: 0.85rem 1.8rem;
  border-radius: 3px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: #efe3c9; transform: translateY(-1px); }

/* ---------- welcome (cream content) ---------- */
.welcome .label { color: var(--sage-deep); }
.welcome h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  color: var(--plum);
  margin: 0.7rem 0 1.6rem;
  max-width: 18ch;
}
.welcome p {
  max-width: var(--measure);
  color: var(--ink);
}
.welcome p + p { margin-top: 1.15rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--plum-deep);
  color: rgba(247, 240, 225, 0.82);
}
.site-footer .container {
  padding-block: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.site-footer .wordmark { color: var(--cream); font-size: 1.2rem; }
.site-footer .wordmark em { color: var(--gold); }
.footer-meta {
  font-family: var(--font-util);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: right;
}

/* ---------- accessibility & responsive ---------- */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .site-header .container { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
  .band { padding-block: 3.75rem; }
  .hero { padding-block: 4.5rem; }
  .site-footer .container { justify-content: center; text-align: center; }
  .footer-meta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Inner-page components (added on top of the homepage styles)
   ============================================================ */

/* smaller plum header band used on interior pages */
.page-hero { background: var(--plum); color: var(--cream); text-align: center; padding-block: 3.75rem; }
.page-hero .label { color: var(--gold); }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; margin-top: 0.5rem; }

/* prose content */
.content h2 { font-family: var(--font-display); font-weight: 600; color: var(--plum); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 2.5rem 0 1rem; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-family: var(--font-display); font-weight: 600; color: var(--plum); font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.content p { max-width: var(--measure); margin-bottom: 1.1rem; }
.content ul { max-width: var(--measure); margin: 0 0 1.1rem 1.25rem; }
.content li { margin-bottom: 0.4rem; }
.content .lead { font-size: 1.2rem; color: var(--ink-soft); }

/* featured quote */
.pullquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.4; color: var(--plum); border-left: 3px solid var(--gold); padding-left: 1.25rem; margin: 0 0 1.75rem; max-width: 34ch; }

/* plum-filled button for use on cream pages (the base .btn is cream, for the plum hero) */
.btn-plum { background: var(--plum); color: var(--cream); }
.btn-plum:hover { background: var(--plum-deep); }
button.btn { border: none; cursor: pointer; }

/* highlight the current page in the nav */
.site-nav a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--plum); }

/* staff cards */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.staff-card { background: var(--cream-panel); border: 1px solid rgba(87, 38, 63, 0.14); border-radius: 6px; padding: 1.4rem 1.5rem; }
.staff-card h3 { margin: 0 0 0.15rem; }
.staff-card .role { font-family: var(--font-util); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.7rem; }
.staff-card p { margin: 0; max-width: none; }

/* gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.gallery-grid .tile { aspect-ratio: 4 / 3; background: var(--cream-panel); border: 1px solid rgba(87, 38, 63, 0.14); border-radius: 4px; display: grid; place-items: center; color: var(--ink-soft); font-family: var(--font-util); font-size: 0.85rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }

/* newsletter list */
.news-list { list-style: none; max-width: 640px; margin-top: 1.5rem; }
.news-list li { border-bottom: 1px solid rgba(87, 38, 63, 0.14); }
.news-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--ink); font-family: var(--font-util); }
.news-list a:hover { color: var(--plum); }
.news-list .date { color: var(--ink-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 0.5rem; }
.field { display: block; margin-bottom: 1.1rem; max-width: 460px; }
.field span { display: block; font-family: var(--font-util); font-size: 0.85rem; margin-bottom: 0.35rem; }
.field input, .field textarea { width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 1px solid rgba(87, 38, 63, 0.28); border-radius: 4px; background: var(--cream-panel); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }

@media (max-width: 720px) {
  .page-hero { padding-block: 2.75rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   Mobile navigation — hamburger toggle + left slide-out drawer
   ============================================================ */

.nav-toggle {
  display: none;               /* hidden on desktop; the full bar shows there */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;               /* stays above the drawer + backdrop so it works as the close (X) */
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
/* bars morph into an X when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* dim backdrop behind the drawer (the element is created by menu.js) */
.nav-backdrop { display: none; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  /* brand on the left, hamburger on the right */
  .site-header .container {
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
  }

  /* nav becomes a fixed panel that slides in from the left. Because it is
     position: fixed it overlays the page and never pushes the rest around. */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--cream-panel);
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.18);
    padding: 4.75rem 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 1000;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
  }
  .site-nav a {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(87, 38, 63, 0.10);
  }
  .site-nav a:hover { color: var(--plum); border-bottom-color: rgba(87, 38, 63, 0.10); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--plum); }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(30, 12, 22, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    z-index: 900;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
  }

  /* stop the page behind the drawer from scrolling while it is open */
  body.nav-open { overflow: hidden; }
}

/* ============================================================
   Gallery — event albums, photo-grid overlay, and lightbox
   ============================================================ */

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.album-card {
  position: relative; display: block; padding: 0; border: none; cursor: pointer;
  border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--plum); color: var(--cream); text-align: left; font: inherit;
}
.album-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.album-card:hover img { transform: scale(1.04); }
.album-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.album-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.75rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(52, 20, 36, 0.85), rgba(52, 20, 36, 0));
  display: block;
}
.album-cap .name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.album-cap .count { display: block; font-family: var(--font-util); font-size: 0.78rem; opacity: 0.85; margin-top: 0.15rem; }

/* still-image collage (photos that aren't part of an album) */
.collage-grid { column-count: 2; column-gap: 1.25rem; margin-top: 1.75rem; }
.collage-grid .collage-item {
  display: block; width: 100%; padding: 0; border: none; background: none;
  cursor: pointer; margin-bottom: 1.25rem; break-inside: avoid; border-radius: 6px; overflow: hidden;
}
.collage-grid .collage-item img { width: 100%; display: block; border-radius: 6px; transition: transform 0.3s ease, opacity 0.15s ease; }
.collage-grid .collage-item:hover img { transform: scale(1.03); opacity: 0.9; }
.collage-grid .collage-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (min-width: 640px) { .collage-grid { column-count: 3; } }
@media (min-width: 960px) { .collage-grid { column-count: 4; } }

/* album overlay (grid of one event's photos) */
.album-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(30, 12, 22, 0.94); overflow-y: auto; padding: 4.5rem 1.5rem 3rem; }
.album-overlay[hidden] { display: none; }
.album-overlay-inner { max-width: 1000px; margin: 0 auto; }
.album-overlay-title { font-family: var(--font-display); color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.5rem; }
.album-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
.album-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; cursor: pointer; display: block; transition: opacity 0.15s ease; }
.album-photos img:hover { opacity: 0.85; }

/* full-size photo lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 6, 11, 0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 85vh; object-fit: contain; border-radius: 2px; }
.lightbox-count { position: fixed; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: rgba(247, 240, 225, 0.8); font-family: var(--font-util); font-size: 0.85rem; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.3); color: #fff; border: none; cursor: pointer; font-size: 2.4rem; line-height: 1; width: 56px; height: 56px; border-radius: 50%; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-nav:hover { background: rgba(0, 0, 0, 0.55); }

/* shared close button for both overlays */
.overlay-close { position: fixed; top: 1rem; right: 1rem; z-index: 5; background: rgba(0, 0, 0, 0.3); color: #fff; border: none; cursor: pointer; font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%; }
.overlay-close:hover { background: rgba(0, 0, 0, 0.55); }
.overlay-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* stop the page behind an open overlay from scrolling */
body.gallery-open { overflow: hidden; }

@media (max-width: 720px) {
  .lightbox-nav { width: 46px; height: 46px; font-size: 2rem; }
}

/* ============================================================
   Newsletter — sign-off, callouts, and plain lists
   ============================================================ */

.signoff { margin-top: 1.75rem; }
.signoff .role { font-family: var(--font-util); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); }
.signoff .name { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--plum); display: block; margin-top: 0.15rem; }

.callout { background: #fbf3df; border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 4px; margin: 1.5rem 0; max-width: var(--measure); }
.callout p { margin: 0; max-width: none; }
.callout strong { color: var(--plum); }

.plain-list { list-style: none; margin: 0.5rem 0 1.5rem; padding: 0; max-width: var(--measure); }
.plain-list li { padding: 0.55rem 0; border-bottom: 1px solid rgba(87, 38, 63, 0.10); }
.plain-list li:last-child { border-bottom: none; }
.plain-list .when { font-family: var(--font-util); font-weight: 600; color: var(--plum); margin-right: 0.15rem; }

/* ============================================================
   Newsletter update notice — nav dot + toast
   ============================================================ */

.site-nav a.has-update { position: relative; }
.site-nav a.has-update::after {
  content: "";
  position: absolute;
  top: -3px; right: -10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c0392b;
}

.newsletter-toast {
  position: fixed; z-index: 1300;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--plum); color: var(--cream);
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  border-radius: 8px; border-left: 4px solid var(--gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--font-util);
  transform: translateY(160%);
  transition: transform 0.3s ease;
}
.newsletter-toast.is-visible { transform: translateY(0); }
.newsletter-toast-body { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.newsletter-toast-body strong { font-size: 0.95rem; }
.newsletter-toast-body span { font-size: 0.82rem; opacity: 0.85; }
.newsletter-toast-link { flex-shrink: 0; background: var(--cream); color: var(--plum); text-decoration: none; font-weight: 600; font-size: 0.85rem; padding: 0.5rem 1rem; border-radius: 4px; }
.newsletter-toast-link:hover { background: #efe3c9; }
.newsletter-toast-close { flex-shrink: 0; background: none; border: none; color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: 0.7; padding: 0 0.15rem; }
.newsletter-toast-close:hover { opacity: 1; }
.newsletter-toast-link:focus-visible, .newsletter-toast-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (min-width: 640px) {
  .newsletter-toast { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-toast { transition: none; }
}
/* contact form helper note */
.form-note { font-family: var(--font-util); font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.75rem; max-width: 460px; }