/* Hallmark · shape: Stage hero + alternating split bands · genre: playful + modern-minimal · theme: use-by (by request: lotel's own system, tokens.css copied from lotel/design/useby) · job: join the waitlist, in the nav, the hero and the closing form · signature: a real Claude Code session's waterfall in the hero, and its receipt with a use-by sticker
 * paper: per palette (default lime day #F5F6FA) · accent: what you press · accent-2: model calls · bad: the failed tool run · forget: retention stickers · display: per type pairing (default Recursive casual)
 * nav: sticky mast, wordmark + three anchors + the look switcher + one action · footer: wordmark mast, license line · material: real (one captured session, lotel's defaults, screenshots of the running app (Explore, service map, Storage) per palette and colourway), absent (logos, quotes, user counts, benchmarks) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, the also-a-backend band leans on a screenshot that only follows palette and colourway, not type or style */
/* waive 48 (hex, not oklch): tokens.css is shared with the app, whose owner runs Chrome 98; every value is still a token
 * waive F24 (border + shadow): the chunky style's hard offset shadow is the press affordance on buttons and cards; crisp drops it
 * waive 37 (alternative families): the switcher offers three type pairings until the owner picks; any one look loads only its own family (the boot script requests just that one)
 * waive 64 (mono in the waterfall, receipt and code): span names, commands and figures are machine values from the captured data */

:root {
  --site-w: 1180px;
  --site-gutter: 40px;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-xs: 0.8125rem;
  --t-lede: 1.25rem;
  --t-h1: 4.25rem;
  --t-h2: 2.375rem;
  --t-h3: 1.375rem;
  --t-price: 3.25rem;
  --mast-h: 68px;
  --wf-name-w: 220px;
  --wf-ms-w: 64px;
}
@media (max-width: 60rem) { :root { --site-gutter: 24px; --t-h1: 3.25rem; --t-h2: 2rem; } }
@media (max-width: 40rem) { :root { --site-gutter: 16px; --t-h1: 2.5rem; --t-h2: 1.625rem; --t-lede: 1.125rem; --t-price: 2.5rem; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--mast-h) + var(--space-md)); scroll-behavior: smooth; scrollbar-color: var(--color-muted-2) var(--color-paper); }
body {
  margin: 0; background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-variation-settings: var(--fv-body); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; caret-color: var(--color-accent-deep);
}
::selection { background: var(--color-sel); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
code, pre, .mono { font-family: var(--font-mono); font-variation-settings: var(--fv-mono); }
h1, h2, h3 {
  margin: 0; font-family: var(--font-display); font-variation-settings: var(--fv-display);
  font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.05;
  overflow-wrap: break-word; min-width: 0; text-wrap: balance; color: var(--color-ink);
}
h1 { font-size: var(--t-h1); max-width: 12ch; }
h2 { font-size: var(--t-h2); max-width: 20ch; margin-bottom: var(--space-md); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.wrap { width: 100%; max-width: var(--site-w); margin-inline: auto; padding-inline: var(--site-gutter); }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--r-ctl); }
.skip:focus-visible { top: var(--space-md); }

/* ---------------------------------------------------------------- mast */
.mast { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-paper); border-bottom: var(--line-w) solid var(--line-c); }
.mast-in { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--mast-h); }
.brand {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; text-decoration: none;
  font-family: var(--font-display); font-variation-settings: var(--fv-display); font-weight: 900;
  font-size: var(--text-2xl); letter-spacing: -0.03em; line-height: 1; color: var(--color-ink);
}
.brand::after {
  content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--color-accent);
  border: var(--line-w) solid var(--color-ink); transform: rotate(calc(var(--tilt) * -4));
}
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--r-chip); }
.links { display: flex; gap: var(--space-2xs); margin-right: auto; }
.links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-sm); border-radius: var(--r-ctl);
  color: var(--color-ink-2); text-decoration: none; font-size: var(--t-small);
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.links a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }

