/* =========================================================
   시드니다음교회 디자인 시안 A: 에디토리얼
   Squarespace 매거진형 템플릿 스타일
   아이보리 종이 배경, 세리프 제목, 헤어라인 구분선, 리프형 사진
   ========================================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #F3EEE5;
  --paper-2: #EAE3D6;
  --paper-3: #DFD5C4;
  --ink: #1E1C18;
  --ink-2: #4A453D;
  --muted: #6F675B;
  --line: rgba(30, 28, 24, 0.15);
  --accent: #A3512F;
  --accent-soft: #E3A07F;
  --dark: #1E1C18;
  --on-dark: #F3EEE5;
  --on-dark-2: rgba(243, 238, 229, 0.66);
  --line-dark: rgba(243, 238, 229, 0.16);

  --serif: 'Noto Serif KR', 'Fraunces', Georgia, serif;
  --display: 'Fraunces', 'Noto Serif KR', Georgia, serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --container: 1080px;
  --narrow: 760px;
  /* 리프 모양이 아닌 사진은 모두 같은 둥근 모서리 */
  --radius-photo: clamp(12px, 1.4vw, 18px);
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Scroll animations ===== */
.js [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* 관찰 대상 자체를 잘라내면 화면에 들어온 것으로 감지되지 않으므로 안쪽 요소를 잘라냅니다 */
.js [data-animate="reveal"] {
  opacity: 1;
  transform: none;
}

.js [data-animate="reveal"] > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease);
}

.js [data-animate="reveal"] img {
  transform: scale(1.08);
  transition: transform 1.8s var(--ease);
}

.js [data-animate].visible {
  opacity: 1;
  transform: none;
}

.js [data-animate="reveal"].visible > * {
  clip-path: inset(0 0 0 0);
}

.js [data-animate="reveal"].visible img {
  transform: none;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
  background: rgba(243, 238, 229, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}

/* 열린 모바일 메뉴가 화면 전체를 덮도록 blur(새 기준 상자)를 끕니다 */
.navbar.menu-open {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--paper);
}

.nav-container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.nav-logo-img {
  display: block;
  width: auto;
  height: 68px;
}

.logo-text {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 144;
}

.logo-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-solid::after,
.btn-line::after {
  content: '\2192';
  transition: transform 0.35s var(--ease);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--accent);
}

.btn-line {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.btn-paper:hover {
  background: var(--ink);
  color: var(--paper);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.link-arrow span {
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--nav-h) + clamp(24px, 4vw, 56px)) 0 clamp(72px, 9vw, 128px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  margin: clamp(20px, 3vw, 36px) 0 clamp(20px, 2.4vw, 28px);
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-rotate {
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-rotate-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  transition: transform 0.6s var(--ease), opacity 0.45s ease;
}

.hero-rotate-word.active {
  opacity: 1;
  transform: none;
}

.hero-rotate-word.exit {
  opacity: 0;
  transform: translateY(-105%);
}

.hero-rotate-word.no-transition {
  transition: none;
}

.hero-subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  /* 리프 모양: 왼쪽 위와 오른쪽 아래 모서리만 크게 둥글게 */
  border-radius: clamp(88px, 10vw, 148px) 0;
  overflow: hidden;
  background: var(--paper-3);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}

/* ===== Sections ===== */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

/* 섹션 제목은 가운데 정렬: 라벨, 제목, 부제목을 위아래로 */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  text-align: center;
}

