/* ==========================================================================
   Y Life — 緣(연)의 집
   공통 스타일시트 · 2026.04.17 대개편
   한지·먹·나무·실타래 팔레트 + 에디토리얼 타이포그래피
   ========================================================================== */

:root {
  /* --- 컬러 (한지 / 먹 / 나무 / 실타래) --- */
  --bg-paper: #F8F6F2;          /* 배경 — 한지색 */
  --bg-paper-alt: #F0EBE1;      /* 약간 짙은 한지 */
  --ink: #1D1D1B;               /* 본문 — 먹색 */
  --ink-soft: #3C3C38;          /* 부드러운 먹 */
  --wood: #5D4037;              /* 제목·포인트 — 나무색 */
  --wood-light: #8B6F5C;
  --thread: #B08E61;            /* 실타래 — 따뜻한 금빛 갈색 (강조색) */
  --thread-soft: rgba(176, 142, 97, 0.15);
  --border: rgba(29, 29, 27, 0.08);
  --border-strong: rgba(29, 29, 27, 0.4);
  --muted: rgba(29, 29, 27, 0.5);
  --white: #FFFFFF;

  /* 상태 */
  --success: #6B8F71;
  --error: #8F6B6B;

  /* 그림자 (은은하게) */
  --shadow-sm: 0 1px 2px rgba(29, 29, 27, 0.04);
  --shadow-md: 0 6px 20px rgba(29, 29, 27, 0.06);
  --shadow-lg: 0 20px 50px rgba(29, 29, 27, 0.08);

  /* 레이아웃 */
  --max-width: 1400px;
  --gutter: 5%;
}

/* --- 리셋 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-paper);
  color: var(--ink);
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-weight: 400;
  line-height: 1.8;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* 은은한 한지 텍스처 (그라디언트) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(176, 142, 97, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(93, 64, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--wood); }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- 컨테이너 --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   헤더 / 네비게이션
   ========================================================================== */
.app-bar {
  position: relative;
  z-index: 10;
}

.app-bar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.logo-mark {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--wood);
  letter-spacing: 0;
}

.nav-center {
  display: none;
  gap: 38px;
}

@media (min-width: 900px) {
  .nav-center { display: flex; }
}

.nav-center a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}

.nav-center a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--thread);
  transition: width 0.3s ease;
}

.nav-center a:hover::after { width: 100%; }
.nav-center a:hover { color: var(--wood); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 10px 18px;
  color: var(--ink);
  transition: all 0.3s ease;
  /* 2026-04-17 한국어 단일 언어 집중. 영어 완성 후 아래 줄 삭제하면 즉시 노출 */
  display: none !important;
}

.lang-toggle:hover {
  background: var(--ink);
  color: var(--bg-paper);
}

.menu-btn {
  display: inline-flex;
  padding: 8px;
  color: var(--ink);
}

@media (min-width: 900px) { .menu-btn { display: none; } }

.mobile-drawer {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--ink);
  padding: 20px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-drawer.open { display: flex; }

.mobile-drawer a {
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px dotted var(--border);
  color: var(--ink);
}

/* ==========================================================================
   히어로
   ========================================================================== */
.hero {
  padding: 100px 0 140px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 80vh;
  gap: 40px;
}

.hero-content h1 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.hero-content h1 .accent {
  color: var(--wood);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--wood);
  max-width: 520px;
  border-left: 2px solid var(--thread);
  padding-left: 24px;
  line-height: 1.9;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.hanja-bg {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(12rem, 25vw, 28rem);
  font-weight: 200;
  color: var(--wood);
  opacity: 0.08;
  line-height: 1;
  user-select: none;
}

.vertical-motto {
  writing-mode: vertical-rl;
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.05rem;
  letter-spacing: 0.6em;
  color: var(--thread);
  height: 240px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   버튼 (에디토리얼 스타일)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Noto Serif KR', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--wood);
  color: var(--bg-paper);
  border-color: var(--wood);
}

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

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

.btn-lg { padding: 20px 40px; font-size: 1rem; }

/* ==========================================================================
   섹션 공통
   ========================================================================== */
.section { padding: 120px 0; }

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--thread);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-subtitle {
  color: var(--wood);
  font-size: 1rem;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   4개 관문 (테두리로 묶인 에디토리얼 그리드)
   ========================================================================== */
.gates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  background: var(--white);
  margin-bottom: 0;
}

.gate-card {
  padding: 80px 28px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--border);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
}

.gate-card:last-child { border-right: none; }

