/* float.do/saju/guide — article pages. Tokens match saju/index.html (쪽빛 + 주홍, hanji paper). */
:root {
  --paper: #eceeea; --sheet: #f7f8f5; --ink: #1b2027; --ink-2: #4a525c; --ink-3: #5c6470; --rule: #c3c9c4;
  --indigo: #1d3557; --seal: #b5321f; --seal-ink: #fff4ef;
  --font-title: 'Saju Batang', 'Saju Serif', serif;
  --font-hanja: 'Saju Serif', serif;
  --font-body: 'Saju Sans', -apple-system, sans-serif;
  --font-num: 'Saju Mono', ui-monospace, monospace;
  --measure: 38rem;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12161c; --sheet: #1c222b; --ink: #e4e7ea; --ink-2: #b2b9c1; --ink-3: #8a929c; --rule: #333b46;
    --indigo: #8fa9cc; --seal: #e0563f; --seal-ink: #1a0c08;
  }
}
:root[data-theme="dark"] {
  --paper: #12161c; --sheet: #1c222b; --ink: #e4e7ea; --ink-2: #b2b9c1; --ink-3: #8a929c; --rule: #333b46;
  --indigo: #8fa9cc; --seal: #e0563f; --seal-ink: #1a0c08;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.8 var(--font-body); -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font-title); }
.mark svg { width: 20px; height: 24px; fill: #e63a46; }
.crumb { font-size: 14px; color: var(--ink-3); }
.crumb a { text-decoration: none; }

article { padding: 24px 0 56px; }
.kicker { margin: 0 0 10px; font: 600 14px/1.4 var(--font-body); color: var(--seal); }
h1 { margin: 0 0 18px; font: 700 clamp(28px, 6vw, 40px)/1.3 var(--font-title); letter-spacing: -.01em; }
.answer { margin: 0 0 32px; padding: 18px 20px; background: var(--sheet); border-left: 4px solid var(--seal); font-size: 18px; }
h2 { margin: 40px 0 12px; font: 700 23px/1.4 var(--font-title); color: var(--indigo); }
p { margin: 0 0 14px; }
.hanja { font-family: var(--font-hanja); }

.table-wrap { margin: 16px 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--sheet); }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { font: 600 13px/1.4 var(--font-body); color: var(--ink-3); }
td.num, th.num { font-family: var(--font-num); white-space: nowrap; }
td.pillar { font: 700 18px/1.3 var(--font-hanja); white-space: nowrap; }
td.pillar.changed { color: var(--seal); }
.cap { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }

.steps { margin: 16px 0; padding: 0; list-style: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 0; }
.steps .t { font-family: var(--font-num); color: var(--ink-2); white-space: nowrap; }

ul.myths { padding-left: 1.2em; }
ul.myths li { margin-bottom: 10px; }

.next { margin: 40px 0 0; padding: 20px; background: var(--indigo); color: #fff; border-radius: 4px; }
html[data-theme="dark"] .next { color: #0f1520; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .next { color: #0f1520; } }
.next h2 { margin: 0 0 8px; color: inherit; font-size: 20px; }
.next p { margin: 0 0 12px; }
.next a.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 4px 8px 0 0; background: #fff; color: #1d3557; border-radius: 4px; font-weight: 600; text-decoration: none; }

.sources { margin-top: 36px; font-size: 14px; color: var(--ink-2); }
.sources h2 { font-size: 16px; color: var(--ink-2); margin-top: 0; }
.sources ol { padding-left: 1.2em; }
footer { padding: 24px 0 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