.section-head .section-label {
  padding-bottom: 14px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-subtitle {
  max-width: 36em;
  margin-top: 14px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
}

/* 말씀 사진, 주보 목록처럼 한 덩어리인 내용은 좁은 폭으로 가운데에 */
.narrow {
  max-width: var(--narrow);
  margin-inline: auto;
}

/* ===== About ===== */
.section-about {
  padding-top: clamp(24px, 4vw, 56px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 88px);
}

.about-head {
  grid-column: 1 / -1;
}

.about-figure {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  /* 정사각형 (가로 사진의 좌우를 잘라 얼굴을 가운데에) */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-letter {
  max-width: 34em;
}

.about-letter .section-text {
  margin-bottom: 1.25em;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-2);
}

.about-letter .lead {
  margin-bottom: 1.1em;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.about-letter .verse {
  margin: 2em 0;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.verse-ref {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.about-letter .signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2em;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.about-letter .signature::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink);
}

/* ===== Pastor ===== */
.section-pastor {
  background: var(--paper-2);
}

.pastor-profile {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

/* 원본이 정사각형이라 자르지 않고 그대로 */
.pastor-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: clamp(72px, 8vw, 116px) 0;
  background: var(--paper-3);
}

.pastor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 가로 사진을 정사각형으로 자를 때 두 분 얼굴이 가운데 오도록 */
  object-position: 50% 50%;
}

.pastor-names {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.pastor-divider {
  padding: 0 0.1em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.pastor-role {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pastor-bio {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.pastor-bio p {
  margin-bottom: 1em;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-2);
}

/* 학력·사역·저서는 사진과 소개글 아래에 전체 폭 3단으로 놓아 좁은 칸에 끼지 않게 합니다 */
.pastor-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(48px, 6vw, 80px);
}

.credential-group {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.credential-label {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.credential-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ===== 교회 이야기: 사진 모자이크 =====
   페이스북이 연결되면 script.js가 타일을 최신 게시물로 바꿉니다. */
.story-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 200px);
  grid-auto-flow: dense;
  gap: 12px;
}

.story-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
  color: var(--paper);
}

.story-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.story-tile:hover img {
  transform: scale(1.04);
}

.story-tile-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.story-tile-tall {
  grid-row: span 2;
}

.story-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 28, 24, 0.82);
  color: var(--paper);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.story-tile:hover .story-caption,
.story-tile:focus-visible .story-caption,
.story-tile-feature .story-caption {
  opacity: 1;
  transform: none;
}

.story-meta {
  font-size: 13px;
  color: var(--accent-soft);
}

.story-meta:empty {
  display: none;
}

.story-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.story-text {
  display: none;
}

.story-tile-feature .story-caption {
  left: 16px;
  right: 16px;
  bottom: 16px;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 12px;
}

.story-tile-feature .story-title {
  font-size: clamp(19px, 1.8vw, 22px);
}

.story-tile-feature .story-text {
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-more {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--accent);
  color: var(--paper);
  transition: background 0.3s ease;
}

.story-more:hover {
  background: var(--ink);
}

.story-more-label {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

/* 마우스가 없는 휴대폰에서는 작은 사진에도 제목을 늘 보여줍니다 */
@media (hover: none) {
  .story-caption {
    opacity: 1;
    transform: none;
  }

  .story-tile:not(.story-tile-feature) .story-caption {
    left: 8px;
    right: auto;
    bottom: 8px;
    padding: 5px 9px;
    border-radius: 8px;
  }

  .story-tile:not(.story-tile-feature) .story-title {
    font-size: 14px;
  }
}

/* ===== Sermons ===== */
.youtube-card {
  display: block;
}

/* 원본(1200x801) 비율 그대로, 오른쪽 본문 칸 폭으로 표시해 흐려지지 않게 합니다 */
.youtube-thumb {
  position: relative;
  aspect-ratio: 1200 / 801;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--dark);
}

.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.youtube-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 28, 24, 0.55), rgba(30, 28, 24, 0) 45%);
  pointer-events: none;
}

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

.youtube-btn {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
}

.youtube-card:hover .youtube-btn {
  background: var(--accent);
  color: var(--paper);
}

/* ===== Bulletin ===== */
.section-bulletin {
  background: var(--paper-2);
}

.bulletin-featured {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.bulletin-tag {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.bulletin-featured-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.bulletin-featured:hover .bulletin-featured-title {
  color: var(--accent);
}

.bulletin-open {
  flex: none;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 600;
}

.bulletin-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease), color 0.3s ease;
}

.bulletin-list a:hover {
  padding-left: 12px;
  color: var(--accent);
}

.bulletin-item-title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.bulletin-item-open {
  flex: none;
  font-size: 15px;
  color: var(--muted);
}

.bulletin-more {
  margin-top: 16px;
}

.bulletin-more a,
.bulletin-more-btn {
  display: inline-block;
  padding: 12px 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.bulletin-more a:hover,
.bulletin-more-btn:hover {
  color: var(--accent);
}

.bulletin-notice {
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  color: var(--muted);
}

/* ===== Vision ===== */
.vision-list {
  border-top: 1px solid var(--ink);
}

.vision-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: var(--gutter);
  align-items: baseline;
  padding: clamp(26px, 3.2vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.vision-number {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.vision-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 10px var(--gutter);
  align-items: baseline;
}

.vision-content h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.vision-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.vision-item:hover .vision-content h3 {
  color: var(--accent);
}

/* ===== Next Generation ===== */
.nextgen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(20px, 2.4vw, 36px);
}

/* 가로·세로 사진이 섞여 있어 5:4로 잘라야 어느 사진도 지나치게 잘리지 않습니다 */
.nextgen-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
}

