:root {
  --ink: #20201d;
  --muted: #69665f;
  --line: #e4e0dc;
  --paper: #faf8f5;
  --cream: #f1eeee;
  --red: #7d0004;
  --red-dark: #5b0000;
  --red-soft: #eadadb;
  --olive: #6f7655;
  --charcoal: #272722;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(86, 35, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 16px 18px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(250, 248, 245, 0.88);
  box-shadow: 0 10px 30px rgba(31, 26, 22, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--red-dark);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 64px;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 21, 0.9), rgba(28, 25, 21, 0.58) 44%, rgba(28, 25, 21, 0.24)),
    linear-gradient(0deg, rgba(28, 25, 21, 0.7), transparent 36%),
    url("assets/hero-worship.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(690px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb6b6;
}

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

h1,
h2,
blockquote {
  font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(125, 0, 4, 0.14);
}

.button.light {
  color: var(--red-dark);
  border-color: rgba(125, 0, 4, 0.22);
  background: var(--white);
}

.service-card {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 64px;
  width: min(310px, calc(100% - 48px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(21, 18, 17, 0.42);
  backdrop-filter: blur(16px);
}

.service-card span {
  color: #ffb6b6;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card strong {
  display: block;
  margin: 8px 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 3rem;
}

.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
}

.intro {
  display: block;
  background: var(--cream);
}

blockquote {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 4.6rem);
}

.intro p {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 1.08rem;
}

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

.section-heading p:last-child {
  font-size: 1.08rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.visit-grid article,
.gathering-list article,
.bank-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.visit-grid article {
  min-height: 230px;
  padding: 28px;
}

.icon {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--red);
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: 56px;
  align-items: center;
  background: #f7f5f2;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-copy p {
  font-size: 1.05rem;
}

.text-link {
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: none;
}

.gathering-list {
  display: grid;
  gap: 16px;
}

.gathering-list article {
  display: grid;
  grid-template-columns: 190px minmax(180px, 0.42fr) 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.gathering-list time {
  color: var(--red-dark);
  font-weight: 800;
}

.gathering-list p {
  margin: 0;
}

.calendar {
  background: #f7f5f2;
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -18px 0 28px;
}

.calendar-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.sermons {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 48px;
  align-items: start;
  color: var(--white);
  background: var(--charcoal);
}

.sermons p {
  color: rgba(255, 255, 255, 0.72);
}

.sermon-links {
  display: grid;
  gap: 12px;
}

.sermon-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.sermon-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sermon-card span {
  display: block;
  margin-bottom: 10px;
  color: #ffb6b6;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sermon-card h3 {
  margin-bottom: 10px;
}

.sermon-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.sermon-card audio {
  width: 100%;
  margin-top: 18px;
  color-scheme: dark;
}

.sermon-download {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(125, 0, 4, 0.45);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.sermon-download:hover {
  background: rgba(125, 0, 4, 0.72);
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 16px;
}

.photo-strip img {
  width: 100%;
  height: 390px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.photo-strip img:nth-child(2) {
  margin-top: 48px;
}

.home-gallery {
  background: #f7f5f2;
}

.gallery-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.gallery-preview img {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.gallery-preview img:first-child {
  grid-row: span 2;
  height: 534px;
}

.gallery-hero {
  padding-top: 170px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(25, 21, 20, 0.9), rgba(25, 21, 20, 0.52)),
    url("assets/gallery/outreach-2024-01.jpg") center / cover;
}

.gallery-hero h1 {
  max-width: 920px;
}

.gallery-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.album-section {
  background: var(--paper);
}

.album-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.album-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(125, 0, 4, 0.18);
  border-radius: 8px;
  color: var(--red-dark);
  background: var(--white);
  font: inherit;
  font-weight: 800;
}

.album-tab.active {
  color: var(--white);
  background: var(--red);
}

.album {
  display: none;
}

.album.active {
  display: block;
}

.album-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.album-heading span {
  color: var(--muted);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid button {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--line);
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-grid button:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(12, 10, 10, 0.9);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
}

.beliefs {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 48px;
  background: var(--cream);
}

.belief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.belief-grid p {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(125, 0, 4, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.giving {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.bank-card {
  padding: 30px;
}

.bank-card span {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

dl {
  margin: 20px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

dl div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.contact {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 48px;
  color: var(--white);
  background:
    linear-gradient(rgba(39, 39, 34, 0.86), rgba(39, 39, 34, 0.86)),
    url("assets/contact-bg.png") center / cover;
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 28px;
  color: var(--ink);
}

.contact-panel a {
  padding: 16px;
  border-radius: 8px;
  background: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  flex: 1;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  background: #191915;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .site-header {
    inset: 10px 10px auto;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .hero {
    min-height: 860px;
    padding-top: 132px;
  }

  .service-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 42px;
  }

  .intro,
  .about,
  .sermons,
  .beliefs,
  .giving,
  .contact {
    grid-template-columns: 1fr;
  }

  .visit-grid,
  .belief-grid {
    grid-template-columns: 1fr;
  }

  .gathering-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .photo-strip img,
  .photo-strip img:nth-child(2) {
    height: 300px;
    margin-top: 0;
  }

  .gallery-preview,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-preview img:first-child {
    grid-row: auto;
    grid-column: span 2;
    height: 320px;
  }

  .gallery-preview img,
  .gallery-grid img {
    height: 220px;
  }
}

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

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-actions,
  .button,
  .socials,
  .site-footer {
    width: 100%;
  }

  .button,
  .socials,
  .site-footer,
  dl div {
    flex-direction: column;
  }

  .gallery-preview,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview img:first-child {
    grid-column: auto;
  }

  dd {
    text-align: left;
  }
}
