:root {
  --bg: #FFFFFF;
  --bg-panel: #F6F6F5;
  --bg-panel-2: #ECECEA;
  --border: #E4E4E2;
  --accent: #64B32E;
  --accent-dark: #3F7A1B;
  --accent-mark: rgba(100, 179, 46, 0.42);
  --text: #121814;
  --text-muted: #5F6360;
  --success: #3F8F3A;
  --warn: #D99A1E;
  --error: #D2453B;
  --ink: #111412;
  --ink-raise: #151916;
  --ink-border: #262B27;
  --ink-line: #1E231F;
  --ink-hi: rgba(255, 255, 255, 0.06);
  --ink-row: rgba(255, 255, 255, 0.035);
  --ink-lead: rgba(255, 255, 255, 0.24);
  --ink-text: #ECEFEB;
  --ink-key: #B3B9B2;
  --ink-punct: #5B625C;
  --ink-num: #444A45;
  --ink-muted: #8A918B;
  --ink-dot: #3A403B;
  --btn-hover: #2A302B;
  --mask: #000000;
  --clear: transparent;
  --veil: rgba(18, 24, 20, 0.32);
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --weight-display: 900;
  --size-body: 16px;
  --size-small: 13.5px;
  --size-h1: clamp(34px, 3.35vw, 48px);
  --size-h2: clamp(26px, 2.6vw, 38px);
  --size-h3: 22px;
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;
  --r-round: 50%;
  --shadow-float: 0 1px 2px rgba(18, 24, 20, 0.06), 0 10px 28px rgba(18, 24, 20, 0.09);
  --wrap: 1200px;
  --reading: 800px;
  --header-wrap: 1280px;
  --gutter: 24px;
  --nav-h: 68px;
  --section-space: 112px;
  --lh-code: 20px;
  --gut: 56px;
  --outline-w: 220px;
  --notes-w: 300px;
  --ease: 180ms ease;
  --reveal-time: 600ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}
:where(.dark-panel, .cfg-win) :focus-visible { outline-color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); font-weight: var(--weight-display); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: var(--size-h2); font-weight: var(--weight-heavy); line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: var(--size-h3); font-weight: var(--weight-bold); line-height: 1.4; }
p { margin-top: 0; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--ink-text);
  font-size: var(--size-small);
  line-height: 1.8;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
blockquote { margin-inline: 0; }
:where(main, section, article, aside, nav, .grid, .grid > *, .card, .panel) { min-width: 0; }
:where(button, a) svg { flex-shrink: 0; }
.wrap, .reading, .header-wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.header-wrap { max-width: min(100%, calc(1280px + var(--gutter) * 2)); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin-top: 0; margin-bottom: 16px; }
.section-head p, .muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.grid { display: grid; gap: 24px; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg);
  color: var(--text);
}
.card h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.panel--soft { background: var(--bg-panel); color: var(--text); }
.dark-panel {
  padding: 32px;
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--ink-text);
  box-shadow: inset 0 1px 0 var(--ink-hi);
}
.dark-panel :where(h2, h3, h4) { color: var(--ink-text); }
.dark-panel .muted { color: var(--ink-muted); }
.prose { min-width: 0; line-height: 1.85; }
.prose :where(h2, h3) { margin-top: 2.4em; margin-bottom: .8em; scroll-margin-top: 32px; }
.prose p { margin-bottom: 1.3em; }
.prose :where(ul, ol) { padding-left: 1.5em; }
.prose li + li { margin-top: .5em; }
.prose :not(pre) > code {
  padding: .12em .3em;
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  font-size: .88em;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: var(--weight-bold);
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease);
}
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn--ink { background: var(--text); color: var(--bg); }
.pill-btn--ink:hover, .pill-btn--ink.is-hover { background: var(--btn-hover); color: var(--bg); }
.pill-btn--line { background: var(--bg); color: var(--text); border-color: var(--border); }
.pill-btn--line:hover, .pill-btn--line.is-hover { background: var(--bg-panel); color: var(--text); }
.pill-btn:active { border-color: var(--text-muted); }
.pill-btn:disabled, .pill-btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.pill-btn.is-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.action-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.masthead, #site-header { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.masthead-row {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: var(--weight-heavy);
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { display: block; width: 30px; height: 30px; flex-shrink: 0; }
.mainnav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.mainnav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease);
}
.mainnav-link svg { width: 16px; height: 16px; }
.mainnav-link:hover { background: var(--bg-panel); color: var(--text); }
.mainnav-link[aria-current="page"] { color: var(--text); font-weight: var(--weight-semibold); }
.mainnav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: calc(50% - 2.5px);
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: var(--r-round);
  background: var(--accent);
  color: var(--text);
}
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mainnav-sep { width: 1px; height: 18px; background: var(--border); color: var(--text); }
.langbox { position: relative; }
.langpick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}
.langpick svg { width: 15px; height: 15px; color: var(--text-muted); }
.langpick:hover { background: var(--bg-panel); color: var(--text); }
.lang-short { display: none; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
}
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--bg-panel); color: var(--text); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed;
  z-index: 40;
  inset: var(--nav-h) 0 0;
  border: 0;
  background: var(--veil);
  color: var(--text);
}
.preview-menu { display: none; }
.lead-stage { position: relative; overflow-x: clip; padding-top: 28px; text-align: center; }
.lead-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.kernel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 3px 13px 3px 11px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text);
  font-size: 13px;
  font-weight: var(--weight-bold);
  line-height: 22px;
  letter-spacing: .005em;
}
.kernel-chip-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-round); background: var(--text); color: var(--bg); }
.lead-title {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.35vw, 48px);
  font-weight: var(--weight-display);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.lead-title-line { display: block; }
