/* ================================================================
   GHM Base — 리셋 + 타이포 + 헤더 + 푸터 + 공통 컴포넌트
   tokens.css 뒤에 부르세요.
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ghm-bg);
  color: var(--ghm-ink);
  font-family: var(--ghm-font-sans);
  font-size: var(--ghm-text-base);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* 한·베·영 모두 단어/어절 중간에서 끊기지 않게 — 의미 단위 줄바꿈 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }


/* ── 타이포그래피 ─────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; color: var(--ghm-ink); line-height: 1.3; }

h1, h2 {
  font-family: var(--ghm-font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h3, h4 {
  font-family: var(--ghm-font-sans);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

h1 { font-size: var(--ghm-text-3xl); }
h2 { font-size: var(--ghm-text-2xl); }
h3 { font-size: var(--ghm-text-xl); }
h4 { font-size: var(--ghm-text-lg); }

p { margin: 0 0 var(--ghm-space-2); max-width: 64ch; }

a {
  color: var(--ghm-sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ghm-duration) var(--ghm-ease);
}
a:hover { border-bottom-color: var(--ghm-sage); }

.vn, .en {
  font-family: var(--ghm-font-serif);
  font-style: italic;
  color: var(--ghm-sage);
}


/* ── 레이아웃 유틸리티 ─────────────────────────────── */
.ghm-container {
  max-width: var(--ghm-container);
  margin: 0 auto;
  padding: 0 var(--ghm-space-3);
}
@media (min-width: 768px) {
  .ghm-container { padding: 0 var(--ghm-space-4); }
}

.ghm-container-narrow {
  max-width: var(--ghm-container-narrow);
  margin: 0 auto;
  padding: 0 var(--ghm-space-3);
}

.ghm-section { padding: var(--ghm-space-6) 0; }
@media (min-width: 768px) {
  .ghm-section { padding: var(--ghm-space-7) 0; }
}


/* ── 키커 (eyebrow) ─────────────────────────────── */
.ghm-eyebrow {
  font-size: var(--ghm-text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghm-sage);
  margin: 0 0 var(--ghm-space-2);
}


/* ── 버튼 ───────────────────────────────────────── */
.ghm-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--ghm-font-sans);
  font-size: var(--ghm-text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--ghm-radius-sm);
  border: 0.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ghm-duration) var(--ghm-ease);
}
.ghm-btn:hover { border-bottom: 0.5px solid transparent; }