.nextgen-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.nextgen-card:hover .nextgen-photo {
  transform: scale(1.04);
}

.nextgen-overlay {
  padding-top: 18px;
}

.nextgen-age {
  min-height: 1.6em;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.nextgen-overlay h3 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* ===== Mission ===== */
.section-mission {
  background: var(--dark);
  color: var(--on-dark);
}

.section-mission .section-head {
  border-top-color: var(--on-dark);
}

.mission-label {
  color: var(--accent-soft);
}

.mission-sub {
  color: var(--on-dark-2);
}

.mission-map-wrap {
  position: relative;
  max-width: 900px;
  aspect-ratio: 950 / 527;
  margin: 0 auto clamp(32px, 4vw, 56px);
  overflow: hidden;
}

.mission-world-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.17;
  filter: brightness(0) invert(1);
}

.mission-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.mission-pin::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: pin-pulse 2.4s ease-out infinite;
}

@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 160, 127, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(227, 160, 127, 0); }
}

/* 지도 가장자리 핀은 말풍선이 잘리지 않도록 안쪽으로 펼칩니다 (script.js가 tip-left/tip-right 지정) */
.mission-pin {
  --tip-x: -50%;
}

.mission-pin.tip-left {
  --tip-x: calc(-100% + 26px);
}

.mission-pin.tip-right {
  --tip-x: -26px;
}

.mission-pin::after {
  content: attr(data-country) '\A' attr(data-names);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 10;
  min-width: 120px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  white-space: pre;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--tip-x), 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mission-pin:hover,
.mission-pin:focus-visible,
.mission-pin.open {
  z-index: 5;
}

.mission-pin:hover::after,
.mission-pin:focus-visible::after,
.mission-pin.open::after {
  opacity: 1;
  transform: translate(var(--tip-x), 0);
}

/* 손가락으로 누르기 쉽게 터치 화면에서는 핀의 누르는 영역을 넓힙니다 */
@media (pointer: coarse) {
  .mission-pin {
    width: 34px;
    height: 34px;
  }
}

.mission-map-legend {
  position: absolute;
  left: 0;
  bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.mission-friends {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: var(--gutter);
  margin-top: clamp(36px, 4.5vw, 56px);
}

.mission-tier-label {
  padding-top: 14px;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

.mission-friends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 36px);
  border-top: 1px solid var(--on-dark);
}

.mission-friend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.mission-country {
  font-size: 14.5px;
  color: var(--on-dark-2);
}

.mission-names {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* ===== Discipleship ===== */
.discipleship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.discipleship-track {
  padding: 32px clamp(20px, 2.6vw, 40px) 8px;
  border-left: 1px solid var(--line);
}

.discipleship-track:first-child {
  padding-left: 0;
  border-left: 0;
}

.discipleship-track:last-child {
  padding-right: 0;
}

.discipleship-track-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.discipleship-track-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 19px;
}

.discipleship-track-header h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.discipleship-steps {
  counter-reset: step;
}

.discipleship-steps li {
  position: relative;
  padding: 13px 0 13px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  counter-increment: step;
}

.discipleship-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step-sub {
  margin-left: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ===== Team ===== */
.section-pastors {
  background: var(--paper-2);
}

.team-group-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.team-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.team-grid + .team-group-title {
  margin-top: clamp(56px, 6vw, 88px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px clamp(16px, 2vw, 28px);
}

.team-photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
}

/* 흑백 인물 사진은 영정사진처럼 보일 수 있어 항상 컬러로 보여줍니다 */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

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

.team-photo-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(163, 81, 47, 0.12), transparent 60%),
    var(--paper-3);
}

