@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700;800&family=Lora:wght@400;500;600;700&family=Alegreya+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --cream: #f7f0e4;
  --paper: #fffaf1;
  --sand: #e6d3b8;
  --clay: #b97952;
  --moss: #425943;
  --forest: #223528;
  --sage: #91a381;
  --ink: #1f2a22;
  --muted: #667263;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(36, 46, 35, 0.14);
  --radius-large: 32px;
  --radius-medium: 20px;
  --radius-small: 12px;
  --max-width: 1160px;
  --font-display: "EB Garamond", Garamond, Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-ui: "Alegreya Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(145, 163, 129, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(185, 121, 82, 0.14), transparent 25rem),
    linear-gradient(rgba(34, 53, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 53, 40, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--forest);
  font-family: var(--font-display);
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(34, 53, 40, 0.2);
}

.button-small {
  min-height: 46px;
  padding: 0.68rem 1.22rem;
  font-size: 1rem;
}

.button-ghost {
  background: transparent;
  color: var(--forest);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.35rem;
  background: rgba(247, 240, 228, 0.86);
  border-bottom: 1px solid rgba(34, 53, 40, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
  font-family: var(--font-ui);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: max-content;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: block;
}

.brand strong {
  display: block;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}

.brand small {
  display: block;
  margin-top: 0.24rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  color: var(--forest);
  font-size: 1.08rem;
}

.nav-links a:not(.button) {
  opacity: 0.78;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links a:not(.button):hover,
.nav-links a:not(.button):focus-visible {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(34, 53, 40, 0.16);
  border-radius: 999px;
  background: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--forest);
}

.section-pad {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0;
}

.section-light,
.section-band {
  width: 100%;
  max-width: none;
  padding-left: max(1rem, calc((100% - var(--max-width)) / 2));
  padding-right: max(1rem, calc((100% - var(--max-width)) / 2));
}

.section-light {
  background: rgba(255, 250, 241, 0.58);
  border-block: 1px solid rgba(34, 53, 40, 0.08);
}

.section-band {
  background: var(--forest);
  color: var(--paper);
}

.section-band h2,
.section-band h3 {
  color: var(--paper);
}

.section-band .eyebrow {
  color: var(--sand);
}

.eyebrow,
.card-label,
.detail-card span,
.pillar-card span {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--clay);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 900;
}

.hero {
  width: min(1500px, calc(100% - 2rem));
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  overflow: visible;
}

.hero-copy {
  max-width: 650px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-card {
  position: relative;
}

.hero-logo-card {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  overflow: visible;
}

.hero-logo {
  width: min(100%, 720px);
  max-height: min(78vh, 760px);
  margin: 0 auto;
  object-fit: contain;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 390px);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 3.2rem;
}

.section-heading-row .section-heading {
  margin-bottom: 0;
}

.section-heading-row-centered {
  max-width: 1120px;
  margin-inline: auto;
}

.section-heading-row-local {
  margin-bottom: 1.5rem;
}