.gate-card:hover {
  background: var(--bg-paper-alt);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gate-card .gate-en {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--thread);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.gate-card h3 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.gate-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   연(緣)의 사랑방
   ========================================================================== */
.sarangbang {
  background: var(--white);
  padding: 140px 10%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.sarangbang::before {
  content: "緣";
  position: absolute;
  top: 40px;
  right: 50px;
  font-family: 'Noto Serif KR', serif;
  font-size: 5rem;
  color: var(--wood);
  opacity: 0.06;
  user-select: none;
}

.sarang-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  color: var(--ink);
}

.sarang-sub {
  text-align: center;
  color: var(--wood);
  font-style: italic;
  font-size: 1.02rem;
  margin-bottom: 70px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.sarang-input-wrap { max-width: 820px; margin: 0 auto; }

.sarangbang textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.35rem;
  padding: 24px 0;
  resize: none;
  outline: none;
  line-height: 1.6;
  color: var(--ink);
  transition: border-color 0.3s ease;
}

.sarangbang textarea:focus { border-bottom-color: var(--thread); }
.sarangbang textarea::placeholder { color: var(--muted); font-style: italic; }

.sarang-form-footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sarang-hint {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.sarang-submit {
  background: var(--ink);
  color: var(--white);
  padding: 18px 54px;
  border: none;
  font-family: 'Noto Serif KR', serif;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sarang-submit:hover {
  background: var(--wood);
  letter-spacing: 0.35em;
}

/* 다섯 겹 응답 */
.saranbang-responses {
  margin-top: 100px;
  display: none;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.saranbang-responses.active { display: block; }

.saranbang-routing {
  font-size: 0.85rem;
  color: var(--thread);
  letter-spacing: 0.05em;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 50px;
  font-style: italic;
  text-align: center;
}

.layer {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px dotted var(--thread);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.layer.show { opacity: 1; transform: translateY(0); }

.layer:last-child { border-bottom: none; }

.layer-tag {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--thread);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}

.layer-label {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 18px;
}

.layer p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.9;
}

.layer p strong { color: var(--wood); }

.layer ol {
  list-style: none;
  padding: 0;
  counter-reset: q;
}

.layer ol li {
  counter-increment: q;
  padding: 14px 0 14px 40px;
  position: relative;
  border-bottom: 1px dotted var(--border);
  font-size: 1rem;
  line-height: 1.8;
}

.layer ol li:last-child { border-bottom: none; }

.layer ol li::before {
  content: counter(q) ".";
  position: absolute;
  left: 0;
  top: 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--thread);
  font-size: 1rem;
}

/* ==========================================================================
   오늘의 한 문장
   ========================================================================== */
.today-quote-section {
  padding: 100px 0 60px;
  text-align: center;
}

.today-quote {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--thread);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.5;
}

.quote-text {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 24px;
  font-style: italic;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--wood);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ==========================================================================
   세 기둥
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}

.pillar {
  position: relative;
}

.pillar-number {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 3rem;
  color: var(--thread);
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 24px;
}

.pillar h4 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--wood);
}

.pillar-summary {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 500;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: justify;
  line-height: 1.9;
}

/* ==========================================================================
   최근 칼럼
   ========================================================================== */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.column-card {
  background: var(--white);
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.column-card:hover {
  border-color: var(--wood);
  transform: translateY(-4px);
}

.col-date {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--thread);
  margin-bottom: 18px;
}

.col-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--ink);
}

.col-excerpt {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 24px;
}

.col-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.col-category {
  color: var(--wood);
  font-weight: 700;
}

.section-cta { text-align: center; margin-top: 60px; }

/* ==========================================================================
   학생 이야기
   ========================================================================== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.story-card {
  background: var(--white);
  padding: 44px 36px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.story-card:hover {
  border-color: var(--thread);
  transform: translateY(-3px);
}

.story-avatar {
  width: 60px;
  height: 60px;
  border: 1px solid var(--thread);
  background: var(--thread-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.6rem;
  color: var(--wood);
  margin-bottom: 22px;
  border-radius: 50%;
}

.story-meta {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 8px;
}

.story-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--thread);
  color: var(--thread);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.story-headline {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 18px;
  line-height: 1.5;
}

.story-quote {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.9;
  border-left: 2px solid var(--thread);
  padding-left: 18px;
  font-style: italic;
}

/* ==========================================================================
   연의 도구들 (앱 소개)
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--white);
}

.tool-card {
  padding: 50px 30px;
  border-right: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: left;
}

.tool-card:last-child { border-right: none; }

.tool-card:hover { background: var(--bg-paper-alt); }

.tool-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--thread);
  margin-bottom: 14px;
}

.tool-name {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.tool-description {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ==========================================================================
   푸터
   ========================================================================== */
