/* antimatter.chat — the site's styles. Antimatter's palette: matter (violet), anti (cyan), the spark (gold). */

@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --matter: #8b5cf6;
  --matter-deep: #6d28d9;
  --matter-soft: #ede9fe;
  --anti: #22d3ee;
  --anti-deep: #0e7490;
  --spark: #fbbf24;
  --ink: #1b1a24;
  --text: #3d3b4a;
  --muted: #6b6880;
  --line: #e6e3ef;
  --bg: #ffffff;
  --bg-alt: #f7f6fb;
  --night: #1e1f22;
  --night-2: #2b2d31;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 26, 36, 0.08);
  --shadow-lg: 0 30px 80px rgba(15, 13, 23, 0.35);
  --wrap: 1160px;
  --ui: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Sora", "Figtree", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--ui); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--matter-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Code reads left to right in every language. */
code { direction: ltr; unicode-bidi: isolate; }

/* Headings wrap at word boundaries in Japanese, and balance their lines everywhere. */
h1, h2, h3 { text-wrap: balance; }
/* Long words (German, Finnish, Tamil...) hyphenate, or break as a last resort, rather than widen the page on phones. */
h1, h2, h3, h4, p, li, td { overflow-wrap: break-word; }
h1, h2, h3, h4 { hyphens: auto; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Navigation: transparent over the hero, solid once scrolled (and on every page without a hero). */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .6s ease, box-shadow .6s ease; padding: 18px 0; }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
/* The wordmark: Sora, large and bold with a little air, so the "i" keeps its dot. */
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.65rem var(--display); letter-spacing: .01em; color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav.solid, body.plain .nav { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(27, 26, 36, .06); }
/* The bar keeps one height on every page; on the landing page it only fades from transparent to white as the page
   scrolls, its text along with it. */
