/* routeman.swastik.ai
   Hairline-structured, type-led design. No framework; the layout container
   mirrors Tailwind's `container` (max-width = active breakpoint: 640/768/1024/1280/1536). */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #fafaf8;
  --bg-raised: #ffffff;
  --bg-sunken: #f2f1ed;
  --line: #e7e5df;
  --line-strong: #d3d0c7;
  --fg: #0f0f0e;
  --fg-2: #4a4944;
  --fg-3: #7d7b73;
  --accent: #8a6a2c;
  --accent-soft: rgba(138, 106, 44, .09);
  --grid: rgba(15, 15, 14, .045);

  --code-bg: #0d0d0c;
  --code-line: #262622;
  --code-fg: #e7e6e0;
  --code-dim: #77766e;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a09; --bg-raised: #111110; --bg-sunken: #070706; --line: #21211e; --line-strong: #34342f;
    --fg: #eeede8; --fg-2: #a8a79f; --fg-3: #74736b; --accent: #e3c27f; --accent-soft: rgba(227, 194, 127, .08);
    --grid: rgba(238, 237, 232, .035); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a09; --bg-raised: #111110; --bg-sunken: #070706; --line: #21211e; --line-strong: #34342f;
  --fg: #eeede8; --fg-2: #a8a79f; --fg-3: #74736b; --accent: #e3c27f; --accent-soft: rgba(227, 194, 127, .08);
  --grid: rgba(238, 237, 232, .035); color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.65 var(--sans); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 .55em; color: var(--fg); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.038em; }
h3 { font-size: 1.08rem; letter-spacing: -.015em; font-weight: 550; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.muted { color: var(--fg-3); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; }

code { font-family: var(--mono); font-size: .86em; background: var(--bg-sunken); border: 1px solid var(--line); padding: .08em .38em; border-radius: 5px; letter-spacing: 0; }
pre { margin: 0 0 1.5em; position: relative; }
pre code {
  display: block; background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--code-line);
  padding: 20px 22px; border-radius: var(--r); overflow-x: auto; font-size: 13.25px; line-height: 1.7; white-space: pre;
}
pre .copy-code {
  position: absolute; top: 10px; right: 10px; font: 500 11.5px var(--mono); color: var(--code-dim);
  background: #161614; border: 1px solid var(--code-line); border-radius: 6px; padding: 4px 9px; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s;
}
pre:hover .copy-code, pre .copy-code:focus { opacity: 1; }
pre .copy-code:hover { color: var(--code-fg); }

