@font-face {
  font-family: "Noto Sans SC Local";
  src: url("/assets/fonts/NotoSansSC-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --ink: #182335;
  --muted: #677184;
  --line: rgba(24, 35, 53, .16);
  --blue: #184f79;
  --red: #a94638;
  --white: #fffdf8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC Local", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
}

a { color: inherit; }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.topbar > a { font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.topbar div { display: flex; gap: 20px; }
.topbar div a { color: var(--muted); text-decoration: none; }

.hero { padding: 82px 0 54px; max-width: 980px; }
.kicker, .section-no { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Noto Sans SC Local", "Noto Sans SC", sans-serif; font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--red); }
.lead { max-width: 790px; margin: 28px 0 0; color: #495467; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 750; }
.primary { background: var(--ink); color: white; }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.45); }

.scoreboard { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(255,255,255,.28); }
.score { min-height: 182px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score small { display: block; color: var(--muted); line-height: 1.4; }
.score strong { display: block; margin-top: 20px; font-family: ui-monospace, monospace; font-size: clamp(36px, 4vw, 50px); letter-spacing: -.06em; }
.score strong span { margin-left: 4px; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.score p { color: var(--muted); }
.score-main { background: var(--blue); color: white; }
.score-main small, .score-main p, .score-main strong span { color: rgba(255,255,255,.74); }

.decision-grid, .risk-action { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 20px; }
.panel { padding: clamp(26px, 4vw, 52px); border: 1px solid var(--line); background: var(--white); }
.panel h2 { margin: 0 0 24px; font-family: "Noto Sans SC Local", "Noto Sans SC", sans-serif; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.reasons ol { margin: 0; padding-left: 1.35em; }
.reasons li { padding: 13px 0 13px 8px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.reasons li:last-child { border-bottom: 0; }

.audit { background: #15263a; color: white; }
.audit .section-no { color: #8fc4e5; }
.audit-row { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.15); }
.audit-row > strong { font-family: ui-monospace, monospace; font-size: 40px; color: #efb3a7; }
.audit-row b, .audit-row small { display: block; }
.audit-row small { margin-top: 6px; color: rgba(255,255,255,.65); line-height: 1.6; }
.audit-note { margin: 22px 0 0; color: rgba(255,255,255,.72); line-height: 1.7; }

.split { margin-top: 20px; }
.split-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.split-grid.four { grid-template-columns: repeat(4, 1fr); }
.split-grid div { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-grid h3 { margin: 0 0 14px; font-size: 24px; }
.split-grid p, .risks li, .action p { margin: 0; color: var(--muted); line-height: 1.8; }
.risks ul { margin: 0; padding-left: 1.25em; }
.risks li { padding: 8px 0; }
.action { background: #e8ddd0; }
.action .primary { margin-top: 24px; }

.evidence-panel { margin-top: 20px; }
.evidence-list { border-top: 1px solid var(--line); }
.evidence-list article { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.evidence-list article > span { display: grid; place-items: center; width: 56px; height: 36px; border-radius: 999px; background: #e8ddd0; color: var(--red); font-family: ui-monospace, monospace; font-weight: 800; }
.evidence-list h3 { margin: 0 0 7px; font-size: 20px; }
.evidence-list p { margin: 0; color: var(--muted); line-height: 1.75; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px 0 60px; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }

@media (max-width: 840px) {
  .page-shell { width: min(100% - 24px, 720px); }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(45px, 13vw, 68px); }
  .scoreboard, .decision-grid, .risk-action, .split-grid, .split-grid.four { grid-template-columns: 1fr; }
  .score { min-height: 150px; }
  .topbar div a:first-child { display: none; }
  footer { display: block; }
  footer a { display: inline-block; margin-top: 14px; }
}

@media print {
  .topbar, .hero-actions { display: none; }
  body { background: white; }
  .page-shell { width: auto; }
  .panel, .score { break-inside: avoid; }
}