.nav .brand, .nav-links a, .nav-toggle, .lang summary { transition: color .6s ease; }
.nav.solid .brand, body.plain .nav .brand { color: var(--ink); }
.nav.solid .nav-links a, body.plain .nav .nav-links a { color: var(--text); }
.nav.solid .nav-links a:hover, body.plain .nav .nav-links a:hover, .nav.solid .nav-links a[aria-current="page"], body.plain .nav .nav-links a[aria-current="page"] { color: var(--matter-deep); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.nav.solid .nav-toggle, body.plain .nav .nav-toggle { color: var(--ink); }
/* The language selector, next to the GitHub button: a <details> menu. */
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 8px; color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .85rem; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: #fff; background: rgba(255, 255, 255, .08); }
.lang summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav.solid .lang summary, body.plain .nav .lang summary { color: var(--text); }
.nav.solid .lang summary:hover, body.plain .nav .lang summary:hover, .nav.solid .lang[open] summary, body.plain .nav .lang[open] summary { color: var(--ink); background: var(--bg-alt); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang ul { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); max-height: min(70vh, 560px); overflow-y: auto; }
.lang ul a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text) !important; font-weight: 500; font-size: .92rem; }
.lang ul a:hover { background: var(--bg-alt); text-decoration: none; }
.lang ul a[aria-current="true"] { color: var(--matter-deep) !important; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 1rem var(--ui); border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--matter); color: #fff; }
.btn-primary:hover { background: var(--matter-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--matter); color: var(--matter-deep); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.nav-links .btn-primary { color: #fff; padding: 9px 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: rgba(255, 255, 255, .86); background: linear-gradient(180deg, var(--night) calc(100% - 200px), var(--bg) calc(100% - 200px)); padding: 150px 0 0; text-align: center; }
.hero h1 { color: #fff; max-width: 860px; margin: 0 auto .4em; }
.hero h1 em { font-style: normal; color: #a78bfa; }
.hero .lead { font-size: 1.22rem; max-width: 720px; margin: 0 auto 1.8em; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero .facts { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: .92rem; color: rgba(255, 255, 255, .7); margin-bottom: 56px; }
.hero .facts span::before { content: "✓"; color: var(--anti); margin-inline-end: 6px; font-weight: 700; }
.hero .shot { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.hero .frame { box-shadow: 0 2px 6px rgba(15, 13, 23, .18); }

/* A screenshot in a window frame */
.frame { border-radius: 12px; overflow: hidden; background: #1e1f22; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.frame .bar { display: flex; gap: 7px; padding: 10px 14px; background: #2b2d31; }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #4e5058; }
.frame .bar i:nth-child(1) { background: #f87171; } .frame .bar i:nth-child(2) { background: #fbbf24; } .frame .bar i:nth-child(3) { background: #34d399; }
.frame img { width: 100%; }
/* Screenshots open full size in a lightbox (site.js). */
img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(12, 12, 16, .88); cursor: zoom-out; opacity: 0; transition: opacity .2s ease; }
.lightbox img { display: block; width: auto; height: auto; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform: scale(.96); transition: transform .2s ease; }
.lightbox.open { opacity: 1; }
.lightbox.open img { transform: none; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox img { transition: none; } }
body.lightbox-open { overflow: hidden; }
.light-frame { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--night); color: rgba(255, 255, 255, .82); }
section.dark h2, section.dark h3 { color: #fff; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-title p { color: var(--muted); font-size: 1.1rem; }
section.dark .section-title p { color: rgba(255, 255, 255, .7); }
.eyebrow { display: inline-block; font: 700 .78rem var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--matter-deep); margin-bottom: 10px; }
section.dark .eyebrow, .hero .eyebrow { color: var(--anti); }

/* Card grids */
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* The little details' pictures: two columns that flow on their own, each tile as tall as its picture, rather than
   rows that line the tiles up. */
.grid-2:has(img[src*="shots/d-"]) { display: block; columns: 2; column-gap: 28px; }
.grid-2:has(img[src*="shots/d-"]) > * { break-inside: avoid; margin-bottom: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
section.dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
section.dark .card p { color: rgba(255, 255, 255, .68); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--matter-soft); color: var(--matter-deep); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.anti { background: #cffafe; color: var(--anti-deep); }
.icon.spark { background: #fef3c7; color: #b45309; }
section.dark .icon { background: rgba(139, 92, 246, .18); color: #c4b5fd; }

/* Feature rows: text beside a screenshot, alternating sides */
/* A feature: its text beside a large screenshot, which reaches past the page's column towards the window's edge. */
.feature { --bleed: min(0px, (var(--wrap) - min(100vw, 1600px)) / 4); display: grid; grid-template-columns: minmax(340px, 1fr) 1.4fr; gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: 1.4fr minmax(340px, 1fr); }
.feature > :not(.feature-text) { margin-inline-end: var(--bleed); }
.feature.flip > :not(.feature-text) { margin-inline-end: 0; margin-inline-start: var(--bleed); }
.feature + .feature { margin-top: 110px; }
.feature.flip .feature-text { order: 2; }
.feature ul { list-style: none; padding: 0; margin: 1.2em 0 0; }
.feature li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.feature li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%; background: var(--matter-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%236d28d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.feature li b { color: var(--ink); }
section.dark .feature li b { color: #fff; }
section.dark .feature li::before { background-color: rgba(139, 92, 246, .3); }

/* The little details */
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.details > *, .detail > * { min-width: 0; }
.detail { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.detail .icon { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.detail .icon svg { width: 22px; height: 22px; }
.detail h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.detail p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Code */
/* Commands keep one line each, to read and copy as they are: on a phone the block scrolls sideways instead. */
.terminal { direction: ltr; text-align: left; background: #15131f; color: #e9e6f5; border-radius: 12px; padding: 22px 24px; overflow-x: auto; font: 400 .92rem/1.7 var(--mono); box-shadow: var(--shadow); white-space: nowrap; }
.terminal .c { color: #8b87a5; }
.terminal .p { color: var(--anti); user-select: none; }

/* Comparison tables */
/* The table's header row stays under the site's bar while the page scrolls. The wrapper scrolls only on narrow
   screens, where the table is wider than the page: there it scrolls both ways and the header sticks inside it. */
.table-wrap { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
@media (max-width: 1000px) {
  .table-wrap { overflow: auto; max-height: 80vh; }
  .table-wrap .compare thead th { top: 0; }
  /* The feature names stay while the table scrolls sideways. */
  .table-wrap .compare :is(th, td):first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
  .table-wrap .compare thead th:first-child { z-index: 3; background: var(--bg-alt); }
  .table-wrap .compare tr.group td:first-child { position: static; background: var(--bg-alt); box-shadow: none; }
  .table-wrap .compare tr.group span { position: sticky; inset-inline-start: 16px; }
}
table.compare { width: 100%; border-collapse: collapse; font-size: .96rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.compare th:first-child, .compare td:first-child { text-align: start; }
.compare thead th { background: var(--bg-alt); font: 700 .92rem var(--display); color: var(--ink); position: sticky; top: 76px; z-index: 2; box-shadow: 0 1px 0 var(--line); }
.compare thead th:first-child { border-start-start-radius: var(--radius); }
.compare thead th:last-child { border-start-end-radius: var(--radius); }
.compare thead th.us { background: var(--matter); color: #fff; }
.compare td.us { background: rgba(139, 92, 246, .05); }
.compare tr.group td { background: var(--bg-alt); font: 700 .8rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: start; }
.compare .yes { color: #059669; font-weight: 700; }
.compare .no { color: #b91c1c; font-weight: 700; }
.compare .part { color: #b45309; font-weight: 600; }
.compare small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 2px; }
.legend { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Plain pages (about, privacy...) */
.page-head { padding: 140px 0 56px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head p { font-size: 1.15rem; color: var(--muted); max-width: 760px; margin: 0; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.callout { border-inline-start: 4px solid var(--matter); background: var(--matter-soft); padding: 16px 20px; border-radius: 0; border-start-end-radius: 10px; border-end-end-radius: 10px; color: var(--ink); margin: 1.5em 0; }

/* Call to action band */
.band { text-align: center; }
.band .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Footer */
footer { background: var(--night); color: rgba(255, 255, 255, .6); padding: 70px 0 34px; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 28px; }
footer h4 { color: #fff; font: 700 .85rem var(--ui); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; overflow-wrap: normal; hyphens: auto; }
footer a { color: rgba(255, 255, 255, .75); }
footer a:hover { color: #fff; }
footer .brand { margin-bottom: 14px; }
footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .86rem; }

/* Reveal on scroll (only when scripts run; content stays visible otherwise) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1200px) {
  /* The brand above, the five link columns in one row under it. */
  footer .cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .details { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: repeat(3, 1fr); }
  footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: 0 12px 30px rgba(27, 26, 36, .12); padding: 8px 24px 18px; }
  .nav-links a { color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn-primary { margin-top: 10px; justify-content: center; border: 0; }
  .nav.open .nav-links { display: flex; }
  .nav.open { background: #fff; }
  .nav.open .brand, .nav.open .nav-toggle { color: var(--ink); }
  /* The menu scrolls when taller than the screen; the language list opens inside it, in two columns. */
  .nav-links { max-height: calc(100dvh - 70px); overflow-y: auto; }
  .nav.open .lang summary { color: var(--text); padding: 12px 0; font-size: .95rem; }
  .nav.open .lang summary:hover, .nav.open .lang[open] summary { background: none; }
  .nav-links .lang ul { position: static; grid-template-columns: 1fr 1fr; max-height: none; min-width: 0; padding: 0 0 6px; border: 0; box-shadow: none; }
  .nav-links .lang ul a { padding: 8px 0; border-bottom: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2:has(img[src*="shots/d-"]) { columns: 1; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature > :not(.feature-text), .feature.flip > :not(.feature-text) { margin: 0; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .hero { padding-top: 120px; background: linear-gradient(180deg, var(--night) calc(100% - 90px), var(--bg) calc(100% - 90px)); }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }
  h2 { font-size: clamp(1.5rem, 6.5vw, 1.7rem); }
  .terminal { padding: 18px; font-size: .84rem; }
  .grid-4, .details { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  /* Footer links tall enough to tap. */
  footer li { margin-bottom: 2px; }
  footer li a { display: inline-block; padding: 6px 0; }
}

/* Documentation: a guide's navigation beside the page, which reads like the other prose pages. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 112px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; font-size: .95rem; padding-inline-end: 4px; }
.docs-home { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.docs-guide select { width: 100%; font: 600 1rem var(--ui); color: var(--ink); padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); margin-bottom: 14px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.docs-nav li a:hover { background: var(--bg-alt); text-decoration: none; }
.docs-nav li a[aria-current] { background: var(--matter-soft); color: var(--matter-deep); font-weight: 600; }
.docs-nav .toc { margin: 4px 0 8px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); margin-inline-start: 10px; }
.docs-nav .toc a { padding: 3px 10px; font-size: .9rem; color: var(--muted); }
.docs-body { max-width: 780px; margin: 0; }
.docs-body h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.docs-body .lead { font-size: 1.15rem; color: var(--muted); }
.docs-body h2 { scroll-margin-top: 90px; }
.docs-body h3 { scroll-margin-top: 90px; }
.docs-body table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0 1.5em; }
.docs-body th, .docs-body td { text-align: start; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.docs-body th { color: var(--ink); background: var(--bg-alt); }
.docs-body :not(pre) > code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.docs-body pre { direction: ltr; text-align: left; background: #15131f; color: #e9e6f5; border-radius: 12px; padding: 18px 20px; overflow-x: auto; line-height: 1.6; }
.docs-body kbd { font: .85em var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--bg); }
.docs-body figure { margin: 1.5em 0; }
.docs-body figure img { border-radius: 12px; box-shadow: var(--shadow); }
.docs-body figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.callout.warn { border-inline-start-color: var(--spark); background: #fef6e0; }
.pager { display: flex; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.pager a:hover { border-color: var(--matter); text-decoration: none; }
.pager small { display: block; font-weight: 400; color: var(--muted); }
.pager .next { text-align: end; }
.pager .next:only-child { margin-inline-start: auto; max-width: 50%; }
.guides .card h3 { display: flex; align-items: center; gap: 10px; }
.guides .card ul { margin: .8em 0 0; padding-inline-start: 1.1em; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 96px; }
  .docs-nav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .docs-nav > ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav > ul > li > a { border: 1px solid var(--line); padding: 4px 10px; font-size: .88rem; }
  .docs-nav .toc { display: none; }
}