/* syntax tokens — restrained, warm */
.t-k { color: #e3c27f; } .t-s { color: #a9c59a; } .t-n { color: #dca37f; } .t-b { color: #d99a92; }
.t-c { color: #6c6b64; } .t-p { color: #6c6b64; user-select: none; } .t-ok { color: #a9c59a; }
.t-kw { color: #c3b2dd; } .t-d { color: #e3c27f; }

/* ---------- Tailwind-equivalent container */
.container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .container { max-width: 640px;  padding-inline: 1.5rem; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }
.narrow > * { max-width: 50rem; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 550 16px var(--sans); letter-spacing: -.03em; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.brand .ver { font: 500 11px var(--mono); color: var(--fg-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a:not(.btn) { color: var(--fg-2); text-decoration: none; padding: 6px 11px; border-radius: 6px; font-size: 14px; font-weight: 450; transition: color .15s; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current="page"] { color: var(--fg); }
.site-nav .sep { width: 1px; height: 18px; background: var(--line); margin: 0 10px; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--fg-2); border-radius: 7px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; margin-left: 8px; }
.theme-toggle:hover { color: var(--fg); border-color: var(--line-strong); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 12px 9px; margin-right: -9px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--fg); margin: 5px 0; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 1rem 20px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .site-nav .sep { display: none; }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
  .theme-toggle { margin: 12px 0 0; width: 100%; height: 40px; }
}

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  background: var(--fg); color: var(--bg); text-decoration: none; border: 1px solid var(--fg);
  border-radius: 8px; font: 500 14.5px var(--sans); letter-spacing: -.01em; cursor: pointer; transition: opacity .15s, background .15s, border-color .15s;
}
.btn:hover { opacity: .86; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { opacity: 1; background: var(--bg-raised); border-color: var(--fg-3); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 7px; margin-left: 6px; }

.install {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  font: 450 14px var(--mono); color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 8px; height: 42px; padding: 0 6px 0 16px; letter-spacing: 0;
}
.install > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install .t-p { color: var(--fg-3); }
.install .copy { flex: none; background: none; border: 0; border-left: 1px solid var(--line); color: var(--fg-3); padding: 0 10px; height: 26px; cursor: pointer; font: 500 12px var(--mono); }
.install .copy:hover { color: var(--fg); }

/* ---------- labels */
.index { display: flex; align-items: center; gap: 12px; font: 500 12px var(--mono); letter-spacing: .02em; color: var(--fg-3); text-transform: uppercase; margin: 0 0 22px; }
.index b { color: var(--accent); font-weight: 500; }
.index::after { content: ""; height: 1px; width: 40px; background: var(--line-strong); }
.kicker { display: block; font: 500 12px var(--mono); letter-spacing: .02em; color: var(--fg-3); margin-bottom: 14px; text-transform: uppercase; }
.lede { font-size: 1.14rem; line-height: 1.6; color: var(--fg-2); max-width: 38em; letter-spacing: -.012em; }

/* ---------- hero */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.release { display: inline-flex; align-items: center; gap: 10px; font: 450 13px var(--mono); color: var(--fg-2); text-decoration: none; margin-bottom: 30px; letter-spacing: 0; }
.release i { font-style: normal; color: var(--accent); }
.release span { color: var(--fg-3); }
.release:hover span { color: var(--fg); }
.hero h1 { max-width: 19ch; }
.hero h1 .serif { font-size: 1.08em; line-height: .9; }
.hero .lede { margin-top: 26px; font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 34px 0 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 0; padding: 0; list-style: none; font: 450 12.5px var(--mono); color: var(--fg-3); letter-spacing: 0; }
.hero-meta li::before { content: "— "; color: var(--line-strong); }
@media (max-width: 640px) { .hero { padding-top: 56px; } .hero .lede { font-size: 1.08rem; } }

/* product shot */
.shot { margin-top: 72px; border: 1px solid var(--code-line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--code-bg); color: var(--code-fg); overflow: hidden; box-shadow: 0 -1px 0 rgba(255,255,255,.03) inset, 0 40px 120px -40px rgba(0,0,0,.45); }
.shot-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--code-line); font: 450 12px var(--mono); color: var(--code-dim); }
.shot-bar .dots { display: flex; gap: 7px; }
.shot-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a26; }
.shot-bar .path { flex: 1; text-align: center; }
.shot-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.shot-pane { min-width: 0; }
.shot-pane + .shot-pane { border-left: 1px solid var(--code-line); }
.pane-h { display: flex; justify-content: space-between; padding: 12px 20px; font: 450 11.5px var(--mono); color: var(--code-dim); border-bottom: 1px solid var(--code-line); text-transform: uppercase; letter-spacing: .04em; }
.shot pre { margin: 0; }
.shot pre code { border: 0; border-radius: 0; background: transparent; padding: 20px 22px 28px; font-size: 13px; }
.tree { list-style: none; margin: 0; padding: 14px 10px 24px; font: 450 12.75px/1 var(--mono); letter-spacing: 0; }
.tree li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: #c9c8c1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree li.dir { color: var(--code-fg); padding-top: 12px; }
.tree li.dir::before { content: "▾"; color: var(--code-dim); font-size: 10px; width: 36px; }
.tree li.sel { background: #1a1a17; }
.tree .m { flex: none; width: 36px; font-size: 10.5px; font-weight: 600; text-align: right; letter-spacing: .02em; }
.m-get { color: #8fc39b; } .m-post { color: #e3b56b; } .m-put { color: #84aee0; } .m-patch { color: #bea2dd; } .m-del { color: #e08f84; }
.tree .note { margin-left: auto; color: var(--code-dim); font-size: 11px; }
@media (max-width: 900px) { .shot-body { grid-template-columns: 1fr; } .shot-pane + .shot-pane { border-left: 0; border-top: 1px solid var(--code-line); } }

/* framework strip under the hero */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip a { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; text-decoration: none; border-left: 1px solid var(--line); transition: background .15s; }
.strip a:last-child { border-right: 1px solid var(--line); }
.strip a:hover { background: var(--bg-raised); }
.strip b { font-weight: 550; font-size: 15px; letter-spacing: -.015em; }
.strip span { font: 450 12px var(--mono); color: var(--fg-3); letter-spacing: 0; }
.strip a:hover span { color: var(--accent); }
@media (max-width: 768px) { .strip-grid { grid-template-columns: 1fr 1fr; } .strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .strip a:nth-child(2n) { border-right: 1px solid var(--line); } }

/* ---------- sections */
.band { padding: 112px 0; border-top: 1px solid var(--line); }
.band:first-of-type { border-top: 0; }
.band.alt { background: var(--bg-sunken); }
@media (max-width: 768px) { .band { padding: 72px 0; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { margin: 0; color: var(--fg-2); font-size: 1.05rem; max-width: 34em; }
.section-head .index { grid-column: 1 / -1; margin: 0; }
.section-head.center { display: block; text-align: left; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* hairline column grids (no boxes) */
.cols { display: grid; border-top: 1px solid var(--line); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols > * { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.cols > * + * { }
.cols-3 > *:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.cols-4 > *:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.cols h3 { margin-bottom: 10px; }
.cols p { color: var(--fg-2); font-size: .97rem; margin-bottom: 0; }
.cols .n { display: block; font: 500 12px var(--mono); color: var(--accent); margin-bottom: 18px; }
.cols pre { margin: 20px 0 0; }
.cols pre code { font-size: 12.5px; padding: 14px 16px; }
@media (max-width: 1023px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .cols-3 > *, .cols-4 > * { padding-left: 0 !important; border-left: 0 !important; padding-right: 24px; }
  .cols-3 > *:nth-child(2n), .cols-4 > *:nth-child(2n) { padding-left: 24px !important; border-left: 1px solid var(--line) !important; }
}
@media (max-width: 640px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-3 > *:nth-child(n), .cols-4 > *:nth-child(n) { padding: 28px 0 !important; border-left: 0 !important; }
}

/* generic grids + quiet cards (used on inner pages) */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; min-width: 0; transition: border-color .2s; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--fg-2); }
a.card { display: block; text-decoration: none; }
a.card:hover { border-color: var(--line-strong); }
.card .more { font: 500 13px var(--mono); color: var(--fg); }
a.card:hover .more { color: var(--accent); }
.ico { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--fg-2); }
.ico svg { width: 18px; height: 18px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 12px var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .03em; background: var(--bg-sunken); }
td:first-child { color: var(--fg); }
td { color: var(--fg-2); }
.table-wrap { overflow-x: auto; margin: 0 0 1.75em; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); }
.table-wrap table { margin: 0; min-width: 560px; }
.table-wrap tr:last-child td { border-bottom: 0; }
.compare-yes { color: var(--fg) !important; font-weight: 500; }
.compare-yes::before { content: "✓  "; color: var(--accent); }
.compare-no { color: var(--fg-3) !important; }
.band .table-wrap { background: var(--bg); }
.band.alt .table-wrap { background: var(--bg-raised); }

/* blog list */
.post-list { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 40px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row time { font: 450 12.5px var(--mono); color: var(--fg-3); letter-spacing: 0; }
.post-row h3 { margin: 0 0 6px; font-size: 1.22rem; font-weight: 500; letter-spacing: -.025em; transition: color .15s; }
.post-row p { margin: 0; color: var(--fg-2); font-size: .95rem; max-width: 46em; }
.post-row .arrow { font: 450 13px var(--mono); color: var(--fg-3); transition: transform .2s, color .2s; }
.post-row:hover h3 { color: var(--accent); }
.post-row:hover .arrow { transform: translateX(4px); color: var(--fg); }
@media (max-width: 768px) { .post-row { grid-template-columns: 1fr; } .post-row .arrow { display: none; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.tag { font: 450 12px var(--mono); color: var(--fg-3); letter-spacing: 0; }
.tag::before { content: "#"; color: var(--line-strong); margin-right: 1px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px 80px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; margin-top: -5px;
  background: linear-gradient(var(--fg-2), var(--fg-2)) center/11px 1.5px no-repeat, linear-gradient(var(--fg-2), var(--fg-2)) center/1.5px 11px no-repeat; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { margin: 0; font-size: 1.04rem; font-weight: 500; letter-spacing: -.015em; }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-a { padding: 0 44px 24px 0; color: var(--fg-2); }
.faq-a p:last-child { margin: 0; }

/* ---------- inner page header */
.page-head { padding: 88px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }
.page-head .install { margin-top: 30px; }
.crumbs { font: 450 12.5px var(--mono); color: var(--fg-3); margin-bottom: 26px; letter-spacing: 0; }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* ---------- long-form */
.prose { min-width: 0; font-size: 1.04rem; color: var(--fg-2); }
.prose > *:first-child { margin-top: 0; }
.prose strong { color: var(--fg); font-weight: 550; }
.prose h2 { margin: 2.2em 0 .7em; font-size: 1.65rem; letter-spacing: -.032em; position: relative; color: var(--fg); }
.prose h3 { margin: 1.8em 0 .5em; color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--fg-3); }
.prose a { color: var(--fg); }
.prose .btn { color: var(--bg); }
.prose .btn-ghost { color: var(--fg); }
.callout { margin: 0 0 1.6em; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--bg-raised); border-radius: 0 var(--r) var(--r) 0; color: var(--fg-2); }
.callout p:last-child { margin: 0; }
.anchor { position: absolute; left: -1.1em; color: var(--fg-3); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .anchor { opacity: 1; }
@media (max-width: 1023px) { .anchor { display: none; } }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 46rem); gap: 72px; padding-top: 56px; padding-bottom: 96px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 46rem) 220px; gap: 72px; justify-content: space-between; padding-top: 24px; padding-bottom: 96px; }
.post-layout .post-aside { order: 2; }
@media (max-width: 1023px) { .doc-layout, .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .post-aside, .doc-aside { display: none; } }
.toc { position: sticky; top: 92px; font-size: .875rem; }
.toc-h { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; color: var(--fg-3); text-decoration: none; border-left: 1px solid transparent; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); }

.post-head { padding-top: 88px; padding-bottom: 40px; }
.post-head > * { max-width: 46rem; }
.post-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.042em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 450 12.5px var(--mono); color: var(--fg-3); margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); letter-spacing: 0; }
.byline a { color: var(--fg); text-decoration: none; }
.cta-box { margin-top: 64px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); }
.cta-box pre code { font-size: 13px; }
.cta-h { margin-top: 0 !important; font-size: 1.4rem !important; }
.related { padding-top: 72px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; margin-bottom: 28px; }