/* the look switcher: the same popover as the app */
.set { position: relative; flex: none; }
.set summary {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-sm);
  list-style: none; cursor: pointer; border-radius: var(--r-ctl); border: var(--line-w) solid var(--line-c);
  background: var(--color-paper); font-size: var(--t-xs); color: var(--color-ink-2);
  transition: background-color var(--dur-micro) var(--ease-out);
}
.set summary::-webkit-details-marker { display: none; }
.set summary:hover, .set[open] summary { background: var(--color-paper-2); color: var(--color-ink); }
.set summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pv { display: inline-flex; gap: var(--space-3xs); }
.pv i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--color-ink); display: block; }
.pv .p { background: var(--color-accent); } .pv .a { background: var(--color-accent-2); } .pv .c { background: var(--color-forget); }
.pop {
  position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); width: min(540px, 90vw);
  display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md);
  background: var(--color-paper); border: var(--card-line); border-radius: var(--r-card); box-shadow: var(--pop);
}
.set:not([open]) .pop { display: none; }
.pop .grp { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); }
.pop .gk { width: 76px; flex: none; font-size: var(--t-xs); color: var(--color-muted); }
.pop a.box {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 32px; padding: 0 var(--space-sm);
  border-radius: var(--r-chip); border: var(--line-w) solid var(--color-rule); color: var(--color-ink-2);
  text-decoration: none; font-size: var(--t-xs);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.pop a.box:hover { border-color: var(--line-c); color: var(--color-ink); }
.pop a.box:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.pop a.box.on { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--line-c); font-weight: 700; }
.pop .sw { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--color-ink); display: inline-block; }
.pop .law { font-size: var(--t-xs); color: var(--color-muted); }

/* ------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: 0 var(--space-md); border-radius: var(--r-ctl);
  border: var(--line-w) solid var(--line-c); background: var(--color-paper); color: var(--color-ink);
  font: inherit; font-size: var(--t-small); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-paper-2); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-go { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-edge); box-shadow: var(--pop); font-weight: 700; }
.btn-go:hover { background: var(--color-accent); transform: translate(-1px, -1px); }
.btn-go:active { transform: translate(2px, 2px); box-shadow: none; }
.btn-lg { min-height: 52px; padding: 0 var(--space-lg); font-size: var(--t-body); }

.card { background: var(--color-paper); border: var(--card-line); border-radius: var(--r-card); box-shadow: var(--pop); }

/* stickers: the app's retention chip */
.useby {
  display: inline-flex; align-items: baseline; gap: var(--space-2xs); padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--r-chip); background: var(--color-forget); color: var(--color-forget-ink);
  border: var(--line-w) solid var(--line-c); font-size: var(--t-xs); line-height: 1.4; white-space: nowrap;
  transform: rotate(var(--tilt));
}
.useby b { font-family: var(--font-mono); font-variation-settings: var(--fv-figure); font-weight: 700; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center;
  padding-block: var(--space-2xl) var(--space-3xl);
}
.hero-copy { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.hero-sub { font-size: var(--t-lede); color: var(--color-ink-2); max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }

/* the waterfall: one real session */
.wf { margin: 0; padding: var(--space-md) var(--space-md) var(--space-sm); min-width: 0; }
.wf-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-rule-2); }
.wf-head b { font-size: var(--t-small); }
.wf-sum { white-space: nowrap; margin-left: var(--space-sm); font-size: var(--t-xs); color: var(--color-muted); }
.wf-rows { list-style: none; margin: 0; padding: var(--space-2xs) 0 0; }
.wf-row { display: grid; grid-template-columns: var(--wf-name-w) minmax(0, 1fr) var(--wf-ms-w); gap: var(--space-sm); align-items: center; min-height: 27px; font-size: var(--t-xs); }
.wf-name { display: flex; align-items: baseline; gap: var(--space-xs); min-width: 0; white-space: nowrap; }
.wf-name b { font-weight: 600; }
.wf-d { font-family: var(--font-mono); font-variation-settings: var(--fv-mono); color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wf-flag { flex: none; padding: 0 var(--space-2xs); border-radius: var(--r-chip); background: var(--color-warn-soft); color: var(--color-warn-ink); font-size: var(--t-xs); line-height: 1.5; }
.wf-flag.bad { background: var(--color-bad-soft); color: var(--color-bad-ink); }
.wf-track { position: relative; height: 14px; background: var(--color-paper-2); border-radius: 4px; }
.wf-track i { position: absolute; top: 0; bottom: 0; min-width: 3px; border-radius: 3px; background: var(--svc2); }
.wf-ms { text-align: right; white-space: nowrap; font-family: var(--font-mono); font-variation-settings: var(--fv-figure); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.k-root .wf-track i { background: var(--color-paper-3); box-shadow: inset 0 0 0 1.5px var(--color-ink-2); }
.k-model .wf-track i { background: var(--color-accent-2); }
.k-blocked .wf-track i { background: var(--color-warn); }
.k-failed .wf-track i { background: var(--color-bad); }
.k-failed .wf-ms { color: var(--color-bad-ink); }
.k-root .wf-name b, .k-model .wf-name b { font-weight: 500; }
.wf-axis { position: relative; height: 18px; margin: var(--space-2xs) calc(var(--wf-ms-w) + var(--space-sm)) 0 calc(var(--wf-name-w) + var(--space-sm)); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--color-muted); }
.wf-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.wf-axis span:first-child { transform: none; }
.wf figcaption { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule-2); font-size: var(--t-xs); color: var(--color-muted); }

