:root {
  --bg: #f5f6fa; --surface: #ffffff; --ink: #171a33; --muted: #5c6080;
  --rule: #dfe1ee; --accent: #3646c4; --link: #2f3fb8;
  --hero-a: #2560e2; --hero-b: #4b2ea6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111427; --surface: #181c33; --ink: #e9eaf6; --muted: #a2a7c8;
    --rule: #2b3050; --accent: #8a93ee; --link: #9aa3f4;
    --hero-a: #2b57c9; --hero-b: #4a2d94;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface); padding: 0.05em 0.35em; border-radius: 5px; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 0.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 1.125rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.top nav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); text-decoration: underline; }

main { padding: 3.4rem 0 3rem; }
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 650; margin: 0 0 0.9rem; max-width: 22ch; }
h1 .sub { display: block; font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-top: 0.5rem; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--muted); margin: 0 0 2rem; max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 500; }
h2 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 600; margin: 2.4rem 0 0.5rem; }
p, li { max-width: 68ch; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: 0.35rem 0; }
li::marker { color: var(--accent); }

.hero { margin: 0 0 0.6rem; padding: 1.6rem 1.2rem 1.1rem; border-radius: 22px;
  background: linear-gradient(175deg, var(--hero-a), var(--hero-b)); }
.hero svg { display: block; width: 100%; height: auto; }
.hero .dots circle { fill: rgba(255,255,255,0.62); }
.hero .trend { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hero .today { fill: #fff; }
.hero .today-core { fill: var(--hero-b); }
.caption { color: var(--muted); font-size: 0.95rem; margin: 0 0 2.2rem; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.columns h3 { font-size: 1.02rem; font-weight: 600; margin: 0.6rem 0 0.2rem; }
.columns ul { margin-top: 0; }
@media (max-width: 36rem) { .columns { grid-template-columns: 1fr; } }

.status { border-top: 1px solid var(--rule); margin-top: 2.6rem; padding-top: 1.4rem; }
.status p { margin: 0; }

.lang { display: flex; gap: 1.2rem; margin: 0 0 1.6rem; font-size: 0.95rem; }
section[lang] { border-top: 1px solid var(--rule); padding-top: 1.6rem; margin-top: 1.6rem; }
section[lang] > h2:first-child { margin-top: 0; }
.doc h2 { font-size: 1.15rem; }

footer { border-top: 1px solid var(--rule); padding: 1.4rem 0 2.6rem; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; align-items: baseline; }
footer a { color: var(--muted); }
footer .spacer { flex: 1; }
@media print { .top nav, footer, .lang { display: none; } .hero { background: none; padding: 0; } .hero .trend { stroke: #333; } .hero .dots circle { fill: #bbb; } }