.marker {
  padding: 0 .06em;
  background: linear-gradient(to top, var(--clear) .04em, var(--accent-mark) .04em, var(--accent-mark) .5em, var(--clear) .5em);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead-summary { max-width: 760px; margin: 16px 0 0; font-size: 15.5px; line-height: 24px; color: var(--text-muted); }
.lead-summary strong { color: var(--text); font-weight: var(--weight-bold); }
.os-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; row-gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.os-row li { padding: 0 18px; font-size: var(--size-small); line-height: 20px; color: var(--text-muted); }
.os-row li + li { border-left: 1px solid var(--border); }
.os-row a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.os-row a:hover { color: var(--text); }
.os-row svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text); }
.device-stage { position: relative; margin-top: 28px; }
.horizon {
  position: absolute;
  z-index: 0;
  top: -18px;
  left: 50%;
  width: 1800px;
  max-width: none;
  height: 560px;
  transform: translateX(-50%);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, var(--clear), var(--mask) 14%, var(--mask) 60%, var(--clear));
}
.horizon path { fill: none; stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.charter { padding-top: 112px; padding-bottom: 128px; }
.charter-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; }
.charter-label { margin: 0; padding-top: 10px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-muted); }
.charter-text { max-width: 1000px; margin: 0; font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.32; letter-spacing: -.02em; }
.charter-link { display: inline-block; margin-top: 32px; font-size: 20px; font-weight: var(--weight-heavy); color: var(--text-muted); text-decoration: none; }
.charter-link:hover { color: var(--text); }
.site-footer { padding-top: 64px; padding-bottom: 88px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr .7fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-intro { margin-top: 20px; max-width: 300px; font-size: 14px; color: var(--text-muted); }
.footer-title { margin: 0 0 16px; font-size: 14px; font-weight: var(--weight-bold); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-top: 5px; padding-bottom: 5px; color: var(--text-muted); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.reveal { opacity: 1; }
.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (max-width: 1180px) {
  :root { --outline-w: 184px; --notes-w: 252px; }
}
@media (max-width: 1100px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    position: absolute;
    z-index: 52;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 16px; border-radius: var(--r-sm); text-decoration: none; }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel); color: var(--text); }
  .mobile-drawer svg { width: 18px; height: 18px; }
  .drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .drawer-label { margin: 0 16px 6px; font-size: 13px; color: var(--text-muted); }
  .preview-menu { display: block; }
  .preview-menu > summary { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; cursor: pointer; list-style: none; }
  .preview-menu > summary::-webkit-details-marker { display: none; }
  .preview-menu nav { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); }
  .preview-menu nav a { display: block; padding: 12px; min-height: 44px; text-decoration: none; }
}
@media (max-width: 940px) {
  :root { --outline-w: 160px; --notes-w: 220px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; --gut: 40px; --section-space: 80px; --size-h1: clamp(24px, 4vw, 30px); }
  .masthead-row { gap: 12px; }
  .lead-stage { padding-top: 32px; }
  .lead-title { font-size: clamp(24px, 4vw, 30px); letter-spacing: -.02em; }
  .lead-summary { font-size: 14.5px; line-height: 22px; }
  .os-row li { padding: 0 12px; }
  .grid--three { grid-template-columns: minmax(0, 1fr); }
  .charter { padding-top: 80px; padding-bottom: 96px; }
  .charter-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .charter-label { max-width: 160px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid--two { grid-template-columns: minmax(0, 1fr); }
  .tilt, [data-tilt] { transform: none !important; }
  .card, .panel, .dark-panel { padding: 24px; }
  .masthead-row > .brand { min-width: 0; flex-shrink: 1; white-space: normal; line-height: 1.3; }
  .masthead-row > .brand > span { min-width: 0; overflow-wrap: anywhere; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .header-tools { gap: 6px; margin-left: auto; }
  .mainnav-sep { display: none; }
  .langpick { min-height: 44px; padding-inline: 10px; }
  .footer-grid { gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-tools { gap: 3px; }
  .langpick { gap: 3px; padding-inline: 7px; }
  .os-row li { padding-inline: 8px; }
  .lead-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .reveal, .reveal-pending { opacity: 1; transform: none; }
}