:root {
  --forest: #1c3326;
  --forest-deep: #101c16;
  --sage: #5f7a5c;
  --gold: #c9a24a;
  --gold-dark: #a88432;
  --cream: #efe6d2;
  --paper: #f7f1e3;
  --ink: #1d2a22;
  --muted: #5a675c;
  --line: #d9ccb4;
  --bark: #6a4e35;
  --shadow: 0 18px 50px rgba(16, 28, 22, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --page-width: 1200px;
  --content-width: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold-dark); }
.container { width: min(var(--page-width), calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; }

.site-header {
  background: var(--forest-deep);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  width: 100%;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img {
  width: 58px; height: 58px; border-radius: 8px; object-fit: contain;
  background: transparent; box-shadow: none;
}
.brand strong { display: block; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .03em; white-space: nowrap; }
.brand small { display: block; opacity: .8; font-size: .68rem; letter-spacing: .08em; text-transform: lowercase; }
.main-nav { display: flex; align-items: center; gap: 2px 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { color: #e8e0d0; font-size: .84rem; font-weight: 500; padding: 8px 10px; }
.main-nav a.is-active:not(.btn), .main-nav a:hover:not(.btn) { color: var(--gold); }
.has-sub { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--paper); padding: 10px; border-radius: 12px; box-shadow: var(--shadow);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: grid; }
.submenu a { color: var(--ink) !important; padding: 8px 10px; border-radius: 8px; }
.submenu a:hover { background: var(--cream); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; }
.nav-cta {
  margin-left: 8px;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
  padding: 10px 38px 9px;
  min-width: 168px;
  height: auto;
}
.nav-cta-main { letter-spacing: .1em; }
.nav-cta-sub,
.nav-cta:hover .nav-cta-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: .04em;
  color: var(--forest-deep) !important;
}

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 600; cursor: pointer;
  font-family: inherit; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem;
}
.btn-gold { background: var(--gold); color: #fff !important; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); color: #fff !important; border-color: var(--gold-dark); }
.btn-forest { background: var(--forest); color: #fff !important; border-color: var(--forest); }
.btn-forest:hover { background: var(--gold); color: #fff !important; border-color: var(--gold); }
.btn-outline { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.7); }
.hero-actions .btn {
  box-shadow:
    0 0 0 1px rgba(18, 28, 16, .5),
    0 8px 22px rgba(10, 16, 8, .48);
  text-shadow: 0 1px 0 rgba(12, 18, 10, .75);
}
.hero-actions .btn-outline {
  background: rgba(18, 28, 16, .78);
  color: #f4eee0 !important;
  border: 1.5px solid #f4eee0;
}
.hero-actions .btn-gold {
  background: var(--gold-dark);
  color: #fff !important;
  border: 1.5px solid #f1e4c0;
}
.hero-actions .btn-gold:hover {
  background: rgba(18, 28, 16, .78);
  color: #f4eee0 !important;
  border-color: #f4eee0;
}
.hero-actions .btn-outline:hover {
  background: var(--gold-dark);
  color: #fff !important;
  border-color: #f1e4c0;
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 78px);
  background: #2a3824;
  overflow: hidden;
}
.hero-stage .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 42%, rgba(36,44,24,.18) 64%, rgba(28,36,18,.42) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  margin-left: auto;
  width: min(52%, 620px);
  padding: 8vh 6vw 12vh 2vw;
  text-align: right;
  color: #e7e1d2;
}
.hero-copy h1,
.hero-quote,
.hero-cite {
  text-shadow:
    -1px -1px 0 rgba(18, 28, 16, .92),
     1px -1px 0 rgba(18, 28, 16, .92),
    -1px  1px 0 rgba(18, 28, 16, .92),
     1px  1px 0 rgba(18, 28, 16, .92),
    -2px  0   0 rgba(18, 28, 16, .7),
     2px  0   0 rgba(18, 28, 16, .7),
     0   -2px 0 rgba(18, 28, 16, .7),
     0    2px 0 rgba(18, 28, 16, .7),
     0    3px 10px rgba(10, 16, 8, .55);
}
.hero-copy h1 {
  color: #e0b14a;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: .04em;
  margin: 0 0 18px;
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: #dce6d8;
  line-height: 1.45;
  margin: 0;
}
.hero-cite {
  display: block;
  margin-top: 14px;
  color: #e0b14a;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: #f4eee0;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 1;
  text-shadow:
    -1px -1px 0 rgba(18, 28, 16, .92),
     1px -1px 0 rgba(18, 28, 16, .92),
    -1px  1px 0 rgba(18, 28, 16, .92),
     1px  1px 0 rgba(18, 28, 16, .92),
    -2px  0   0 rgba(18, 28, 16, .7),
     2px  0   0 rgba(18, 28, 16, .7),
     0   -2px 0 rgba(18, 28, 16, .7),
     0    2px 0 rgba(18, 28, 16, .7),
     0    3px 10px rgba(10, 16, 8, .55);
  filter: drop-shadow(0 3px 8px rgba(10, 16, 8, .55));
}
.hero-scroll:hover { color: var(--gold); }
.hero-scroll::after {
  content: "";
  display: block;
  width: 10px; height: 10px;
  margin: 8px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hero-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}
#tovabb { scroll-margin-top: 96px; }
.muted { color: var(--muted); }

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 48px 0 36px;
}
.hero-photo img {
  width: 100%; height: 420px; object-fit: cover; object-position: 50% 40%;
  border-radius: 28px; box-shadow: var(--shadow);
}
.eyebrow { color: var(--gold-dark); letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
h1, h2, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--forest-deep); }
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin: 10px 0 18px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 12px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.hero-photo {
  position: relative;
}
.hero-badge {
  position: absolute; right: -10px; bottom: 28px; background: var(--forest); color: #fff;
  padding: 16px 18px; border-radius: 18px; font-size: .85rem; max-width: 180px;
}

