:root {
  color-scheme: dark;
  --bg: #0b0d0d;
  --surface: #111414;
  --text: #f5f6f4;
  --muted: #b0b6b3;
  --line: #303635;
  --accent: #edc575;
  --mint: #b8d7c6;
  --paper: #f3f5f3;
  --ink: #202725;
  --ink-muted: #58615d;
  --paper-line: #cbd1cd;
  --max: 1248px;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a[href] { cursor: pointer; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.light-section a:focus-visible, .reading-page main a:focus-visible { outline-color: var(--ink); }
a { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
a:active { opacity: .8; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.16; font-weight: 650; overflow-wrap: anywhere; }
h2 { font-size: 40px; }
h3 { font-size: 20px; }
.wrap { width: min(var(--max), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; transform: translateY(-160%); z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 32px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.brand-symbol { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px; background: var(--accent); color: var(--bg); border-radius: 50%; font-size: 25px; font-weight: 700; }
.brand-domain { color: var(--muted); }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav a, .header-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.primary-nav a { border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current] { border-bottom-color: var(--accent); color: var(--accent); }
.header-link { gap: 24px; color: var(--muted); }
.header-link:hover { color: var(--accent); }
.eyebrow { font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.hero { position: relative; isolation: isolate; min-height: min(640px, calc(100svh - 170px)); background: var(--bg); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: inherit; padding-block: 48px 64px; }
.hero-visual { position: absolute; z-index: -1; right: max(16px, calc((100% - 1344px) / 2)); top: 0; width: min(60%, 700px); height: 100%; object-fit: contain; object-position: right center; mask-image: linear-gradient(90deg, transparent, black 18%); }
.hero-copy { width: 52%; min-width: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; }
.accent-rule { display: inline-block; height: 2px; width: 24px; background: var(--accent); }
.hero h1 { margin-top: 26px; font-size: 104px; font-weight: 750; line-height: .98; }
.title-period { color: var(--accent); }
.hero-subtitle { margin-top: 28px; font-size: 30px; line-height: 1.55; }
.hero-description { margin-top: 20px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 48px; padding: 12px 22px; background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 650; border: 1px solid var(--accent); }
.button:hover { background: var(--text); border-color: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: 14px; font-weight: 550; }
.text-link:hover { color: var(--accent); }
.text-link span, .header-link span { font-size: 20px; }
.hero-caption { position: absolute; bottom: 24px; right: 0; color: var(--muted); font: 12px/1.6 ui-monospace, monospace; }
.facts-band { border-block: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 24px; }
.facts > div { padding-left: 36px; border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 26px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.facts dd span { color: var(--muted); font: 12px/1.5 ui-monospace, monospace; padding-left: 8px; }
.facts .fact-word { font-size: 22px; }
.light-section { background: var(--paper); color: var(--ink); padding-block: 88px; }
.light-section .eyebrow { color: var(--ink-muted); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-heading h2 { margin-top: 16px; }
.section-description { color: var(--ink-muted); font-size: 15px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.entry-card { display: flex; flex-direction: column; border: 1px solid var(--paper-line); padding: 28px; min-width: 0; }
.entry-card:hover { background: var(--text); border-color: var(--ink); }
.entry-top { display: flex; align-items: center; justify-content: space-between; }
.entry-arrow { font-size: 26px; line-height: 1; }
.entry-card h3 { font-size: 34px; margin-top: 36px; }
.entry-card h3 span { display: block; font-size: 18px; margin-top: 12px; }
.entry-card p { color: var(--ink-muted); margin-block: 16px 28px; }
.entry-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--paper-line); color: var(--ink-muted); font-size: 12px; }
.dark-section { padding-block: 80px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.feature-copy h2 { font-size: 48px; margin-top: 24px; font-variant-numeric: tabular-nums; }
.heading-caption { display: block; font-size: 26px; margin-top: 20px; }
.feature-copy > p:not(.eyebrow) { color: var(--muted); max-width: 400px; margin-top: 24px; }
.feature-copy .text-link { color: var(--accent); margin-top: 20px; }
.feature-art { min-width: 0; }
.feature-art img { width: 100%; object-fit: contain; clip-path: inset(12px 0 0); }
.feature-art figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; font: 12px/1.6 ui-monospace, monospace; color: var(--muted); }
.network-section { border-top: 1px solid var(--line); }
.network-section .eyebrow { color: var(--mint); }
.network-section .text-link { color: var(--mint); }
.timeline-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 56px 0 40px; padding: 0; }
.timeline-list li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--paper-line); }
.timeline-list li::before { position: absolute; content: ""; top: -5px; width: 9px; height: 9px; background: var(--ink); border-radius: 50%; }
.timeline-list li:last-child::before { background: var(--ink-muted); }
.timeline-list time { font: 24px/1.5 ui-monospace, monospace; }
.timeline-list h3 { margin-block: 16px 12px; font-size: 17px; }
.timeline-list p { font-size: 15px; color: var(--ink-muted); }
.timeline-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--paper-line); }
.light-section .text-link:hover { color: var(--ink-muted); }
.site-footer { padding-block: 64px 24px; background: var(--bg); color: var(--text); }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 56px; }
.footer-top h2 { font-size: 56px; margin-top: 24px; }
.footer-top h2 span { color: var(--mint); }
.footer-top .text-link { border-bottom: 1px solid var(--line); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-bottom .brand { font-size: 18px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.footer-bottom nav a:hover { color: var(--text); }
.small { color: var(--muted); font-size: 12px; }
.reading-page { background: var(--paper); color: var(--ink); }
.reading-page .site-header { color: var(--text); }
.reading-page main { padding-block: 64px 96px; }
.reading-page main .eyebrow { color: var(--ink-muted); }
.reading-intro { border-bottom: 1px solid var(--paper-line); padding-bottom: 40px; }
.reading-intro h1 { font-size: 56px; margin-block: 16px 24px; }
.lede { max-width: 680px; font-size: 18px; color: var(--ink-muted); }
.reading-layout { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 72px; align-items: start; padding-top: 40px; }
.contents { position: sticky; top: 112px; }
.contents nav { display: flex; flex-direction: column; margin-top: 16px; }
.contents a { min-height: 44px; padding: 8px 12px; border-left: 2px solid var(--paper-line); color: var(--ink-muted); font-size: 14px; }
.contents a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-line); }
.reading-body { min-width: 0; }
.reading-body section { padding-block: 40px; border-bottom: 1px solid var(--paper-line); scroll-margin-top: 16px; }
.reading-body section:first-child { padding-top: 0; }
.reading-body h2 { font-size: 32px; margin-bottom: 24px; }
.reading-body p { color: var(--ink-muted); margin-bottom: 16px; }
.reading-body strong { color: var(--ink); }
.reading-body ul { padding-left: 22px; color: var(--ink-muted); }
.reading-body li + li { margin-top: 10px; }
.mini-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-block: 32px; }
.mini-list > div { border-top: 1px solid var(--paper-line); padding-top: 20px; }
.mini-list h3 { margin-bottom: 12px; font-size: 18px; }
.mini-list p { margin: 0; }
.panel { padding: 8px 0 8px 24px; margin-block: 24px; border-left: 3px solid var(--ink-muted); }
.note { color: var(--ink-muted); }
.reading-body a:not(.back) { text-decoration: underline; text-underline-offset: 4px; }
.data-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.reading-body .data-toolbar p { margin: 0; font-size: 14px; }
.refresh-data { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; min-width: 128px; padding: 10px 16px; border: 1px solid var(--ink-muted); border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; touch-action: manipulation; transition: background-color 180ms ease; }
.refresh-data:hover:not(:disabled) { background: var(--paper-line); }
.refresh-data:disabled { cursor: wait; color: var(--ink-muted); }
.refresh-data:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.network-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.network-metric { min-width: 0; border-top: 2px solid var(--paper-line); padding-top: 16px; overflow-wrap: anywhere; }
.network-metric h3 { font-size: 16px; margin-bottom: 16px; }
.reading-body .metric-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-height: 48px; margin-bottom: 8px; color: var(--ink); font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.5; }
.metric-unit { font-size: 12px; font-weight: 400; }
.reading-body .metric-message, .reading-body .metric-time { font-size: 12px; margin-bottom: 8px; }
.metric-message { min-height: 42px; }
.metric-time { min-height: 42px; font-variant-numeric: tabular-nums; }
.reading-body .metric-description { font-size: 14px; margin-bottom: 0; }
.reading-body .data-footnote { font-size: 14px; margin-bottom: 32px; }
.network-metric[data-state="error"] { border-color: var(--ink-muted); }
.network-metric[data-state="error"] .metric-message { font-weight: 650; color: var(--ink); }
.source-list { list-style: none; padding: 0 !important; margin: 16px 0 28px; }
.source-list li { border-bottom: 1px solid var(--paper-line); padding-bottom: 16px; }
.source-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.source-list code { overflow-wrap: anywhere; font-size: 13px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 32px; font-weight: 600; }
.error-page main { min-height: 64svh; padding-block: 96px; }
.error-page h1 { font-size: 96px; margin-top: 24px; }
.error-page main p { color: var(--muted); margin-block: 24px; }
@media (min-width: 1600px) { .hero h1 { font-size: 112px; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero h1 { font-size: 80px; }
  .hero-subtitle { font-size: 26px; }
  .feature-grid { gap: 32px; }
  .feature-copy h2 { font-size: 40px; }
  .entry-card { padding: 24px; }
  .facts .fact-word { font-size: 18px; }
  .footer-bottom { flex-wrap: wrap; }
  .reading-layout { gap: 40px; grid-template-columns: 172px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; min-height: 0; gap: 0 12px; padding-top: 12px; }
  .brand { font-size: 20px; }
  .primary-nav { width: 100%; order: 3; justify-content: space-between; gap: 8px; padding-block: 4px; }
  .primary-nav a { font-size: 14px; padding-inline: 8px; }
  .header-link { font-size: 12px; gap: 8px; }
  .hero { min-height: max(470px, min(570px, calc(100svh - 170px))); }
  .hero-inner { padding-block: 36px 48px; align-items: flex-start; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 64px; margin-top: 20px; }
  .hero-subtitle { font-size: 24px; margin-top: 20px; }
  .hero-description { max-width: 100%; margin-top: 20px; font-size: 16px; }
  .hero-visual { right: 0; top: auto; bottom: 24px; width: 64%; height: 56%; object-fit: contain; object-position: right bottom; mask-image: linear-gradient(90deg, transparent, black 18%), linear-gradient(180deg, transparent, black 16%); mask-composite: intersect; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 24px; }
  .hero-actions .button { padding: 10px 16px; gap: 24px; }
  .hero-actions .text-link { padding-inline: 16px; gap: 24px; }
  .hero-caption { font-size: 12px; bottom: 12px; }
  .facts { grid-template-columns: 1.3fr .8fr; padding-block: 16px; gap: 16px; }
  .facts > div { padding-left: 20px; }
  .facts > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .facts dt { margin: 0; }
  .facts dd { font-size: 22px; }
  .facts .fact-word { font-size: 16px; }
  .facts dd span { font-size: 12px; padding-left: 4px; }
  .light-section, .dark-section { padding-block: 48px; }
  h2 { font-size: 30px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .entry-grid { grid-template-columns: 1fr; gap: 16px; }
  .entry-card { padding: 24px; }
  .entry-card h3 { margin-top: 20px; }
  .entry-card h3 span { margin-top: 8px; }
  .entry-card p { margin-block: 16px 20px; }
  .entry-bottom { padding-top: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-copy h2 { font-size: 36px; }
  .heading-caption { font-size: 24px; }
  .feature-art figcaption { flex-wrap: wrap; }
  .timeline-list { grid-template-columns: 1fr; margin-block: 36px; }
  .timeline-list li { border-top: 0; border-left: 1px solid var(--paper-line); padding: 0 0 32px 28px; margin-left: 5px; }
  .timeline-list li::before { left: -5px; top: 12px; }
  .timeline-list li:last-child { padding-bottom: 0; }
  .timeline-list h3 { margin-block: 8px; }
  .timeline-foot { flex-wrap: wrap; gap: 12px; }
  .site-footer { padding-top: 48px; }
  .footer-top { align-items: flex-start; flex-direction: column; padding-bottom: 32px; }
  .footer-top h2 { font-size: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom nav { gap: 8px 24px; }
  .reading-page main { padding-block: 40px 56px; }
  .reading-intro h1 { font-size: 40px; }
  .lede { font-size: 16px; }
  .reading-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .contents { position: static; }
  .contents nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reading-body h2 { font-size: 28px; }
  .mini-list { grid-template-columns: 1fr; gap: 20px; }
  .network-metrics { grid-template-columns: 1fr; gap: 24px; }
  .metric-message, .metric-time { min-height: 0; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 56px; }
  .hero-subtitle { font-size: 22px; }
  .hero-visual { width: 58%; bottom: 28px; }
  .facts dd { font-size: 20px; }
}
@media (max-height: 500px) and (min-width: 761px) {
  .hero { min-height: 440px; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
