/* TransientAI site. Hand-written, no framework, no build step.
   Lexend and Josefin Sans are self-hosted (SIL OFL, see fonts/): the site makes no third-party requests. */

@font-face {
  font-family: "Lexend";
  src: url("../fonts/Lexend.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Brand font: used only for the TransientAI / Transient wordmark. Everything else is Lexend. */
@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/JosefinSans.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-2: #09090a;
  --bg-3: #111113;
  --line: #1d1d21;
  --line-2: #2b2b31;
  --text: #ececee;
  --text-2: #a6a6ae;
  --text-3: #7a7a83;
  --link: #b4cdff;
  --link-hover: #fff;
  --glow: rgba(255, 255, 255, 0.05);
  --ok: #7ddc9f;
  --next: #8fb8ff;
  --open: #e6c27a;
  --bad: #ff9a9a;
  --on-mark: 1; /* 1 = white mark on dark, flipped in light */
  --brand-font: "Josefin Sans", "Lexend", system-ui, sans-serif;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 8px;
  --wrap: 1080px;
  --prose: 68ch;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-2: #f2f2f4;
    --bg-3: #eaeaee;
    --line: #e2e2e7;
    --line-2: #cfcfd6;
    --text: #131316;
    --text-2: #4a4a53;
    --text-3: #6c6c76;
    --link: #1c4fd1;
    --link-hover: #000;
    --glow: rgba(0, 0, 0, 0.04);
    --ok: #17753d;
    --next: #1c4fd1;
    --open: #8a5f00;
    --bad: #b42323;
    color-scheme: light;
  }
  .invertable { filter: invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--text); color: var(--bg); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 450; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-3); border: 1px solid var(--line); padding: 0.08em 0.4em; border-radius: 4px; }
pre {
  position: relative;
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.6;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem 1.1rem; overflow-x: auto; margin: 0 0 1.4em;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; font: 500 0.72rem var(--font);
  background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 5px;
  padding: 3px 9px; cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 5px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--prose); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.muted { color: var(--text-2); }
.small { font-size: 0.88rem; }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; }
.wordmark { font-family: var(--brand-font); font-weight: 400; font-size: 1.5rem; line-height: 1; letter-spacing: 0.005em; position: relative; top: 0.125em; } /* Josefin sits high in its line box; 0.125em centres the letters on the mark */
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.brand:hover img { transform: rotate(60deg); }
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 0.92rem; padding: 0.4rem 0.7rem; border-radius: 5px;
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.nav .gh { border: 1px solid var(--line-2); margin-left: 0.4rem; color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 5px; padding: 0.35rem 0.7rem; font: inherit; font-size: 0.9rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.6rem 16px 1rem; gap: 0.1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.8rem; }
  .nav .gh { margin: 0.4rem 0 0; text-align: center; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; }
  html:not(.js) .bar { height: auto; padding: 0.7rem 0; flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin: 0 0 1rem; }
.hero h1 { margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); line-height: 1.65; max-width: 58ch; }
.hero-art { justify-self: center; width: min(100%, 340px); aspect-ratio: 1; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.ebb { transform-origin: 50% 50%; animation: spin 140s linear infinite; }
.ebb path { fill: var(--text); animation: breathe 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.15s); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.28; } }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.2rem; border-radius: 6px; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: transparent; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--bg-3); border-color: var(--text-3); color: var(--text); transform: translateY(-1px); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); color: var(--bg); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; width: 150px; justify-self: start; }
}

