:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #fffdf9;
  --ink: #26231f;
  --ink-2: #4a443c;
  --muted: #776e62;
  --line: #ddd3c3;
  --green: #2e4a3b;
  --green-2: #3d6150;
  --gold: #a7813a;
  --gold-soft: #e9dcc0;
  --serif-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(38, 35, 31, .06), 0 8px 24px -12px rgba(38, 35, 31, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand-name { font-family: var(--serif-display); font-style: italic; font-weight: 600; font-size: 1.75rem; letter-spacing: .005em; }
.brand-sub { font-family: var(--serif-display); font-style: italic; font-size: 1.05rem; color: var(--gold); margin-left: 2.2em; margin-top: 2px; }
.brand:hover { color: var(--ink); }

.site-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--ink-2);
  font-size: .98rem; letter-spacing: .01em; border-bottom: 2px solid transparent;
}
.nav-item > a:hover, .nav-item.is-active > a { color: var(--green); border-bottom-color: var(--gold); }
.sub-toggle {
  border: 0; background: none; color: var(--muted); padding: 6px 4px; margin-left: -8px; cursor: pointer;
  display: grid; place-items: center;
}
.sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 260px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub a { display: block; padding: 7px 18px; text-decoration: none; color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--paper-2); color: var(--green); }
.nav-item:last-child .sub, .nav-item:nth-last-child(2) .sub { left: auto; right: 0; }
@media (hover: hover) and (min-width: 961px) {
  .nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
}
.nav-item.open .sub { opacity: 1; visibility: visible; transform: none; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
}
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; } .bars::after { top: 5px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px);
    background: var(--paper); border-top: 1px solid var(--line);
    overflow-y: auto; padding: 8px 16px 40px; display: none;
  }
  .site-nav.open { display: block; }
  .site-nav .nav-list { flex-direction: column; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; font-size: 1.15rem; padding: 14px 4px; border: 0; }
  .sub-toggle { padding: 14px; margin: 0; }
  .nav-item.open .sub-toggle svg { transform: rotate(180deg); }
  .sub {
    position: static; display: none; width: 100%; max-height: none; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 12px 12px; opacity: 1; visibility: visible; transform: none;
  }
  .nav-item.open .sub { display: block; }
  .sub a { padding: 8px 6px; font-size: 1.02rem; }
}

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif-display); font-weight: 600; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.eyebrow { font-family: var(--serif-display); font-style: italic; font-size: 1.35rem; margin: 0 0 .25em; color: #fff; }
.eyebrow--dark { color: var(--gold); }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); font-size: .95rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 24px; }

/* ---------- article ---------- */
.article { padding-bottom: 72px; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin: 0 0 8px; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: 22px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-size: 2rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.5rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .25em 0; }
.prose li p { margin: 0; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--gold); color: var(--ink-2); font-style: italic; }

.fig { margin: 2em 0; }
.fig a { display: block; cursor: zoom-in; }
.fig img { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); margin-inline: auto; }
.fig--portrait img { max-height: 640px; width: auto; }
.fig--small img { width: auto; }
.fig figcaption, .intro-fig figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; text-align: center; font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 2em 0; }
.gallery .fig { margin: 0; }
.gallery .fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-height: none; }
.gallery figcaption { text-align: left; font-size: .85rem; }
@media (min-width: 900px) {
  .prose > .gallery { margin-inline: -80px; }
}

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.prevnext a { text-decoration: none; color: var(--ink); font-family: var(--serif-display); font-size: 1.3rem; line-height: 1.25; }
.prevnext a span { display: block; font-family: var(--serif); font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.prevnext a:hover { color: var(--green); }
.pn-next { text-align: right; }

/* ---------- news ---------- */
.news-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; margin: 28px 0 8px; }
.news-toc ol { list-style: none; margin: 0; padding: 0; }
.news-toc a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 20px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.news-toc a:hover { background: var(--paper-2); color: var(--green); }
.toc-title { font-size: 1rem; }
.toc-date { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.news-item { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.news-item > h2 { margin: 0 0 4px; }
.news-date { color: var(--gold); font-style: italic; margin: 0 0 1em; font-size: .98rem; }
.book-meta { color: var(--muted); font-size: .95rem; margin-top: -.6em; font-style: italic; }
.to-top { margin-top: 1.4em; font-size: .9rem; }
.to-top a { text-decoration: none; color: var(--muted); }
@media (max-width: 560px) {
  .news-toc a { flex-direction: column; gap: 2px; padding: 10px 16px; }
}

/* ---------- cards ---------- */
.section-cards { margin-top: 64px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-soft); color: var(--ink); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.08); }
.card-img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--green-2)); }
.card-img--empty span { font-family: var(--serif-display); font-style: italic; font-size: 2.6rem; color: var(--gold-soft); opacity: .85; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 1.45rem; margin: 0 0 8px; }
.card-body p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none;
  background: var(--green); color: #fff; font-size: 1rem; border: 1px solid var(--green); transition: background .2s, color .2s;
}
.btn:hover { background: var(--green-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--light { background: var(--paper); color: var(--green); border-color: var(--paper); }
.btn--light:hover { background: var(--gold-soft); color: var(--green); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- home ---------- */
.hero { position: relative; height: min(78vh, 720px); min-height: 440px; overflow: hidden; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 24, .15) 0%, rgba(20, 28, 24, .25) 45%, rgba(20, 28, 24, .62) 100%); }
.hero-text { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 72px; }
.hero h1 { color: #fff; font-style: italic; font-size: clamp(3.2rem, 10vw, 7rem); margin: 0; line-height: 1; letter-spacing: -.01em; }
.hero-sub { font-family: var(--serif-display); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2.2rem); margin: .2em 0 0; color: var(--gold-soft); }

.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding: 96px 0 72px; }
.intro h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 20px; }
.intro-fig { margin: 0; }
.intro-fig img { border-radius: var(--radius); box-shadow: var(--shadow); filter: sepia(.1); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 48px; } }

