:root {
  --bg: #f6f6f3;
  --panel: #ffffff;
  --ink: #15171c;
  --muted: #5d6270;
  --line: #e2e2dc;
  --accent: #1d4ed8;
  --ok: #0f6b3f;
  --ok-bg: #e3f3ea;
  --wait: #8a5a00;
  --wait-bg: #fbf0d6;
  --no: #a1321f;
  --no-bg: #fbe6e1;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { display: block; border-radius: 6px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 13px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 16px; }
.site-header nav a:hover { color: var(--ink); }
.notice { background: #eceee8; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.notice .wrap { padding-top: 6px; padding-bottom: 6px; }

/* status labels */
.tag { display: inline-block; font: 600 12px/1.2 var(--mono); letter-spacing: .02em; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-bg); }
.tag.wait { color: var(--wait); background: var(--wait-bg); }
.tag.no { color: var(--no); background: var(--no-bg); }

/* hero */
.hero { padding: 40px 0 32px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); letter-spacing: .08em; color: var(--ok); background: var(--ok-bg); border: 1px solid #bfe3cd; padding: 7px 10px; border-radius: 999px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 16px 0 12px; letter-spacing: -.01em; }
.lede { font-size: 18px; color: #333842; max-width: 720px; margin: 0 0 24px; }
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.status-grid > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.status-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.status-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.status-grid dt { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.status-grid dd { margin: 0; font-size: 18px; font-weight: 700; }
.status-grid dd .sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.cta { display: inline-block; margin-top: 20px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 8px; }
.cta:hover { background: #2c303a; }

/* sections */
section.block { padding: 32px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.25; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.section-note { color: var(--muted); margin: 0 0 20px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); box-sizing: border-box; }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.now::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.timeline .when { font: 700 13px/1.4 var(--mono); color: var(--muted); }
.timeline .what { font-weight: 600; }
.timeline .what + p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.card .tag { margin-bottom: 10px; }
.card p { margin: 0; color: #3a3f4a; font-size: 15px; }
.fineprint { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* flash box */
.facts { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; margin: 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); list-style: none; display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.facts li:last-child { border-bottom: 0; }

/* claims table */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafaf8; }
tr:last-child td { border-bottom: 0; }
td.src { font-size: 13px; white-space: nowrap; }
td.src a { color: var(--muted); }
td.src span { color: #9a9ea8; }

/* sources */
.sources { font-size: 14px; color: var(--muted); margin-top: 16px; }
.sources ol { margin: 6px 0 0; padding-left: 20px; }
.sources a { color: var(--muted); }

/* faq */
.faq h3 { margin-top: 22px; }
.faq p { margin: 0; color: #333842; }

/* changelog */
.log { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.log time { font: 700 13px/1.4 var(--mono); color: var(--muted); }
.log ul { margin: 8px 0 0; padding-left: 20px; }

/* simple pages */
.page { padding: 36px 0 48px; max-width: 720px; }
.page h1 { font-size: clamp(26px, 4.5vw, 36px); }
.page h2 { font-size: 20px; margin-top: 28px; }
.placeholder { background: var(--wait-bg); color: var(--wait); padding: 10px 14px; border-radius: 8px; font-size: 15px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 16px; padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.site-footer nav a { color: var(--muted); margin-right: 16px; }
.site-footer p { margin: 12px 0 0; max-width: 720px; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .brand small { display: none; }
}
@media (max-width: 520px) {
  .site-header nav a { margin-left: 12px; }
  .site-header nav a.opt { display: none; }
  .hero { padding-top: 28px; }
  .lede { font-size: 17px; }
  .status-grid { grid-template-columns: 1fr; }
  .status-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .status-grid > div:last-child { border-bottom: 0 !important; }
  .cards { grid-template-columns: 1fr; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 2px 0; }
  td.claim { font-weight: 600; }
  td.status, td.src { display: inline-block; margin-right: 10px; }
  .compare { display: table; font-size: 14px; }
  .compare thead { display: table-header-group; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; padding: 0; }
  .compare th, .compare td { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child td { border-bottom: 0; }
  .facts li { flex-direction: column; gap: 4px; }
}
