:root {
  --bg: #f6f1eb;
  --bg-soft: #fffaf6;
  --paper: #fffdfb;
  --line: #dfd4c6;
  --text: #1f1a16;
  --muted: #6f655d;
  --accent: #b4422c;
  --accent-deep: #8f2f1e;
  --accent-soft: #f6e1da;
  --gold: #9d7842;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.78;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
strong { color: var(--accent-deep); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}
.narrow { width: min(calc(100% - 40px), 860px); margin: 0 auto; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88svh;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1d0d0b 0%, #2c1713 48%, #1b0e0c 100%);
  color: #fff7f1;
}
.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
}
.hero__bg::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(180,66,44,0.36), transparent 66%);
  top: -60px;
  right: -70px;
}
.hero__bg::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(157,120,66,0.2), transparent 70%);
  bottom: -90px;
  left: -60px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 88px 0 96px;
}
.eyebrow {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.hero h1,
.section h2 {
  font-family: 'Noto Serif KR', serif;
  letter-spacing: -0.03em;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 6.8vw, 5rem);
  line-height: 1.12;
  font-weight: 900;
}
.hero h1 span { color: #ff9e86; }
.hero__lead {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 2.2vw, 1.42rem);
  color: rgba(255, 247, 241, 0.82);
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.hero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  font-size: 14px;
}
.hero__cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.hero__cta,
.button--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 30px rgba(180,66,44,0.28);
}
.hero__cta:hover,
.button--primary:hover { transform: translateY(-1px); background: var(--accent-deep); }
.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.button--ghost:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 235, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 212, 198, 0.7);
}
.nav__inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { background: white; color: var(--accent); }

.section { padding: 82px 0; border-bottom: 1px solid rgba(223, 212, 198, 0.7); }
.section--intro { padding-top: 66px; }
.section--highlight { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.section--proposal { background: linear-gradient(180deg, #fff9f6 0%, #f8f1ea 100%); }
.section--closing {
  background: linear-gradient(135deg, #261412, #3a201b);
  color: #fff4ee;
}
.section--closing p { color: rgba(255,244,238,0.86); }
.section-head { margin-bottom: 30px; }
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.24;
}
.section-copy { margin-top: 26px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.cards-3,
.cards-2,
.timeline {
  display: grid;
  gap: 18px;
}
.timeline { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.top-gap { margin-top: 24px; }

.timeline-card,
.info-card,
.note-box,
.stat-panel,
.emphasis-box,
.quote-block,
.proposal-table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-card,
.info-card {
  padding: 24px;
}
.timeline-card__year {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}
.timeline-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}
.timeline-card p,
.info-card p,
.note-box p,
.stat-panel__item,
.emphasis-box p { margin: 0; color: var(--muted); }
.note-box {
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 5px solid var(--accent);
}
.note-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
}
.stat-panel__item {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbf6f1);
  border: 1px solid rgba(223, 212, 198, 0.95);
}
.stat-panel__item .label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.stat-panel__item strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.45;
}

.quote-block {
  margin-top: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fff8f3, #fffdf9);
  border-left: 5px solid var(--gold);
}
.info-card--soft { background: linear-gradient(180deg, #fffefd, #fbf5ef); }
.emphasis-box {
  margin-top: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #fff6f2, #fffcfa);
  border-left: 6px solid var(--accent);
}
.strong-line {
  margin-top: 14px !important;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text) !important;
}

.proposal-table-wrap { overflow: hidden; }
.proposal-table {
  width: 100%;
  border-collapse: collapse;
}
.proposal-table th,
.proposal-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(223, 212, 198, 0.75);
  vertical-align: top;
}
.proposal-table tr:last-child th,
.proposal-table tr:last-child td { border-bottom: 0; }
.proposal-table th {
  width: 26%;
  background: #fbf5ef;
  color: var(--text);
  font-size: 14px;
}
.proposal-table td { color: var(--muted); }

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.footer {
  padding: 24px 0 42px;
  background: #17110f;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mobile-break { display: none; }

.stats-page {
  min-height: 100svh;
  background: linear-gradient(180deg, #f7f2eb 0%, #f1e7dc 100%);
}
.stats-hero {
  padding: 68px 0 30px;
}
.stats-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-family: 'Noto Serif KR', serif;
}
.stats-hero p { color: var(--muted); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0 30px;
}
.metric-card,
.chart-card,
.stats-table-wrap,
.empty-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(223,212,198,0.85);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.metric-card { padding: 22px; }
.metric-card .metric-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.metric-card strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.metric-card small { display: block; margin-top: 8px; color: var(--muted); }
.chart-card { padding: 22px; }
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.chart-head h2,
.stats-table-wrap h2 { margin: 0; font-size: 1.25rem; font-family: 'Noto Sans KR', sans-serif; }
.chart-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}
.chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(56px, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 260px;
}
.bar-col {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.bar-stack {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.bar {
  width: 22px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #f4b8aa, var(--accent));
}
.bar--secondary {
  background: linear-gradient(180deg, #e5d1aa, var(--gold));
}
.bar-col .date {
  font-size: 11px;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.bar-col .value {
  font-size: 11px;
  color: var(--text);
  font-weight: 700;
}
.stats-table-wrap {
  margin-top: 20px;
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
}
.table-scroll th,
.table-scroll td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(223,212,198,0.7);
  text-align: left;
  font-size: 14px;
}
.table-scroll th { background: #fbf6f1; }
.table-scroll tr:last-child td { border-bottom: 0; }
.empty-card {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(180,66,44,0.08);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .grid-2,
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .mobile-break { display: inline; }
  .hero__inner { padding: 74px 0 84px; }
  .section { padding: 64px 0; }
  .timeline,
  .cards-2,
  .grid-2,
  .stats-grid,
  .stat-panel { grid-template-columns: 1fr; }
  .proposal-table th,
  .proposal-table td {
    display: block;
    width: 100%;
  }
  .proposal-table th { border-bottom: 0; padding-bottom: 6px; }
  .proposal-table td { padding-top: 0; }
  .footer__inner { flex-direction: column; }
  .chart { grid-auto-columns: 56px; }
}
