/* 생성 파일 — 고치지 말 것. 생성기 site/tools/build_site.py, 색 원천 design/tokens.json */
:root {
  --paper: #F3EFE6;
  --sheet: #FBF8F2;
  --ink: #1C1A17;
  --ink-muted: #5E584F;
  --tick: #8A8174;
  --rule: #CFC7B8;
  --fall: #B4381C;
  --rise: #1F5E86;
  --on-fall: #FFFFFF;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
  --read: 680px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
  --paper: #171411;
  --sheet: #201C18;
  --ink: #F1ECE2;
  --ink-muted: #B3AA9B;
  --tick: #8E8577;
  --rule: #3D372F;
  --fall: #F0764F;
  --rise: #7DB7DE;
  --on-fall: #1F0B04;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); }
a { color: var(--rise); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fall); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sheet); color: var(--ink); padding: 8px 12px; border: 1px solid var(--ink); z-index: 10; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }

.nav { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rule); }
.nav nav, .foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav nav a, .foot nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav nav a:hover, .foot nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.eyebrow, .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
h1 { font: 600 clamp(34px, 5vw, 52px)/1.08 var(--serif); letter-spacing: -0.01em; margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--ink); margin: 0 0 22px; max-width: 34em; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 2px; font-size: 14px; font-weight: 500; }
.soon::before { content: ""; width: 8px; height: 8px; background: var(--fall); border-radius: 50%; }
figure { margin: 0; }
.chart { width: 100%; height: auto; display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; }
.chart .g { stroke: var(--rule); stroke-width: 0.6; }
.chart .g--major { stroke-width: 1; }
.chart .ax { font: 11px var(--mono); fill: var(--ink-muted); }
.chart .ax--now { fill: var(--ink); font-weight: 600; }
.chart .now { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .curve { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.chart .curve--past { stroke-width: 2.5; }
.chart .curve--future { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.6s cubic-bezier(0, 0, 0.2, 1) both 0.2s; }
.chart .band--fall { fill: url(#hatchFall); }
.chart .band--rise { fill: url(#hatchRise); }
.chart .hatch { stroke-width: 1.4; }
.chart .hatch--fall { stroke: var(--fall); opacity: 0.45; }
.chart .hatch--rise { stroke: var(--rise); opacity: 0.45; }
.chart .tag { font: 600 12px var(--body); }
.chart .tag--fall { fill: var(--fall); }
.chart .tag--rise { fill: var(--rise); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }

.sec { padding: 44px 0; border-bottom: 1px solid var(--rule); }
.sec h2 { font: 600 26px/1.2 var(--serif); margin: 0 0 20px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; }
.card h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fall); margin: 0 0 12px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 10px 0; border-top: 1px solid var(--rule); }
.card p { color: var(--ink-muted); font-size: 15px; }
.facts p { margin: 0 0 8px; color: var(--ink-muted); font-size: 15px; max-width: 60em; }

.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: calc(var(--read) + 32px); }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); }
.doc h2 { font: 600 22px/1.3 var(--serif); margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); scroll-margin-top: 76px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; scroll-margin-top: 76px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.toc { background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 14px 18px; margin: 18px 0 8px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--rule); border-radius: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--sheet); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); min-width: 9em; }
th { font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot small { color: var(--ink-muted); }

@media (max-width: 840px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 36px; }
}
@media (max-width: 480px) {
  .nav__in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
