:root {
  color-scheme: light;
  --green: #067867;
  --green-dark: #074f45;
  --gold: #f0b43c;
  --red: #b83226;
  --ink: #171818;
  --muted: #5b6361;
  --paper: #ffffff;
  --soft: #f5f0e6;
  --line: #d8d0bf;
  --shadow: 0 22px 54px rgba(20, 45, 40, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.top-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px max(18px, calc((100vw - var(--max)) / 2));
  background: var(--green-dark);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-contact-bar a {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 12px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(6, 120, 103, 0.22);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  background: rgba(6, 120, 103, 0.1);
  color: var(--green-dark);
  outline: none;
}

.nav-group {
  position: relative;
}

.submenu-toggle {
  display: none;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  min-width: 230px;
  padding: 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.nav-submenu::before {
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
}

.nav-submenu a {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  text-transform: none;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  display: grid;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: var(--green-dark);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100svh - 86px);
  display: grid;
  align-items: end;
  isolation: isolate;
}

.page-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 79, 69, 0.88), rgba(7, 79, 69, 0.56) 48%, rgba(7, 79, 69, 0.1)),
    linear-gradient(0deg, rgba(23, 24, 24, 0.34), transparent 58%);
  content: "";
}

.page-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  display: grid;
  gap: 16px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 82px) 18px;
  color: white;
}

.page-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 6vw, 5.3rem);
  line-height: 0.98;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 79, 69, 0.9) 0%, rgba(7, 79, 69, 0.7) 43%, rgba(7, 79, 69, 0.08) 100%),
    linear-gradient(0deg, rgba(23, 24, 24, 0.38), transparent 54%);
  content: "";
}

.hero-slideshow,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slideshow {
  z-index: -2;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  display: grid;
  gap: 16px;
  width: min(100%, calc(var(--max) + 96px));
  margin: 0 auto;
  padding: clamp(38px, 8vw, 86px) 18px 8vh;
  color: white;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.intro-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.02;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.6;
}

.hero-actions,
.donate {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: white;
}

.intro-band,
.section,
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: 18px;
  padding-left: 18px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.intro-band .kicker {
  color: var(--green);
}

.intro-band h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
}

.intro-band p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading .eyebrow,
.split-copy .eyebrow,
.contact-copy .eyebrow,
.donate .eyebrow {
  color: var(--red);
}

.section h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card,
.blog-list article,
.info-grid article,
.board-grid article {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(20, 45, 40, 0.1);
}

