/* Trunk: the theme for trunkcms.nullism.com.
   Paper and ink, tree rings, and the git log as a layout. */

:root {
  --bg: #f4efe4;
  --bg-2: #ebe4d5;
  --surface: #fbf8f1;
  --ink: #1d1a15;
  --ink-2: #463f35;
  --muted: #7b7263;
  --rule: #d8cdb9;
  --rule-strong: #b9ab92;
  --accent: #2f7d43;
  --accent-2: #24633a;
  --accent-ink: #f7f3ea;
  --amber: #b4621a;
  --ring: #a48c6a;
  --ring-faint: #cdbd9f;
  --code-bg: #15130f;
  --code-fg: #e9e2d2;
  --inline-code: #e6dccb;
  --shadow: 0 1px 0 rgba(29, 26, 21, .04), 0 24px 48px -24px rgba(60, 42, 18, .28);
  --band-bg: #1d1a15;
  --band-fg: #f4efe4;
  --band-accent: #a6e36e;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11100c;
    --bg-2: #18160f;
    --surface: #1c1a14;
    --ink: #efe8d7;
    --ink-2: #cbc2af;
    --muted: #8e8574;
    --rule: #2c2920;
    --rule-strong: #453f31;
    --accent: #a6e36e;
    --accent-2: #c3f095;
    --accent-ink: #11140c;
    --amber: #e7a14a;
    --ring: #7a6a4f;
    --ring-faint: #3a3427;
    --code-bg: #0b0a07;
    --inline-code: #26231a;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .8);
    --band-bg: #e9e1cf;
    --band-fg: #15130e;
    --band-accent: #2f7d43;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11100c;
  --bg-2: #18160f;
  --surface: #1c1a14;
  --ink: #efe8d7;
  --ink-2: #cbc2af;
  --muted: #8e8574;
  --rule: #2c2920;
  --rule-strong: #453f31;
  --accent: #a6e36e;
  --accent-2: #c3f095;
  --accent-ink: #11140c;
  --amber: #e7a14a;
  --ring: #7a6a4f;
  --ring-faint: #3a3427;
  --code-bg: #0b0a07;
  --inline-code: #26231a;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --band-bg: #e9e1cf;
  --band-fg: #15130e;
  --band-accent: #2f7d43;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 17px/1.65 var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
}
code, pre, kbd, .mono { font-family: var(--font-mono); font-feature-settings: "calt" 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.kicker {
  font: 500 .75rem/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker::before { content: "● "; font-size: .7em; vertical-align: .15em; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font: 600 .95rem/1 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b372e; }
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .mark { transform: rotate(-120deg); }
.brand-name { font: 600 1.05rem/1 var(--font-mono); letter-spacing: -.02em; }
.mark-core { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  padding: .45rem .75rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-2); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: .25rem;
  border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--rule-strong); }

