/* brokit's landing page. Light and dark follow the system. */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f2f1ec;
  --text: #15171c;
  --muted: #5a606c;
  --line: #e4e2db;
  --accent: #0b8a66;
  --accent-text: #ffffff;
  --accent-soft: #0b8a6614;
  --glow-1: #34d39926;
  --glow-2: #38bdf81f;
  --grid: #dddad1; /* the hero's background lines */
  --logo: #2b1414; /* the logo's two colors, swapped in dark */
  --logo-contrast: #ffffff;
  --shadow: 0 1px 2px #0000000d, 0 10px 30px #0000000a;
  --terminal: #0f1116;
  --terminal-line: #ffffff14;
  --radius: 18px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
/* Dark: when the system prefers it and the visitor didn't choose light, or when they
   chose dark (the header's switch sets data-theme; theme.js applies it before drawing). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f;
    --surface: #121419;
    --surface-2: #171a20;
    --text: #ecedef;
    --muted: #9ba1ad;
    --line: #23262e;
    --accent: #34d399;
    --accent-text: #06261b;
    --accent-soft: #34d39914;
    --glow-1: #34d3991f;
    --glow-2: #38bdf817;
    --grid: #22262e;
    --logo: #ffffff;
    --logo-contrast: #2b1414;
    --shadow: 0 1px 2px #00000066, 0 12px 32px #00000040;
    --terminal: #0e1015;
    --terminal-line: #ffffff12;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --surface: #121419;
  --surface-2: #171a20;
  --text: #ecedef;
  --muted: #9ba1ad;
  --line: #23262e;
  --accent: #34d399;
  --accent-text: #06261b;
  --accent-soft: #34d39914;
  --glow-1: #34d3991f;
  --glow-2: #38bdf817;
  --grid: #22262e;
  --logo: #ffffff;
  --logo-contrast: #2b1414;
  --shadow: 0 1px 2px #00000066, 0 12px 32px #00000040;
  --terminal: #0e1015;
  --terminal-line: #ffffff12;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.86em; }
p code, li code, dd code { padding: 0.1em 0.35em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-text); z-index: 10; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
/* The logo: a window with a check, and "bro" + "kit" reversed out of a block, in two
   colors that swap with the theme (burgundy on light, white on dark). */
