:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --surface: #f3f3f0;
  --surface-2: #eaeae6;
  --text: #191917;
  --muted: #686861;
  --border: #d9d9d3;
  --accent: #177b39;
  --danger: #b42318;
  --warning: #8b5d00;
  --header: 58px;
  --sidebar: 260px;
  --toc: 204px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

[data-theme="dark"] {
  --bg: #111210;
  --surface: #181916;
  --surface-2: #23241f;
  --text: #f3f3ef;
  --muted: #a2a299;
  --border: #30312c;
  --accent: #71d88d;
  --danger: #ff8d84;
  --warning: #eac267;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.skip:focus { top: 12px; }

/* Documentation */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: grid;
  grid-template-columns: var(--sidebar) minmax(260px, 620px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
}
.brand-wrap { display: flex; align-items: center; gap: 4px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 23px; height: 23px; display: block; }
.docs-label {
  margin-left: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.search-btn {
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.search-btn:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--border)); }
.search-key { margin-left: auto; color: var(--muted); font-size: 10.5px; }
.header-actions {
  grid-column: 4;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.lang-picker { position: relative; }
.lang-trigger {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 650;
}
.lang-trigger:hover,
.lang-trigger:focus-visible,
.lang-picker.open .lang-trigger { background: var(--surface); color: var(--text); outline: none; }
.lang-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-chevron {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .14s ease;
}
.lang-picker.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 40;
  width: 156px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: 0 12px 34px rgb(0 0 0 / .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease;
}
.lang-picker.open .lang-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
}
.lang-option:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.lang-option.active { background: var(--surface-2); color: var(--text); }
.lang-option small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.header-link, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
}
.icon-btn svg { width: 21px; height: 21px; display: block; }
.header-link:hover, .icon-btn:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.menu-btn { display: none; }

.docs-shell, .docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 760px) var(--toc);
  gap: 44px;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}
