/* 생명샘교회 — 네이비 · 아이보리 · 골드. 8px 간격. */
:root {
  --navy: #1B2B45;
  --navy-deep: #121C30;
  --navy-mid: #2A3C5C;
  --ivory: #F7F4EE;
  --paper: #FBF9F5;
  --white: #FFFFFF;
  --gold: #A68546;
  --gold-bright: #C6A15A;
  --ink: #1B2B45;
  --muted: #4A453E;
  --soft: #5C564E;
  --line: #E4DDD2;
  --header: 72px;
  --sans: Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s7: 64px;
  --s8: 80px;
  --s9: 96px;
  --s10: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
button, input { font-family: inherit; }
h1, h2, h3 { text-wrap: balance; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 80;
  background: var(--white);
  color: var(--navy);
  padding: 12px 16px;
  font-weight: 700;
}
.skip:focus { top: 16px; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible,
.band :focus-visible,
.footer :focus-visible { outline-color: var(--gold-bright); }

/* 헤더 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 0 var(--s2);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.topbar.is-scrolled { box-shadow: 0 8px 24px rgba(27, 43, 69, .06); }
.brand {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-width: 0;
  text-decoration: none;
  color: var(--navy);
}
.mark { display: block; width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
#nav { display: none; }
#nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 16px;
  box-shadow: 0 16px 32px rgba(27, 43, 69, .08);
}
#nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
#nav a:last-child { border-bottom: 0; }
#nav a:hover { color: var(--gold); }

/* 배너 */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  touch-action: pan-y;
}
.hero { overflow: hidden; }
.hero-viewport { display: grid; }
.slide {
  display: none;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 48px 64px 136px;
  text-align: center;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(198, 161, 90, .16), transparent 60%),
    var(--navy);
}
.slide.is-active { display: flex; animation: hero-in .55s ease; }
.slide:nth-child(2) {
  background:
    radial-gradient(800px 420px at 10% 100%, rgba(42, 60, 92, .95), transparent 55%),
    #1B2B45;
}
.slide:nth-child(3) {
  background:
    radial-gradient(700px 380px at 70% 110%, rgba(198, 161, 90, .12), transparent 50%),
    #16233A;
}
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
.slide-inner { width: min(880px, 100%); }
.welcome-en {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--ivory);
}
.welcome-kr {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.45;
  color: #D4B36E;
}
.hero h1,
.hero-display {
  margin: 24px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ivory);
}
.hero-kicker {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}
.hero-sub { margin: 16px 0 0; font-size: 18px; line-height: 1.7; color: rgba(247, 244, 238, .88); }
.hero-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; align-items: stretch; }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(247, 244, 238, .55);
  border-radius: 50%;
  background: rgba(18, 28, 48, .35);
  color: var(--ivory);
  cursor: pointer;
}
.hero-arrow.prev { left: 8px; }
.hero-arrow.next { right: 8px; }
.hero-arrow:hover { background: rgba(247, 244, 238, .16); }
.hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hero-dots { display: flex; align-items: center; }
.hero-dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero-dots button::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(247, 244, 238, .45);
}
.hero-dots button[aria-selected="true"]::after { width: 24px; background: var(--gold-bright); }
.hero-pause {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(247, 244, 238, .55);
  border-radius: 50%;
  background: rgba(18, 28, 48, .35);
  color: var(--ivory);
  cursor: pointer;
}
.hero-pause:hover { background: rgba(247, 244, 238, .16); }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn.solid { background: var(--ivory); color: var(--navy); }
.btn.solid:hover { background: var(--white); }
.btn.solid-dark { background: var(--navy); color: var(--ivory); }
.btn.solid-dark:hover { background: var(--navy-mid); }
.btn.line { background: transparent; color: var(--ivory); border-color: rgba(247, 244, 238, .7); }
.btn.line:hover { background: rgba(247, 244, 238, .08); }
.btn.line-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.line-dark:hover { background: var(--ivory); }
.btn.gold { background: var(--gold-bright); color: var(--navy); }
.btn.gold:hover { background: #D4B36E; }
.btn.naver { background: #03A94D; color: #fff; }
.btn.kakao { background: #FEE500; color: #191600; }
.btn.google { background: #fff; color: #1B2B45; border-color: #DADCE0; }

/* 섹션 */
.section { padding: 48px 0; }
.section.alt { background: var(--white); }
.wrap { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(800px, calc(100% - 48px)); }
.kicker {
  margin: 0 0 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7A6232;
}
.kicker.light { color: var(--gold-bright); }
h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--navy);
}
h2.subhead { margin-top: 40px; }
h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--gold);
}
.band h2 { color: var(--ivory); }
.band h2::after { background: var(--gold-bright); }
h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.lede, .prose {
  margin: 0 auto 24px;
  max-width: 40rem;
  text-align: left;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.prose.left { margin-left: 0; margin-right: 0; }
.prose strong, .lede strong { color: var(--navy); font-weight: 700; }
.center { text-align: center; }
.small { font-size: 18px; color: var(--soft); line-height: 1.7; }
.muted { color: var(--soft); }
.link { font-weight: 700; text-underline-offset: 4px; }
.actions { margin: 8px 0 48px; }
/* 예배 — 모바일은 요일 카드, 넓은 화면은 줄만 */
.schedule { margin-top: 8px; display: flex; flex-direction: column; gap: 16px; }
.day-block {
  margin: 0;
  padding: 16px 16px 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
}
.day {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7A6232;
}
.time-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.day-block .time-row:last-child { border-bottom: 0; }
.time-row b { font-size: 32px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.time-row span { font-size: 20px; font-weight: 700; line-height: 1.4; text-align: left; color: var(--ink); }
.note { margin: 24px 0 0; font-size: 18px; font-weight: 700; line-height: 1.7; color: var(--navy); text-align: left; }

/* 위치 */
.loc-row { margin: 0 0 24px; display: flex; flex-direction: column; gap: 4px; }
.lb { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; color: #7A6232; }
.loc-row strong { font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.pending::before { content: "확인 필요 · "; font-weight: 700; color: #7A6232; }
.map-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.map-btns .btn { flex: 1 1 calc(50% - 8px); }
.mapframe {
  position: relative;
  height: 280px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.mapframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 소개 · 섬기는 사람들 — 사진 없음, 글과 카드 */
.about-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.about-card .prose { margin-left: 0; margin-right: 0; }
.people { display: grid; gap: 16px; }
.person-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
}
.role { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #7A6232; }
.people p { margin: 0 0 16px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.denom { margin-bottom: 0; }

/* 영상 — 썸네일만. 빈 플레이어 상자는 두지 않음 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.fbtn {
  min-height: 56px;
  padding: 8px 16px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.fbtn.on { background: var(--navy); color: var(--ivory); }
.fbtn:hover { background: var(--ivory); }
.fbtn.on:hover { background: var(--navy-mid); color: var(--ivory); }
.vgrid { display: grid; gap: 16px; }
.vcard[hidden] { display: none; }
.vcard a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.vcard a:hover { border-color: var(--gold); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ivory); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.short img { object-fit: contain; background: var(--navy-deep); }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(27, 43, 69, .88);
}
.play::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-left: 14px solid var(--ivory);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.vbody { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 20px; flex: 1; }
.vcat { align-self: flex-start; font-size: 18px; font-weight: 700; color: #7A6232; }
.vtitle { font-size: 20px; line-height: 1.45; color: var(--navy); }
.vmeta { font-size: 18px; font-weight: 600; color: var(--navy-mid); }
.vdate { font-size: 18px; color: var(--soft); font-variant-numeric: tabular-nums; }
.vsum { font-size: 18px; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.board-note { margin-top: 16px; }
.empty { text-align: center; font-weight: 700; font-size: 18px; }

/* 바로가기 카드 */
.hub { display: grid; gap: 16px; }
.hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 160px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
a.hub-card:hover { border-color: var(--gold); }
.hub-icon { color: var(--navy); display: block; }
.hub-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.hub-text { margin: 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hub-go { margin-top: auto; font-size: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.hub-shot { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--ivory); }
.hub-news { grid-column: 1 / -1; }
.notice { padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
.notice:last-child { border-bottom: 0; padding-bottom: 0; }
.notice h3 { font-size: 20px; margin: 4px 0 8px; }
.notice p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.notice .ndate { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--soft); }
.ntag { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; color: #7A6232; }

.bank { margin: 8px 0 0; font-size: 18px; font-weight: 700; color: #7A6232; }
.acct {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.holder { margin: 0 0 8px; font-size: 18px; }
.email { margin: 0 0 16px; text-align: center; font-size: 24px; font-weight: 700; line-height: 1.4; word-break: break-all; }
.email a { color: var(--navy); }

/* 푸터 */
.footer {
  background: var(--navy-deep);
  color: rgba(247, 244, 238, .9);
  text-align: center;
  padding: 48px 24px 56px;
  font-size: 18px;
}
.flogo { display: block; height: 40px; width: auto; margin: 0 auto 16px; }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--ivory); }
.footer .fn { font-size: 20px; }
.footer .small { color: rgba(247, 244, 238, .72); margin-top: 16px; }
.flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 16px; }
.flinks a { font-weight: 700; text-underline-offset: 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  max-width: min(520px, calc(100% - 32px));
  padding: 16px 20px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--ivory);
  font-size: 18px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 800px) {
  .vgrid { grid-template-columns: 1fr 1fr; }
  .hub { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: 24px; }
  .loc { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: stretch; }
  .mapframe { margin-top: 0; height: 360px; min-height: 360px; }
  .schedule { gap: 8px; }
  .day-block {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .day-block + .day-block { margin-top: 16px; }
  .day { margin-top: 8px; border-bottom: 0; padding-bottom: 0; }
  .time-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .day-block .time-row:last-child { border-bottom: 1px solid var(--line); }
  .time-row b { font-size: 32px; }
  .time-row span { font-size: 22px; text-align: right; }
  .acct { font-size: 36px; letter-spacing: 0.02em; }
  .map-btns .btn { flex: 0 1 auto; }
}

@media (min-width: 960px) {
  :root { --header: 80px; }
  body { font-size: 20px; }
  .topbar { padding: 0 40px; }
  .brand-name { font-size: 22px; }
  .menu-btn { display: none; }
  #nav,
  #nav.open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  #nav a {
    min-height: 48px;
    padding: 8px 14px;
    border: 0;
    font-size: 18px;
  }
  .hero-arrow { display: flex; width: 56px; height: 56px; }
  .hero-arrow.prev { left: 24px; }
  .hero-arrow.next { right: 24px; }
  .slide { padding: 56px 112px 144px; }
  .welcome-en { font-size: 72px; letter-spacing: 0.08em; }
  .welcome-kr { font-size: 36px; }
  .hero h1, .hero-display { font-size: 40px; }
  h2 { font-size: 40px; }
  .lede, .prose { font-size: 20px; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: row; justify-content: center; align-items: center; }
  .hero-actions .btn { width: auto; min-width: 180px; }
  .wrap { width: min(1040px, calc(100% - 80px)); }
  .wrap.narrow { width: min(800px, calc(100% - 80px)); }
}

@media (max-width: 600px) {
  .hero-arrow { display: none; }
  .slide { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-active { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .toast { transition: none; }
  .hero-dots button::after { transition: none; }
}

/* 말씀 노트 — 글 카드만. 사진 갤러리는 실제 사진이 생기면 별도 섹션(#gallery)으로 추가 */
.note-list { display: grid; gap: 16px; }
.note-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
}
.note-meta { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #7A6232; }
.note-date { font-variant-numeric: tabular-nums; }
.note-ref { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--navy); }
.note-ref .lb { margin-right: 8px; }
.note-ref .muted { font-weight: 600; }
.note-points { margin: 0 0 24px; padding-left: 24px; }
.note-points li { margin: 0 0 16px; padding-left: 4px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.note-points li::marker { font-weight: 800; color: var(--gold); }
.note-points b { display: block; font-size: 20px; line-height: 1.45; color: var(--navy); }
.note-points q { display: block; margin-top: 4px; quotes: "“" "”"; }
.note-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.note-links .btn { flex: 1 1 100%; }
.note-foot { margin: 16px 0 0; font-size: 18px; color: var(--soft); }
.note-about { margin-top: 24px; }

@media (min-width: 800px) {
  .note-list { grid-template-columns: 1fr 1fr; gap: 24px; }
  .note-links .btn { flex: 1 1 auto; }
}