.logo-icon { flex: none; width: 28px; height: 28px; }
.logo-window { fill: var(--logo); transition: fill 0.3s; }
.logo-dot { fill: var(--logo-contrast); opacity: 0.4; transition: fill 0.3s; }
.logo-check { fill: none; stroke: var(--logo-contrast); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.wordmark { display: inline-flex; align-items: baseline; }
.wordmark .bro { color: var(--logo); transition: color 0.3s; }
.wordmark .kit { margin-left: 0.06em; padding: 0 0.2em 0.06em; border-radius: 0.22em; color: var(--logo-contrast); background: var(--logo); transition: color 0.3s, background 0.3s; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a:not(.button) { padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color 0.2s, background 0.2s; }
.nav nav a:not(.button):hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) { .nav nav a:not(.button) { display: none; } }
.nav-end { display: flex; align-items: center; gap: 8px; }

/* The theme switch: the system's setting, light, dark (one icon shows which) */
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .fill { fill: currentColor; stroke: none; }
.theme-toggle[data-mode="auto"] .i-auto, .theme-toggle[data-mode="light"] .i-light, .theme-toggle[data-mode="dark"] .i-dark { display: block; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 650; font-size: 16px; text-decoration: none; color: var(--accent-text); background: var(--accent); border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow-1); }
.button.small { padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.button.ghost { color: var(--text); background: transparent; border-color: var(--line); }
.button.ghost:hover { border-color: var(--muted); box-shadow: none; }
/* The header's button wears the logo's colors, as its "kit" block does. */
.nav .button { color: var(--logo-contrast); background: var(--logo); transition: transform 0.2s, box-shadow 0.2s, background 0.3s, color 0.3s; }
.nav .button:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--logo) 28%, transparent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 30%, var(--glow-1), transparent 70%),
    radial-gradient(520px 340px at 12% 8%, var(--glow-2), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.85;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.lead { margin-top: 22px; font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.needs { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* At a glance: what, who, where, needs, where from, how */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.glance > div { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.glance dt { font: 600 12px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.glance dd { margin: 10px 0 0; color: var(--text); font-size: 0.98rem; line-height: 1.6; }
.glance dd a { color: var(--accent); }
@media (max-width: 960px) { .glance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .glance { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* A command with a copy button */
.copy { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.copy code { padding: 12px 14px; font-size: 15px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.copy code::-webkit-scrollbar { display: none; }
.copy .prompt { color: var(--accent); user-select: none; margin-right: 4px; }
.copy-button { flex: none; align-self: stretch; padding: 0 14px; font: 600 14px var(--sans); color: var(--muted); background: var(--surface-2); border: 0; border-left: 1px solid var(--line); cursor: pointer; transition: color 0.2s, background 0.2s; }
.copy-button:hover { color: var(--text); }
.copy-button.done { color: var(--accent); }

/* Terminals (dark in both themes) */
.terminal { margin: 0; border-radius: var(--radius); background: var(--terminal); border: 1px solid var(--terminal-line); box-shadow: 0 1px 2px #0000001a, 0 24px 60px #0000002e; color: #d9dce3; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--terminal-line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c313b; }
.terminal-bar span { margin-left: 10px; font: 13px var(--mono); color: #7d8492; }
.terminal pre { margin: 0; padding: 18px 20px 20px; font: 14px/1.75 var(--mono); overflow-x: auto; }
.terminal .prompt { color: #34d399; }
.terminal .ok { color: #34d399; }
.terminal .fail { color: #f87171; }
.terminal .str { color: #fcd38d; }
.terminal .dim { color: #7d8492; }
.terminal .k { color: #93c5fd; }
.terminal .n { color: #f0abfc; }
.terminal .p { color: #a3a9b6; }
.hero-terminal { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.hero-terminal:hover { transform: none; }
@media (max-width: 960px) { .hero-terminal { transform: none; } }
.hero-terminal .line { display: inline-block; }
.hero-terminal pre { font-size: 12.5px; padding-inline: 16px; }
.hero-terminal .line:last-child::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 6px; vertical-align: -0.2em; background: #34d399; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 600px) { .terminal pre { font-size: 12.5px; padding: 14px 16px 16px; } }

/* Lines of the hero terminal appear one by one (when scripts run and motion is welcome;
   main.js gives each its delay). */
.js .hero-terminal .line { opacity: 0; transform: translateY(4px); animation: line 0.38s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes line { to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 780; }
.section-head p:not(.eyebrow), .split-text > p:not(.eyebrow) { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }
#overview { padding-top: 32px; }

/* Cards */
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), border-color 0.3s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card h2, .card h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.card.small { display: flex; flex-direction: column; padding: 24px; }
.card.small h3 { font-size: 1.08rem; }
.card.small code { margin-top: auto; padding-top: 18px; color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

/* Text beside a terminal */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 650; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft) center / 12px no-repeat; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ticks-row { grid-template-columns: repeat(3, 1fr); gap: 16px 32px; margin: -12px 0 32px; }
@media (max-width: 860px) { .ticks-row { grid-template-columns: 1fr; } }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(0.3em + 4px); width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Before / after / difference */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { margin-top: 12px; font: 600 14px var(--mono); color: var(--muted); text-align: center; }
.shots figure:last-child figcaption { color: #e5484d; }
@media (max-width: 720px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: thin; }
  .shots figure { flex: 0 0 74%; scroll-snap-align: center; }
}
.diff-out { margin-top: 28px; }
.note { margin-top: 20px; color: var(--muted); font-size: 0.98rem; }

/* Install */
.install { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; counter-reset: step; }
.install li { counter-increment: step; display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 16px 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.install h3 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.install h3::before { content: counter(step); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font: 700 14px var(--mono); color: var(--accent-text); background: var(--accent); }
.install .copy { box-shadow: none; background: var(--bg); justify-self: stretch; }
.install .copy code { flex: 1; font-size: 14px; }
@media (max-width: 760px) { .install li { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer .brand { font-size: 17px; color: var(--text); }
.footer .logo-icon { width: 22px; height: 22px; }
.maker { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--muted); text-decoration: none; font-weight: 600; transition: color 0.25s; }
.maker:hover { color: var(--text); }
.maker-logo { width: 32px; height: 32px; background: currentColor; -webkit-mask: url(fr.png) center / contain no-repeat; mask: url(fr.png) center / contain no-repeat; transition: transform 0.4s cubic-bezier(.2, .8, .2, 1); }
.maker:hover .maker-logo { transform: rotate(-20deg); }
.footer-about { display: grid; gap: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; color: var(--muted); }
.install-note { max-width: 860px; margin-top: 20px; padding: 14px 18px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); }
.install-note strong { color: var(--text); }
/* A long command wraps rather than pushing the page wider on a phone. */
.install-note code, #overview dd code { white-space: normal; overflow-wrap: anywhere; }

/* The navigation's current page */
.nav nav a[aria-current="page"] { color: var(--text); font-weight: 650; }

/* Docs pages: contents beside the text, the text at a reading width */
.docs { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.docs-side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; padding-right: 4px; transition: scrollbar-color 0.2s; }
.docs-side:hover, .docs-side:focus-within { scrollbar-color: var(--line) transparent; }
.docs-pages { display: grid; gap: 2px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.docs-pages a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s; }
.docs-pages a:hover { color: var(--text); background: var(--surface-2); }
.docs-pages a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.docs-menu > summary { display: none; }
.docs-group { margin: 14px 0 4px; padding: 0 10px; font: 600 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.docs-group:first-child { margin-top: 0; }
.toc summary { list-style: none; cursor: pointer; margin-bottom: 10px; font: 600 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 5px 10px 5px 12px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; transition: color 0.2s, border-color 0.2s; }
.toc .toc-3 a { padding-left: 24px; font-size: 13.5px; }
.toc a:hover { color: var(--text); }
.toc a.here { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-pages { display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-pages a { padding: 6px 12px; border: 1px solid var(--line); font-size: 14px; }
  .docs-pages a[aria-current="page"] { box-shadow: none; border-color: var(--accent); }
  .docs-group { flex-basis: 100%; margin: 8px 0 0; padding: 0; }
  .docs-menu { margin-bottom: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .docs-menu > summary { display: block; list-style: none; cursor: pointer; font: 600 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .docs-menu > summary::-webkit-details-marker { display: none; }
  .docs-menu > summary span { text-transform: none; letter-spacing: 0; color: var(--text); }
  .docs-menu > summary::after { content: " ▾"; }
  .docs-menu .docs-pages { margin: 10px 0 0; padding: 0; border: 0; }
  .toc { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .toc summary { margin: 0; }
  .toc[open] summary { margin-bottom: 10px; }
  .toc summary::after { content: " ▾"; }
}

.prose { min-width: 0; max-width: 780px; font-size: 16.5px; line-height: 1.7; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 8px; }
.prose h2 { margin-top: 56px; padding-top: 4px; font-size: 1.65rem; font-weight: 750; }
.prose h3 { margin-top: 36px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
.prose h1 + p { font-size: 1.12rem; color: var(--muted); }
.prose :is(h2, h3) { position: relative; } /* clear of the sticky bar: html's scroll-padding-top */
.prose .anchor { margin-left: 10px; color: var(--muted); text-decoration: none; font-weight: 500; opacity: 0; transition: opacity 0.2s, color 0.2s; }
.prose :is(h2, h3):hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.prose .anchor:hover { color: var(--accent); }
.prose p, .prose li { color: var(--text); }
.prose a:not(.anchor) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.anchor):hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--muted); }
.prose :not(pre) > code { padding: 0.12em 0.4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.86em; white-space: normal; overflow-wrap: anywhere; }
.prose .code-block { margin: 20px 0; }
.prose .code-block pre { font-size: 13.5px; line-height: 1.65; }
.prose .terminal-bar { position: relative; }
.prose .copy-code { margin-left: auto; padding: 2px 10px; border: 1px solid var(--terminal-line); border-radius: 6px; font: 600 12px var(--sans); color: #a3a9b6; background: transparent; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.prose .copy-code:hover { color: #ecedef; border-color: #ffffff33; }
.prose .copy-code.done { color: #34d399; }
.terminal .c { color: #7d8492; font-style: italic; }
.terminal .cmd { color: #34d399; }
.prose .table { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; background: var(--surface-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; overflow-wrap: normal; }
.prose .align-right { text-align: right; }
.prose .align-center { text-align: center; }
.prose img { display: block; max-width: 100%; height: auto; margin: 20px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
/* Pictures side by side: a paragraph of only images is a row of them. */
.prose p:has(> img + img) { display: flex; gap: 12px; align-items: flex-start; }
.prose p:has(> img + img) > img { flex: 1; min-width: 0; margin: 0; }
.prose p:has(> img + img) + p > em:only-child { display: block; margin-top: -4px; color: var(--muted); font-size: 14.5px; font-style: normal; }
.prose .callout { margin: 24px 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); }
.prose .callout > * + * { margin-top: 10px; }
.prose .callout p { color: var(--text); }
.edit-page { margin-top: 56px !important; font-size: 14.5px; }
.prose .edit-page a { color: var(--muted); }
.prose .edit-page a:hover { color: var(--text); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px !important; padding-top: 24px; border-top: 1px solid var(--line); }
.prose .page-turn { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 650; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.prose .page-turn:hover { border-color: var(--accent); text-decoration: none; }
.page-turn span { font: 500 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.page-turn.next { text-align: right; grid-column: 2; }
.page-turn.prev span::before { content: "← "; }
.page-turn.next span::after { content: " →"; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .page-turn.next { grid-column: 1; } }

/* Content rises in as it scrolls into view (when scripts run and motion is welcome). */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(.2, .8, .2, 1), transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .pillars [data-reveal]:nth-child(2), .js .grid4 [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.js .pillars [data-reveal]:nth-child(3), .js .grid4 [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.js .grid4 [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-terminal .line, .js [data-reveal] { opacity: 1; transform: none; }
  .hero-terminal { transform: none; }
}

/* The share card (og.html, 1200×630) */
body.og { width: 1200px; height: 630px; overflow: hidden; display: grid; grid-template-columns: 1fr 540px; gap: 40px; align-items: center; padding: 0 64px; background: #0b0c0f; color: #ecedef; position: relative; --logo: #ffffff; --logo-contrast: #2b1414; }
body.og::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 360px at 82% 40%, #34d39929, transparent 70%), radial-gradient(480px 320px at 8% 10%, #38bdf81f, transparent 70%); }
/* The hero's grid, in its dark colors. */
body.og::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.85;
  background-image: linear-gradient(#22262e 1px, transparent 1px), linear-gradient(90deg, #22262e 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 45% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 45% 40%, #000, transparent 80%);
}
body.og > * { position: relative; z-index: 1; }
.og .brand { font-size: 34px; gap: 14px; margin-bottom: 34px; }
.og .logo-icon { width: 44px; height: 44px; }
/* The README's logo (src/logo.html): the logo alone, on nothing. */
body.logo-page { margin: 0; padding: 4px; background: transparent; }
.logo-page .brand { display: inline-flex; margin: 0; font-size: 40px; gap: 16px; }
.logo-page .logo-icon { width: 58px; height: 58px; }
.og h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; white-space: nowrap; } /* its two lines are og.html's */
.og-tags { margin-top: 28px; font: 600 13px var(--mono); color: #34d399; white-space: nowrap; }
/* The share card is a picture: the terminal never scrolls; its lines fit. */
.og-terminal pre { font-size: 12.5px; padding-inline: 18px; overflow: hidden; }
