/* =========================================================
   SIF — Samil International Fellowship · v3 "Modern Warm"
   웜 오프화이트 종이 + 절제된 삼일 레드 + 에디토리얼 그리드
   수정 포인트는 ✏️ 주석 검색
   ========================================================= */
:root {
  --paper: #FBF9F7;          /* warm near-white base */
  --paper-2: #F3EFEA;        /* warm gray band (rooted quote) */
  --ink: #16120F;            /* warm near-black */
  --ink-soft: #6E645E;       /* warm gray text */
  --line: #E7E0D9;           /* warm hairline */
  --brand: #E60012;          /* ✏️ Samil Church red — accent only */
  --brand-deep: #B4000E;     /* hover / pressed */

  --display: "Inter Tight", "Pretendard Variable", sans-serif;
  --body: "Inter", "Pretendard Variable", -apple-system, sans-serif;

  --maxw: 1120px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Nav — minimal, underline interaction
   ========================================================= */
.site-top { position: sticky; top: 0; z-index: 50; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo { display: flex; align-items: baseline; gap: 10px; }

.nav-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}
.nav-mark::after { content: "."; color: var(--brand); }

.nav-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 30px);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 3px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 26px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--ink); color: #fff; }
.nav-cta::after { display: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }

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

/* =========================================================
   Hero — large type left, fact stack right
   ========================================================= */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) clamp(20px, 4vw, 56px) clamp(56px, 8vh, 90px);
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--brand); }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--brand); }

.hero-lead {
  margin-top: 30px;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
}

/* rooted — inline in hero (symbol + one-liner) */
.rooted-hero {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.rooted-hero svg { flex: none; color: var(--ink); margin-top: 3px; }

/* fact stack — worship time first & emphasized */
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }

.fact { padding: 20px 0; border-bottom: 1px solid var(--line); }

.fact .fact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.fact strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.fact strong em { font-style: normal; color: var(--brand); }

.fact span.sub { font-size: 0.88rem; color: var(--ink-soft); }

.fact-hero { padding: 24px 0; }
.fact-hero .fact-label { color: var(--brand-deep); }
.fact-hero strong { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; }
.fact-hero span.sub { color: var(--ink); font-weight: 500; }

/* =========================================================
   Signature — multilingual welcome ribbon (multicolor)
   ========================================================= */
.ribbon {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 17px 0;
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 66s linear infinite;
}

.ribbon-set {
  display: flex;
  gap: 56px;
  padding-right: 56px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
  white-space: nowrap;
}

.ribbon-set span:nth-child(5n + 1) { color: var(--brand); }
.ribbon-set span:nth-child(5n + 2) { color: #E1911F; }
.ribbon-set span:nth-child(5n + 3) { color: #1F9E86; }
.ribbon-set span:nth-child(5n + 4) { color: #3A5BD0; }
.ribbon-set span:nth-child(5n + 5) { color: #C43C86; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rooted-main {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.rooted-main strong { color: var(--brand); font-weight: 700; }

.rooted-sub {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* =========================================================
   Sections — numbered editorial header
   ========================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) clamp(20px, 4vw, 56px);
}

.sec-head {
  margin-bottom: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.sec-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.sec-head .sub {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 10px;
}

.micro {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* =========================================================
   Sundays — where + map, timetable
   ========================================================= */
.where-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: 56px;
}

.where-info h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.where-info .addr { color: var(--ink-soft); margin-bottom: 26px; }
.where-info .addr-ko { font-size: 0.88rem; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  min-height: 360px;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.map-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.map-note strong { color: var(--ink); font-weight: 600; }

/* timetable — hairline table */
.timetable { border-top: 2px solid var(--ink); }

.tt-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.tt-time {
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tt-what { color: var(--ink); }
.tt-note { font-size: 0.85rem; color: var(--ink-soft); }
.tt-row.hl-row .tt-time,
.tt-row.hl-row .tt-what { color: var(--brand); font-weight: 700; }

.callout {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.callout .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
  top: -2px;
}
.callout p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.4;
  color: var(--ink);
}
.callout strong { color: var(--brand-deep); font-weight: 700; }

/* =========================================================
   Connect — warm black close
   ========================================================= */
.connect { background: #171310; color: #fff; }

.connect-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 130px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}

.connect .kicker { color: #98938D; }

.connect h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 18ch;
}
.connect h2 .accent { color: var(--brand); }

.connect p.sub { margin-top: 20px; color: #B5B0AA; max-width: 46ch; }

.connect-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.btn-light { background: var(--brand); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

.btn-line { border: 1px solid #3F3B36; color: #fff; }
.btn-line:hover { border-color: #fff; }

/* contact card — 연락 QR (Bryan Choi) */
.contact-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 36px) clamp(26px, 3vw, 36px) 28px;
}
.cc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-head h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.cc-head h3 em { font-style: normal; color: var(--brand); }
.cc-role { font-size: 0.76rem; color: var(--ink-soft); }
.cc-note { margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); }
.qr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.qr-tile { text-align: center; display: block; }
.qr-tile .frame { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px; transition: border-color 0.2s ease; }
.qr-tile:hover .frame { border-color: var(--brand); }
.qr-tile svg { width: 100%; height: auto; display: block; }
.qr-tile b { display: block; font-family: var(--display); font-weight: 700; font-size: 0.84rem; margin-top: 8px; }
.qr-tile .qr-id { display: block; font-size: 0.7rem; color: var(--ink-soft); margin-top: 2px; }
.cc-mobile { display: none; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-chat { border: 1px solid var(--line); color: var(--ink); padding: 11px 20px; font-size: 0.9rem; }
.btn-chat:hover { border-color: var(--brand); color: var(--brand-deep); }
.cc-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-soft); }
.cc-foot a b { color: var(--ink); font-weight: 600; }
.cc-foot a:hover b { color: var(--brand); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: #171310;
  color: #98938D;
  border-top: 1px solid #2A2622;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
}
.footer strong { color: #fff; }
.footer a { color: #fff; }
.footer a:hover { color: var(--brand); }

/* =========================================================
   Responsive + accessibility
   ========================================================= */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .where-grid { grid-template-columns: 1fr; }
  .connect-inner { grid-template-columns: 1fr; }
  .qr-row { display: none; }
  .cc-mobile { display: flex; }
  .cc-note { display: none; }
  .nav-name { display: none; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { font-size: 0.88rem; gap: 14px; }
  .tt-row { grid-template-columns: 100px 1fr; }
  .tt-note { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
}

/* =========================================================
   Theme strip — 2026 "Blooming in His love" (sticky with nav)
   ========================================================= */
.theme-strip {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px clamp(16px, 3vw, 32px);
  background: #FDF0EE;
  border-bottom: 1px solid #F3DCD8;
  text-align: center;
}
.ts-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ts-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ts-title em { font-style: normal; color: var(--brand); }
.ts-verse { font-size: 0.88rem; color: var(--ink-soft); }
.ts-ref {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}

section[id] { scroll-margin-top: 130px; }

@media (max-width: 900px) {
  .ts-verse { display: none; }
}
@media (max-width: 640px) {
  .theme-strip { gap: 8px; padding: 9px 14px; }
  .ts-label { display: none; }
}