.program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-card div,
.blog-list article,
.info-grid article,
.board-grid article {
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.program-card h3,
.blog-list h3,
.info-grid h3,
.board-grid h2 {
  margin: 0;
  font-size: 1.2rem;
}

.program-card p,
.blog-list p,
.info-grid p,
.board-grid p,
.split-copy p,
.donate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.program-card a {
  color: var(--green-dark);
  font-weight: 900;
}

.text-link {
  color: var(--green-dark);
  font-weight: 900;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-grid a {
  color: var(--green-dark);
  font-weight: 900;
}

.blog-list a {
  color: var(--green-dark);
  font-weight: 900;
}

.info-note {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.info-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.donorbox-wrap {
  display: grid;
  justify-items: center;
  margin-top: 24px;
}

.donorbox-wrap iframe {
  width: min(100%, 500px);
  border: 0;
  background: white;
}

.program-card.emphasis {
  background:
    linear-gradient(135deg, rgba(6, 120, 103, 0.94), rgba(7, 79, 69, 0.98)),
    var(--green);
  color: white;
}

.program-card.emphasis p,
.program-card.emphasis a {
  color: rgba(255, 255, 255, 0.9);
}

.split,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.split-copy,
.contact-copy,
.history-panel,
.contact-form,
.donate {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.split-copy,
.contact-copy,
.history-panel,
.contact-form {
  padding: clamp(22px, 4vw, 34px);
}

.split-copy,
.contact-copy {
  display: grid;
  gap: 15px;
}

.history-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.history-panel div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.history-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.history-panel dt {
  color: var(--green-dark);
  font-size: 1.05rem;
  font-weight: 950;
}

.history-panel dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.lineage-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.lineage-section.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
}

.lineage-section.reverse .lineage-image {
  order: 2;
}

.lineage-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.lineage-copy {
  display: grid;
  gap: 15px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lineage-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.lineage-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.lineage-copy .life-dates {
  color: var(--green-dark);
  font-weight: 900;
}

address {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

address strong,
address a {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  outline: none;
}

.contact-form input {
  min-height: 46px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 138px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 120, 103, 0.14);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.donate {
  justify-content: space-between;
  padding: clamp(24px, 5vw, 40px);
  background:
    linear-gradient(90deg, rgba(184, 50, 38, 0.11), rgba(240, 180, 60, 0.18)),
    var(--paper);
}

.donate div {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.confirmation-page {
  min-height: calc(100svh - 86px);
  display: grid;
  align-items: center;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-list img {
  width: calc(100% + 40px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: -20px -20px 4px;
  object-fit: cover;
}

.board-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 6vw, 5.3rem);
  line-height: 0.98;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.board-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.blog-list span,
.board-grid span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 120, 103, 0.1);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.blog-list time {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
}

.sort-note {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 120, 103, 0.1);
  color: var(--green-dark) !important;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-nav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: rgba(6, 120, 103, 0.1);
  color: var(--green-dark);
  outline: none;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 950;
}

.chat-status {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #42d889;
  box-shadow: 0 0 0 3px rgba(66, 216, 137, 0.22);
}

.chat-panel {
  display: none;
  width: min(360px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.chat-widget.is-open .chat-panel {
  display: grid;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--green-dark);
  color: white;
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-message {
  margin: 0;
  padding: 16px 16px 0;
  color: var(--muted);
  line-height: 1.5;
}

.chat-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.chat-form label {
  display: grid;
  gap: 7px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  outline: none;
}

.chat-form input {
  min-height: 42px;
  padding: 0 10px;
}

.chat-form textarea {
  min-height: 104px;
  padding: 10px;
  resize: vertical;
}

.chat-form input:focus,
.chat-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 120, 103, 0.14);
}

@media (max-width: 860px) {
  .top-contact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 14px;
  }

  .site-header {
    min-height: 76px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
  }

  .nav-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
  }

  .nav-group > a {
    justify-content: flex-start;
  }

  .submenu-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }

  .submenu-toggle::before {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--green-dark);
    border-bottom: 2px solid var(--green-dark);
    transform: rotate(45deg) translateY(-2px);
    content: "";
  }

  .submenu-toggle[aria-expanded="true"]::before {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible {
    background: rgba(6, 120, 103, 0.1);
    outline: none;
  }

  .nav-submenu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    min-width: 0;
    margin: 2px 0 4px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid rgba(6, 120, 103, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-submenu::before {
    content: none;
  }

  .nav-group:hover .nav-submenu {
    display: none;
  }

  .nav-group.is-open .nav-submenu,
  .nav-group:focus-within .nav-submenu {
    display: grid;
  }

  .nav a {
    justify-content: flex-start;
    border-radius: 6px;
  }

  .hero {
    min-height: calc(92svh - 76px);
  }

  .page-hero {
    min-height: 420px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(7, 79, 69, 0.92) 0%, rgba(7, 79, 69, 0.68) 55%, rgba(7, 79, 69, 0.08) 100%);
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .intro-band,
  .program-grid,
  .info-grid,
  .split,
  .contact,
  .blog-list,
  .board-grid,
  .lineage-section,
  .lineage-section.reverse {
    grid-template-columns: 1fr;
  }

  .lineage-section.reverse .lineage-image {
    order: 0;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .button {
    width: 100%;
  }

  .site-footer,
  .donate {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .chat-toggle {
    width: 100%;
  }

  .chat-panel {
    width: 100%;
  }
}

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

  .hero-slide {
    transform: none !important;
  }
}