.draft-banner {
  position: sticky; top: 0; z-index: 30; padding: .5rem 1rem;
  background: var(--amber); color: #1d1a15; font: 600 .85rem/1.4 var(--font-mono); text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% 40%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.5rem; padding: .4rem .8rem .4rem .7rem;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font: 500 .8rem/1 var(--font-mono); color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.hero-title {
  font-size: clamp(2.9rem, 6.4vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 450;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: italic; font-weight: 400; color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero .lede code { font-size: .85em; padding: .1em .35em; border-radius: 5px; background: var(--inline-code); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.copy-cmd {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  border: 1px dashed var(--rule-strong); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 500 .88rem/1 var(--font-mono); cursor: pointer;
}
.copy-cmd .prompt { color: var(--accent); }
.copy-cmd .copy-hint {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  padding-left: .6rem; border-left: 1px solid var(--rule);
}
.copy-cmd:hover { border-style: solid; border-color: var(--ink); }
.copy-cmd.copied .copy-hint { color: var(--accent); }

.hero-art { position: relative; margin: 0; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: end; }
.rings { position: absolute; inset: 0; }
.rings svg { width: 100%; height: 100%; overflow: visible; }
.rings .ring { fill: none; stroke: var(--ring); stroke-width: calc(1.5px / var(--s, 1)); transition: stroke 2.4s ease, opacity 2.4s ease; }
.rings .ring.late { stroke-width: calc(2.4px / var(--s, 1)); }
.rings .ring.early { stroke-width: calc(1px / var(--s, 1)); opacity: .55; }
.rings .ring.fresh { stroke: var(--accent); opacity: 1; }
.rings .pith { fill: var(--amber); }
.rings .crack { stroke: var(--ring-faint); stroke-width: calc(1px / var(--s, 1)); fill: none; }
.rings .grow { transition: transform 1.6s cubic-bezier(.3, .7, .2, 1); }

.live-log {
  position: absolute; left: -2rem; bottom: 6%;
  width: min(26rem, 92%);
  background: var(--code-bg); color: var(--code-fg);
  border-radius: 14px; box-shadow: var(--shadow);
  font: 400 .8rem/1.75 var(--font-mono);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}
.live-log-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #8d8576; font-size: .75rem;
}
.live-badge { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; color: #a6e36e; }
.live-badge .pulse { background: #a6e36e; width: 6px; height: 6px; }
.live-log-lines { list-style: none; margin: 0; padding: .7rem .9rem .8rem; min-height: 8.6em; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.live-log-lines li { overflow: hidden; text-overflow: ellipsis; animation: line-in .35s ease both; }
.live-log .k { color: #e7a14a; display: inline-block; min-width: 6.5ch; }
.live-log .sha { color: #9ecbff; }
.live-log .ok { color: #a6e36e; }
.live-log .dim { color: #6f6858; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2, .section-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.03em; font-variation-settings: "SOFT" 50, "WONK" 1; }
.section-head p:not(.kicker) { margin-top: 1rem; }

/* Pipeline: the trunk runs through the steps. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: linear-gradient(90deg, var(--rule-strong), var(--rule-strong) 70%, var(--accent));
}
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--rule-strong);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 12px var(--ring-faint);
}
.step:last-child::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 12px var(--accent); }
.step-n { font: 500 .78rem/1 var(--font-mono); color: var(--muted); }
.step h3 { font-size: 1.75rem; margin: .5rem 0 .75rem; }
.step p { margin: 0 0 1rem; font-size: .98rem; }
.step-route {
  display: inline-block; font-size: .74rem; padding: .3rem .55rem; border-radius: 6px;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--rule);
}

/* Not in the box: inverted band. */
.nothing { --bg: var(--band-fg); --ink: var(--band-bg); background: var(--band-bg); color: var(--band-fg); border-bottom: 0; }
.nothing .kicker { color: var(--band-accent); }
.nothing-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.struck { list-style: none; margin: 0; padding: 0; }
.struck li {
  font: 400 clamp(1.9rem, 4vw, 3rem)/1.18 var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  letter-spacing: -.02em;
  color: color-mix(in srgb, var(--bg) 55%, var(--ink));
}
.struck s { text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 58% / 0 3px no-repeat; transition: background-size .7s cubic-bezier(.6, 0, .2, 1); }
.struck.in s { background-size: 100% 3px; }
.struck li:nth-child(2) s { transition-delay: .12s; }
.struck li:nth-child(3) s { transition-delay: .24s; }
.struck li:nth-child(4) s { transition-delay: .36s; }
.struck li:nth-child(5) s { transition-delay: .48s; }
.struck li:nth-child(6) s { transition-delay: .6s; }
.big-quote {
  font: 450 clamp(2rem, 4.2vw, 3.3rem)/1.05 var(--font-display);
  font-variation-settings: "SOFT" 80, "WONK" 1;
  letter-spacing: -.03em;
  color: var(--bg); margin: 0 0 1.5rem;
}
.nothing-copy p:not(.big-quote) { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); max-width: 32em; }
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.75rem 0 0; }
.platforms li {
  font: 500 .8rem/1 var(--font-mono); padding: .55rem .8rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bg) 30%, var(--ink));
  color: var(--bg);
}

/* Features: hairline editorial grid. */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
}
.feature { background: var(--bg); padding: 2rem 1.75rem 2.1rem; transition: background .25s; }
.feature:hover { background: var(--surface); }
.feature h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.feature h3::before {
  content: ""; display: block; width: 28px; height: 28px; margin-bottom: 1.4rem; border-radius: 50%;
  border: 1.5px solid var(--ring);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6.5px var(--ring), inset 0 0 0 10px var(--bg), inset 0 0 0 14px var(--accent);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.feature:hover h3::before { transform: scale(1.12) rotate(30deg); }
.feature:hover h3::before { box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6.5px var(--ring), inset 0 0 0 10px var(--surface), inset 0 0 0 14px var(--accent); }
.feature p { margin: 0; font-size: .98rem; }
.feature code, .step p code, .section-head code, .fine code {
  font-size: .85em; padding: .1em .35em; border-radius: 5px; background: var(--inline-code); color: var(--ink);
}

/* Footprint */
.footprint { background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.stat { padding: 1.5rem 1.25rem 1.5rem 0; border-right: 1px solid var(--rule-strong); display: flex; flex-direction: column; gap: .75rem; }
.stat + .stat { padding-left: 1.25rem; }
.stat:last-child { border-right: 0; }
.stat-n {
  font: 400 clamp(3rem, 7vw, 5.5rem)/.9 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.04em; color: var(--ink);
}
.stat-n small { font-size: .38em; letter-spacing: 0; margin-left: .08em; color: var(--muted); }
.stat-l { font: 500 .8rem/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fine { margin: 2rem 0 0; font-size: .9rem; color: var(--muted); }

/* Quickstart */
.quickstart-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quickstart .section-head { margin-bottom: 0; }
.quickstart .btn { margin-top: 1.25rem; }
.terminal { background: var(--code-bg); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.terminal-head { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #8d8576; font: .75rem var(--font-mono); }
.terminal pre { margin: 0; padding: 1.25rem 1.4rem 1.5rem; overflow-x: auto; color: var(--code-fg); font-size: .86rem; line-height: 1.75; background: none; border: 0; }
.terminal .c { color: #6f6858; }
.terminal .p { color: #a6e36e; user-select: none; }
.terminal .o { color: #e7a14a; }

/* ---------- Commit log (journal, tags, authors) ---------- */

.commit-log { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; max-width: 50rem; }
.commit-log::before {
  content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem; width: 2px;
  background: linear-gradient(var(--accent), var(--rule-strong) 30%, var(--rule-strong) 85%, transparent);
}
.commit { position: relative; padding: 0 0 2.5rem; }
.commit:last-child { padding-bottom: 0; }
.commit-node {
  position: absolute; left: calc(-2.25rem + 1px); top: .35rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--rule-strong);
}
.commit:first-child .commit-node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.commit-meta { margin: 0 0 .35rem; font: 500 .78rem/1.4 var(--font-mono); color: var(--muted); }
.commit-meta a { color: inherit; text-decoration: none; }
.commit-meta a:hover { color: var(--accent); }
.commit-title { font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -.02em; }
.commit-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
.commit-title a:hover { color: var(--ink); background-size: 100% 2px; }
.commit-summary { margin: .6rem 0 0; max-width: 40em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; }
.tag {
  display: inline-flex; align-items: center;
  font: 500 .74rem/1 var(--font-mono); padding: .35rem .6rem; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2); text-decoration: none; border: 1px solid var(--rule);
}
.tag::before { content: "#"; color: var(--accent); }
.tag:hover { border-color: var(--accent); color: var(--ink); }
.tag span { color: var(--muted); margin-left: .5rem; }
.tag-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tag-cloud .tag { font-size: .9rem; padding: .55rem .9rem; }
.more { margin: 2.5rem 0 0 2.25rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 3rem; max-width: 50rem; color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); }

.author-head { display: flex; gap: 1.75rem; align-items: flex-start; margin-bottom: 3.5rem; }
.author-head .avatar { border-radius: 50%; border: 1px solid var(--rule-strong); padding: 4px; background: var(--surface); }
.author-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.author-links { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: .85rem; }

/* ---------- Articles & prose ---------- */

.article-head { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.article-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.035em; line-height: 1.02; font-variation-settings: "SOFT" 60, "WONK" 1; }
.article-head .lede { margin: 1.25rem 0 0; }
.byline { margin: 1.5rem 0 0; font: 500 .8rem/1.6 var(--font-mono); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.byline a:not(.tag) { color: inherit; text-decoration: none; }
.byline .sep { color: var(--rule-strong); }
.article-foot { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--rule); }

.prose { font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose blockquote { margin-bottom: 0; }
.prose h2 { font-size: 2rem; margin-top: 2.4em; letter-spacing: -.025em; }
.prose h3 { font-size: 1.45rem; margin-top: 2em; }
.prose h4 { font: 600 1rem/1.4 var(--font-body); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .75em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 3em 0; }
.prose blockquote {
  margin-left: 0; padding: .2em 0 .2em 1.25em; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-style: italic;
}
.prose :not(pre) > code {
  font-size: .86em; padding: .12em .38em; border-radius: 5px;
  background: var(--inline-code); color: var(--ink); word-break: break-word;
}
.prose pre {
  background: var(--code-bg) !important; color: var(--code-fg);
  padding: 1.15rem 1.3rem; border-radius: 12px; overflow-x: auto;
  font-size: .86rem; line-height: 1.7; border: 1px solid rgba(255, 255, 255, .05);
}
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .9rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 600 .75rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom-color: var(--rule-strong); }
.prose td code { white-space: nowrap; }
.prose img { border-radius: 10px; }
.prose a { color: var(--ink); }
.prose a:hover { color: var(--accent); }
.prose .footnotes { font-size: .9rem; color: var(--muted); }
.prose .callout {
  padding: 1rem 1.25rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--rule);
  font-size: .98rem;
}
.prose .callout > :first-child { margin-top: 0; }
.prose .callout strong:first-child { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-right: .4em; }

/* ---------- Docs ---------- */

.docs { border-bottom: 0; }
.docs-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.docs-nav { position: sticky; top: 96px; }
.docs-nav nav { display: flex; flex-direction: column; border-left: 2px solid var(--rule); }
.docs-nav a {
  position: relative; padding: .45rem 0 .45rem 1.1rem;
  color: var(--ink-2); text-decoration: none; font-size: .95rem;
}
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.docs-nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--bg);
}
.docs-body { max-width: 46rem; }
.docs-body h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.035em; font-variation-settings: "SOFT" 60, "WONK" 1; }
.docs-body > .lede { margin: 1rem 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }

/* ---------- 404 ---------- */

.notfound { border-bottom: 0; padding-top: clamp(5rem, 12vw, 9rem); }
.notfound h1 { font-size: clamp(6rem, 22vw, 14rem); line-height: .85; letter-spacing: -.06em; font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1; }
.notfound .kicker::before { content: ""; }
.notfound .lede { margin: 1.5rem 0 2rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); background: var(--bg-2); padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; align-items: start; }
.footer-mark { display: flex; gap: 1rem; align-items: center; color: var(--ink); }
.footer-mark p { margin: 0; color: var(--ink-2); font-family: var(--font-display); font-size: 1.1rem; line-height: 1.35; font-style: italic; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-fine { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .8rem; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner, .nothing-inner, .quickstart-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 480px; margin-top: 1rem; }
  .live-log { left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .steps::before { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
  .docs-inner { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; }
  .docs-nav nav { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: .4rem; }
  .docs-nav a { padding: .4rem .8rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .88rem; }
  .docs-nav a[aria-current="page"] { border-color: var(--accent); }
  .docs-nav a[aria-current="page"]::before { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-nav a { padding: .45rem .5rem; font-size: .9rem; }
  .brand-name { display: none; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .steps { padding-left: 2.5rem; row-gap: 2.5rem; }
  .steps::before { display: block; left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: linear-gradient(var(--rule-strong) 70%, var(--accent)); }
  .step { padding-top: 0; }
  .step::before { left: -2.5rem; }
  .live-log { font-size: .72rem; width: 100%; bottom: -1rem; }
  .copy-cmd { font-size: .8rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .author-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .struck s { background-size: 100% 3px; }
}

/* ---------- Code highlighting ----------
   Code blocks are dark in both schemes, so this is Chroma's github-dark style, unscoped. */
.chroma { color: #e6edf3; -webkit-text-size-adjust: none; }
.chroma .err { color: #f85149 }
.chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
.chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
.chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
.chroma .hl { background-color: #6e7681 }
.chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #737679 }
.chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #6e7681 }
.chroma .line { display: flex; }
.chroma .k { color: #ff7b72 }
.chroma .kc { color: #79c0ff }
.chroma .kd { color: #ff7b72 }
.chroma .kn { color: #ff7b72 }
.chroma .kp { color: #79c0ff }
.chroma .kr { color: #ff7b72 }
.chroma .kt { color: #ff7b72 }
.chroma .nc { color: #f0883e; font-weight: bold }
.chroma .no { color: #79c0ff; font-weight: bold }
.chroma .nd { color: #d2a8ff; font-weight: bold }
.chroma .ni { color: #ffa657 }
.chroma .ne { color: #f0883e; font-weight: bold }
.chroma .nl { color: #79c0ff; font-weight: bold }
.chroma .nn { color: #ff7b72 }
.chroma .py { color: #79c0ff }
.chroma .nt { color: #7ee787 }
.chroma .nv { color: #79c0ff }
.chroma .vc { color: #79c0ff }
.chroma .vg { color: #79c0ff }
.chroma .vi { color: #79c0ff }
.chroma .vm { color: #79c0ff }
.chroma .nf { color: #d2a8ff; font-weight: bold }
.chroma .fm { color: #d2a8ff; font-weight: bold }
.chroma .l { color: #a5d6ff }
.chroma .ld { color: #79c0ff }
.chroma .s { color: #a5d6ff }
.chroma .sa { color: #79c0ff }
.chroma .sb { color: #a5d6ff }
.chroma .sc { color: #a5d6ff }
.chroma .dl { color: #79c0ff }
.chroma .sd { color: #a5d6ff }
.chroma .s2 { color: #a5d6ff }
.chroma .se { color: #79c0ff }
.chroma .sh { color: #79c0ff }
.chroma .si { color: #a5d6ff }
.chroma .sx { color: #a5d6ff }
.chroma .sr { color: #79c0ff }
.chroma .s1 { color: #a5d6ff }
.chroma .ss { color: #a5d6ff }
.chroma .m { color: #a5d6ff }
.chroma .mb { color: #a5d6ff }
.chroma .mf { color: #a5d6ff }
.chroma .mh { color: #a5d6ff }
.chroma .mi { color: #a5d6ff }
.chroma .il { color: #a5d6ff }
.chroma .mo { color: #a5d6ff }
.chroma .o { color: #ff7b72; font-weight: bold }
.chroma .ow { color: #ff7b72; font-weight: bold }
.chroma .or { color: #ff7b72; font-weight: bold }
.chroma .c { color: #8b949e; font-style: italic }
.chroma .ch { color: #8b949e; font-style: italic }
.chroma .cm { color: #8b949e; font-style: italic }
.chroma .c1 { color: #8b949e; font-style: italic }
.chroma .cs { color: #8b949e; font-weight: bold; font-style: italic }
.chroma .cp { color: #8b949e; font-weight: bold; font-style: italic }
.chroma .cpf { color: #8b949e; font-weight: bold; font-style: italic }
.chroma .gd { color: #ffa198; background-color: #490202 }
.chroma .ge { font-style: italic }
.chroma .gr { color: #ffa198 }
.chroma .gh { color: #79c0ff; font-weight: bold }
.chroma .gi { color: #56d364; background-color: #0f5323 }
.chroma .go { color: #8b949e }
.chroma .gp { color: #8b949e }
.chroma .gs { font-weight: bold }
.chroma .gu { color: #79c0ff }
.chroma .gt { color: #ff7b72 }
.chroma .gl { text-decoration: underline }
.chroma .w { color: #6e7681 }
