:root {
  --ink: #121212;
  --panel: #1b1b1b;
  --paper: #f5f1eb;
  --muted: #b9b5ae;
  --burgundy: #8e2237;
  --burgundy-light: #d29aa5;
  --gold: #b8976a;
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  word-break: keep-all;
  line-height: 1.8;
}
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; color: #111; padding: 10px 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  background: rgba(18, 18, 18, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand strong { font-family: "Noto Serif KR", serif; font-size: 22px; }
.header-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.header-links a { text-decoration: none; color: #dedbd6; }
.header-links .primary { background: var(--burgundy); color: #fff; padding: 10px 16px; border-radius: 2px; }

.hero { padding: 74px 24px 66px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 10%, rgba(142,34,55,.28), transparent 36%); }
.hero-inner, .article, .related-inner, .footer-inner { max-width: 900px; margin: 0 auto; }
.breadcrumb { margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.category { color: var(--burgundy-light); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
h1 { margin: 14px 0 24px; max-width: 820px; font-family: "Noto Serif KR", serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.3; letter-spacing: -.04em; }
.dek { max-width: 760px; margin: 0; color: #d5d1cb; font-size: 18px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }

.article { padding: 64px 24px 78px; }
.answer-box { margin: 0 0 54px; padding: 28px 30px; background: #f3ede5; color: #24211e; border-left: 5px solid var(--burgundy); }
.answer-box strong { display: block; margin-bottom: 8px; color: var(--burgundy); }
h2 { margin: 56px 0 18px; font-family: "Noto Serif KR", serif; font-size: 30px; line-height: 1.45; letter-spacing: -.02em; }
h3 { margin: 34px 0 12px; color: #efe8df; font-size: 20px; }
p { margin: 0 0 20px; }
ul, ol { margin: 14px 0 24px; padding-left: 24px; }
li { margin: 8px 0; }
.checklist { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: check; }
.checklist li { margin: 0; padding: 16px 18px 16px 50px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.checklist li::before { counter-increment: check; content: counter(check); position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--burgundy); color: #fff; font-size: 12px; }
.note { margin: 34px 0; padding: 22px 24px; background: rgba(142,34,55,.16); border: 1px solid rgba(210,154,165,.3); }
.source { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.source a { color: #d8c19f; }
.disclaimer { margin-top: 28px; color: #96928c; font-size: 12px; }

.consult-box { margin-top: 52px; padding: 34px; background: var(--paper); color: #24211e; }
.consult-box h2 { margin: 0 0 12px; color: #231e1c; }
.consult-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.consult-actions a { text-decoration: none; padding: 12px 18px; border: 1px solid #3b3632; font-size: 14px; font-weight: 600; }
.consult-actions .primary { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

.related { padding: 56px 24px; background: #0d0d0d; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-card { display: block; padding: 22px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.related-card span { display: block; margin-bottom: 8px; color: var(--burgundy-light); font-size: 12px; }
.related-card strong { font-family: "Noto Serif KR", serif; font-size: 18px; line-height: 1.5; }

footer { padding: 36px 24px 44px; color: #9e9992; font-size: 12px; border-top: 1px solid var(--line); }
.footer-name { margin-bottom: 8px; color: #e8e2db; font-family: "Noto Serif KR", serif; font-size: 20px; }

@media (max-width: 720px) {
  .site-header { min-height: 66px; padding: 0 18px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 19px; }
  .header-links a:not(.primary) { display: none; }
  .hero { padding: 50px 20px 46px; }
  h1 { font-size: 34px; }
  .dek { font-size: 16px; }
  .article { padding: 46px 20px 60px; }
  .answer-box { padding: 22px; }
  h2 { margin-top: 46px; font-size: 25px; }
  .related-grid { grid-template-columns: 1fr; }
  .consult-box { padding: 26px 22px; }
}
