@import url('/assets/docs.css');

:root {
  color-scheme: light dark;
  --bg: oklch(0.99 0 0);
  --surface: oklch(0.96 0.006 29);
  --ink: oklch(0.18 0.018 29);
  --muted: oklch(0.46 0.02 29);
  --primary: oklch(0.427 0.175 29.2);
  --primary-strong: oklch(0.35 0.16 29.2);
  --line: oklch(0.88 0.008 29);
  --focus: oklch(0.62 0.16 29.2);
  --max: 70rem;
  --reading: 45rem;
  --radius: 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.75; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { max-width: var(--reading); }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 20; padding: 0.5rem 0.75rem; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 4rem; padding: 0.75rem max(1rem, calc((100% - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: color-mix(in oklch, var(--bg) 94%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 0.72rem; aspect-ratio: 1; border-radius: 50%; background: var(--primary); }
.site-header nav { display: flex; gap: clamp(0.8rem, 3vw, 2rem); font-size: 0.92rem; }
.site-header nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.hero { min-height: 42rem; padding-block: clamp(4.5rem, 9vw, 7rem) 4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(28rem, 1.2fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.hero-copy { max-width: 32rem; }
.status { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.2rem; color: var(--muted); font-size: 0.9rem; }
.status span { width: 0.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--primary); }
h1, h2, h3 { margin-block: 0; letter-spacing: 0; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.18rem; }
.lead { max-width: 24em; margin: 1.5rem 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); text-wrap: pretty; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 2.9rem; padding: 0.65rem 1rem; border-radius: var(--radius); background: var(--primary); color: oklch(0.98 0 0); font-weight: 700; text-decoration: none; transition: background-color 180ms ease, transform 180ms ease; }
.primary-action:hover { background: var(--primary-strong); color: oklch(0.98 0 0); }
.primary-action:active { transform: translateY(1px); }

.roadmap { margin: 0; min-width: 0; }
.roadmap figcaption { margin-bottom: 1.5rem; color: var(--muted); font-size: 0.88rem; }
.roadmap ol { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.roadmap ol::before { content: ""; position: absolute; top: 1.12rem; right: 8%; left: 8%; height: 1px; background: var(--line); }
.roadmap li { position: relative; min-width: 0; text-align: center; }
.roadmap li > span { position: relative; display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; margin: 0 auto 0.9rem; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.roadmap li:first-child > span, .roadmap li:last-child > span { border-color: var(--primary); color: var(--primary); }
.roadmap strong, .roadmap small { display: block; }
.roadmap strong { font-size: 0.92rem; }
.roadmap small { margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; }

.band { padding-block: clamp(4rem, 9vw, 7rem); background: var(--surface); border-block: 1px solid var(--line); }
.plain-language h2 { margin-bottom: 2rem; font-size: 1rem; color: var(--muted); }
.plain-language p { margin: 0; font-size: clamp(1.55rem, 4vw, 2.45rem); line-height: 1.4; text-wrap: pretty; }
.plain-language p + p { margin-top: 0.65rem; color: var(--primary); }
.quick-choice { padding-block: clamp(5rem, 10vw, 8rem); }
.quick-choice h2 { margin-bottom: 2rem; }
.choice-list { margin-bottom: 1.75rem; border-top: 1px solid var(--line); }
.choice-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.choice-list span { color: var(--muted); }
.choice-list strong { text-align: right; }
.text-link { font-weight: 700; color: var(--primary); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.site-footer p { margin: 0; }
.not-found { min-height: 100dvh; display: grid; align-content: center; justify-items: start; }
.not-found h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
.not-found > p:not(.status) { margin: 1rem 0 2rem; color: var(--muted); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .site-header nav { gap: 0.8rem; font-size: 0.82rem; }
  .brand { max-width: 8rem; white-space: normal; line-height: 1.25; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 4rem; gap: 4rem; }
  .roadmap ol { grid-template-columns: 1fr; gap: 1.25rem; }
  .roadmap ol::before { top: 1.2rem; bottom: 1.2rem; left: 1.1rem; width: 1px; height: auto; }
  .roadmap li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 1rem; text-align: left; }
  .roadmap li > span { grid-row: span 2; margin: 0; }
  .choice-list div { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .choice-list strong { text-align: left; }
  .site-footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: oklch(0.13 0.008 29); --surface: oklch(0.18 0.012 29); --ink: oklch(0.94 0.006 29); --muted: oklch(0.72 0.015 29); --primary: oklch(0.68 0.16 29.2); --primary-strong: oklch(0.74 0.14 29.2); --line: oklch(0.3 0.015 29); --focus: oklch(0.78 0.13 29.2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
