:root {
  --ink: #2a140e;
  --forest: #3d1810;
  --leaf: #d85a12;
  --gold: #ffcc00;
  --gold-deep: #e6a800;
  --cream: #fff3e6;
  --paper: #fffaf4;
  --clay: #e25b16;
  --line: rgba(42, 20, 14, 0.12);
  --serif: "Baloo 2", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #120804;
}

body {
  margin: 0;
  color: #fff6ea;
  background: transparent;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -3rem;
  background:
    linear-gradient(180deg, rgba(10, 4, 2, 0.55) 0%, rgba(22, 9, 4, 0.28) 48%, rgba(8, 3, 1, 0.5) 100%),
    url("../images/amanecer.png") center bottom / cover no-repeat;
  filter: blur(8px);
  transform: scale(1.08);
}

img, iframe { max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 6vw;
  color: #fff6ea;
  background: rgba(42, 16, 10, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 0.9;
  color: var(--gold);
}

.brand small {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd978;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--leaf); }

.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: 5px auto;
  background: #fff6ea;
}

.hero {
  padding: 0 0 4.5rem;
  color: #fff6ea;
  background: transparent;
}

.hero-mark {
  margin: 0;
  background: #2a100c;
}

.hero-mark img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .hero-mark {
    height: calc(100vh - 4rem);
    overflow: hidden;
  }

  .hero-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
  }
}

.hero-body {
  padding: 2.2rem 6vw 0;
  text-align: center;
}

.hero-body .lede,
.hero-body .verse {
  margin-left: auto;
  margin-right: auto;
}

.hero-body .hero-actions { justify-content: center; }

.eyebrow, .kicker {
  margin: 0 0 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.kicker { color: var(--clay); }
.kicker-light { color: var(--gold); }

.lede {
  max-width: 34rem;
  margin: 1.15rem 0 0;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
}

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffe14a; }
.btn-ink { background: var(--forest); color: var(--gold); }
.btn-ink:hover { background: #5a2418; }
.btn-ghost {
  color: var(--cream);
  border: 1px solid rgba(246, 241, 232, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.verse {
  margin: 4.5rem 0 0;
  max-width: 38rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 241, 232, 0.25);
}

.verse blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
}

.verse figcaption {
  margin-top: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}

.identity, .visit, .social, .schedule, .location, .events, .group-home, .group-block {
  scroll-margin-top: 5.2rem;
}

.identity, .visit, .social, .events, .group-home {
  margin: 1.15rem clamp(0.75rem, 3vw, 2rem);
  border-radius: 1.6rem;
  background: rgba(255, 248, 240, 0.96);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.identity, .visit, .social {
  padding: 5.5rem 6vw;
}

.identity-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.beliefs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.beliefs li {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) 1fr;
  gap: 1.2rem 2rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.beliefs li:last-child { border-bottom: 1px solid var(--line); }

.beliefs h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
}

.beliefs cite {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gold-deep);
}

.visit h3 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
}

.beliefs p, .visit p, .schedule-intro p, .social-head p, .identity-head p {
  margin: 0;
  max-width: 40rem;
}

.schedule {
  margin: 1.15rem clamp(0.75rem, 3vw, 2rem);
  padding: 3rem;
  border-radius: 1.6rem;
  color: var(--cream);
  border: 1px solid rgba(255, 204, 0, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.48);
  background:
    linear-gradient(160deg, rgba(228, 196, 138, 0.16), transparent 42%),
    rgba(42, 20, 14, 0.94);
}

.times {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.times li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 1rem;
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(246, 241, 232, 0.12);
}

.times time {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  white-space: nowrap;
}

