:root {
  --ink: #151513;
  --paper: #f4f0e7;
  --paper-2: #e9e2d4;
  --white: #fffdf8;
  --red: #c8322d;
  --blue: #1c4d68;
  --green: #295d4d;
  --line: rgba(21, 21, 19, .2);
  --muted: #6c685f;
  --shadow: 0 16px 40px rgba(44, 35, 22, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e08b2c; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.topbar { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 0 clamp(1rem, 4vw, 4rem); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.brand { display: grid; grid-template-columns: 36px auto; grid-template-rows: auto auto; align-items: center; column-gap: .7rem; text-decoration: none; letter-spacing: .08em; }
.brand > span { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ink); font: 800 .8rem/1 Georgia, serif; }
.brand strong { font-size: .75rem; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .55rem; }
.topbar nav { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 2.6rem); }
.topbar nav a { padding: 1.55rem 0 1.35rem; color: var(--muted); border-bottom: 3px solid transparent; text-decoration: none; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.topbar nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.language-switch { display: flex; border: 1px solid var(--ink); }
.language-switch button { min-width: 38px; padding: .35rem .45rem; border: 0; background: transparent; cursor: pointer; font-size: .7rem; font-weight: 800; }
.language-switch button[aria-pressed="true"] { color: white; background: var(--ink); }
.noscript { margin: 0; padding: .8rem 1rem; color: white; background: var(--red); text-align: center; }
.hero { min-height: 620px; display: grid; grid-template-columns: minmax(100px, .45fr) minmax(0, 2.5fr) minmax(190px, .75fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.hero__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); color: var(--red); }
.hero__stage strong { font: 400 clamp(5rem, 10vw, 10rem)/.8 Georgia, serif; }
.hero__stage span { margin-top: 1.5rem; font-size: .65rem; font-weight: 900; letter-spacing: .2em; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.eyebrow { color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .18em; }
.hero h1 { margin: 1rem 0 1.8rem; font: 400 clamp(2.8rem, 6.6vw, 6.4rem)/1.03 Georgia, "Noto Serif KR", serif; letter-spacing: -.055em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--red); font-style: italic; }
.hero__copy > p:not(.eyebrow) { max-width: 780px; margin: 0; color: #4f4b44; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.2rem; }
.hero__chips span { padding: .42rem .68rem; border: 1px solid var(--ink); font: 800 .65rem/1 Arial, sans-serif; letter-spacing: .08em; }
.gate-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 2rem; color: white; background: var(--red); text-align: center; }
.gate-stamp span, .gate-stamp small { font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.gate-stamp strong { font: 400 2rem/1.15 Georgia, "Noto Serif KR", serif; }
.metric-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: var(--white); }
.metric-strip article { min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem clamp(1rem, 3vw, 2.5rem); border-right: 1px solid var(--line); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip span { font: 400 clamp(2.2rem, 4vw, 4rem)/1 Georgia, serif; }
.metric-strip p { margin: .6rem 0 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.metric-strip__zero { color: var(--red); }
.validation-bar { padding: .75rem 1rem; color: white; background: var(--green); text-align: center; font: 800 .72rem/1.3 Arial, sans-serif; letter-spacing: .08em; }
.validation-bar[data-valid="false"] { background: var(--red); }
.section { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(0, 2.45fr); gap: 2rem; max-width: 1420px; margin: 0 auto 3.5rem; }
.section-heading > p { margin: .25rem 0; color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .16em; }
.section-heading h2 { max-width: 950px; margin: 0; font: 400 clamp(2.1rem, 4.5vw, 4.5rem)/1.1 Georgia, "Noto Serif KR", serif; letter-spacing: -.035em; }
.section-heading div > p { max-width: 850px; margin: 1.2rem 0 0; color: var(--muted); }
.boundary-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; max-width: 1420px; margin: auto; }
.source-card { padding: clamp(1.5rem, 4vw, 3.5rem); color: white; background: var(--blue); box-shadow: var(--shadow); }
.source-card > span { font-size: .67rem; font-weight: 900; letter-spacing: .13em; }
.source-card h3 { margin: 1.2rem 0 2rem; font: 400 clamp(2rem, 4vw, 4rem)/1.05 Georgia, serif; }
.source-card dl { margin: 0; border-top: 1px solid rgba(255,255,255,.35); }
.source-card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.source-card dt { font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.source-card dd { margin: 0; overflow-wrap: anywhere; }
.source-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.source-links a { padding: .65rem .8rem; border: 1px solid rgba(255,255,255,.7); text-decoration: none; font-size: .75rem; font-weight: 800; }
.boundary-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.boundary-list li { display: grid; grid-template-columns: 62px 1fr; gap: 1.2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.boundary-list b { color: var(--red); font: 400 2rem/1 Georgia, serif; }
.boundary-list strong, .boundary-list span { display: block; }
.boundary-list span { margin-top: .35rem; color: var(--muted); }
.artist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 1420px; margin: auto; }
.artist-card { min-height: 360px; display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 24px rgba(44,35,22,.05); }
.artist-card[data-status="reserve"] { color: #5d5951; background: transparent; border-style: dashed; }
.artist-card__index { color: var(--red); font: 400 1.8rem/1 Georgia, serif; }
.artist-card h3 { min-height: 3.2rem; margin: 1rem 0 .6rem; font: 400 1.45rem/1.15 Georgia, serif; }
.artist-card__status { align-self: flex-start; padding: .3rem .5rem; color: white; background: var(--green); font-size: .6rem; letter-spacing: .08em; }
.artist-card[data-status="reserve"] .artist-card__status { background: var(--muted); }
.artist-card__metrics, .artist-card__signal { margin: .8rem 0 0; color: var(--muted); font-size: .7rem; font-weight: 800; }
.artist-card__signal { overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.tag-list span { padding: .25rem .4rem; border: 1px solid var(--line); font-size: .6rem; }
.artist-card__reason { margin: 1rem 0; font-size: .83rem; }
.official-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; color: var(--blue); font-size: .72rem; font-weight: 900; text-underline-offset: 3px; }
.ledger-tools { display: flex; align-items: center; gap: .8rem; max-width: 1420px; margin: 0 auto 1rem; }
.ledger-tools label { font-size: .74rem; font-weight: 900; }
.ledger-tools select { min-width: min(360px, 55vw); padding: .65rem 2.2rem .65rem .75rem; border: 1px solid var(--ink); color: var(--ink); background: var(--white); }
.ledger-tools > span { margin-left: auto; font-size: .75rem; }
.table-scroll { max-width: 1420px; max-height: 720px; margin: auto; overflow: auto; border: 1px solid var(--ink); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
caption { padding: .65rem 1rem; color: white; background: var(--ink); text-align: left; font-weight: 800; }
thead { position: sticky; top: 0; z-index: 2; background: var(--paper-2); }
th, td { padding: .9rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
td:first-child { min-width: 260px; }
td:first-child strong, td:first-child span, td:nth-child(3) code, td:nth-child(3) a, td:last-child span, td:last-child small { display: block; }
td:first-child span, td:last-child small { margin-top: .3rem; color: var(--muted); }
td:nth-child(2) { min-width: 220px; }
td:nth-child(3) { min-width: 150px; }
.triage-badge { color: var(--green); font-size: .65rem; font-weight: 900; letter-spacing: .05em; }
.audit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1420px; margin: auto; }
.audit-card { padding: 1.3rem; border-top: 4px solid var(--blue); background: var(--white); }
.audit-card h3 { margin: 0 0 1rem; font-size: .72rem; letter-spacing: .08em; }
.audit-counts { margin: 0; }
.audit-counts div { display: grid; grid-template-columns: 1fr auto; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.audit-counts dt { overflow-wrap: anywhere; font-size: .68rem; }
.audit-counts dd { margin: 0; color: var(--red); font: 700 1rem/1 Georgia, serif; }
.gap-panel { display: grid; grid-template-columns: .65fr 1.35fr; gap: 2rem; max-width: 1420px; margin: 2rem auto 0; padding: clamp(1.5rem, 4vw, 3rem); color: white; background: var(--ink); }
.gap-panel > div > span { color: #e6a14b; font-size: .67rem; font-weight: 900; letter-spacing: .12em; }
.gap-panel h3 { margin: 1rem 0 0; font: 400 2rem/1.2 Georgia, serif; }
.gap-panel ol { margin: 0; padding-left: 1.2rem; }
.gap-item { padding: 0 0 1.3rem .6rem; }
.gap-item + .gap-item { padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.2); }
.gap-item strong { color: #e6a14b; text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; }
.gap-item p { margin: .35rem 0; }
.gap-item span { color: #c7c3bb; font-size: .8rem; }
.stage13 { color: white; background: var(--blue); }
.stage13 .section-heading > p { color: #f0b35f; }
.stage13 .section-heading div > p { color: rgba(255,255,255,.72); }
.handoff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1420px; margin: auto; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.25); }
.handoff-grid article { min-height: 250px; padding: 1.5rem; background: var(--blue); }
.handoff-grid span { color: #f0b35f; font: 400 2.3rem/1 Georgia, serif; }
.handoff-grid strong { display: block; margin: 2rem 0 .7rem; font-size: 1.05rem; }
.handoff-grid p { margin: 0; color: rgba(255,255,255,.72); font-size: .84rem; }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1rem, 5vw, 5rem); color: white; background: var(--ink); }
footer strong, footer span, footer b { display: block; }
footer span { margin-top: .25rem; color: #aaa69d; font-size: .7rem; }
footer div:last-child { text-align: right; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 100px 1fr; }
  .gate-stamp { grid-column: 1 / -1; min-height: 170px; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .artist-grid { grid-template-columns: repeat(3, 1fr); }
  .audit-grid, .handoff-grid { grid-template-columns: repeat(2, 1fr); }
  .boundary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 64px; gap: .7rem; }
  .topbar nav { grid-column: 1 / -1; order: 3; overflow-x: auto; justify-content: flex-start; }
  .topbar nav a { padding: .7rem 0 .6rem; white-space: nowrap; }
  .hero { min-height: 0; display: block; }
  .hero__stage { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__stage strong { font-size: 5.5rem; }
  .hero__stage span { margin-top: .8rem; }
  .hero__copy { padding: 3rem 1.2rem; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip article { min-height: 120px; }
  .section { padding: 4rem 1rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-bottom: 1rem; }
  .artist-grid { grid-template-columns: 1fr; }
  .artist-card { min-height: 0; }
  .audit-grid, .handoff-grid { grid-template-columns: 1fr; }
  .gap-panel { grid-template-columns: 1fr; }
  .ledger-tools { align-items: stretch; flex-wrap: wrap; }
  .ledger-tools select { width: 100%; min-width: 0; }
  .ledger-tools > span { margin-left: 0; }
  footer { display: block; }
  footer div:last-child { margin-top: 1.5rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (forced-colors: active) {
  .artist-card,
  .audit-card,
  .source-card,
  .gap-panel,
  .handoff-grid article { color: CanvasText; border-color: CanvasText; background: Canvas; box-shadow: none; }
  a,
  button,
  select { color: LinkText; border-color: ButtonText; forced-color-adjust: auto; }
  :focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
}

@page { size: A4 portrait; margin: 12mm; }

@media print {
  .topbar, .language-switch, .ledger-tools, .skip-link, .gate-stamp, .official-link { display: none !important; }
  body, .section, .stage13, footer { color: #000; background: #fff; }
  .hero { min-height: 0; display: block; }
  .hero__stage { display: none; }
  .hero__copy { padding: 1cm 0; }
  .metric-strip { grid-template-columns: repeat(5, 1fr); }
  .section { padding: 1cm 0; break-before: page; }
  .artist-grid, .audit-grid, .handoff-grid { grid-template-columns: repeat(2, 1fr); }
  .artist-card, .audit-card, .source-card, .gap-panel, .handoff-grid article { color: #000; background: #fff; box-shadow: none; break-inside: avoid; }
  .table-scroll { max-height: none; overflow: visible; }
  thead { position: static; }
  a { text-decoration: none; }
}