.footer {
  padding: 100px 0 50px;
  border-top: 1px solid var(--ink);
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 460px;
  margin-top: 16px;
}

.footer-location {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--thread);
  margin-top: 18px;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--wood);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-list { list-style: none; }

.footer-list li {
  padding: 6px 0;
  font-size: 0.9rem;
}

.footer-list a {
  color: var(--ink-soft);
}

.footer-list a:hover { color: var(--wood); }

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .ink-mark {
  font-family: 'Noto Serif KR', serif;
  color: var(--wood);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   플로팅 "연에 묻다" 버튼
   ========================================================================== */
.saranbang-float {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--bg-paper);
  font-family: 'Noto Serif KR', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.saranbang-float:hover {
  background: var(--wood);
  color: var(--bg-paper);
  letter-spacing: 0.3em;
}

.saranbang-float .hanja {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .saranbang-float {
    right: 16px;
    bottom: 16px;
    padding: 14px 20px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   사랑방 모달
   ========================================================================== */
.saranbang-modal {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 27, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.saranbang-modal.open { display: flex; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.saranbang-modal-inner {
  background: var(--bg-paper);
  width: 100%;
  max-width: 860px;
  padding: 80px 60px;
  margin: 30px 0;
  position: relative;
  border: 1px solid var(--ink);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.saranbang-modal-inner::before {
  content: "緣";
  position: absolute;
  top: 30px;
  right: 40px;
  font-family: 'Noto Serif KR', serif;
  font-size: 4rem;
  color: var(--wood);
  opacity: 0.06;
}

.saranbang-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.saranbang-modal-close:hover {
  background: var(--ink);
  color: var(--bg-paper);
}

@media (max-width: 640px) {
  .saranbang-modal-inner { padding: 60px 24px; margin: 10px 0; }
}

/* ==========================================================================
   페이지 헤더 (관문 페이지 공통)
   ========================================================================== */
.page-header {
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-tag {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--thread);
  margin-bottom: 20px;
  display: inline-block;
}

.page-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-subtitle {
  font-style: italic;
  color: var(--wood);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.page-intro {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.9;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 140px 20px;
  color: var(--muted);
}

.empty-state-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.4rem;
  color: var(--wood);
  margin-bottom: 14px;
}

.empty-state-desc {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 30px;
}

/* 질문 숲 카드 */
.question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.question-card {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.question-card:hover {
  border-color: var(--thread);
  transform: translateY(-3px);
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.question-tag {
  padding: 3px 12px;
  border: 1px solid var(--thread);
  color: var(--thread);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.question-text {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 22px;
}

.question-footer {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0 80px;
  }
  .hero-visual { justify-content: center; margin-top: 40px; }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-top: 2px solid var(--thread);
    padding-left: 0;
    padding-top: 20px;
  }
  .hero-ctas { justify-content: center; }
  .vertical-motto { display: none; }
  .hanja-bg { position: absolute; z-index: -1; opacity: 0.05; }
  .gates { grid-template-columns: repeat(2, 1fr); }
  .gate-card:nth-child(2) { border-right: none; }
  .gate-card:nth-child(1), .gate-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .pillars { grid-template-columns: 1fr; gap: 60px; }
  .columns-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; gap: 24px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card:nth-child(2) { border-right: none; }
  .tool-card:nth-child(1), .tool-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .question-grid { grid-template-columns: 1fr; }
  .sarangbang { padding: 100px 5%; }
}

@media (max-width: 600px) {
  .gates { grid-template-columns: 1fr; }
  .gate-card { border-right: none; border-bottom: 1px solid var(--border); }
  .gate-card:last-child { border-bottom: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { border-right: none; border-bottom: 1px solid var(--border); }
  .tool-card:last-child { border-bottom: none; }
  .section { padding: 80px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sarangbang textarea { font-size: 1.1rem; }
  .sarang-form-footer { flex-direction: column; align-items: stretch; }
  .sarang-submit { width: 100%; }
  .sarangbang { padding: 80px 6%; }
}

/* ==========================================================================
   언어 전환 애니메이션
   ========================================================================== */
[data-i18n] { transition: opacity 0.2s ease; }
html[data-switching="true"] [data-i18n] { opacity: 0; }
