:root {
  --ink: #17211d;
  --muted: #65716b;
  --line: #d9e1db;
  --paper: #fbfaf6;
  --soft: #edf4ef;
  --moss: #426a50;
  --moss-dark: #244334;
  --gold: #d6a94d;
  --terracotta: #b56b50;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans SC",
    sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.93);
  box-shadow: 0 12px 34px rgba(23, 33, 29, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--moss-dark);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.82;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 15px;
}

.nav a {
  position: relative;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.language-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid currentColor;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.site-header.is-scrolled .language-button {
  background: rgba(66, 106, 80, 0.08);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 12px;
  right: 12px;
  z-index: 19;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 14px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("./assets/hero-fellowship.svg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 24, 18, 0.78), rgba(13, 24, 18, 0.4), rgba(13, 24, 18, 0.12)),
    linear-gradient(0deg, rgba(13, 24, 18, 0.62), rgba(13, 24, 18, 0.05) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(70px, 12vh, 118px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2cc7c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(58px, 10vw, 116px);
  font-weight: 850;
}

h2 {
  max-width: 680px;
  font-size: clamp(32px, 5vw, 58px);
}

h3 {
  font-size: 21px;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-align: center;
}

.button.primary {
  min-width: 240px;
  border-color: var(--gold);
  color: var(--moss-dark);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, calc(100% - 36px));
  margin: -42px auto 0;
  position: relative;
  z-index: 3;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-info div {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.quick-info div:last-child {
  border-right: 0;
}

.quick-info span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.quick-info strong {
  display: block;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.25;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.section-copy p:not(.eyebrow),
.visit-panel p,
.contact p,
.section-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article,
.event-card,
.scripture-panel {
  background: var(--white);
  border: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 18px;
  padding: 24px;
}

.feature-list span {
  color: var(--gold);
  font-weight: 850;
}

.feature-list p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--muted);
}

.muted {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.announcements {
  padding-bottom: 0;
}

.announcement-list {
  display: grid;
  gap: 12px;
}

.announcement-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.announcement-card span {
  display: block;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
}

.announcement-card h3 {
  margin-top: 6px;
}

.announcement-card p {
  margin: 10px 0 0;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gatherings-layout {
  --gathering-panel-height: clamp(340px, 32vw, 430px);
  display: grid;
  gap: 16px;
  align-items: start;
}

.gatherings-layout.has-scripture {
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.78fr);
  align-items: stretch;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gatherings-layout.has-scripture .event-grid {
  grid-template-columns: 1fr;
}

.gatherings-layout.has-scripture .event-card,
.gatherings-layout.has-scripture .scripture-panel {
  height: var(--gathering-panel-height);
  min-height: 0;
}

.event-card {
  min-height: 274px;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.event-card time {
  color: var(--terracotta);
  font-weight: 850;
}

.event-card h3 {
  margin-top: 16px;
}

.event-card p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.event-rhythm {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.event-rhythm-title {
  display: block;
  margin-bottom: 10px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.event-rhythm-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-rhythm-items span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--moss-dark);
  background: var(--soft);
  font-size: 14px;
  font-weight: 850;
}

.event-card span {
  color: var(--moss);
  font-weight: 800;
}

.event-card > span {
  margin-top: 22px;
}

.scripture-panel {
  display: flex;
  flex-direction: column;
  min-height: 274px;
  padding: 30px;
  border-left: 4px solid var(--gold);
  overflow: hidden;
}

.scripture-heading {
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.scripture-heading h3 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.scripture-list {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--gold) transparent;
}

.scripture-entry + .scripture-entry {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.scripture-entry span {
  display: block;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
}

.scripture-entry p {
  margin: 8px 0 0;
  color: var(--moss-dark);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.52;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.gallery {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.gallery > .section-heading,
.gallery > .gallery-grid {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.section-note {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  text-align: right;
}

.gallery .eyebrow {
  color: var(--terracotta);
}

.gallery h2 {
  color: var(--ink);
}

.gallery-grid {
  height: 440px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--gold) rgba(41, 67, 54, 0.12);
}

.gallery-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: max-content;
}

.gallery-row {
  display: flex;
  align-items: end;
  gap: 16px;
  width: max-content;
}

.gallery-row:nth-child(2) {
  margin-left: 250px;
  align-items: start;
}

.gallery-grid.is-scrollable .gallery-track {
  animation: gallery-drift 58s linear infinite;
}

.gallery-grid.is-scrollable:hover .gallery-track,
.gallery-grid.is-scrollable:focus-within .gallery-track {
  animation-play-state: paused;
}

.gallery-card {
  position: relative;
  display: block;
  width: 360px;
  height: 188px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.13);
  scroll-snap-align: start;
}

.gallery-card.is-large {
  width: 430px;
  height: 210px;
}

.gallery-card.is-wide {
  width: 470px;
  height: 188px;
}

.gallery-card.is-medium {
  width: 320px;
  height: 188px;
}

.gallery-card.is-small {
  width: 230px;
  height: 188px;
}

.gallery-card.is-tall {
  width: 230px;
  height: 210px;
}

.gallery-card.is-portrait {
  width: 230px;
}

.gallery-grid.is-single {
  height: auto;
  overflow: visible;
}

.gallery-grid.is-single .gallery-track {
  display: block;
  width: auto;
}

.gallery-grid.is-single .gallery-row {
  display: block;
  width: auto;
  margin-left: 0;
}

.gallery-grid.is-single .gallery-card {
  display: block;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

@keyframes gallery-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.studies-page {
  padding-top: 88px;
  background: var(--paper);
}

.studies-hero {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  padding-bottom: 48px;
}

.studies-hero h1 {
  color: var(--ink);
}

.studies-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
}

.studies-archive {
  padding-top: 0;
}

.study-list {
  display: grid;
  gap: 18px;
}

.study-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.study-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--terracotta);
  font-weight: 850;
  text-transform: uppercase;
}

.study-card h2 {
  grid-column: 2;
  font-size: clamp(26px, 3vw, 42px);
}

.study-card blockquote,
.study-card h3,
.study-card p {
  grid-column: 2;
}

.study-card blockquote {
  margin: 0;
  padding-left: 18px;
  border-left: 5px solid var(--gold);
  color: var(--moss-dark);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 850;
  line-height: 1.55;
}

.study-card h3 {
  margin-top: 8px;
  color: var(--terracotta);
  font-size: 16px;
  text-transform: uppercase;
}

.study-card p,
.empty-state {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.team {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  background: var(--soft);
}

.team .section-heading {
  align-items: start;
}

.section-note {
  margin: 0;
}

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

.team-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.team-card img {
  display: block;
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card p {
  margin: 10px 0 14px;
  color: var(--muted);
}

.team-card .team-role {
  margin: 6px 0 0;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
}

.team-card a {
  color: var(--moss);
  font-weight: 850;
}

.visit {
  width: 100%;
  max-width: none;
  min-height: 560px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.96), rgba(251, 250, 246, 0.77), rgba(251, 250, 246, 0.28)),
    url("./assets/visit-community.svg");
  background-position: center;
  background-size: cover;
}

.visit-panel {
  width: min(1120px, calc(100% - 36px));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 790px;
  margin-top: 28px;
}

.steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  font-weight: 800;
}

.steps span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--white);
  background: var(--moss);
}

.steps span:last-child {
  min-width: 0;
  color: var(--ink);
}

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

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--moss-dark);
  font-weight: 850;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--moss-dark);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    height: 66px;
  }

  .nav {
    display: none;
  }

  .language-button {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero {
    min-height: 86vh;
  }

  .quick-info,
  .split,
  .gatherings-layout.has-scripture,
  .event-grid,
  .gallery-grid,
  .team-grid,
  .steps,
  .contact {
    grid-template-columns: 1fr;
  }

  .quick-info {
    margin-top: 0;
    width: 100%;
  }

  .quick-info div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-info div:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }

  .section-note {
    margin-top: 10px;
    text-align: left;
  }

  .gallery-grid {
    height: 340px;
  }

  .gallery-track {
    gap: 16px;
  }

  .gallery-row {
    gap: 16px;
  }

  .gallery-row:nth-child(2) {
    margin-left: 110px;
  }

  .gallery-card,
  .gallery-card.is-large,
  .gallery-card.is-wide,
  .gallery-card.is-medium {
    width: 260px;
    height: 150px;
  }

  .gallery-card.is-small,
  .gallery-card.is-tall,
  .gallery-card.is-portrait {
    width: 170px;
    height: 150px;
  }

  .gallery-card.is-large {
    width: 300px;
  }

  .studies-hero {
    display: grid;
    align-items: start;
  }

  .study-card {
    grid-template-columns: 1fr;
  }

  .study-card h2,
  .study-card blockquote,
  .study-card h3,
  .study-card p {
    grid-column: 1;
  }

  .event-card {
    min-height: 220px;
  }

  .gatherings-layout.has-scripture .event-card {
    height: auto;
    min-height: 220px;
  }

  .gatherings-layout.has-scripture .scripture-panel {
    height: 360px;
  }

  .team-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .team-card img {
    width: 84px;
  }

  .visit {
    place-items: end start;
    padding: 72px 0;
    background:
      linear-gradient(0deg, rgba(251, 250, 246, 0.97), rgba(251, 250, 246, 0.7)),
      url("./assets/visit-community.svg");
    background-position: center;
    background-size: cover;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

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

  h1 {
    font-size: 56px;
  }

  .button {
    width: 100%;
  }

  .feature-list article {
    grid-template-columns: 1fr;
  }

  .feature-list p {
    grid-column: 1;
  }
}