/* --------------------------------------------------------------- bands */
.band { background: var(--color-paper-2); border-block: var(--line-w) solid var(--line-c); padding-block: var(--space-3xl); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
section.split { padding-block: var(--space-3xl); }
.split p, .lede { color: var(--color-ink-2); max-width: 46ch; }
.lede { font-size: var(--t-lede); max-width: 56ch; margin-bottom: var(--space-xl); }
.note { margin-top: var(--space-md); font-size: var(--t-xs); color: var(--color-muted); }

.code {
  margin: 0; padding: var(--space-lg); overflow-x: auto; border-radius: var(--r-card);
  background: var(--color-ink); color: var(--color-paper); border: var(--card-line); box-shadow: var(--pop);
  font-size: var(--t-xs); line-height: 1.75; white-space: pre; overflow-wrap: normal;
}
.code .c { color: var(--color-muted-2); }

/* the receipt */
.receipt-sec { align-items: start; }
.receipt {
  position: relative; justify-self: center; width: min(400px, 100%); padding: var(--space-lg) var(--space-lg) var(--space-md);
  background: var(--color-paper); border: var(--card-line); border-radius: var(--r-chip); box-shadow: var(--pop);
  transform: rotate(calc(var(--tilt) * 0.8)); font-family: var(--font-mono); font-variation-settings: var(--fv-mono); font-size: var(--t-small);
}
.r-title { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-sm); border-bottom: 1.5px dashed var(--color-rule); font-family: var(--font-display); font-variation-settings: var(--fv-display); font-weight: 800; font-size: var(--t-h3); }
.r-title span { font-family: var(--font-body); font-variation-settings: var(--fv-body); font-weight: 400; font-size: var(--t-xs); color: var(--color-muted); }
.receipt dl { margin: 0; padding: var(--space-sm) 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-3xs) 0; }
.receipt dt { color: var(--color-ink-2); }
.receipt dd { margin: 0; font-variation-settings: var(--fv-figure); font-variant-numeric: tabular-nums; }
.receipt .r-sub dt { padding-left: var(--space-md); color: var(--color-muted); }
.receipt .r-sub dd { color: var(--color-muted); }
.receipt .r-warn dd { color: var(--color-warn-ink); font-weight: 700; }
.receipt .r-bad dd { color: var(--color-bad-ink); font-weight: 700; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-sm); border-top: 1.5px dashed var(--color-rule); }
.r-total b { font-size: var(--t-h3); font-variation-settings: var(--fv-figure); }
.r-stamp { position: absolute; right: calc(-1 * var(--space-md)); top: calc(-1 * var(--space-md)); font-size: var(--t-small); transform: rotate(calc(var(--tilt) * -5)); }