.stats {
  display: table;
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border-spacing: 16px 0;
  margin: 40px auto 48px;
  box-sizing: border-box;
}
.stat {
  display: table-cell;
  width: 25%;
  vertical-align: top;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 10px;
  text-align: center;
}
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--forest); min-height: 2.2rem; }
.stat span { display: block; color: var(--muted); font-size: .92rem; }

.page-hero { padding: 28px 0 8px; }
.page-hero h1 { margin: 6px 0 10px; }
.section { padding: 16px 0 40px; }
.center { text-align: center; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 12px 0 28px; }
.divider::before, .divider::after { content: ""; height: 1px; width: 72px; background: var(--gold); }

.cards-4, .cards-2, .cards-3 { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  box-shadow: 0 10px 30px rgba(29,58,48,.05);
}
.card h3 { font-family: var(--serif); font-size: 1.45rem; margin: 8px 0; }
.card-photo { padding: 0 0 20px; overflow: hidden; }
.card-photo img { width: 100%; height: 150px; object-fit: cover; }
.card-photo h3, .card-photo p, .card-photo .btn { margin-left: 20px; margin-right: 20px; }
.card-photo .btn { margin-top: 4px; }
.program-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.icon-circle {
  width: 72px; height: 72px; border-radius: 50%; background: #efe6d4; display: grid; place-items: center;
  color: var(--gold-dark); margin-bottom: 8px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-intro { grid-template-columns: 1.15fr .85fr; align-items: start; }
.contact-page {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start;
  padding: 28px 0 32px;
}
.contact-page h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 4px 0 10px; }
.contact-page .lede { margin: 0 0 16px; font-size: 1rem; }
.contact-page .contact-list { margin-top: 10px; gap: 8px; }
.form-card { padding: 18px 20px; }
.form-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.consent input { width: auto; margin-top: 4px; }
.portrait {
  width: min(100%, 340px); height: 380px; object-fit: cover; object-position: 50% 12%;
  border-radius: 28px; box-shadow: var(--shadow); justify-self: center;
}
.about-art {
  width: 100%; max-height: 420px; aspect-ratio: 1;
  object-fit: cover; border-radius: 28px; box-shadow: var(--shadow);
  background: #fffdf8;
}
.card-art {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; margin-top: 14px; background: #f6f1e8;
}
.values { display: grid; gap: 16px; }
.value { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.value i { color: var(--gold-dark); }

.cta-band {
  background: linear-gradient(135deg, var(--forest), var(--forest-deep));
  color: #fff; padding: 56px 0; margin-top: 20px;
}
.cta-band h2, .cta-band p { color: #fff; }
.prose { max-width: var(--content-width); margin: 0 auto; }
.prose p, .prose li { font-size: 1.05rem; }
.prose h2 { margin-top: 36px; }
.page-hero.narrow, .content-narrow { max-width: var(--content-width); margin-left: auto; margin-right: auto; }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-link {
  display: flex; align-items: center; gap: 10px;
  color: inherit;
}
.contact-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--gold-dark); }
.site-footer .contact-link { color: #efe6d4; }
.site-footer .contact-icon { color: var(--gold); }

form { display: grid; gap: 8px; }
form input[type="hidden"] { display: none; }
label { font-weight: 600; font-size: .9rem; }
input, textarea, select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
textarea { min-height: 88px; resize: vertical; }
.post-body { min-height: 280px; font-family: var(--sans); line-height: 1.5; }
.post-cover {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: 22px; margin: 0 0 28px; box-shadow: var(--shadow);
}

.calendar-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 20px; overflow: hidden; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; }
.cal-dow { text-align: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 0; min-width: 0; }
.cal-day {
  min-height: 78px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  background: #fff; cursor: pointer; overflow: hidden; text-align: left;
}
.cal-day.is-muted { opacity: .4; }
.cal-day.is-today { outline: 2px solid var(--gold); }
.cal-day.is-selected { background: #f3ead8; }
.cal-day b { display: block; font-size: .9rem; }
.cal-pill {
  display: block; margin-top: 4px; font-size: .68rem; background: var(--forest); color: #fff;
  border-radius: 999px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.cal-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); margin-top: 6px; }
