:root {
  --ink: #171715;
  --paper: #fbfaf7;
  --paper-deep: #f1efe9;
  --muted: #696861;
  --line: #d8d5cd;
  --accent: #8f243e;
  --accent-soft: #f5e7eb;
  --safe-bottom: max(10px, env(safe-area-inset-bottom));
  --surface-height: 70px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  word-break: keep-all;
}
body[data-accent="green"] { --accent: #176b55; --accent-soft: #e4f1ec; }
body[data-accent="blue"] { --accent: #315b82; --accent-soft: #e7eef4; }
body[data-accent="gold"] { --accent: #876414; --accent-soft: #f5eedb; }
body[data-accent="violet"] { --accent: #6a456f; --accent-soft: #efe7f0; }
body[data-accent="teal"] { --accent: #16656a; --accent-soft: #e3f0ef; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.site-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .96);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-family: Georgia, "Noto Serif KR", serif; font-size: 21px; font-weight: 700; text-decoration: none; }
.brand small { font-family: inherit; color: var(--accent); font-size: 11px; margin-left: 8px; }
.header-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.hero, .hero__inner, .hero__copy { background: var(--paper); }
.hero { border-bottom: 1px solid var(--line); }
.hero__inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .68fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  padding: 54px 0;
}
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 13px; font-weight: 800; }
h1, h2, h3 { font-family: Georgia, "Noto Serif KR", serif; font-weight: 700; }
h1 { margin: 0; max-width: 790px; font-size: 62px; line-height: 1.18; }
.editorial-lead { max-width: 720px; margin: 28px 0 0; color: #4e4d48; font-size: 20px; line-height: 1.72; }
.editorial-thesis-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.editorial-thesis-band__inner { width: min(100% - 48px, 1180px); margin: 0 auto; padding: 34px 0; }
.editorial-thesis-band strong { display: block; margin-bottom: 10px; color: var(--accent); font-size: 13px; }
.editorial-thesis-band p { max-width: 980px; margin: 0; color: #3f3d39; font-size: 16px; line-height: 1.9; word-break: keep-all; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.hero__portrait { position: relative; margin: 0; align-self: stretch; min-height: 500px; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero__portrait figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ink);
  color: #fff;
  padding: 9px 13px;
  font-size: 12px;
}
.evidence-band { border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.evidence-band__inner { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0; }
.band-title { margin: 0 0 15px; color: var(--muted); font-size: 12px; font-weight: 800; }
.evidence-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
.evidence-item { min-height: 66px; padding: 0 13px; border-left: 1px solid var(--line); }
.evidence-item:first-child { border-left: 0; padding-left: 0; }
.evidence-item dt { color: var(--muted); font-size: 11px; }
.evidence-item dd { margin: 3px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 15px; font-weight: 700; line-height: 1.45; }
.verdict-band { border-bottom: 1px solid var(--line); }
.verdict-band__inner { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0; }
.verdict-band h2 { margin: 0 0 28px; font-size: 27px; }
.verdict-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.verdict-item { padding: 20px 24px 4px 0; border-right: 1px solid var(--line); }
.verdict-item + .verdict-item { padding-left: 24px; }
.verdict-item:last-child { border-right: 0; }
.verdict-item strong { display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; }
.verdict-item p { margin: 0; font-size: 15px; line-height: 1.65; }
.reading-layout {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 790px);
  justify-content: space-between;
  gap: 72px;
  padding: 72px 0 150px;
}
.toc { position: sticky; top: 94px; align-self: start; border-top: 2px solid var(--ink); padding-top: 16px; }
.toc h2 { margin: 0 0 13px; font-size: 14px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-decoration: none; }
.toc a[aria-current="true"] { color: var(--accent); font-weight: 800; }
.article-section { border-top: 1px solid var(--line); padding: 56px 0 52px; scroll-margin-top: 84px; }
.article-section:first-child { border-top: 0; padding-top: 0; }
.section-label { display: block; margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 800; }
.article-section h2 { margin: 0 0 28px; font-size: 34px; line-height: 1.38; }
.article-section p { margin: 0 0 19px; color: #33322f; font-size: 17px; line-height: 1.92; }
.section-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 12px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.disclosure { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.related { padding: 56px 0 0; }
.related h2 { margin: 0 0 12px; font-size: 28px; }
.related__intro { margin: 0 0 24px; color: var(--muted); }
.related-list { border-top: 2px solid var(--ink); }
.related-link { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related-link strong { font-family: Georgia, "Noto Serif KR", serif; }
.related-link span { color: var(--muted); font-size: 13px; }
.related-link b { color: var(--accent); font-size: 12px; }
.desktop-actions { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.desktop-actions a { display: block; min-height: 44px; padding: 10px 0; color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.fixed-surface {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  background: rgba(251, 250, 247, .98);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -8px 28px rgba(23, 23, 21, .08);
}
.fixed-surface[data-active="true"] { display: block; }
.quick-actions__inner, .app-nav__inner { min-height: var(--surface-height); display: grid; align-items: stretch; }
.quick-actions__inner { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.app-nav__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.surface-action {
  min-width: 0;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.surface-action__mark { font-family: Georgia, serif; color: var(--muted); font-size: 15px; line-height: 1; }
.surface-action--primary { background: var(--accent); color: #fff; }
.surface-action--primary .surface-action__mark { color: #fff; }
.bottom-sheet[hidden] { display: none; }
.bottom-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(23, 23, 21, .48); display: flex; align-items: flex-end; }
.bottom-sheet__panel { width: 100%; max-height: 78vh; overflow: auto; background: var(--paper); border-radius: 8px 8px 0 0; padding: 18px 20px calc(24px + var(--safe-bottom)); }
.bottom-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.bottom-sheet__header h2 { margin: 0; font-size: 20px; }
.sheet-close { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; }
.bottom-sheet nav a { display: block; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 94px; z-index: 90; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 15px; border-radius: 4px; font-size: 13px; }
.toast[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 841px) {
  .fixed-surface[data-surface="quick-actions"] { display: none !important; }
  body[data-runtime-mode="app"] .reading-layout { padding-bottom: 190px; }
}
@media (max-width: 1000px) {
  .evidence-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 18px; }
  .evidence-item:nth-child(6) { border-left: 0; padding-left: 0; }
  .reading-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 840px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 56px; }
  .site-header__inner, .hero__inner, .evidence-band__inner, .verdict-band__inner, .reading-layout { width: min(100% - 32px, 760px); }
  .brand { font-size: 18px; }
  .header-link { display: none; }
  .hero__inner { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 34px 0 0; }
  .hero__copy { order: 1; }
  .hero__portrait { order: 2; min-height: 0; aspect-ratio: 4 / 3; margin: 0 -16px; }
  h1 { font-size: 38px; line-height: 1.2; }
  .editorial-lead { margin-top: 20px; font-size: 17px; }
  .hero__meta { margin: 20px 0 26px; }
  .evidence-band__inner { padding: 22px 0; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 0; }
  .evidence-item, .evidence-item:nth-child(6) { min-height: 58px; padding: 0 12px; border-left: 1px solid var(--line); }
  .evidence-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .verdict-band__inner { padding: 38px 0; }
  .verdict-grid { grid-template-columns: 1fr; }
  .verdict-item, .verdict-item + .verdict-item { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .verdict-item:last-child { border-bottom: 0; }
  .reading-layout { display: block; padding: 48px 0 calc(150px + var(--safe-bottom)); }
  .toc { display: none; }
  .article-section { padding: 42px 0 38px; }
  .article-section h2 { font-size: 27px; }
  .article-section p { font-size: 16px; line-height: 1.88; }
  .related-link { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .related-link span { grid-column: 1 / -1; }
  .desktop-actions { display: none; }
  body[data-runtime-mode="app"] { --safe-bottom: max(18px, env(safe-area-inset-bottom)); }
  .fixed-surface[data-active="true"] { transition: opacity .12s ease, transform .12s ease, visibility 0s linear; }
  body.is-keyboard-open .fixed-surface[data-active="true"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + var(--safe-bottom)));
    transition: opacity .1s ease, transform .1s ease, visibility 0s linear;
  }
}
@media (max-width: 370px) {
  .surface-action { font-size: 10px; }
  h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
