/* ============================================
   처음 만나는 복음 — 공통 스타일
   ============================================ */
:root {
  --paper: #faf7f2;
  --paper-soft: #f3eee5;
  --ink: #2b2b33;
  --ink-soft: #55555f;
  --ink-faint: #8a8a94;
  --navy: #1e3a5f;
  --navy-deep: #162c49;
  --gold: #b98a2e;
  --gold-soft: #e9d9b8;
  --accent-bg: #eef3f8;
  --line: #e3ddd0;
  --radius: 14px;
  --maxw: 760px;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  font-size: 17px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand .cross { color: var(--gold); margin-right: 6px; }

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.86rem;
  padding: 7px 11px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--paper-soft); color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 700; background: var(--accent-bg); }

.nav-div {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 4px;
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .nav-div { width: 100%; height: 1px; margin: 8px 0; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    box-shadow: 0 12px 24px rgba(30, 58, 95, 0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 0.95rem; }
}

/* ---------- 히어로 ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #2a4a72 100%);
  color: #f4f1ea;
  text-align: center;
  padding: 84px 24px 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(233, 217, 184, 0.18), transparent 60%);
  pointer-events: none;
}
.hero .step-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--gold-soft);
  border: 1px solid rgba(233, 217, 184, 0.45);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px;
}
.hero .lede {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(244, 241, 234, 0.82);
  font-size: 1.02rem;
}
.hero .verse {
  margin-top: 34px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--gold-soft);
  font-style: normal;
}
.hero .verse cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(233, 217, 184, 0.7);
  margin-top: 8px;
}

/* ---------- 본문 ---------- */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 22px 40px;
}
.section { margin-bottom: 72px; }
.section:last-child { margin-bottom: 32px; }

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 22px;
}
h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--navy);
  margin: 36px 0 14px;
}
p { margin-bottom: 18px; color: var(--ink); }
p.soft { color: var(--ink-soft); }
strong { color: var(--navy); }

ul.plain { list-style: none; margin-bottom: 18px; }
ul.plain li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink);
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.75em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 성경구절 인용 ---------- */
blockquote.scripture {
  background: var(--accent-bg);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 26px 0;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--navy-deep);
}
blockquote.scripture cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-family: var(--font-sans);
}
blockquote.scripture .q-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
  margin-bottom: 10px;
}
blockquote.scripture.fulfill {
  border-left-color: var(--gold);
  background: #fdf6e8;
}
blockquote.scripture.fulfill .q-label { color: var(--gold); }

.prophecy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 10px;
  margin: 26px 0;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.04);
}
.prophecy > h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}
.prophecy .gap {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.prophecy blockquote.scripture { margin: 18px 0; }

/* ---------- 카드 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.04);
}
.card h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
}
th {
  background: var(--navy);
  color: #f4f1ea;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
td:first-child { white-space: nowrap; font-weight: 600; color: var(--navy); }

/* ---------- 아코디언 (details) ---------- */
details.acc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
details.acc summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-serif);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 20px 18px; }
details.acc .acc-body p:last-child { margin-bottom: 0; }

/* 권별 리스트 */
.book-list { list-style: none; }
.book-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}
.book-list li:last-child { border-bottom: none; }
.book-list .bk-name {
  flex: 0 0 96px;
  font-weight: 700;
  color: var(--navy);
}
.book-list .bk-key {
  flex: 0 0 52px;
  color: var(--gold);
  font-weight: 600;
}
.book-list .bk-desc { color: var(--ink-soft); }
@media (max-width: 520px) {
  .book-list li { flex-wrap: wrap; gap: 4px 12px; }
  .book-list .bk-desc { flex-basis: 100%; }
}

/* ---------- 타임라인 (언약의 흐름) ---------- */
.timeline { list-style: none; margin: 30px 0; position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold-soft), var(--navy));
}
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -27px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold-soft);
}
.timeline h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.timeline h4 .ref { font-size: 0.8rem; color: var(--ink-faint); font-weight: 400; margin-left: 8px; font-family: var(--font-sans); }
.timeline p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ---------- 강조 박스 ---------- */
.callout {
  background: linear-gradient(145deg, #fdf9ef, #f7efdd);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 30px 0;
}
.callout h4 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.callout p:last-child { margin-bottom: 0; }

.callout.navy {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  border-color: var(--navy);
  color: #f4f1ea;
}
.callout.navy h4 { color: var(--gold-soft); }
.callout.navy p { color: rgba(244, 241, 234, 0.9); }

/* ---------- 기도문 ---------- */
.prayer {
  background: #fff;
  border: 2px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 34px 32px;
  margin: 30px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--navy-deep);
  text-align: center;
}

/* ---------- 이전/다음 내비 ---------- */
.journey-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 70px;
  display: flex;
  gap: 14px;
}
.journey-nav a {
  flex: 1;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.journey-nav a:hover { border-color: var(--navy); box-shadow: 0 4px 14px rgba(30, 58, 95, 0.08); }
.journey-nav .dir { font-size: 0.78rem; color: var(--ink-faint); display: block; margin-bottom: 4px; }
.journey-nav .title { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.journey-nav a.next { text-align: right; }
@media (max-width: 560px) { .journey-nav { flex-direction: column; } }

/* ---------- 홈 여정 카드 ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 34px 0;
}
.journey-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.journey-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(30, 58, 95, 0.1);
}
.journey-card .step {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
}
.journey-card h3 {
  margin: 10px 0 8px;
  font-size: 1.12rem;
}
.journey-card p { font-size: 0.89rem; color: var(--ink-soft); margin: 0; }
.journey-card .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 241, 234, 0.65);
  text-align: center;
  padding: 42px 24px;
  font-size: 0.86rem;
  line-height: 1.9;
}
.site-footer .foot-verse {
  font-family: var(--font-serif);
  color: var(--gold-soft);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

/* ---------- 신앙 성장 지도 ---------- */
.roadmap {
  position: relative;
  margin: 34px 0 10px;
  padding-left: 40px;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 13px; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--gold-soft), var(--gold), var(--navy));
}
.roadmap .phase { position: relative; padding-bottom: 40px; }
.roadmap .phase:last-child { padding-bottom: 0; }
.roadmap .phase::before {
  content: attr(data-num);
  position: absolute;
  left: -40px; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold-soft);
}
.roadmap .phase > h3 { margin: 2px 0 4px; font-size: 1.14rem; }
.roadmap .phase > p.phase-desc { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 12px; }
.roadmap .stops { display: flex; flex-wrap: wrap; gap: 8px; }
.roadmap .stop {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.roadmap .stop:hover {
  border-color: var(--gold);
  background: #fdf9ef;
  transform: translateY(-1px);
}
.roadmap .stop.milestone {
  background: var(--navy);
  color: var(--gold-soft);
  border-color: var(--navy);
}
.roadmap .stop.milestone:hover { background: var(--navy-deep); }

/* ---------- 스크롤 등장 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