.event-list { display: grid; gap: 12px; margin-top: 20px; }
.event-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; }
.event-item time { color: var(--gold-dark); font-weight: 700; }

.flash { width: min(var(--page-width), calc(100% - 32px)); margin: 12px auto; padding: 12px 16px; border-radius: 12px; }
.flash-ok { background: #e7f4ea; color: #1d3a30; }
.flash-err { background: #f8e4e1; color: #7a2d24; }

.site-footer { background: var(--forest-deep); color: #efe6d4; padding: 32px 0 0; margin-top: 16px; }
.site-footer a, .site-footer h3 { color: #efe6d4; }
.site-footer .brand small, .site-footer p { color: #cfc3b0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 28px; padding-bottom: 28px; }
.footer-grid a, .footer-grid p { display: block; margin: 6px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between;
  width: min(var(--page-width), calc(100% - 32px)); margin: 0 auto; padding: 16px 0 24px; font-size: .9rem;
}

.admin-body { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f3eee4; }
.admin-nav { background: var(--forest-deep); color: #fff; padding: 24px 16px; display: grid; align-content: start; gap: 8px; }
.admin-nav a { color: #efe6d4; padding: 8px 10px; border-radius: 8px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-main { padding: 32px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { background: var(--cream); font-size: .85rem; }

@media (max-width: 900px) {
  .hero, .split, .about-intro, .contact-page, .cards-4, .cards-3, .cards-2, .footer-grid, .event-item, .admin-body { grid-template-columns: 1fr; }
  .hero-photo img { height: 280px; }
  .hero-stage { min-height: calc(100svh - 78px); }
  .hero-stage::after {
    background: linear-gradient(180deg, transparent 36%, rgba(32,40,20,.55) 82%);
  }
  .hero-copy {
    width: 100%;
    margin: 0;
    text-align: center;
    padding: 42vh 22px 88px;
  }
  .hero-actions { justify-content: center; }
  .portrait { height: 320px; width: 100%; max-width: 280px; }
  .stats { border-spacing: 10px 0; }
  .stat { padding: 16px 8px; }
  .stat b { font-size: 1.6rem; }
  .stat span { font-size: .78rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px; background: var(--forest-deep);
    flex-direction: column; padding: 16px 20px 24px; align-items: flex-start;
  }
  .main-nav.is-open { display: flex; }
  .submenu { position: static; display: grid; background: transparent; box-shadow: none; padding: 0 0 0 12px; }
  .submenu a { color: #efe6d4 !important; }
  .cal-day { min-height: 48px; padding: 4px; }
  .cal-pill { display: none; }
  .cal-dot { display: block; }
  .admin-nav { grid-auto-flow: column; overflow-x: auto; }
}