.section-heading-row-local h2 {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.image-hover-parent {
  position: relative;
}

.image-hover-parent:focus {
  outline: none;
}

.image-hover-parent:focus-visible {
  outline: 3px solid rgba(145, 163, 129, 0.55);
  outline-offset: 6px;
}

.image-hover-caption {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 20;
  width: min(340px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(34, 53, 40, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.74);
  box-shadow: 0 16px 34px rgba(34, 53, 40, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35rem);
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms, transform 180ms ease;
}

.image-hover-parent:hover .image-hover-caption,
.image-hover-parent:focus .image-hover-caption,
.image-hover-parent:focus-within .image-hover-caption {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 2s, 2s, 2s;
}

.image-hover-caption strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--forest);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.image-hover-caption span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.image-hover-caption-small {
  left: 0;
  right: auto;
  width: min(300px, calc(100vw - 2rem));
}

.section-spot {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(34, 53, 40, 0.1);
  border-radius: var(--radius-large);
  background: rgba(255, 250, 241, 0.7);
  box-shadow: 0 16px 34px rgba(34, 53, 40, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, filter 160ms ease;
}

.section-spot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.section-spot-small {
  max-width: 300px;
  justify-self: end;
}

.section-spot-large {
  width: min(430px, 100%);
}

.section-band .section-spot {
  background: rgba(255, 250, 241, 0.1);
  border-color: rgba(255, 250, 241, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.section-band .section-spot img {
  opacity: 0.96;
}

.program-grid,
.pillar-grid,
.activity-list {
  display: grid;
  gap: 1rem;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pillar-grid {
  grid-template-columns: repeat(5, 1fr);
}

.activity-list {
  grid-template-columns: repeat(3, 1fr);
}

.detail-card,
.pillar-card,
.activity-card,
.info-card,
.application-card {
  border: 1px solid rgba(34, 53, 40, 0.1);
  border-radius: var(--radius-medium);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 16px 34px rgba(34, 53, 40, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, filter 160ms ease;
}

.detail-card:hover,
.info-card:hover,
.application-card:hover,
.section-spot:hover,
.detail-card:focus-within,
.info-card:focus-within,
.application-card:focus-within,
.section-spot:focus-within {
  transform: translateY(-3px);
  background: rgba(255, 250, 241, 0.92);
  border-color: rgba(145, 163, 129, 0.58);
  box-shadow:
    0 18px 44px rgba(34, 53, 40, 0.12),
    0 0 0 6px rgba(145, 163, 129, 0.11),
    0 0 34px rgba(145, 163, 129, 0.28);
}

.pillar-card:hover,
.pillar-card:focus-within {
  transform: translateY(-3px);
  background: rgba(255, 250, 241, 0.9);
  border-color: rgba(145, 163, 129, 0.58);
  box-shadow:
    0 18px 44px rgba(34, 53, 40, 0.12),
    0 0 0 6px rgba(145, 163, 129, 0.12),
    0 0 34px rgba(145, 163, 129, 0.32);
}

.activity-card:hover,
.activity-card:focus-within {
  transform: translateY(-3px);
  background: rgba(255, 250, 241, 0.14);
  border-color: rgba(214, 185, 139, 0.42);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.2),
    0 0 0 6px rgba(145, 163, 129, 0.1),
    0 0 34px rgba(182, 190, 135, 0.22);
}

.detail-card {
  min-height: 250px;
  padding: 1.5rem;
}

.pillar-card {
  min-height: 300px;
  padding: 1.35rem;
}

.activity-card {
  padding: 2rem;
  background: rgba(255, 250, 241, 0.08);
  border-color: rgba(255, 250, 241, 0.18);
}

.info-card,
.application-card {
  padding: 2rem;
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.detail-card span,
.card-label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.pillar-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  background: rgba(145, 163, 129, 0.2);
  color: var(--moss);
  font-weight: 900;
}

.detail-card h3,
.pillar-card h3,
.application-card h3 {
  margin-bottom: 0.8rem;
}

.detail-card p,
.pillar-card p,
.application-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.activity-card p {
  margin-top: 0.8rem;
  color: rgba(255, 250, 241, 0.78);
}

.family-panel,
.leader-wrap,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 4rem;
  align-items: center;
}

.family-panel p,
.leader-wrap p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.family-panel h2,
.leader-wrap h2,
.contact-copy h2 {
  margin-bottom: 1.3rem;
}

.info-card h3 {
  margin-bottom: 1rem;
}

.info-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.info-card li + li {
  margin-top: 0.65rem;
}

.leader-wrap {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.contact-section {
  align-items: start;
}

.contact-banner-row {
  grid-column: 1 / -1;
  width: 100vw;
  margin: -1.5rem calc(50% - 50vw) 3rem;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}

.contact-banner-row::before,
.contact-banner-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: clamp(2.25rem, 7vw, 6rem);
  pointer-events: none;
}

.contact-banner-row::before {
  top: 0;
  background: linear-gradient(to bottom, var(--cream) 0%, rgba(247, 240, 228, 0.82) 34%, rgba(247, 240, 228, 0) 100%);
}

.contact-banner-row::after {
  bottom: 0;
  background: linear-gradient(to top, var(--cream) 0%, rgba(247, 240, 228, 0.82) 34%, rgba(247, 240, 228, 0) 100%);
}

.enrollment-banner-wrap {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: var(--cream);
  box-shadow: none;
  cursor: pointer;
}

.enrollment-banner-wrap::before,
.enrollment-banner-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(2rem, 5vw, 5rem);
  pointer-events: none;
}

.enrollment-banner-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--cream) 0%, rgba(247, 240, 228, 0.68) 35%, rgba(247, 240, 228, 0) 100%);
}

.enrollment-banner-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--cream) 0%, rgba(247, 240, 228, 0.68) 35%, rgba(247, 240, 228, 0) 100%);
}

.enrollment-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  transition: filter 180ms ease, transform 180ms ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.enrollment-banner-wrap:hover .enrollment-banner,
.enrollment-banner-wrap:focus-visible .enrollment-banner {
  filter: saturate(1.04) contrast(1.02);
}

.application-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(34, 53, 40, 0.1);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  justify-self: end;
  color: var(--forest);
  font-family: var(--font-ui);
  font-weight: 800;
}

.site-version {
  justify-self: start;
  color: rgba(102, 114, 99, 0.7);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.webmaster-credit {
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.85fr);
    gap: 2.25rem;
  }

  .hero-logo {
    width: min(100%, 640px);
  }
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 1rem;
    font-size: 1rem;
  }

  .button-small {
    min-height: 44px;
    padding: 0.62rem 1rem;
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

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

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

@media (max-width: 1020px) {
  .hero,
  .family-panel,
  .leader-wrap,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-logo-card {
    justify-content: center;
  }

  .hero-logo {
    width: min(100%, 680px);
    max-height: none;
  }

  .section-heading-row {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  }

  .program-grid,
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-list,
  .two-column {
    grid-template-columns: 1fr;
  }

  .info-card {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 1.15rem;
    border: 1px solid rgba(34, 53, 40, 0.1);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--shadow);
    font-size: 1.12rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.2rem;
  }

  .nav-links .button {
    margin-top: 0.35rem;
  }

  .section-pad {
    padding: 4.5rem 0;
  }

  .section-light,
  .section-band {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  h1,
  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  h2,
  .section-heading h2 {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }

  .hero-logo {
    width: min(100%, 560px);
    max-height: none;
  }

  .contact-banner-row {
    margin-top: -0.75rem;
    margin-bottom: 2rem;
  }

  .image-hover-caption {
    top: calc(100% + 0.5rem);
    left: 0;
    right: auto;
  }

  .section-heading-row,
  .section-heading-row-centered,
  .section-heading-row-local {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .section-heading-row-centered {
    margin-inline: 0;
  }

  .section-spot,
  .section-spot-small,
  .section-spot-large {
    width: min(340px, 100%);
    max-width: 340px;
    justify-self: start;
  }

  .program-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    min-height: auto;
  }

  .leader-wrap {
    gap: 2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .site-footer a {
    justify-self: start;
  }
}