.team-photo-empty span {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.team-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.team-position {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.team-role {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== Service ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.service-card {
  padding: 30px clamp(18px, 2vw, 32px) 36px;
  border-left: 1px solid var(--line);
}

.service-card:first-child {
  padding-left: 0;
  border-left: 0;
}

.service-card:last-child {
  padding-right: 0;
}

.service-icon,
.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  color: var(--accent);
}

.service-icon {
  margin-bottom: 22px;
}

.service-card h3 {
  min-height: 2.8em;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.service-time {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.service-hour {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.service-location {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.service-address {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.service-address a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.service-address a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.service-note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.service-note + .service-note {
  margin-top: 2px;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 48px;
  align-items: end;
  margin-top: clamp(56px, 6vw, 88px);
  padding: clamp(36px, 5vw, 72px);
  background: var(--accent);
  color: var(--paper);
}

.cta-card h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.cta-card p {
  grid-column: 1;
  max-width: 34em;
  font-size: 17px;
}

.cta-card .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}

.contact-info {
  border-top: 1px solid var(--ink);
}

.contact-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item h4 {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.contact-item p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.contact-item a {
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent);
}
.contact-map {
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  filter: grayscale(1) contrast(0.95);
}

/* ===== Footer ===== */
.footer {
  padding: clamp(72px, 9vw, 120px) 0 32px;
  background: var(--dark);
  color: var(--on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* 어두운 바탕용 로고: 글자만 밝게 바꾼 logo-light.png */
.footer-logo {
  display: block;
  width: auto;
  height: clamp(80px, 8vw, 110px);
}

.footer-tagline {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--on-dark-2);
}

.footer-affiliation {
  margin-top: 8px;
  font-size: 14px;
  color: var(--on-dark-2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.footer-links h4 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

.footer-links a {
  width: fit-content;
  font-size: 16px;
  color: var(--on-dark-2);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: var(--on-dark-2);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card:first-child,
  .service-card:last-child {
    padding: 28px 0 32px;
    border-left: 0;
  }

  .service-card:nth-child(even) {
    padding-left: clamp(18px, 3vw, 32px);
    border-left: 1px solid var(--line);
  }

  .service-card:nth-child(odd) {
    padding-right: clamp(18px, 3vw, 32px);
  }

  .service-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 70px;
  }

  .nav-logo-img {
    height: 54px;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0 8px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.4s var(--ease), width 0.3s ease;
  }

  .nav-toggle span:last-child {
    width: 18px;
  }

  .nav-toggle.active span:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }

  .nav-toggle.active span:last-child {
    width: 26px;
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: var(--nav-h) var(--gutter) 40px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links .nav-link {
    font-family: var(--serif);
    font-size: clamp(30px, 8.5vw, 44px);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--ink);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    width: min(100%, 400px);
    margin-inline: auto;
  }

  .about-grid,
  .pastor-profile,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-figure {
    position: relative;
    top: 0;
    width: min(100%, 320px);
    margin: 0 auto 40px;
  }

  .pastor-image-wrapper {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .pastor-credentials {
    grid-template-columns: 1fr;
  }

  .vision-item {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 12px;
  }

  .vision-number {
    font-size: 40px;
  }

  .vision-content {
    grid-template-columns: 1fr;
  }

  .nextgen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .mission-friends {
    grid-template-columns: 1fr;
  }

  .mission-tier-label {
    padding: 0 0 14px;
  }

  .mission-friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discipleship-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .discipleship-track,
  .discipleship-track:first-child,
  .discipleship-track:last-child {
    padding: 28px 0 8px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .discipleship-track + .discipleship-track {
    margin-top: 24px;
  }

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

  .cta-card .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 12px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 340px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* 손가락으로 누르기 쉽게 링크의 누르는 높이를 44px 가까이로 넓힙니다 */
  .service-address a,
  .contact-item a,
  .footer-links a {
    display: inline-block;
    padding: 9px 0;
  }

  .service-address {
    margin-top: 10px;
  }

  .contact-item {
    padding: 14px 0;
  }

  .footer-links {
    gap: 0;
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 14px;
  }

  .team-name {
    font-size: 18px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(even),
  .service-card:nth-child(odd) {
    padding: 26px 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-card h3 {
    min-height: 0;
  }

  .service-icon {
    margin-bottom: 14px;
  }

  .mission-friends-grid {
    column-gap: 16px;
  }

  .mission-names {
    font-size: 16px;
  }

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

  .story-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .story-more {
    padding: 16px;
  }

  .nextgen-overlay h3 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-animate],
  .js [data-animate] > *,
  .js [data-animate] img {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .story-caption,
  .story-tile img {
    transition: none;
  }

  .mission-pin::before {
    animation: none;
  }
}