.docs-badge {
  margin-left: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.kbd { margin-left: auto; color: var(--muted); font-size: 10.5px; }
.brand-mark:not(img) {
  width: 23px;
  height: 23px;
  border-radius: 0;
  background: url("/assets/mark-v2.svg") center / contain no-repeat;
  box-shadow: none;
}
.sidebar {
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow: auto;
  padding: 27px 17px 70px 0;
}
.nav-group { margin-bottom: 23px; }
.nav-title {
  margin: 0 0 7px 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.nav-link {
  display: block;
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  text-decoration: none;
}
.nav-link:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--surface-2); color: var(--text); font-weight: 650; }
.nav-tree { margin: 3px 0 2px; }
.nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}
.nav-parent:hover { background: var(--surface); color: var(--text); }
.nav-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}
.nav-tree.open .nav-chevron { transform: rotate(90deg); }
.nav-children-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .16s ease;
}
.nav-tree.open .nav-children-wrap { grid-template-rows: 1fr; }
.nav-children {
  min-height: 0;
  overflow: hidden;
  margin-left: 9px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.nav-children .nav-link { padding-top: 4px; padding-bottom: 4px; font-size: 12.8px; }

.content { min-width: 0; padding: 49px 0 100px; overflow-wrap: anywhere; }
.breadcrumbs { margin-bottom: 11px; color: var(--muted); font-size: 12px; }
.content h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.lead {
  max-width: 700px;
  margin: 13px 0 37px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.content h2 {
  margin: 49px 0 14px;
  padding-top: 2px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.content h3 { margin: 29px 0 10px; font-size: 18px; line-height: 1.4; }
.content h2 .anchor, .content h3 .anchor {
  margin-left: 7px;
  color: var(--muted);
  opacity: 0;
  font-weight: 400;
  text-decoration: none;
}
.content h2:hover .anchor, .content h3:hover .anchor, .anchor:focus { opacity: 1; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { margin: 0 0 19px; padding-left: 23px; }
.content li { margin: 4px 0; }
.content code {
  padding: .12em .34em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  font-size: .88em;
}
.content pre {
  position: relative;
  overflow: auto;
  margin: 18px 0 24px;
  padding: 17px 18px;
  border: 1px solid #292c27;
  border-radius: 7px;
  background: #10110f;
  color: #f0f2ec;
  line-height: 1.58;
}
.content pre code { padding: 0; border: 0; background: none; color: inherit; font-size: 12.8px; overflow-wrap: normal; word-break: normal; }
.copy {
  position: sticky;
  float: right;
  top: 7px;
  margin: -8px -7px 0 12px;
  padding: 4px 8px;
  border: 1px solid #353833;
  border-radius: 4px;
  background: #191b18;
  color: #bdc2b8;
  cursor: pointer;
  font-size: 10.5px;
}
.copy:hover { color: #fff; }
.content table { width: 100%; margin: 18px 0 28px; border-collapse: collapse; font-size: 13.5px; }
.content th, .content td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.content th { background: var(--surface); font-weight: 680; }
.callout {
  margin: 20px 0;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.callout strong { display: block; margin-bottom: 3px; }
.callout p:last-child { margin-bottom: 0; color: var(--muted); }
.callout.warning { border-left-color: var(--warning); }
.callout.danger { border-left-color: var(--danger); }
.doc-list { margin: 22px 0 34px; border-top: 1px solid var(--border); }
.doc-list a {
  display: grid;
  grid-template-columns: minmax(160px, .34fr) 1fr;
  gap: 18px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.doc-list a:hover { background: var(--surface); }
.doc-list b { font-size: 14px; }
.doc-list span { color: var(--muted); font-size: 13px; }
.definition-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 18px 0 28px;
  border-top: 1px solid var(--border);
}
.definition-grid dt, .definition-grid dd { margin: 0; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.definition-grid dt { font-weight: 680; }
.definition-grid dd { color: var(--muted); }
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.page-nav a {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.page-nav a:hover { background: var(--surface); }
.page-nav .next { text-align: right; }
.page-nav small { display: block; color: var(--muted); }
.toc {
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow: auto;
  padding: 31px 0 60px;
}
.toc-title { margin-bottom: 8px; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.toc a {
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  text-decoration: none;
}
.toc a.active { border-left-color: var(--accent); color: var(--text); }

.search-modal {
  width: min(660px, 92vw);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.search-modal::backdrop { background: rgba(0,0,0,.44); }
.search-top { padding: 10px; border-bottom: 1px solid var(--border); }
.search-input { width: 100%; padding: 7px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.results { max-height: 54vh; overflow: auto; padding: 6px; }
.result { display: block; padding: 10px 11px; border-radius: 5px; color: var(--text); text-decoration: none; }
.result:hover, .result:focus { background: var(--surface); outline: none; }
.result b { display: block; }
.result span { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.search-empty { padding: 24px 14px; color: var(--muted); text-align: center; }

/* Landing */
.landing {
  --lp-bg: #090a08;
  --lp-panel: #11130f;
  --lp-text: #f6f7f0;
  --lp-muted: #9da196;
  --lp-border: #2b2e27;
  --lp-accent: #b7ff4a;
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-size: 16px;
}
.landing a { color: inherit; }
.lp-nav {
  height: 70px;
  display: flex;
  align-items: center;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid var(--lp-border);
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.02em; text-decoration: none; }
.lp-brand img { width: 24px; height: 24px; }
.lp-version { margin-left: 7px; color: var(--lp-muted); font: 10.5px/1.2 "SFMono-Regular", Consolas, monospace; }
.lp-nav-links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.lp-nav-links a { color: #c8cbbf; font-size: 13px; text-decoration: none; }
.lp-nav-links a:hover { color: #fff; }
.lp-nav-links .lp-github { display: inline-flex; align-items: center; gap: 7px; font-weight: 620; }
.lp-github svg { width: 18px; height: 18px; display: block; flex: 0 0 18px; }
.lp-languages { display: inline-flex; align-items: center; gap: 8px; }
.lp-languages a { color: #747a6e; font: 700 10.5px/1.2 "SFMono-Regular", Consolas, monospace; }
.lp-languages a[aria-current="page"] { color: #fff; }
.lp-nav-links .lp-cta { padding: 8px 12px; border: 1px solid #5e6457; color: #fff; }

.lp-hero { position: relative; min-height: 720px; overflow: hidden; border-bottom: 1px solid var(--lp-border); }
.lp-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: 72px;
  align-items: center;
  width: min(1320px, 100%);
  min-height: 720px;
  margin: 0 auto;
  padding: 88px 28px 126px;
}
.lp-hero-inner > * { min-width: 0; }
.lp-eyebrow {
  margin: 0 0 24px;
  color: var(--lp-accent);
  font: 700 10.5px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
}
.lp-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(64px, 8.6vw, 126px);
  line-height: .84;
  letter-spacing: -.075em;
  font-weight: 820;
}
.lp-hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(44px, 7.2vw, 102px);
  line-height: .92;
}
.lp-hero-copy { max-width: 670px; margin: 34px 0 0; color: #c4c8bc; font-size: 18px; line-height: 1.72; }
.lp-hero-copy code { color: #fff; font-size: .9em; }
.lp-actions { display: flex; gap: 11px; margin-top: 30px; }
.lp-actions a { padding: 10px 15px; border: 1px solid #50554a; text-decoration: none; font-size: 13px; font-weight: 660; }
.lp-actions .primary { border-color: var(--lp-accent); background: var(--lp-accent); color: #0a0b08; }
.lp-actions a:hover { border-color: #fff; }
.lp-actions .primary:hover { border-color: #d8ff9f; background: #d8ff9f; }

.boot-panel { align-self: end; margin-bottom: 20px; border: 1px solid #353930; background: var(--lp-panel); }
.boot-head { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid #30332c; color: #747a6e; font: 10.5px/1.4 "SFMono-Regular", Consolas, monospace; }
.boot-code { padding: 18px 18px 20px; font: 12.5px/1.85 "SFMono-Regular", Consolas, monospace; color: #daddd3; overflow-wrap: anywhere; }
.boot-code div + div { margin-top: 3px; }
.prompt { color: var(--lp-accent); }
.comment { margin-top: 11px !important; color: #6f7569; }
.hero-word {
  position: absolute;
  left: 50%;
  bottom: -4.4vw;
  transform: translateX(-50%);
  width: min(1420px, 100%);
  color: transparent;
  font-size: clamp(150px, 22vw, 330px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.09em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px #353930;
  pointer-events: none;
}

.fact-strip { border-bottom: 1px solid var(--lp-border); }
.fact-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1320px, 100%); margin: 0 auto; }
.fact { min-height: 102px; padding: 21px 28px; border-right: 1px solid var(--lp-border); }
.fact:first-child { border-left: 1px solid var(--lp-border); }
.fact strong { display: block; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.fact span { display: block; margin-top: 5px; color: var(--lp-muted); font-size: 12px; }

.lp-section { width: min(1320px, 100%); margin: 0 auto; padding: 92px 28px; }
.lp-section-head { display: grid; grid-template-columns: 280px minmax(0, 720px); gap: 50px; margin-bottom: 40px; }
.lp-section-index { color: var(--lp-accent); font: 700 10.5px/1.5 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.lp-section h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.lp-section-intro { margin: 18px 0 0; color: var(--lp-muted); font-size: 16px; line-height: 1.75; }
.stack-table { border-top: 1px solid var(--lp-border); }
.stack-row { display: grid; grid-template-columns: 170px 270px 1fr; gap: 28px; padding: 19px 0; border-bottom: 1px solid var(--lp-border); }
.stack-row .num { color: #70766a; font: 10.5px/1.6 "SFMono-Regular", Consolas, monospace; }
.stack-row b { font-size: 15px; }
.stack-row p { margin: 0; color: var(--lp-muted); font-size: 14px; }
.stack-row code { color: #e8eade; font-size: .9em; }
.ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--lp-border); border-left: 1px solid var(--lp-border); }
.ops-item { min-height: 230px; padding: 25px; border-right: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); }
.ops-item small { color: var(--lp-accent); font: 700 10px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.ops-item h3 { margin: 22px 0 9px; font-size: 22px; letter-spacing: -.03em; }
.ops-item p { margin: 0; color: var(--lp-muted); font-size: 14px; }
.ops-item code { color: #e8eade; font-size: .9em; }
.lp-doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--lp-border); }
.lp-doc-grid a { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--lp-border); color: inherit; text-decoration: none; }
.lp-doc-grid a:nth-child(odd) { padding-right: 28px; }
.lp-doc-grid a:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--lp-border); }
.lp-doc-grid b { font-size: 15px; }
.lp-doc-grid span { color: var(--lp-muted); font-size: 13px; }
.lp-doc-grid a:hover b { color: var(--lp-accent); }
.lp-footer { border-top: 1px solid var(--lp-border); }
.lp-footer-inner { display: flex; gap: 30px; justify-content: space-between; width: min(1320px, 100%); margin: 0 auto; padding: 30px 28px 42px; color: #777c71; font-size: 12px; }
.lp-footer p { margin: 0; }

.not-found { min-height: 100vh; display: grid; place-items: center; background: #0a0b09; color: #f4f5ee; }
.error-page { width: min(720px, calc(100% - 36px)); padding: 70px 0; }
.error-code { margin: 0 0 12px; color: #b8ff36; font: 700 12px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.error-page h1 { margin: 0; font-size: clamp(42px, 8vw, 78px); line-height: .98; letter-spacing: -.055em; }
.error-page > p:not(.error-code) { max-width: 560px; margin: 22px 0 0; color: #979c91; font-size: 16px; line-height: 1.7; }
.error-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; padding-top: 20px; border-top: 1px solid #30332d; }
.error-links a { color: #f4f5ee; text-decoration: none; }
.error-links a:hover { color: #b8ff36; }

@media (max-width: 1120px) {
  .docs-header { grid-template-columns: 220px minmax(240px, 520px) minmax(0, 1fr) auto; }
  .docs-shell, .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .toc { display: none; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 46px; padding-top: 72px; }
  .boot-panel { width: min(680px, 100%); align-self: start; margin: 0; }
  .lp-hero, .lp-hero-inner { min-height: 880px; }
  .stack-row { grid-template-columns: 100px 220px 1fr; }
}

@media (max-width: 820px) {
  .docs-header { display: flex; gap: 5px; padding: 0 8px; }
  .menu-btn { display: inline-flex; }
  .brand .docs-label, .search-label, .header-link { display: none; }
  .docs-header .brand { flex: 0 0 auto; }
  .search-btn { width: 34px; flex: 0 0 34px; justify-content: center; margin-left: auto; padding: 0; }
  .search-btn .kbd { display: none; }
  .header-actions { grid-column: auto; gap: 2px; }
  .lang-trigger { padding: 0 6px; }
  .lang-trigger .lang-icon { display: none; }
  .lang-menu { width: 144px; }
  .docs-shell, .docs-layout { display: block; padding: 0 18px; }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 45;
    left: 0;
    top: var(--header);
    bottom: 0;
    width: min(86vw, 310px);
    height: auto;
    padding: 22px;
    border-right: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 24px 0 60px rgba(0,0,0,.18);
  }
  .sidebar.open { display: block; }
  .content { padding-top: 34px; }
  .doc-list a { grid-template-columns: 1fr; gap: 3px; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid dd { padding-top: 0; }
  .lp-nav { padding: 0 18px; }
  .lp-nav-links > a:not(.lp-cta):not(.lp-github), .lp-languages { display: none; }
  .lp-nav-links { gap: 14px; }
  .lp-github span { display: none; }
  .lp-hero-inner { padding-left: 18px; padding-right: 18px; }
  .lp-hero h1 { font-size: clamp(56px, 15vw, 90px); }
  .fact-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { border-left: 1px solid var(--lp-border); }
  .lp-section { padding: 72px 18px; }
  .lp-section-head { grid-template-columns: 1fr; gap: 14px; }
  .stack-row { grid-template-columns: 70px 1fr; gap: 16px; }
  .stack-row p { grid-column: 2; }
  .ops-grid, .lp-doc-grid { grid-template-columns: 1fr; }
  .ops-item { min-height: 0; }
  .lp-doc-grid a:nth-child(odd), .lp-doc-grid a:nth-child(even) { padding: 16px 0; border-left: 0; }
  .lp-footer-inner { flex-direction: column; padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 560px) {
  .content h1 { font-size: 34px; }
  .lead { font-size: 15.5px; }
  .content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
  .content th, .content td { min-width: 112px; padding-left: 7px; padding-right: 7px; }
  .content :not(pre) > code { word-break: break-word; }
  .page-nav { grid-template-columns: 1fr; }
  .lp-hero, .lp-hero-inner { min-height: 790px; }
  .lp-hero-inner { padding-top: 54px; padding-bottom: 100px; }
  .lp-hero-line { width: auto; max-width: none; white-space: normal; }
  .lp-hero-copy { font-size: 16px; }
  .lp-actions { flex-direction: column; align-items: stretch; }
  .lp-actions a { text-align: center; }
  .fact { min-height: 90px; padding: 18px; }
  .fact strong { font-size: 16px; }
  .lp-doc-grid a { grid-template-columns: 1fr; gap: 3px; }
}

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