/* ---------- page head (inner pages) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 0.8rem; }
.page-head .lead { margin: 0; }
.crumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 2rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-2); margin: 0; }

.statusbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; padding: 1rem 0; border-block: 1px solid var(--line);
  font-size: 0.86rem; color: var(--text-2);
}
.statusbar b { color: var(--text); font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 0.5rem; vertical-align: 0.05em; box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem;
  color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
a.card:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-2px); color: inherit; }
.card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-2); font-size: 0.94rem; line-height: 1.6; }
.card .more { display: inline-block; margin-top: 0.9rem; font-size: 0.86rem; color: var(--link); }
.card .num { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 0.7rem; display: block; }

.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.stat .v { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; }
.stat .l { font-size: 0.86rem; color: var(--text-2); margin-top: 0.5rem; line-height: 1.5; }

.callout {
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: 8px; padding: 1.05rem 1.3rem 1.15rem; margin: 1.8rem 0; font-size: 0.95rem; color: var(--text-2);
}
.callout-label {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem !important;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.callout-label .icon { width: 15px; height: 15px; }
.callout.caveat .callout-label { color: var(--open); }
.callout.good .callout-label { color: var(--ok); }
.callout strong { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

.chip {
  display: inline-block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.12rem 0.55rem; border-radius: 4px;
  border: 1px solid currentColor; vertical-align: 0.08em; white-space: nowrap;
}
.chip.done { color: var(--ok); }
.chip.next { color: var(--next); }
.chip.open { color: var(--open); }
.chip.later { color: var(--text-3); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
th, td { text-align: left; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 500; color: var(--text-2); font-size: 0.8rem; background: var(--bg-2); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.ok { color: var(--ok); }
td.bad { color: var(--bad); }
td code { white-space: nowrap; }

/* ---------- terminal ---------- */
.term { background: #050506; color: #e6e6ea; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; font-family: var(--mono); font-size: 0.84rem; line-height: 1.65; }
@media (prefers-color-scheme: light) { .term { background: #0d0d10; border-color: #1d1d22; } }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 0.6rem 0.9rem; border-bottom: 1px solid #1d1d22; background: #0b0b0d; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; }
.term-bar span { margin-left: 0.6rem; font-size: 0.72rem; color: #7a7a83; font-family: var(--font); }
.term-body { padding: 1rem 1.1rem 1.2rem; overflow-x: auto; min-height: 21rem; }
.t-line { white-space: pre-wrap; word-break: break-word; margin: 0 0 0.15rem; }
.t-cmd::before { content: "$ "; color: #7a7a83; }
.t-out { color: #b9b9c2; padding-left: 0; }
.t-out.dim { color: #7f7f89; }
.t-gap { height: 0.7rem; }
.t-ans { color: #fff; font-weight: 500; }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: #e6e6ea; vertical-align: -0.15em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- flow ---------- */
.flow { display: flex; align-items: stretch; gap: 0.6rem; margin: 1.5rem 0 2rem; }
.flow .step { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; font-size: 0.88rem; line-height: 1.5; }
.flow .step b { display: block; font-weight: 500; margin-bottom: 0.25rem; }
.flow .step span { color: var(--text-2); }
.flow .arrow { align-self: center; color: var(--text-3); font-size: 1.2rem; }
@media (max-width: 820px) { .flow { flex-direction: column; } .flow .arrow { transform: rotate(90deg); align-self: center; } }

/* ---------- bars ---------- */
.bars { display: grid; gap: 0.9rem; margin: 1.5rem 0; }
.bar-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 1rem; font-size: 0.88rem; }
.bar-row .name { color: var(--text-2); }
.bar-track { position: relative; height: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--text); border-radius: 3px; min-width: 3px; transform-origin: left; }
.js .reveal .bar-fill { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1) 0.2s; }
.js .reveal.in .bar-fill { transform: scaleX(1); }
.bar-val { font-size: 0.84rem; font-variant-numeric: tabular-nums; color: var(--text-2); margin-top: 0.3rem; grid-column: 2; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr; gap: 0.3rem; } .bar-val { grid-column: 1; } }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 2rem 1.2rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.5rem - 4.5px); top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text-2); }
.timeline li:first-child::before { background: var(--text); border-color: var(--text); }
.timeline time { display: block; font-size: 0.82rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--text-3); margin-bottom: 0.15rem; }
.timeline h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.timeline p { margin: 0 0 0.6rem; color: var(--text-2); font-size: 0.94rem; line-height: 1.65; }

