:root {
  --white: #fff;
  --ink: #1e201d;
  --accent: #d9b66f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--white);
  font-family: "Noto Sans KR", sans-serif;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: #566056;
}

.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video { object-fit: cover; z-index: 0; }

.hero__shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 17, 12, .52) 0%, rgba(12, 17, 12, .16) 42%, rgba(12, 17, 12, .65) 100%);
}

/* Keep page content above the video layer in every browser. */
.hero > .site-header {
  position: relative;
  z-index: 4;
}

.hero > .hero__content,
.hero > .quick-links {
  position: relative;
  z-index: 2;
}

.site-header {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
  padding: 31px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .36);
}

.brand {
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 220px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(36px, 4.5vw, 78px);
  margin-left: auto;
}

.main-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.04em;
  opacity: .9;
  transition: opacity .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.header-link {
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  font-family: inherit;
  border: 0;
  padding: 0;
  background: transparent;
  display: none;
}

.header-link { cursor: pointer; }
.menu-label-close { display: none; }

.mobile-menu { display: none; }

.hero__content {
  width: min(1320px, calc(100% - 80px));
  margin: auto;
  padding: 78px 0 44px;
  text-align: right;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(47px, 7vw, 104px);
  line-height: 1.16;
  letter-spacing: -.08em;
  font-weight: 600;
}

h1 em {
  font-family: "Playfair Display", "Noto Sans KR", serif;
  font-weight: 600;
  letter-spacing: -.08em;
}

.hero__title {
  display: grid;
  gap: 12px;
  font-size: clamp(44px, 5.5vw, 82px);
  line-height: 1.22;
}

.hero__title span {
  font-size: .67em;
  font-weight: 500;
  letter-spacing: -.065em;
}

.hero__title strong {
  font-weight: 600;
  letter-spacing: -.075em;
}

.intro {
  margin: 26px 0 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.04em;
}

.quick-links {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-link {
  min-height: 142px;
  padding: 27px 29px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .52);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(7px);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-4px);
  outline: none;
}

.quick-link__number {
  color: var(--accent);
  font-family: "Playfair Display", serif;
  font-size: 14px;
}

.quick-link__body { display: grid; gap: 8px; }
.quick-link__title { font-size: 25px; font-weight: 600; letter-spacing: -.06em; }
.quick-link__description { font-size: 13px; opacity: .85; letter-spacing: -.04em; }
.quick-link__arrow { margin-left: auto; font-size: 24px; line-height: 1; }

