/* 헤세드 소프트 — 디자인 시안에서 추출한 스타일시트.
   색이나 여백을 바꾸려면 아래 :root 변수부터 보세요. */

:root {
  --bg: #FDFDFC;
  --ink: #14161A;
  --muted: #5C626B;
  --faint: #9BA1A9;
  --line: #E3E5E3;
  --accent: #A67C2E;
  --panel: #F4F5F3;
  --grid: #F3F4F2;
  --hover: #F7F8F6;
  --pale: #C9C9C6;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1080px;
  --gut: clamp(20px, 4vw, 36px);
  --pad-y: clamp(60px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.mono { font-family: var(--mono); }
.fine { font-size: 0.72em; color: var(--faint); letter-spacing: 0; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0 0 6px 0; z-index: 100;
}
.skip:focus { left: 0; color: var(--bg); }

/* ── 헤더 ───────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 253, 252, 0.93);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  padding-top: 12px; padding-bottom: 12px;
  min-height: 64px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px;
}
.logo { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a.is-accent { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.site-nav a.is-accent::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.site-nav a.is-accent:hover, .site-nav a.is-accent[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }

/* ── 버튼 ───────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 6px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-ghost {
  background: none; color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: none; border-color: var(--ink); color: var(--ink); }

/* ── 히어로 ─────────────────────────────────────── */

.hero { background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px); background-size: calc(100% / 4) 100%; }
.hero > .wrap { padding-top: clamp(60px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { margin: 0; font-size: clamp(36px, 7vw, 68px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 600; }
.hero h1 .mono { font-weight: 500; letter-spacing: -0.04em; }
.hero-lead { margin: 28px 0 0; max-width: 32em; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; font-size: 15px; color: var(--faint); }

.hero-hosting { margin-top: 28px; max-width: 720px; }
.hero-hosting-label { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.hero-tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.hero-tier { background: var(--bg); padding: 16px 18px 18px; }
.hero-tier-name { font-size: 13px; color: var(--faint); }
.hero-tier-price { margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.hero-tier-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ── 섹션 머리말 ────────────────────────────────── */

.eyebrow { font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
h2 { margin: 0; font-size: clamp(25px, 3.6vw, 38px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.35; }
.section-head p { margin: 14px 0 0; max-width: 32em; font-size: 16px; line-height: 1.8; color: var(--muted); }

/* ── 가격 ───────────────────────────────────────── */

.plans { display: flex; flex-direction: column; gap: 12px; }
.plan {
  border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(22px, 3vw, 30px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px 32px; align-items: start;
}
.plan.is-highlight { border-color: var(--ink); }
.plan-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan-target { margin-top: 6px; font-size: 15px; color: var(--faint); }
.plan-desc { font-size: 16px; line-height: 1.75; color: var(--muted); }
.plan-detail { margin-top: 10px; font-size: 14px; color: var(--faint); }
.plan-prices { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-key { font-size: 14px; color: var(--faint); min-width: 4em; }
.price-main { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.price-sub { font-family: var(--mono); font-size: 17px; color: var(--muted); }
.price-text { font-size: 18px; color: var(--muted); }
.plan-note { font-size: 14px; color: var(--faint); margin-top: 4px; }
.link-underline {
  font-size: 15px; color: var(--accent);
  border-bottom: 1px solid var(--line); padding-bottom: 3px; align-self: flex-start;
}
.link-underline:hover { border-bottom-color: var(--accent); }
.section-note { margin: 26px 0 0; max-width: 40em; font-size: 15px; line-height: 1.8; color: var(--faint); }

/* ── 시안 / 만든 것 ─────────────────────────────── */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.card-grid.is-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(20px, 3vw, 32px); }

.thumb {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease;
}
.thumb.is-4x3 { aspect-ratio: 4 / 3; }
.thumb.is-16x10 { aspect-ratio: 16 / 10; }
.thumb.is-highlight { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { font-size: 14px; color: var(--faint); padding: 12px; text-align: center; }
a:hover > .thumb { border-color: var(--ink); }

.card-label { margin-top: 12px; font-size: 15px; color: var(--muted); }
.work h3 { margin: 14px 0 0; font-size: 16px; font-weight: 500; }
.work p { margin: 4px 0 0; font-size: 14px; color: var(--faint); line-height: 1.7; }

/* ── 이유 / 프로세스 (칸 나눔 격자) ─────────────── */

.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.tiles.is-narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile { background: var(--bg); padding: 28px 26px 32px; }
.tile h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.tile p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }

.why-title { margin-bottom: clamp(32px, 4vw, 48px); max-width: 18em; }
.promises {
  margin-top: 36px; border-left: 2px solid var(--accent); padding-left: 20px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: clamp(16px, 1.8vw, 19px); line-height: 1.75; letter-spacing: -0.015em;
}

.step { background: var(--bg); padding: 26px 24px 30px; }
.step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.step-no { font-size: 13px; color: var(--accent); }
.step-name { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.step-dur { margin-left: auto; font-size: 13px; color: var(--faint); }
.step p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.step-todo { margin-top: 10px; font-size: 14px; color: var(--faint); }

/* ── 혼자 다 합니다 ─────────────────────────────── */

.solo-lead { margin: 20px 0 clamp(36px, 4.5vw, 54px); max-width: 34em; font-size: clamp(16px, 1.7vw, 18px); line-height: 1.85; color: var(--muted); }
.solo-rows {
  display: grid; grid-template-columns: minmax(0, 6em) minmax(0, 1fr);
  gap: 20px 28px; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.solo-rows dt { font-size: 16px; color: var(--faint); }
.solo-rows dd { margin: 0; font-size: clamp(16px, 1.9vw, 20px); line-height: 1.7; letter-spacing: -0.015em; }
.solo-closing { margin: 36px 0 0; max-width: 30em; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; letter-spacing: -0.02em; }
.solo-stats {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
  font-size: 15px; color: var(--faint);
}
.link-accent { color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-accent:hover { border-bottom-color: var(--accent); }

/* ── 자주 묻는 질문 ─────────────────────────────── */

.faq { display: flex; flex-direction: column; }
.faq h2 { margin-bottom: clamp(28px, 3.5vw, 42px); }
.faq-item {
  border-top: 1px solid var(--line); padding: 26px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 40px;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.faq-item p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }

/* ── 문의 ───────────────────────────────────────── */

.contact > .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px 72px; align-items: start;
}
.contact-lead { margin: 18px 0 36px; max-width: 26em; font-size: 16px; line-height: 1.8; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 6px; background: none;
  font-family: inherit; font-size: 16px; color: var(--ink);
}
.field input, .field select { min-height: 52px; padding: 0 16px; }
.field select { padding: 0 14px; appearance: none; }
.field textarea { padding: 14px 16px; line-height: 1.75; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-hint { font-size: 14px; color: var(--faint); }
.form-hint.is-error { color: var(--accent); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn[disabled]:hover { background: var(--ink); }

.sent { border: 1px solid var(--ink); border-radius: 6px; padding: 32px 30px; }
.sent-title { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.sent-desc { margin: 0 0 24px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.btn-reset {
  min-height: 46px; padding: 0 20px; background: none;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; color: var(--ink); cursor: pointer;
}
.btn-reset:hover { border-color: var(--ink); }
[hidden] { display: none !important; }

.contact-side { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.side-block {
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px 26px 28px; border-bottom: 1px solid var(--line);
}
a.side-block:hover { background: var(--hover); color: inherit; }
.side-eyebrow { font-size: 14px; color: var(--faint); }
.side-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.side-title.is-pending { color: var(--faint); }
.side-desc { font-size: 14px; color: var(--muted); }
.side-desc.is-pending { color: var(--faint); }
.side-mail { font-size: 17px; letter-spacing: -0.01em; }
.side-text { padding: 24px 26px 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.side-text:last-child { padding-bottom: 26px; }
.side-key { color: var(--faint); font-size: 14px; margin-bottom: 6px; }

/* ── 교회 안내 띠 ───────────────────────────────── */

.strip > .wrap { padding-top: 26px; padding-bottom: 26px; }
.strip a { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--muted); }
.strip a:hover { color: var(--ink); }

/* ── 푸터 ───────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 36px; padding-bottom: 44px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 28px 40px; align-items: start;
  font-size: 14px; line-height: 1.9; color: var(--faint);
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { color: var(--muted); }
.footer-copy { letter-spacing: 0.12em; color: var(--pale); }

/* ── 만드는 사람 페이지 ─────────────────────────── */

.about-hero > .wrap { padding-top: clamp(56px, 8vw, 92px); padding-bottom: clamp(44px, 6vw, 68px); }
.about-hero h1 { margin: 0; font-size: clamp(28px, 4.6vw, 46px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.25; max-width: 18em; }
.about-lead { margin: 26px 0 0; max-width: 36em; font-size: clamp(16px, 1.7vw, 18px); line-height: 1.85; color: var(--muted); }
.about-section > .wrap { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.about-section h2 { font-size: clamp(21px, 2.6vw, 27px); }
.about-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 36px 64px; align-items: start;
}

.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.tl-legend { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.tl-legend span { display: flex; align-items: center; gap: 8px; }
.tl-swatch { width: 16px; height: 4px; }
.tl-swatch.is-ops { background: var(--accent); }
.tl-swatch.is-build { background: var(--ink); }

/* --cols 는 연도 개수. about.mjs 가 인라인으로 넣어줍니다. */
.tl-years {
  display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr);
  border-top: 1px solid var(--line); padding-top: 9px; margin-bottom: 6px;
}
.tl-years span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--faint); }
.tl-body {
  padding: 16px 0 6px;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / var(--cols, 6)) 100%;
}
.tl-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: center; }
.tl-row.is-ops { padding: 8px 0; }
.tl-row.is-ops.is-last { padding-bottom: 18px; }
.tl-row.is-build { padding: 7px 0; }
.tl-name-ops { display: flex; align-items: baseline; gap: 10px; justify-content: flex-end; text-align: right; flex-wrap: wrap; }
.tl-name-ops > span:first-child { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.tl-badge { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.tl-name-build { text-align: right; font-size: 14px; letter-spacing: -0.01em; }
.tl-track { position: relative; }
.tl-row.is-ops .tl-track { height: 13px; }
.tl-row.is-build .tl-track { height: 8px; }
.tl-bar {
  position: absolute; height: 100%;
  transform-origin: left center;
  animation: drawBar 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.tl-bar.is-ops { background: var(--accent); }
.tl-bar.is-build { background: var(--ink); min-width: 9px; }
.tl-bar.is-ongoing { background: linear-gradient(to right, var(--accent) 0%, var(--accent) 68%, rgba(166, 124, 46, 0.22) 100%); }
.tl-divider { height: 1px; background: var(--line); margin-bottom: 18px; }
.tl-note { margin: 28px 0 0; max-width: 34em; font-size: 15px; line-height: 1.8; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 16px; }

@keyframes drawBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.about-since { font-size: 15px; color: var(--faint); margin-top: 8px; }
.about-body-lead { margin: 0 0 26px; font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 34em; }
.def-rows { display: flex; flex-direction: column; }
.def-row {
  display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.def-row:last-child { border-bottom: 1px solid var(--line); }
.def-row > span:first-child { font-size: 15px; color: var(--faint); }
.def-row > span:last-child { font-size: 16px; }

.before-lead { margin: 0 0 22px; font-size: clamp(16px, 1.7vw, 18px); line-height: 1.85; max-width: 32em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--faint); }
.back-link > .wrap { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.back-link a { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; }

/* 시안 원본은 300px 고정 라벨 열이라 좁은 화면에서 무너집니다. 모바일에서는 위아래로 쌓습니다. */
@media (max-width: 640px) {
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .tl-name-ops { justify-content: flex-start; text-align: left; }
  .tl-name-build { text-align: left; }
}

/* 막대는 scaleX(0) 에서 자라납니다. 애니메이션이 실행되지 않는 환경(인쇄 등)에서는
   막대가 통째로 안 보이므로, 애니메이션을 빼고 완성된 모습으로 고정합니다. */
@media print {
  .tl-bar { animation: none !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