.ghm-btn-primary { background: var(--ghm-sage); color: #FFFFFF; }
.ghm-btn-primary:hover { background: #4A6657; }

.ghm-btn-ghost {
  background: transparent;
  color: var(--ghm-ink);
  border-color: var(--ghm-line-strong);
}
.ghm-btn-ghost:hover { background: var(--ghm-ink); color: var(--ghm-bg); }


/* ── 카드 (그림자 없이) ─────────────────────────── */
.ghm-card {
  background: var(--ghm-surface);
  border: 0.5px solid var(--ghm-line);
  border-radius: var(--ghm-radius-md);
  padding: var(--ghm-space-3);
  transition: border-color var(--ghm-duration) var(--ghm-ease);
}
.ghm-card:hover { border-color: var(--ghm-line-strong); }

a.ghm-card {
  display: block;
  color: inherit;
  border-bottom: 0.5px solid var(--ghm-line);
}
a.ghm-card:hover { border-bottom-color: var(--ghm-line-strong); }


/* ── 인용 ───────────────────────────────────────── */
.ghm-quote {
  font-family: var(--ghm-font-serif);
  font-size: var(--ghm-text-lg);
  font-style: italic;
  color: var(--ghm-ink-muted);
  line-height: 1.7;
  padding-left: var(--ghm-space-3);
  border-left: 2px solid var(--ghm-gold);
  margin: var(--ghm-space-4) 0;
}

.ghm-divider {
  height: 1px;
  background: var(--ghm-line);
  border: none;
  margin: var(--ghm-space-5) 0;
}


/* ================================================================
   헤더 — 모든 페이지 공통
   ================================================================ */
.ghm-header {
  border-bottom: 0.5px solid var(--ghm-line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(245, 240, 232, 0.92);
}

.ghm-header__inner {
  max-width: var(--ghm-container);
  margin: 0 auto;
  padding: var(--ghm-space-2) var(--ghm-space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 768px) {
  .ghm-header__inner { padding: var(--ghm-space-3) var(--ghm-space-4); }
}

.ghm-logo {
  font-family: var(--ghm-font-serif);
  font-size: var(--ghm-text-lg);
  font-weight: 400;
  color: var(--ghm-ink);
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 0;
  /* 풀어쓰기(Global Hope Mission)가 아래 작게 들어가도록 */
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}
.ghm-logo:hover { border-bottom: 0; color: var(--ghm-sage); }
.ghm-logo:hover .ghm-logo__sub { color: var(--ghm-sage); }

.ghm-logo__sub {
  font-family: var(--ghm-font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ghm-ink-faint);
  transition: color var(--ghm-duration) var(--ghm-ease);
}
@media (min-width: 768px) {
  .ghm-logo__sub { font-size: 11px; letter-spacing: 0.18em; }
}

.ghm-nav { display: none; gap: var(--ghm-space-4); }
@media (min-width: 768px) { .ghm-nav { display: flex; } }

.ghm-nav__link {
  font-size: var(--ghm-text-sm);
  font-weight: 400;
  color: var(--ghm-ink-muted);
  letter-spacing: 0.05em;
  border-bottom: 0;
  transition: color var(--ghm-duration) var(--ghm-ease);
}
.ghm-nav__link:hover { color: var(--ghm-ink); border-bottom: 0; }
.ghm-nav__link.active { color: var(--ghm-ink); font-weight: 500; }

.ghm-header__right { display: flex; align-items: center; gap: var(--ghm-space-2); }

/* 언어 토글 */
.ghm-lang {
  display: flex;
  gap: 6px;
  font-size: var(--ghm-text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.ghm-lang button {
  background: none; border: none;
  color: var(--ghm-ink-faint);
  padding: 4px 6px;
  font-family: inherit; font-size: inherit;
  letter-spacing: inherit; font-weight: inherit;
  cursor: pointer;
  transition: color var(--ghm-duration) var(--ghm-ease);
}
.ghm-lang button:hover { color: var(--ghm-ink); }
.ghm-lang button.active { color: var(--ghm-ink); }

/* 모바일 햄버거 */
.ghm-burger {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; background: none; border: none;
}
@media (min-width: 768px) { .ghm-burger { display: none; } }
.ghm-burger span {
  display: block; width: 20px; height: 1px; background: var(--ghm-ink);
}

.ghm-mobile-menu {
  display: none;
  background: var(--ghm-bg);
  border-bottom: 0.5px solid var(--ghm-line-soft);
  padding: var(--ghm-space-2) var(--ghm-space-3) var(--ghm-space-3);
}
.ghm-mobile-menu.open { display: block; }
.ghm-mobile-menu .ghm-nav__link {
  display: block;
  padding: 10px 0;
  font-size: var(--ghm-text-base);
  border-bottom: 0.5px solid var(--ghm-line-soft);
}
.ghm-mobile-menu .ghm-nav__link:last-child { border-bottom: 0; }


/* ================================================================
   푸터 — 모든 페이지 공통
   ================================================================ */
.ghm-footer {
  background: var(--ghm-ink);
  color: var(--ghm-bg);
  padding: var(--ghm-space-5) 0 var(--ghm-space-3);
  margin-top: var(--ghm-space-6);
}

.ghm-footer__inner {
  max-width: var(--ghm-container);
  margin: 0 auto;
  padding: 0 var(--ghm-space-3);
}
@media (min-width: 768px) {
  .ghm-footer__inner { padding: 0 var(--ghm-space-4); }
}

.ghm-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ghm-space-4);
  padding-bottom: var(--ghm-space-4);
  border-bottom: 0.5px solid rgba(245, 240, 232, 0.15);
}
@media (min-width: 768px) {
  .ghm-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.ghm-footer__brand {
  font-family: var(--ghm-font-serif);
  font-size: var(--ghm-text-xl);
  letter-spacing: 0.08em;
  margin: 0 0 var(--ghm-space-1);
}

.ghm-footer__tagline {
  font-size: var(--ghm-text-sm);
  color: rgba(245, 240, 232, 0.65);
  margin: 0 0 var(--ghm-space-2);
  max-width: 32ch;
  line-height: 1.7;
}

.ghm-footer__col h4 {
  font-size: var(--ghm-text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
  margin: 0 0 var(--ghm-space-2);
}
.ghm-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ghm-footer__col li { margin-bottom: 10px; }
.ghm-footer__col a {
  font-size: var(--ghm-text-sm);
  color: rgba(245, 240, 232, 0.85);
  border-bottom: 0;
}
.ghm-footer__col a:hover { color: var(--ghm-gold); }

.ghm-footer__bottom {
  padding-top: var(--ghm-space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ghm-space-1);
  font-size: var(--ghm-text-xs);
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 0.05em;
}