@media (max-width: 700px) {
  .site-header,
  .hero__content,
  .quick-links { width: min(100% - 40px, 600px); }

  .site-header { padding: 22px 0; }
  .brand { font-size: 16px; }
  .brand img { height: 34px; max-width: 180px; }
  .main-nav { display: none; }
  .header-link { display: inline-grid; width: 48px; place-items: center; font-size: 12px; text-align: center; }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: block;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(12px);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu__topbar { position: relative; z-index: 1; width: min(600px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; }
  .mobile-menu__topbar .brand img { height: 34px; max-width: 180px; }
  .mobile-menu__close { display: inline-grid; width: 48px; padding: 0; place-items: center; color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; border: 0; background: transparent; cursor: pointer; }
  .mobile-menu__nav { position: absolute; z-index: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
  .mobile-menu__nav a { color: var(--ink); font-size: 29px; font-weight: 500; letter-spacing: -.07em; text-decoration: none; }
  .mobile-menu__nav a:hover,
  .mobile-menu__nav a:focus-visible { color: #806128; outline: none; }
  body.is-menu-open { overflow: hidden; }
  body.is-menu-open .menu-label-open { display: none; }
  body.is-menu-open .menu-label-close { display: inline; }
  .hero__content { padding: 80px 0 35px; }
  .hero__title { gap: 9px; font-size: clamp(36px, 10.5vw, 50px); }
  .quick-links { grid-template-columns: 1fr; margin-bottom: 27px; gap: 8px; }
  .quick-link { min-height: 112px; padding: 21px; }
  .quick-link__title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
  .quick-link { transition: none; }
}

/* Church introduction */
.about-page {
  color: var(--ink);
  background: #f7f5f0;
}

.about-hero {
  min-height: min(680px, 76svh);
  position: relative;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.about-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-hero__image { z-index: 0; object-fit: cover; }
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 17, 12, .45);
  pointer-events: none;
}

.about-hero > .site-header { position: relative; z-index: 2; }
.site-header--light { border-bottom-color: rgba(255, 255, 255, .36); }
.main-nav .is-active { opacity: 1; text-decoration: underline; text-underline-offset: 7px; }
.about-hero__content,
.worship-hero__content { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 110px 40px 40px; text-align: center; pointer-events: none; }
.about-hero__content .eyebrow,
.worship-hero__content .eyebrow { margin: 0 0 18px; color: #d9b66f; }
.about-hero__content h1,
.worship-hero__content h1 { margin: 0; font-size: clamp(54px, 6.4vw, 98px); font-weight: 400; line-height: 1.08; letter-spacing: -.1em; }

.about-section {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
  padding: 140px 0;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
}

.section-label {
  color: #806128;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  padding-top: 7px;
}
.section-heading .eyebrow,
.pastor .eyebrow { color: var(--ink); font-size: 40px; font-weight: 500; letter-spacing: -.04em; }
.pastor .eyebrow { color: var(--white); }
.section-heading h2,
.pastor h2 { margin: 0; font-size: clamp(34px, 4.5vw, 62px); line-height: 1.25; letter-spacing: -.075em; font-weight: 600; }
.section-heading h2 em { font-family: "Playfair Display", "Noto Sans KR", serif; }

.history .section-heading { grid-column: 2; }
.history-grid { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 68px; margin-top: 70px; }
.history-grid__image { aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: 10px; background: #e9e5db; }
.history-grid__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.history-grid__text { display: flex; flex-direction: column; justify-content: flex-start; padding: 0 5%; }
.history-grid__text > span { color: #a78649; font-family: "Playfair Display", serif; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.history-grid__text h3 { margin: 16px 0 18px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; letter-spacing: -.07em; }
.history-grid__text p { max-width: 360px; margin: 0; color: #53544f; font-size: 15px; line-height: 1.9; letter-spacing: -.04em; }

.values { border-top: 1px solid #d9d4cb; }
.values .section-heading { grid-column: 2; }
.value-list { grid-column: 2; display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 70px; }
.value-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 68px; padding: 42px 0; }
.value-card > span { color: #a78649; font-family: "Playfair Display", serif; font-size: 14px; }
.value-card h3 { grid-column: 1 / -1; margin: 18px 0 28px; padding-bottom: 24px; border-bottom: 1px solid #d9d4cb; font-size: 28px; font-weight: 500; letter-spacing: -.07em; }
.value-card__verse { margin: 0; color: #6b6253; font-size: 13px; font-style: normal; line-height: 1.8; letter-spacing: -.045em; }
.value-card__verse cite { display: block; margin-top: 6px; color: #a78649; font-style: normal; font-size: 12px; }
.value-card__text { margin: 0; color: #5b5c56; font-size: 14px; line-height: 1.8; letter-spacing: -.04em; }
.value-card__text p { margin: 0 0 10px; }

.worship .section-heading { grid-column: 1 / -1; text-align: center; }
.worship-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 70px; }
.worship-card { overflow: hidden; background: #eeece5; }
.worship-card__image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.worship-card__content { min-height: 220px; padding: 30px 32px 34px; }
.worship-card__content > span { color: #a78649; font-family: "Playfair Display", serif; font-size: 14px; }
.worship-card h3 { margin: 42px 0 14px; font-size: 25px; letter-spacing: -.07em; }
.worship-card p { margin: 0; color: #5b5c56; font-size: 14px; line-height: 1.8; letter-spacing: -.04em; }

.pastor { width: 100%; max-width: none; padding: 135px max(40px, calc((100% - 1160px) / 2)); color: var(--white); background: linear-gradient(rgba(34, 67, 39, .94), rgba(34, 67, 39, .94)), #3e4b3d; grid-template-columns: 190px 1fr; }
.pastor .section-label { color: #e7c778; }
.pastor__content { grid-column: 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; }
.pastor__intro { grid-column: 1 / -1; }
.pastor__name { margin: 32px 0 0; font-size: 15px; letter-spacing: -.04em; }
.pastor__name strong { margin-left: 10px; font-size: 20px; }
.pastor__portrait { width: min(100%, 430px); aspect-ratio: 1; margin: 56px 0 0; overflow: hidden; border-radius: 50%; background: #2d352d; justify-self: start; align-self: start; }
.pastor__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.pastor__career { grid-column: 2; align-self: start; }
.pastor__identity { margin: 0 0 22px; text-align: right; font-size: 14px; letter-spacing: -.04em; }
.pastor__identity strong { margin-left: 9px; font-size: 28px; letter-spacing: -.07em; }
.pastor__timeline { margin: 0; border-top: 1px solid rgba(255, 255, 255, .38); }
.pastor__timeline > div { display: grid; grid-template-columns: 86px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.pastor__timeline dt { color: #e7c778; font-family: "Playfair Display", serif; font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.pastor__timeline dd { margin: 0; font-size: 15px; line-height: 1.85; letter-spacing: -.04em; }

.site-footer { padding: 45px max(40px, calc((100% - 1320px) / 2)); color: var(--ink); background: #f7f7f4; display: flex; align-items: center; justify-content: space-between; }
.worship-page .site-footer { background: #f7f5f0; }
.site-footer .brand img { height: 36px; }
.site-footer__info { text-align: right; }
.site-footer__info p { margin: 0; font-size: 12px; line-height: 1.8; letter-spacing: -.035em; opacity: .78; }
.site-footer__info a { color: inherit; text-decoration: none; }
.site-footer__info a:hover,
.site-footer__info a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__info span { margin: 0 7px; opacity: .65; }
.site-footer__copyright { margin-top: 10px !important; font-family: "Playfair Display", "Noto Sans KR", serif; font-size: 10px !important; letter-spacing: .06em !important; opacity: .56 !important; }
.scroll-top { position: fixed; right: 30px; bottom: 30px; z-index: 6; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--white); background: rgba(42, 53, 43, .88); box-shadow: 0 6px 18px rgba(20, 28, 20, .18); font: 24px/1 "Noto Sans KR", sans-serif; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover,
.scroll-top:focus-visible { background: #806128; outline: none; }

@media (max-width: 700px) {
  .about-hero { min-height: 570px; }
  .about-hero__content,
  .worship-hero__content { padding: 90px 20px 20px; }
  .about-hero__content h1,
  .worship-hero__content h1 { font-size: clamp(48px, 14vw, 70px); }
  .about-section { width: min(100% - 40px, 600px); }
  .about-section { padding: 82px 0; display: block; }
  .section-label { margin-bottom: 35px; }
  .history-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 42px; }
  .history-grid > :nth-child(4) { order: 3; }
  .history-grid > :nth-child(3) { order: 4; }
  .history-grid__text { min-height: 220px; padding: 12px 0; }
  .history-grid__text h3 { margin: 14px 0 16px; }
  .values .section-label { margin-bottom: 35px; }
  .value-list { margin-top: 42px; }
  .value-card { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .value-card h3 { margin: 0; padding-bottom: 20px; }
  .worship-list { grid-template-columns: 1fr; margin-top: 42px; gap: 12px; }
  .worship-card__content { min-height: 0; padding: 26px 28px 30px; }
  .worship-card h3 { margin-top: 32px; }
  .pastor { width: 100%; padding: 82px 20px; }
  .pastor__content { display: grid; grid-template-columns: 1fr; gap: 42px; }
  .pastor__portrait { width: min(100%, 340px); margin-top: 0; justify-self: center; }
  .pastor__career { grid-column: auto; }
  .pastor__identity { text-align: center; }
  .pastor__timeline > div { grid-template-columns: 70px 1fr; gap: 14px; padding: 19px 0; }
  .pastor__timeline dt { font-size: 19px; }
  .pastor__timeline dd { font-size: 14px; }
  .site-footer { padding: 32px 20px; align-items: flex-start; gap: 24px; }
  .site-footer .brand { display: none; }
  .site-footer__info { text-align: left; }
  .site-footer__info p { font-size: 11px; }
  .site-footer__copyright { font-size: 9px !important; }
  .scroll-top { right: 18px; bottom: 18px; width: 42px; height: 42px; font-size: 22px; }
}