.times time small {
  font-family: var(--sans);
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.times strong, .times span { display: block; }
.times span { color: rgba(246, 241, 232, 0.72); font-size: 0.92rem; }

.groups {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(246, 241, 232, 0.16);
}

.groups h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.groups ul {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.groups li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(246, 241, 232, 0.12);
}

.groups time {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  white-space: nowrap;
}

.groups time small {
  font-family: var(--sans);
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.groups a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.groups a:hover strong { color: var(--gold); }

.groups strong,
.groups span { display: block; }

.groups span {
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.92rem;
}

.schedule-note {
  margin: 1.4rem 0 0;
  color: rgba(246, 241, 232, 0.75);
  font-size: 0.95rem;
}

.events {
  padding: 5.5rem 6vw;
}

.events-head {
  max-width: 40rem;
}

.event-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.event-list article {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) 1fr;
  gap: 1.4rem 2rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.event-list img {
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: contain;
  display: block;
  border-radius: 0.9rem;
  background: #2a140e;
}

.event-list h3 {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.event-theme {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--leaf);
}

.event-list article p {
  margin: 0;
}

.event-cost {
  margin-top: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.group-home {
  padding: 5.5rem 6vw;
}

.group-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.group-jump a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.group-jump a:hover { border-color: var(--leaf); color: var(--leaf); }

.group-block { margin-top: 3rem; }

.group-block h3 {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.gallery { margin-top: 1.4rem; }

.pile { position: relative; }

.pile-cards {
  position: relative;
  height: 24rem;
  margin: 0 auto;
}

.polaroid {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: min(16rem, 78%);
  margin-left: calc(min(16rem, 78%) / -2);
  z-index: var(--i);
  background: #fffdf8;
  padding: 0.65rem 0.65rem 0.4rem;
  box-shadow: 0 14px 28px rgba(42, 20, 14, 0.28);
  transform: rotate(var(--tilt));
}

.polaroid-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--ink);
  cursor: inherit;
}

.pile.is-open .polaroid-zoom { cursor: zoom-in; }

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #efe6dc;
}

.polaroid figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 4.4rem;
  padding: 0.55rem 0.35rem 0.35rem;
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  line-height: 1.15;
}

.polaroid-ref {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--leaf);
}

.pile-hit,
.pile-close {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pile-hit[hidden],
.pile-close[hidden] {
  display: none;
}

.pile-hit {
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 0;
  background: transparent;
  color: transparent;
}

.pile-hit span {
  position: absolute;
  top: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  box-shadow: 0 8px 18px rgba(42, 20, 14, 0.28);
  white-space: nowrap;
}

.pile-close {
  display: block;
  margin: 1.2rem auto 0;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: var(--forest);
  color: var(--gold);
}

.pile.is-open .pile-cards {
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.4rem 1rem;
  align-items: start;
}

.pile.is-open .polaroid {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  margin: 0;
  transform: rotate(calc(var(--tilt) / 5));
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.4rem 1.2rem;
  text-align: center;
  color: rgba(18, 36, 28, 0.62);
  background: var(--cream);
  border: 1.5px dashed rgba(18, 36, 28, 0.28);
  border-radius: 1rem;
}

.lightbox {
  width: min(92vw, 64rem);
  padding: 0.6rem;
  border: 0;
  border-radius: 1rem;
  background: var(--ink);
}

.lightbox::backdrop { background: rgba(42, 16, 10, 0.82); }

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 0.7rem;
}

.lightbox-verse {
  margin: 0.7rem 0.3rem 0.2rem;
  color: var(--gold);
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  line-height: 1.2;
  text-align: center;
}

.lightbox form { margin: 0 0 0.45rem; text-align: right; }

.lightbox button {
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.visit { background: rgba(255, 248, 240, 0.96); }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.visit article {
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 1.1rem;
  background: var(--cream);
  border-top: 3px solid var(--leaf);
}

.location {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 28rem;
  margin: 1.15rem clamp(0.75rem, 3vw, 2rem);
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.location-card {
  padding: 4rem 6vw;
  background: #ffe4cc;
  color: var(--ink);
}

.location address {
  font-style: normal;
  font-size: 1.15rem;
  margin-bottom: 1.6rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

.social { padding-bottom: 4rem; }

.social-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.social-list a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 1.4rem;
  text-decoration: none;
  border-radius: 1.2rem;
  background: var(--forest);
  color: var(--cream);
}

.social-list a:hover { background: #5a2418; }

.social-name {
  font-family: var(--serif);
  font-size: 1.8rem;
}

.social-handle { color: var(--gold); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw 2rem;
  border-top: 1px solid rgba(255, 246, 234, 0.16);
  color: rgba(255, 246, 234, 0.78);
  font-size: 0.92rem;
}

.site-footer p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 6vw 1.4rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
    color: var(--ink);
  }

  .beliefs li, .location, .times, .groups ul, .visit-grid, .social-list, .event-list article {
    grid-template-columns: 1fr;
  }

  .beliefs li { gap: 0.35rem; }

  .schedule { margin: 0.8rem; border-radius: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