.sec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-grid li + li { border-left: 1px solid var(--line); }
.sec-grid a { display: flex; flex-direction: column; height: 100%; padding: 32px 26px; text-decoration: none; color: var(--ink); transition: background .2s; }
.sec-grid a:hover { background: var(--paper-2); color: var(--ink); }
.sec-grid .num { font-family: var(--serif-display); font-style: italic; color: var(--gold); font-size: 1.2rem; }
.sec-grid h3 { font-size: 1.9rem; margin: 6px 0 10px; }
.sec-grid p { margin: 0 0 18px; font-size: .98rem; color: var(--muted); line-height: 1.55; flex: 1; }
.sec-grid .more { color: var(--green); font-size: .95rem; }
@media (max-width: 960px) {
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .sec-grid li:nth-child(3) { border-left: 0; }
  .sec-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-grid li + li { border-left: 0; border-top: 1px solid var(--line); }
  .sec-grid a { padding: 24px 4px; }
}

.featured { padding: 88px 0 96px; }
.featured-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.featured-head a { text-decoration: none; }

.cta { background: var(--green); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px 0; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 8px; }
.cta p { margin: 0; color: #d9e2dc; max-width: 560px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 32px 0; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card h2 { font-size: 1.45rem; margin: 0 0 10px; }
.contact-card p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; padding: 44px 0; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-brand { font-family: var(--serif-display); font-style: italic; font-size: 1.5rem; color: var(--ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-2); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(18, 16, 14, .9); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: 2px; margin: 0 auto; }
.lb-cap { color: #e9e2d6; text-align: center; font-style: italic; margin: 10px 0 0; }
.lb-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255, 255, 255, .26); }

@media (max-width: 600px) {
  body { font-size: 1.06rem; }
  .page-head { padding-top: 36px; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .brand-name { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- search link in nav ---------- */
.nav-search > a { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 961px) { .nav-search > a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- latest news on home ---------- */
.latest { padding: 0 0 80px; }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.latest-list a { display: flex; flex-direction: column; height: 100%; padding: 24px 24px 22px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.latest-list a:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.latest-date { color: var(--gold); font-style: italic; font-size: .92rem; }
.latest-list h3 { font-size: 1.5rem; margin: 6px 0 10px; }
.latest-list p { margin: 0 0 16px; font-size: .95rem; line-height: 1.55; color: var(--muted); flex: 1; }
.latest-list .more { color: var(--green); font-size: .95rem; }
@media (max-width: 860px) { .latest-list { grid-template-columns: 1fr; } }

/* ---------- page table of contents ---------- */
.page-toc { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 22px 14px; margin: 8px 0 36px; }
.page-toc-title { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; margin: 0 0 6px !important; }
.page-toc ol { margin: 0; padding-left: 1.3em; columns: 2 260px; column-gap: 32px; }
.page-toc li { margin: 3px 0; break-inside: avoid; font-size: .95rem; line-height: 1.4; }
.page-toc a { text-decoration: none; }
.page-toc a:hover { text-decoration: underline; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 90px; }

/* ---------- back to top ---------- */
.back-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; text-decoration: none; font-size: 1.3rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 40; }
.back-top.show { opacity: .92; visibility: visible; transform: none; }
.back-top:hover { opacity: 1; color: #fff; background: var(--green-2); }

/* ---------- story groups & meeting gallery ---------- */
.story-group { margin-top: 56px; }
.story-group + .story-group { margin-top: 64px; }
.gallery--meetings figcaption { text-align: center; font-style: normal; color: var(--ink-2); }
.gallery--meetings .fig { scroll-margin-top: 100px; }

/* ---------- search page ---------- */
.search-form { display: flex; gap: 10px; margin: 8px 0 12px; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.search-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.search-results { list-style: none; padding: 0; margin: 20px 0 0; }
.search-results li { border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 16px 4px; text-decoration: none; color: var(--ink); }
.search-results a:hover { background: var(--paper-2); }
.sr-sec { display: block; font-size: .82rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.sr-title { display: block; font-family: var(--serif-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin: 2px 0 6px; color: var(--green); }
.sr-snip { display: block; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.sr-snip mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
