@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: #f1eee7;
  --surface: #fffdf8;
  --ink: #172131;
  --muted: #657081;
  --line: rgba(23, 33, 49, .16);
  --blue: #1d557e;
  --red: #a34334;
  --sand: #e8ddce;
}

* { 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(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.topbar > a { font-weight: 850; text-decoration: none; }
.topbar div { display: flex; gap: 20px; }
.topbar div a { color: var(--muted); text-decoration: none; }

.hero { padding: 78px 0 54px; }
.kicker, .section-no {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: end; }
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 94px);
  line-height: .98;
  letter-spacing: -.06em;
}
.hero h1 span { color: var(--red); }
.lead { max-width: 760px; margin: 28px 0 0; color: #4c5768; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.75; }
.time-card { display: grid; grid-template-columns: 70px 1fr; gap: 12px 14px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.time-card p, .time-card strong { margin: 0; }
.time-card p { color: var(--red); font-family: ui-monospace, monospace; font-size: 13px; }
.time-card strong { font-size: 14px; }

.definition { padding: clamp(28px, 5vw, 56px); background: var(--ink); color: white; }
.definition > p { margin: 0 0 18px; color: #8fc3e2; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.definition blockquote { margin: 0; max-width: 970px; font-size: clamp(26px, 4vw, 46px); line-height: 1.45; letter-spacing: -.035em; }

.three-points { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.three-points article { padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.32); }
.three-points span { color: var(--red); font-family: ui-monospace, monospace; font-weight: 850; }
.three-points h2 { margin: 24px 0 14px; font-size: 28px; letter-spacing: -.035em; }
.three-points p, .panel > p, .ruling-grid p, .audit-list p, .faq p, .note p { margin: 0; color: var(--muted); line-height: 1.8; }

.panel { margin-top: 20px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); background: var(--surface); }
.panel h2 { margin: 0 0 22px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.logic-list { margin: 0; padding: 0; list-style: none; counter-reset: logic; border-top: 1px solid var(--line); }
.logic-list li { counter-increment: logic; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); line-height: 1.75; }
.logic-list li::before { content: "0" counter(logic); color: var(--red); font-family: ui-monospace, monospace; font-weight: 850; }

.question-panel { background: var(--sand); }
.big-question { max-width: 1000px; color: var(--ink) !important; font-size: clamp(24px, 3vw, 38px); line-height: 1.55 !important; letter-spacing: -.025em; }
.boundary { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--line); }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-grid .panel { margin-top: 20px; }

.ruling-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ruling-grid div { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ruling-grid strong { display: block; margin-bottom: 18px; color: var(--red); font-size: 30px; }

.evidence-audit { background: #142438; color: white; }
.evidence-audit .section-no { color: #8fc3e2; }
.evidence-audit h2 { color: white; }
.audit-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.16); }
.audit-list article { padding: 24px 28px 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.audit-list article:nth-child(odd) { padding-right: 28px; border-right: 1px solid rgba(255,255,255,.16); }
.audit-list article:nth-child(even) { padding-left: 28px; }
.audit-list b { display: block; margin-bottom: 8px; color: #f1b3a8; font-size: 20px; }
.audit-list p { color: rgba(255,255,255,.68); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 20px; font-weight: 800; }
.faq details p { padding: 0 0 22px; max-width: 900px; }

.note { display: grid; grid-template-columns: 150px 1fr; gap: 28px; margin-top: 20px; padding: 30px; border-left: 4px solid var(--red); background: rgba(255,255,255,.48); }
.note strong { color: var(--red); }
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: 54px; }
  .hero-grid, .three-points, .split-grid, .ruling-grid, .audit-list, .note { grid-template-columns: 1fr; }
  .time-card { margin-top: 8px; }
  .audit-list article, .audit-list article:nth-child(odd), .audit-list article:nth-child(even) { padding: 22px 0; border-right: 0; }
  .topbar div a:first-child { display: none; }
  footer { display: block; }
  footer a { display: inline-block; margin-top: 14px; }
}

@media print {
  .topbar { display: none; }
  body { background: white; }
  .page-shell { width: auto; }
  .panel, .definition, .three-points article { break-inside: avoid; }
}
