:root {
  --navy: #0e1c36;
  --navy-deep: #081226;
  --ivory: #f7f1e6;
  --ivory-deep: #efe6d4;
  --card: #fffdf8;
  --gold: #c4a15a;
  --gold-deep: #8d6b2a;
  --ink: #1c2430;
  --muted: #5c6573;
  --line: rgba(196, 161, 90, 0.45);
  --shadow: 0 16px 40px rgba(8, 18, 38, 0.12);
  --max: 70rem;
  --header: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-deep);
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3 {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--card);
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  z-index: 30;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 18, 38, 0.96);
  border-bottom: 1px solid var(--gold);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ivory);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
}

.brand-name {
  font-size: 0.95rem;
  max-width: 11rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--navy-deep);
  padding: 0.5rem 1.25rem 1rem;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-toggle:checked ~ .site-nav,
.nav-toggle:focus-within ~ .site-nav {
  display: flex;
}

.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(196, 161, 90, 0.2);
}

.site-nav .btn-donate {
  margin-top: 0.8rem;
  text-align: center;
}

.charity-note {
  margin: 0.35rem 0 0;
  color: #e8d7a8;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.btn-donate,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.btn-donate {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-donate:hover,
.btn-donate:focus-visible {
  background: #e4c77a;
  color: var(--navy-deep);
}

.btn-secondary {
  border: 1px solid var(--gold);
  color: var(--ivory);
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--gold);
  color: var(--navy-deep);
}

.hero {
  position: relative;
  min-height: 39vh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 40%;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(8, 18, 38, 0.25) 0%, rgba(8, 18, 38, 0.88) 78%),
    linear-gradient(90deg, rgba(8, 18, 38, 0.75), rgba(8, 18, 38, 0.15));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.6rem 0 1.4rem;
}

.script-line {
  margin: 0 0 0.35rem;
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  color: #f0d48a;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  color: #fffdf8;
  max-width: 12ch;
}

.hero-lead {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 18rem;
}

.temp-note,
.fine-print {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero .temp-note {
  margin: 1.25rem 0 0;
  color: #e6dcc6;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: var(--header);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section-ivory {
  background: var(--ivory);
}

.section-white {
  background: #fffdf8;
}

.section-navy {
  background: var(--navy);
  color: var(--ivory);
}

.section-navy h2,
.section-navy h3 {
  color: #f0d48a;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.section-navy .eyebrow {
  color: var(--gold);
}

.lede {
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.blurb {
  max-width: 40rem;
}

.event-grid,
.split,
.visit-grid {
  display: grid;
  gap: 1.75rem;
}

.visit-grid {
  gap: 1rem 1.5rem;
}

.visit-main {
  display: grid;
  gap: 0.85rem;
}

.visit-note p {
  margin: 0.35rem 0 0;
}

.visit-photo {
  margin: 0;
}

.schedule {
  list-style: none;
  margin: 1.1rem 0 1.2rem;
  padding: 0.2rem 0;
  max-width: 18rem;
  background: var(--card);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.schedule li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
}

.schedule li + li {
  border-top: 1px solid var(--ivory-deep);
}

.schedule .time {
  font-weight: 700;
}

.flyer-frame,
.photo-slot {
  min-height: 16rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 28, 54, 0.04), rgba(14, 28, 54, 0.02)),
    var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
}

.flyer-frame strong,
.photo-slot strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-family: Palatino, Georgia, serif;
  font-size: 1.35rem;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.week-event + .week-event {
  margin-top: 1.25rem;
}

#event {
  padding-top: 2.6rem;
  padding-bottom: 2.8rem;
}

#event h2 {
  margin: 0 0 1.75rem;
  text-align: left;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
}

#event h2::after {
  content: "";
  display: block;
  width: min(18rem, 55%);
  height: 3px;
  margin: 0.9rem 0 0;
  background: var(--gold);
  border-radius: 999px;
}

.event-date {
  margin: 0 0 1.15rem;
  text-align: left;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.event-side {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.event-row {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
}

.week-event .event-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  gap: 1.15rem;
  width: auto;
  height: 100%;
  margin: 0;
}

.week-event .event-copy p,
.event-title {
  margin: 0;
}

.week-event .event-copy p {
  font-size: 1.25rem;
  line-height: 1.45;
}

.event-title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.week-event .event-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.15rem;
  width: min(100%, 18rem);
  height: 100%;
  margin: 0;
}

.week-event .event-actions .btn-donate,
.week-event .event-actions .btn-whatsapp,
.week-event .event-actions .btn-share {
  width: 100%;
}

.week-event .event-flyer {
  width: min(14.5rem, 100%);
  margin: 0;
}

.flyer-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

.event-flyer figcaption {
  margin: 0;
  padding: 0.45rem 0.6rem 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.flyer-lightbox {
  position: fixed;
  border: 0;
  padding: 2.75rem 0 0;
  background: transparent;
  overflow: visible;
}

.flyer-lightbox::backdrop {
  background: rgba(8, 18, 38, 0.84);
}

.flyer-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(36rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 4.5rem);
  border-radius: 12px;
}