/* the app, screenshotted per palette and colourway: full width under the head */
.also { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.also > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md) var(--space-2xl); }
.also h2 { margin-bottom: 0; }
.shots { min-width: 0; }
.shot { width: 100%; height: auto; }
.shot-fig { margin: var(--space-lg) 0 0; min-width: 0; }
.shot-fig figcaption { margin-top: var(--space-xs); font-size: var(--t-xs); color: var(--color-muted); }
.shot-map { max-width: 660px; }
/* @@shots:start@@ */
.shot { display: none; }
html[data-pal="lime"]:not([data-scheme="night"]) .shot[data-k="lime-day"] { display: block; }
html[data-pal="lime"][data-scheme="night"] .shot[data-k="lime-night"] { display: block; }
html[data-pal="sherbet"]:not([data-scheme="night"]) .shot[data-k="sherbet-day"] { display: block; }
html[data-pal="sherbet"][data-scheme="night"] .shot[data-k="sherbet-night"] { display: block; }
html[data-pal="riso"]:not([data-scheme="night"]) .shot[data-k="riso-day"] { display: block; }
html[data-pal="riso"][data-scheme="night"] .shot[data-k="riso-night"] { display: block; }
html[data-pal="mint"]:not([data-scheme="night"]) .shot[data-k="mint-day"] { display: block; }
html[data-pal="mint"][data-scheme="night"] .shot[data-k="mint-night"] { display: block; }
@media (prefers-color-scheme: dark) {
  html[data-pal="lime"][data-scheme="system"] .shot[data-k="lime-day"] { display: none; }
  html[data-pal="lime"][data-scheme="system"] .shot[data-k="lime-night"] { display: block; }
  html[data-pal="sherbet"][data-scheme="system"] .shot[data-k="sherbet-day"] { display: none; }
  html[data-pal="sherbet"][data-scheme="system"] .shot[data-k="sherbet-night"] { display: block; }
  html[data-pal="riso"][data-scheme="system"] .shot[data-k="riso-day"] { display: none; }
  html[data-pal="riso"][data-scheme="system"] .shot[data-k="riso-night"] { display: block; }
  html[data-pal="mint"][data-scheme="system"] .shot[data-k="mint-day"] { display: none; }
  html[data-pal="mint"][data-scheme="system"] .shot[data-k="mint-night"] { display: block; }
}
/* @@shots:end@@ */

