:root {
  color-scheme: light;
  --paper: #f3f1ea;
  --ink: #171a18;
  --muted: #5c655f;
  --line: #c8ccc6;
  --panel: #fffef9;
  --green: #1f6b4f;
  --green-soft: #d8eadf;
  --amber: #92590f;
  --amber-soft: #f7e7c7;
  --blue: #315b83;
  --content: min(1180px, calc(100% - 36px));
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(23,26,24,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,26,24,.035) 1px, transparent 1px); background-size: 28px 28px; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #0b6fb5; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 30; top: 10px; left: 10px; padding: 11px 15px; color: #fff; background: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; min-height: 68px; padding: 10px max(18px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgba(243,241,234,.95); backdrop-filter: blur(15px); }
.brand { display: grid; grid-template-columns: 38px auto; column-gap: 10px; align-items: center; text-decoration: none; }
.brand > span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--ink); font-weight: 900; }
.brand strong { align-self: end; font-size: 12px; letter-spacing: .08em; }
.brand small { align-self: start; color: var(--muted); font-size: 8px; letter-spacing: .11em; }
.topbar nav { display: flex; justify-content: center; gap: 6px; }
.topbar nav a { padding: 9px 11px; border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 850; text-decoration: none; }
.topbar nav a[aria-current="page"] { color: #fff; background: var(--green); }
.language-switch { display: flex; gap: 5px; }
.language-switch button { min-width: 38px; min-height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); font-weight: 900; }
.language-switch button[aria-pressed="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }

main { width: var(--content); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; min-height: 520px; border-inline: 1px solid var(--line); background: var(--panel); }
.stage-mark { display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 1px solid var(--line); background: var(--ink); color: #fff; }
.stage-mark span, .stage-mark small { font: 800 10px/1.3 ui-monospace, monospace; letter-spacing: .12em; }
.stage-mark strong { color: #9ed3b5; font: 500 90px/1 Georgia, serif; }
.hero > div:nth-child(2) { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 76px); }
.hero > div > p:first-child, .report-section > header > p, .report-section > div > p:first-child, .handoff > div > p { color: var(--green); font: 900 11px/1.3 ui-monospace, monospace; letter-spacing: .1em; }
.hero h1 { margin: 18px 0 24px; font: 500 clamp(48px, 6vw, 84px)/.98 Georgia, "Noto Serif KR", serif; letter-spacing: -.045em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero > div > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.hero aside { display: flex; flex-direction: column; justify-content: center; padding: 28px; border-left: 1px solid var(--line); background: var(--green-soft); }
.hero aside strong { font: 850 28px/1.05 ui-monospace, monospace; }
.hero aside span { margin-top: 22px; color: var(--muted); font-size: 10px; font-weight: 900; }
.hero aside b { margin-top: 8px; color: var(--amber); font: 900 18px/1 ui-monospace, monospace; }

.metric-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.metric-strip article { min-height: 126px; padding: 20px; border-right: 1px solid var(--line); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip strong { display: block; color: var(--green); font: 500 34px/1 Georgia, serif; }
.metric-strip span { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1.4; }

.report-section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.report-section > header { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; margin-bottom: 36px; }
.report-section h2, .handoff h2 { margin: 0; font: 500 clamp(36px, 5vw, 62px)/1.03 Georgia, "Noto Serif KR", serif; letter-spacing: -.035em; }
.report-section header div > p, .handoff div > p:last-child { max-width: 780px; color: var(--muted); line-height: 1.75; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; min-width: 880px; border-collapse: collapse; }
th, td { padding: 15px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }
thead th { color: #fff; background: var(--ink); font: 800 10px/1.2 ui-monospace, monospace; }
tbody th { width: 310px; }
tbody th code, tbody th span { display: block; }
tbody th code { color: var(--blue); font-weight: 900; }
tbody th span { margin-top: 4px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
tbody td { font: 800 11px/1.2 ui-monospace, monospace; }
tbody td b { color: var(--green); }

.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; }
.split h2 { max-width: 650px; }
.evidence-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 34px 0 0; padding: 1px; list-style: none; background: var(--line); }
.evidence-list li { min-height: 130px; padding: 20px; background: var(--panel); }
.evidence-list strong { display: block; color: var(--green); font: 500 34px/1 Georgia, serif; }
.evidence-list span { display: block; margin-top: 15px; color: var(--muted); font-size: 11px; }
.boundary-note { align-self: start; padding: 30px; color: #fff; background: var(--ink); }
.boundary-note span { color: #9ed3b5; font: 900 10px/1 ui-monospace, monospace; }
.boundary-note strong { display: block; margin-top: 25px; font: 500 35px/1.05 Georgia, serif; }
.boundary-note p { color: #c9d0cc; line-height: 1.75; }

.privacy { width: calc(100% + 36px); margin-left: -18px; padding-inline: 18px; color: #fff; background: var(--ink); }
.privacy header div > p { color: #c2cac5; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #58605b; }
.privacy-grid article { min-height: 190px; padding: 24px; background: #202521; }
.privacy-grid span { display: block; color: #9ed3b5; font: 500 35px/1 Georgia, serif; }
.privacy-grid strong { display: block; margin-top: 30px; font-size: 12px; line-height: 1.55; }
.tour-contract { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tour-contract code { padding: 20px; border: 1px solid var(--line); background: var(--panel); color: var(--blue); font-size: 11px; overflow-wrap: anywhere; }

.manual ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); }
.manual li { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; gap: 15px; align-items: center; min-height: 100px; padding: 18px; background: var(--panel); }
.manual li > span { color: var(--green); font: 500 26px/1 Georgia, serif; }
.manual li strong, .manual li small { display: block; }
.manual li strong { font-size: 12px; }
.manual li small { margin-top: 6px; color: var(--muted); font: 800 8px/1.2 ui-monospace, monospace; }
.manual li b { padding: 7px 9px; color: var(--amber); background: var(--amber-soft); font: 900 9px/1 ui-monospace, monospace; }

.handoff { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; margin: 80px 0; padding: 52px; color: #fff; background: var(--green); }
.handoff div > p:first-child { color: #caead7; }
.handoff div > p:last-child { color: #edf7f0; }
.handoff a { padding: 15px 18px; border: 1px solid #fff; font-size: 11px; font-weight: 900; text-decoration: none; }
footer { display: flex; justify-content: space-between; gap: 30px; padding: 32px max(18px, calc((100vw - 1180px) / 2)); color: #fff; background: var(--ink); }
footer strong, footer span { display: block; }
footer span { margin-top: 5px; color: #bfc7c2; font-size: 10px; }
footer b { color: #9ed3b5; font: 900 10px/1.4 ui-monospace, monospace; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 105px minmax(0, 1fr); }
  .hero aside { grid-column: 1 / -1; min-height: 170px; border-top: 1px solid var(--line); border-left: 0; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .metric-strip article:nth-child(3) { border-right: 0; }
  .metric-strip article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --content: calc(100% - 20px); }
  .topbar { position: static; grid-template-columns: 1fr auto; }
  .topbar nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .stage-mark { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-mark strong { font-size: 58px; }
  .hero > div:nth-child(2) { padding: 38px 22px; }
  .hero h1 { font-size: 44px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip article:nth-child(2n) { border-right: 0; }
  .metric-strip article:nth-child(3) { border-right: 1px solid var(--line); }
  .metric-strip article { border-bottom: 1px solid var(--line); }
  .metric-strip article:nth-last-child(-n+2) { border-bottom: 0; }
  .report-section { padding: 66px 0; }
  .report-section > header { grid-template-columns: 1fr; gap: 4px; }
  .report-section h2, .handoff h2 { font-size: 40px; }
  .evidence-list, .manual ol, .tour-contract, .privacy-grid { grid-template-columns: 1fr; }
  .manual li { grid-template-columns: 38px minmax(0, 1fr); }
  .manual li b { grid-column: 2; justify-self: start; }
  .handoff { grid-template-columns: 1fr; padding: 34px 24px; }
  .handoff a { justify-self: start; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .hero,
  .metric-strip,
  .table-wrap,
  .evidence-list li,
  .boundary-note,
  .privacy,
  .privacy-grid article,
  .tour-contract code,
  .manual li,
  .handoff { color: CanvasText; border-color: CanvasText; background: Canvas; box-shadow: none; }
  a, button { color: LinkText; border-color: ButtonText; forced-color-adjust: auto; }
  :focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
}

@page { size: A4 landscape; margin: 10mm; }
@media print {
  body { background: #fff; font-size: 9pt; }
  body::before, .skip-link, .topbar, .language-switch { display: none !important; }
  main { width: 100%; }
  .hero { min-height: 0; border: 1px solid #111; }
  .stage-mark { color: #111; background: #fff; }
  .hero aside { color: #111; background: #fff; }
  .metric-strip article { min-height: 0; }
  .report-section { padding: 9mm 0; break-before: page; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 6.5pt; }
  th, td { padding: 2mm; }
  .privacy { width: 100%; margin-left: 0; color: #111; background: #fff; }
  .privacy-grid article, .boundary-note, .handoff { color: #111; background: #fff; border: 1px solid #111; }
  .manual li, .tour-contract code, .evidence-list li { break-inside: avoid; }
  footer { color: #111; background: #fff; border-top: 1px solid #111; }
  footer span { color: #333; }
}