.flyer-close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ivory);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.week-event-compact .event-flyer {
  width: min(9rem, 100%);
}

.week-event-compact .event-date {
  font-size: 1.25rem;
}

@media (min-width: 900px) {
  #event h2 {
    text-align: center;
  }

  #event h2::after {
    margin-right: auto;
    margin-left: auto;
  }

  .event-row {
    grid-template-columns: minmax(0, 1.2fr) 16rem minmax(13rem, 0.9fr);
    align-items: stretch;
    justify-items: stretch;
    gap: 1.5rem 2.25rem;
  }

  .event-side {
    position: relative;
    height: 100%;
  }

  .week-event .event-date {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
  }

  .week-event .event-copy {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: auto;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .week-event .event-actions {
    align-self: center;
    justify-content: center;
    height: auto;
    gap: 0.4rem;
    width: 100%;
  }

  .week-event .event-flyer {
    position: relative;
    width: 16rem;
  }

  .week-event .event-flyer figcaption {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .week-event-compact .event-row {
    grid-template-columns: minmax(0, 1.15fr) 9rem minmax(11rem, 0.7fr);
  }

  .week-event-compact .event-flyer {
    width: 9rem;
  }
}

.flyer-grid .flyer-card img {
  height: 8.5rem;
  object-fit: cover;
  object-position: top center;
}

.flyer-grid .flyer-card h3 {
  font-size: 1rem;
  margin: 0.55rem 0.75rem 0.15rem;
}

.flyer-grid .flyer-card p {
  margin: 0 0.75rem 0.75rem;
  font-size: 0.82rem;
}

.address-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.wa-logo {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.btn-whatsapp,
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-whatsapp {
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #25d366;
  color: #07331a;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #1ebe5b;
  color: #07331a;
}

.wa-link .wa-logo {
  color: #25d366;
}

.share-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.btn-share[hidden],
.btn-whatsapp[hidden] {
  display: none;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.card-grid,
.video-grid,
.purpose-grid,
.photo-grid,
.flyer-grid {
  display: grid;
  gap: 1rem;
}

.purpose-grid {
  grid-template-columns: 1fr 1fr;
}

.card-grid {
  margin-bottom: 2.5rem;
}

address {
  font-style: normal;
}

#upcoming h3 {
  margin-top: 0.5rem;
}

.event-card,
.purpose-card,
.video-card,
.photo-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-card,
.purpose-card {
  padding: 0.8rem 0.75rem 0.9rem;
}

a.purpose-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.event-card h3,
.purpose-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
}

.video-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.video-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--navy-deep);
}

.video-card span {
  display: block;
  padding: 0 1rem;
}

.video-title {
  padding-top: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.video-meta {
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.purpose-card p,
.event-card p {
  margin: 0.3rem 0 0;
}

.support-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: 16px;
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
  box-shadow: var(--shadow);
  min-height: 9.5rem;
}

.support-cta-kicker {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-cta-title {
  font-family: Palatino, Georgia, serif;
  font-size: 2.4rem;
  line-height: 1.1;
  color: #fffdf8;
}

.support-cta-note {
  max-width: 36rem;
  color: #e6dcc6;
}

.support-cta:hover,
.support-cta:focus-visible {
  background: var(--navy-deep);
  color: var(--ivory);
}

.coming-soon {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--ivory-deep);
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purpose-soon:hover {
  transform: none;
}

.channel-link {
  margin: 1.25rem 0 0;
}

.section-navy .channel-link a {
  color: #f0d48a;
}

.map-frame {
  min-height: 18rem;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
}

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

.photo-card figcaption,
.flyer-card figcaption {
  padding: 0.75rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.flyer-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flyer-card img {
  width: 100%;
  display: block;
}

.event-flyer {
  margin: 0;
}

.flyer-card h3 {
  margin: 0.8rem 1rem 0.2rem;
  color: var(--navy);
}

.flyer-card p {
  margin: 0 1rem 1rem;
}

.connect-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.site-footer {
  background: var(--navy-deep);
  color: #e6dcc6;
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer a {
  color: #f0d48a;
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.footer-note {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: #b7ad9a;
}

.event-card:hover,
.purpose-card:hover,
.video-card:hover,
.flyer-card:hover {
  transform: translateY(-3px);
}

.event-card,
.purpose-card,
.video-card,
.flyer-card,
.btn-donate,
.btn-secondary,
.support-cta {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .brand-name {
    max-width: none;
    font-size: 1.05rem;
  }

  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem 1rem;
    background: transparent;
    padding: 0;
  }

  .site-nav a {
    border: 0;
    padding: 0.3rem 0;
    font-size: 0.95rem;
  }

  .site-nav .btn-donate {
    margin: 0 0 0 0.4rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
  }

  .donate-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .hero-actions {
    flex-direction: row;
    max-width: none;
  }

  .event-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .visit-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .visit-grid .map-frame {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .visit-grid .map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .visit-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .visit-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: minmax(16rem, 28rem);
  }

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

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

  .photo-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1040px) {
  .purpose-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