/* -------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.plan { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); }
.plan p { color: var(--color-ink-2); }
.price { display: flex; align-items: baseline; gap: var(--space-xs); }
.price b { font-family: var(--font-display); font-variation-settings: var(--fv-display); font-weight: var(--display-weight); font-size: var(--t-price); line-height: 1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.price span { font-size: var(--t-small); color: var(--color-muted); }
.plan-go { background: var(--color-accent); }
.plan-cmd { padding: var(--space-sm) var(--space-md); box-shadow: none; }
.plan-links, .foot-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.plan-go h3, .plan-go p, .plan-go .price b, .plan-go .price span { color: var(--color-accent-ink); }

/* ----------------------------------------------------------------- form */
.join { align-items: start; }
.join > div { position: sticky; top: calc(var(--mast-h) + var(--space-xl)); }
.form { display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-lg); }
.field { display: flex; flex-direction: column; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { padding: 0; font-size: var(--t-small); font-weight: 600; }
.field input[type="email"] {
  min-height: 48px; padding: 0 var(--space-md); border-radius: var(--r-ctl);
  border: var(--line-w) solid var(--line-c); background: var(--color-paper); color: var(--color-ink);
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.field input[type="email"]::placeholder { color: var(--color-muted-2); }
.field input[type="email"]:hover { border-color: var(--color-ink-2); }
.field input[type="email"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.field input[type="email"]:user-invalid { border-color: var(--color-bad); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--r-chip);
  border: var(--line-w) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink-2); font-size: var(--t-small);
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.chip:hover span { border-color: var(--line-c); color: var(--color-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip input:checked + span { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--line-c); font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }

/* --------------------------------------------------------------- footer */
.foot { border-top: var(--line-w) solid var(--line-c); background: var(--color-paper-2); padding-block: var(--space-2xl) var(--space-xl); }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md); }
.foot-mark { font-family: var(--font-display); font-variation-settings: var(--fv-display); font-weight: 900; font-size: var(--t-h1); letter-spacing: -0.04em; line-height: 1; }
.foot p:last-child { color: var(--color-muted); font-size: var(--t-small); }

/* --------------------------------------------------------------- thanks */
.thanks { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); padding-block: var(--space-3xl); }
.thanks p { color: var(--color-ink-2); max-width: 46ch; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 60rem) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .band, section.split { padding-block: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .links { display: none; }
  .mast-in { gap: var(--space-sm); }
  .mast-in .set { margin-left: auto; }
  .brand { font-size: var(--text-xl); }
  .mast-in > .btn-go { min-height: 40px; padding: 0 var(--space-sm); font-size: var(--t-xs); }
  .set .who { display: none; }
  .join > div { position: static; }
  :root { --wf-name-w: 104px; --wf-ms-w: 60px; }
  .wf-row { gap: var(--space-xs); }
  .wf-head { flex-wrap: wrap; }
  .code { font-size: var(--text-2xs); padding: var(--space-md); }
  .wf-d { display: none; }
  .wf-axis { margin-left: calc(var(--wf-name-w) + var(--space-xs)); margin-right: calc(var(--wf-ms-w) + var(--space-xs)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .receipt { transform: none; }
  .r-stamp { right: var(--space-xs); }
}

/* docs (lotel.io/docs, rendered from lotel/docs/*.md by build.py) */
.docs { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-2xl); align-items: start; padding-block: var(--space-2xl) var(--space-3xl); }
.docs-nav { position: sticky; top: calc(var(--mast-h) + var(--space-lg)); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3xs); }
.docs-nav a { display: block; padding: var(--space-2xs) var(--space-sm); border-radius: var(--r-chip); text-decoration: none; color: var(--color-ink-2); }
.docs-nav a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.docs-nav a[aria-current="page"] { background: var(--color-paper-2); color: var(--color-ink); font-weight: 600; }
.doc { min-width: 0; max-width: 46rem; }
.doc h1 { max-width: none; margin-bottom: var(--space-lg); }
.doc h2 { max-width: none; font-size: var(--t-h3); margin: var(--space-2xl) 0 var(--space-sm); }
.doc h3 { font-size: var(--t-body); margin: var(--space-lg) 0 var(--space-xs); }
.doc p, .doc ul, .doc ol { margin: 0 0 var(--space-md); max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: var(--space-2xs); }
.doc :not(pre) > code { font-size: 0.9em; padding: 0.05em 0.3em; border-radius: 4px; background: var(--color-paper-2); overflow-wrap: anywhere; }
.doc .code { margin: 0 0 var(--space-lg); box-shadow: none; }
.doc a { color: var(--color-ink); text-decoration-color: var(--color-muted-2); }
.doc a:hover { text-decoration-color: currentColor; }
.tbl { overflow-x: auto; margin: 0 0 var(--space-lg); border: var(--card-line); border-radius: var(--r-card); }
.tbl table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-rule-2); }
.tbl th { background: var(--color-paper-2); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.doc-toc { margin: 0 0 var(--space-xl); padding: var(--space-md); border-radius: var(--r-card); background: var(--color-paper-2); font-size: var(--t-small); }
.doc-toc p { margin: 0 0 var(--space-xs); color: var(--color-muted); }
.doc-toc ul { margin: 0; padding-left: var(--space-md); columns: 2; column-gap: var(--space-xl); }
.doc-src { margin-top: var(--space-2xl); font-size: var(--t-small); color: var(--color-muted); }
.doc-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--space-md); max-width: none; }
.doc-cards li + li { margin-top: 0; }
.doc-cards a { display: grid; gap: var(--space-2xs); height: 100%; padding: var(--space-md); border: var(--card-line); border-radius: var(--r-card); text-decoration: none; background: var(--color-paper); }
.doc-cards a:hover { background: var(--color-paper-2); }
.doc-cards span { color: var(--color-ink-2); font-size: var(--t-small); }
@media (max-width: 60rem) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .docs-nav { position: static; }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
  .doc-toc ul { columns: 1; }
}
.tbl code { white-space: nowrap; overflow-wrap: normal; }
.doc-fig { margin: var(--space-lg) 0 var(--space-xl); }
.doc-fig img { border-radius: var(--r-card); }
.doc-night { display: none; }
html[data-scheme="night"] .doc-day { display: none; }
html[data-scheme="night"] .doc-night { display: block; }
@media (prefers-color-scheme: dark) {
  html[data-scheme="system"] .doc-day { display: none; }
  html[data-scheme="system"] .doc-night { display: block; }
}