/* ---------- docs layout ---------- */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; padding-bottom: 4rem; }
.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 0.88rem; }
.docs-nav p { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 1.2rem 0 0.4rem; }
.docs-nav p:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 0.28rem 0.7rem; margin-left: -0.7rem; color: var(--text-2); text-decoration: none; border-radius: 4px; }
.docs-nav a:hover { color: var(--text); background: var(--bg-2); }
.docs-body { min-width: 0; }
.docs-body h2 { padding-top: 0.5rem; }
.docs-body h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; gap: 1.5rem; } .docs-nav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 1rem; columns: 2; } .docs-nav p { column-span: all; } }

/* ---------- blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin: 0; }
.post-item { display: block; padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-item:hover h2 { color: var(--link); }
.post-item h2 { margin: 0.3rem 0 0.4rem; font-size: 1.4rem; transition: color 0.15s; }
.post-item p { margin: 0; color: var(--text-2); }
.meta { font-size: 0.82rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: var(--text-3); }
.post { max-width: 700px; }
.post h2 { margin-top: 2.4em; }
.post blockquote { margin: 1.5rem 0; color: var(--text-2); font-style: italic; }
.post figure { margin: 1.8rem 0; }
.post figcaption { font-size: 0.84rem; color: var(--text-3); margin-top: 0.5rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 3rem 0 2.5rem; font-size: 0.9rem; color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin: 0 0 0.8rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.4rem; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); margin-bottom: 0.8rem; }
.foot-brand .wordmark { font-size: 1.35rem; }
.foot-brand img { width: 24px; height: 24px; }
.foot-note { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ebb, .ebb path, .dot, .caret { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal .bar-fill { transform: none; transition: none; }
  .brand img, .btn, .card { transition: none; }
}

@media print {
  .site-header, .site-footer, .hero-art, .copy-btn { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- blog art ---------- */
.page-head.art { position: relative; overflow: hidden; isolation: isolate; }
.page-head.art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/blog-banner.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 48%, #000 92%);
  mask-image: linear-gradient(to right, transparent 48%, #000 92%);
}
.page-head.art .lead { max-width: 46ch; }
@media (max-width: 700px) { .page-head.art::before { opacity: 0.4; } }
@media (prefers-color-scheme: light) { .page-head.art::before { filter: invert(1); } }

.thumb { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #000; }
.post-item { display: grid; grid-template-columns: 230px 1fr; gap: 1.6rem; align-items: center; }
.post-item h2 { margin-top: 0.2rem; }
.post-item:hover .thumb { border-color: var(--line-2); }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; gap: 1rem; } }
.card.has-thumb .thumb { margin-bottom: 1rem; }
.cover { margin: 0; }
.cover img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #000; }

/* ---------- icons (Lucide, plus Phosphor regular for the GitHub mark) ---------- */
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.icon.fill { fill: currentColor; stroke: none; }
.icon-inline { width: 0.95em; height: 0.95em; margin-left: 0.3em; vertical-align: -0.12em; }
.ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 1.1rem; color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-3); }
.ico .icon { width: 19px; height: 19px; }
.stat .ico { margin-bottom: 0.9rem; }
.btn .icon { width: 1.05em; height: 1.05em; }
.card .more { display: inline-flex; align-items: center; gap: 0.15rem; }
.nav a .icon { margin-right: 0.45rem; vertical-align: -0.22em; }
.nav-toggle { align-items: center; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3em; }
.chip .icon { width: 0.95em; height: 0.95em; vertical-align: 0; }
.flow .step b { display: flex; align-items: center; gap: 0.5rem; }
.flow .step b .icon { width: 1.15em; height: 1.15em; color: var(--text-2); }
.flow .arrow .icon { width: 1.3em; height: 1.3em; }
.copy-btn { display: inline-flex; align-items: center; gap: 0.35rem; }
.copy-btn .icon { width: 0.9rem; height: 0.9rem; }
.foot-grid a .icon { margin-left: 0.25em; }
@media (max-width: 820px) { .nav-toggle { display: inline-flex; } html:not(.js) .nav-toggle { display: none; } }
.nav a { white-space: nowrap; }
.nav .gh { display: inline-flex; align-items: center; }
.nav .gh .icon { margin-right: 0.45rem; vertical-align: 0; }
@media (max-width: 820px) { .nav .gh { justify-content: center; } }