/* ---------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding-top: 56px; padding-bottom: 96px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item .ico { flex: none; }
.contact-item p { margin: 0; color: var(--fg-2); }
.contact-item a { color: var(--fg); font-size: 1.05rem; }
.footer-h { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); margin: 0 0 14px; }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 13.5px; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
form input, form textarea, form select { width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
form textarea { min-height: 160px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--fg-3); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- closing CTA */
.cta-band { padding: 128px 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.04; max-width: 14ch; }
.cta-band .serif { font-size: 1.06em; }
.cta-band .lede { margin-bottom: 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } .cta-band { padding: 88px 0; } }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 0; font-size: .92rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 40px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-grid > div > a { display: block; color: var(--fg-2); text-decoration: none; padding: 4px 0; overflow-wrap: anywhere; }
.footer-grid > div > a:hover { color: var(--fg); }
.footer-grid > div > a.brand { display: inline-flex; color: var(--fg); padding: 0; }
.footer-brand p { color: var(--fg-2); max-width: 30em; margin-top: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 64px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); font: 450 12px var(--mono); color: var(--fg-3); letter-spacing: 0; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--fg-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--fg); }
.wordmark-fit { container-type: inline-size; margin-top: 64px; }
/* Geist 500 at -.07em tracking renders "routeman" 3.93x its font-size wide, minus side bearings; 25.9cqw + the left pull makes the ink span the container. */
.wordmark {
  font: 500 19vw/.78 var(--sans); font-size: 25.9cqw; letter-spacing: -.07em; white-space: nowrap; user-select: none;
  margin: 0 0 -.06em -.062em;
  background: linear-gradient(to bottom, var(--line-strong) 10%, transparent 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.notfound { padding: 140px 0 120px; }
.notfound .big { font: 400 clamp(6rem, 18vw, 12rem)/1 var(--serif); font-style: italic; color: var(--accent); margin: 0 0 8px; letter-spacing: -.04em; }

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