@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: #eeebe4;
  --surface: #fffef9;
  --ink: #162235;
  --muted: #5e6978;
  --blue: #164f77;
  --red: #ad4937;
  --green: #315e52;
  --line: rgba(22, 34, 53, .16);
  --sand: #e7ded1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
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(1220px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar > a { font-weight: 900; text-decoration: none; }
.topbar div { display: flex; gap: 22px; }
.topbar div a { color: var(--muted); text-decoration: none; }

.hero { padding: 74px 0 50px; }
.kicker { margin: 0 0 18px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(52px, 7.5vw, 98px); line-height: .99; letter-spacing: -.065em; }
.hero h1 span { color: var(--red); }
.lead { max-width: 990px; margin: 32px 0 0; color: var(--muted); font-size: 22px; line-height: 1.85; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.score-grid article { min-height: 150px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.38); }
.score-grid strong { display: block; color: var(--red); font-size: 38px; line-height: 1; }
.score-grid span { display: block; margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.probability-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.evidence-warning { padding: 32px; border-left: 5px solid var(--red); background: #f8e7e3; }
.evidence-warning strong { display: block; margin-bottom: 10px; color: var(--red); font-size: 18px; }
.evidence-warning p { margin: 0; color: #5e3a34; font-size: 22px; line-height: 1.8; }

.toc { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0; }
.toc a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.42); color: var(--muted); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--blue); border-color: var(--blue); }

.report { background: var(--surface); border: 1px solid var(--line); }
.report-section { padding: clamp(30px, 5.8vw, 72px); border-top: 1px solid var(--line); }
.report-section:first-child { border-top: 0; }
.report-section.summary { background: var(--ink); color: white; }
.section-index { margin: 0 0 14px !important; color: var(--red) !important; font-family: ui-monospace, monospace; font-size: 14px !important; font-weight: 900; }
.summary .section-index { color: #efa99b !important; }
.report h2 { max-width: 950px; margin: 0 0 34px; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.15; letter-spacing: -.05em; }
.report h3 { margin: 46px 0 18px; color: var(--blue); font-size: 28px; line-height: 1.35; }
.report p, .report li, .report td { font-size: 22px; line-height: 1.9; }
.report p { margin: 0 0 22px; text-align: justify; }
.summary p { color: rgba(255,255,255,.78); }
.report .meta { color: var(--muted); font-size: 14px; }
.report strong { color: var(--red); }
.summary strong { color: #f2aa9d; }
.report blockquote { margin: 24px 0; padding: 24px 28px; border-left: 4px solid var(--blue); background: var(--sand); font-size: 22px; line-height: 1.8; }
.number-list, .bullet-list { margin: 20px 0 30px; padding-left: 1.4em; }
.number-list li, .bullet-list li { padding: 6px 0 6px 6px; }
.report a { color: var(--blue); text-underline-offset: 4px; }
.summary a { color: #b8ddf1; }

.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 820px; border-collapse: collapse; background: white; }
th, td { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #dbe8ef; color: var(--blue); font-size: 17px; line-height: 1.5; }
td { color: #344154; }
tr:last-child td { border-bottom: 0; }

.downloads { margin-top: 20px; padding: clamp(30px, 5vw, 58px); border: 1px solid var(--line); background: rgba(255,255,255,.46); }
.downloads h2 { margin: 0 0 26px; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.045em; }
.downloads > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.downloads a { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.downloads a:hover { transform: translateY(-2px); border-color: var(--blue); }
.downloads strong { font-size: 18px; }
.downloads span { color: var(--red); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 900; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 36px 0 60px; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }

@media (max-width: 850px) {
  .page-shell { width: min(100% - 24px, 720px); }
  .hero { padding-top: 50px; }
  .score-grid, .downloads > div { grid-template-columns: 1fr 1fr; }
  .report-section { padding: 32px 22px; }
  .report p, .report li, .report td, .lead, .evidence-warning p, .report blockquote { font-size: 22px; }
  .topbar div a:first-child { display: none; }
  footer { display: block; }
  footer a { display: inline-block; margin-top: 14px; }
}

@media (max-width: 520px) {
  .score-grid, .downloads > div { grid-template-columns: 1fr; }
  .score-grid article { min-height: 115px; }
}

@media print {
  .topbar, .toc, .downloads { display: none; }
  body { background: white; }
  .page-shell { width: auto; }
  .report, .report-section { border: 0; }
}
