/* 군변혁연구소 (IMT Global) — 기본 스타일 */
:root {
  --ink: #1a1d24;
  --ink-soft: #3a3f4b;
  --paper: #fbfaf7;
  --paper-alt: #f2efe8;
  --line: #dcd8cd;
  --accent: #8a1f2b;      /* 절제된 버건디 — 권위·진지함 */
  --accent-soft: #b5555f;
  --gold: #a4832f;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

h1, h2, h3, .serif {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-kr { font-family: "Noto Serif KR", serif; font-size: 1.1rem; font-weight: 700; }
.brand-en { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-soft); text-transform: uppercase; }

nav.main-nav { display: flex; gap: 32px; }
nav.main-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color .15s, border-color .15s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin: 0 0 22px;
  max-width: 18ch;
}
.hero.hero-compact { padding-bottom: 40px; }
.hero p.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.btn-primary:hover { background: #6f1622; border-color: #6f1622; }

/* Section generic */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 20px; }

.about-body { max-width: 64ch; color: var(--ink-soft); }
.about-body p { margin: 0 0 16px; }
.bio-heading { font-size: 1.05rem; margin: 28px 0 12px; color: var(--ink); }
.bio-label { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.bio-list { margin: 0 0 20px; padding-left: 20px; color: var(--ink-soft); }
.bio-list:last-of-type { margin-bottom: 0; }

.placeholder-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--paper-alt);
  border-left: 3px solid var(--gold);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* Pillar cards */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .15s, transform .15s;
}
.pillar-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pillar-card.pillar-church { border-left: 3px solid var(--gold); }
.pillar-card.pillar-military { border-left: 3px solid #3d5a73; }
.pillar-index {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.pillar-card h3 { margin: 0; font-size: 1.35rem; }
.pillar-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.pillar-tags {
  font-size: 0.78rem;
  color: #8b8778;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.pillar-link { font-size: 0.88rem; color: var(--accent); font-weight: 600; margin-top: 4px; }

/* Pillar detail page */
.pillar-focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.pillar-focus-item {
  border: 1px solid var(--line);
  padding: 20px;
  background: #fff;
}
.pillar-focus-item h4 { margin: 0 0 8px; font-size: 1rem; }
.pillar-focus-item p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* Reports gate */
.gate-box {
  border: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 40px;
  text-align: center;
  max-width: 60ch;
}
.gate-box h3 { margin: 0 0 12px; }
.gate-box p { color: var(--ink-soft); margin: 0 0 20px; }
.container-center { display: flex; flex-direction: column; align-items: center; }
.gate-note { margin-top: 32px; max-width: 60ch; }

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.article-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, transform .15s;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-card h3 { font-size: 1.12rem; margin: 0; }
.article-card .excerpt { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.article-card .meta { font-size: 0.78rem; color: #8b8778; margin-top: auto; }

.empty-state {
  border: 1px dashed var(--line);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Article detail */
.article-detail {
  max-width: 72ch;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.article-detail .tag { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.article-detail h1 { margin: 14px 0 8px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.article-detail .meta { color: #8b8778; font-size: 0.86rem; margin-bottom: 40px; }
.article-detail .body p { margin: 0 0 20px; color: var(--ink); }
.article-detail .body h2 { font-size: 1.3rem; margin: 36px 0 14px; }
.article-detail .sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-soft); }
.article-detail .sources h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }

/* Contact */
.contact-block { max-width: 56ch; color: var(--ink-soft); }
.contact-block a.email { color: var(--accent); font-weight: 600; }

/* Footer */
footer.site-footer {
  padding: 40px 0;
  font-size: 0.82rem;
  color: #8b8778;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  nav.main-nav { gap: 20px; flex-wrap: wrap; }
  .hero { padding: 64px 0 48px; }
  section { padding: 52px 0; }
  .pillar-grid { grid-template-columns: 1fr; }
}

/* Google Docs Download Box & Button */
.doc-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0 32px;
  padding: 16px 20px;
  background: #f0f4f9;
  border: 1px solid #d3e3fd;
  border-radius: 8px;
}
.btn-gdocs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a73e8;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.btn-gdocs:hover {
  background: #1557b0;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.doc-actions-note {
  font-size: 0.82rem;
  color: #444746;
  flex: 1;
  min-width: 240px;
}
.gdocs-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d3e3fd;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

