/* recly.dev — the Blueprint design system (docs/recly.md §9) on the web.
   System fonts only (Korean glyphs guaranteed, nothing fetched), light/dark from the OS,
   straight 1px lines, square nodes, monospace for data. */

:root {
  color-scheme: light dark;
  --ground: #F7F7F5;
  --surface: #FFFFFF;
  --grid: #E6E6E2;
  --ink: #111111;
  --muted: #5E5E5A;
  --accent: #0F62FE;
  --button: #0F62FE;
  --record: #DA1E28;
  --success: #198038;
  --warn: #B28600;
  --dot: rgba(136, 136, 132, 0.22);
  --band: #0E0F12;
  --band-ink: #F2F2F0;
  --band-muted: #9A9CA3;
  --band-grid: #23262D;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas,
    monospace;
  --r-node: 4px;
  --r-card: 8px;
  --r-badge: 2px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E0F12;
    --surface: #16181D;
    --grid: #23262D;
    --ink: #F2F2F0;
    --muted: #9A9CA3;
    --accent: #4589FF;
    --record: #FA4D56;
    --success: #42BE65;
    --warn: #F1C21B;
    --dot: rgba(154, 156, 163, 0.12);
    --band: #16181D;
  }
}

@media (prefers-contrast: more) {
  :root { --grid: var(--ink); --muted: var(--ink); --dot: transparent; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

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

body {
  margin: 0;
  background-color: var(--ground);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 16px 16px;
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-node); }

code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; }

/* ── Header (chrome: the one place glass is allowed) ─────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--grid);
  background: color-mix(in srgb, var(--ground) 84%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }

.brand { display: flex; flex: none; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }

.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a, .header-actions a { color: var(--muted); text-decoration: none; font-size: 0.92rem; white-space: nowrap; }
.nav a:hover, .header-actions a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-actions .btn { height: 36px; padding: 0 14px; font-size: 0.9rem; }
.header-actions .btn-primary { color: #FFFFFF; }

.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; height: 36px; color: var(--muted); font-size: 0.92rem; cursor: pointer; list-style: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lang summary .chev { width: 10px; height: 10px; stroke-width: 1.4; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang .code { font-family: var(--mono); font-size: 0.82rem; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 132px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--grid); border-radius: var(--r-card); }
.header-actions .lang-menu a { display: block; padding: 7px 10px; border-radius: var(--r-node); color: var(--ink); }
.header-actions .lang-menu a:hover { background: var(--ground); }
.header-actions .lang-menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Below 1120px, where seven links no longer fit, they move into a menu at the right end of the header. */
.menu { display: none; position: relative; order: 3; }
.menu summary { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--grid); border-radius: var(--r-node); color: var(--ink); cursor: pointer; list-style: none; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 16px; height: 16px; }
.menu[open] summary { border-color: var(--ink); }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 0; display: grid; min-width: 232px; padding: 4px; background: var(--surface); border: 1px solid var(--grid); border-radius: var(--r-card); }
.menu-panel a { display: block; padding: 9px 12px; border-radius: var(--r-node); color: var(--ink); font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.menu-panel a:hover { background: var(--ground); }
.nav a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--accent); font-weight: 600; }

@media (max-width: 1120px) { .nav { display: none; } .menu { display: block; } .header-actions { order: 2; } }
@media (max-width: 420px) { .header-actions .gh { display: none; } .site-header .wrap { gap: 12px; } }

/* ── Buttons, badges, kickers ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r-node);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease-in-out, border-color 200ms ease-in-out;
}
.btn:hover { background: var(--grid); text-decoration: none; }
.btn-primary { background: var(--button); border-color: var(--button); color: #FFFFFF; }
.btn-primary:hover { background: #0043CE; border-color: #0043CE; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .size { font: 400 0.8rem var(--mono); opacity: 0.8; }
.btn-quiet { border-color: var(--grid); }

.badge {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: var(--r-badge);
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-ok { color: var(--success); }
.badge-soon { color: var(--muted); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--muted);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker b { color: var(--accent); font-weight: 600; }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--grid); }

/* ── Sections ────────────────────────────────────────────────────────────── */

section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--grid); }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: -0.01em; word-break: keep-all; }
:lang(ko) p, :lang(ko) li, :lang(ko) td { word-break: keep-all; }

.lede { max-width: 62ch; margin: 18px 0 0; color: var(--muted); font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); text-wrap: pretty; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); border-top: 0; }
.hero .wrap { display: grid; gap: clamp(40px, 6vw, 64px); }
.hero .wrap > div { max-width: 760px; }
.hero .lede { margin-top: 22px; color: var(--ink); opacity: 0.82; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 24px; color: var(--muted); font: 0.8rem/1.4 var(--mono); }
.hero-meta a { color: inherit; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 1px; background: var(--record); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; }
/* One line above the headline that points at the newest thing worth a look. */
.news { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 5px 12px 5px 5px; border: 1px solid var(--grid); border-radius: var(--r-node); background: var(--surface); color: var(--ink); font-size: 0.9rem; line-height: 1.4; text-decoration: none; }
.news b { flex: none; padding: 2px 7px; border-radius: var(--r-badge); background: var(--record); color: #FFFFFF; font: 600 0.7rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.news:hover { border-color: var(--ink); text-decoration: none; }
.platforms li { padding: 3px 8px; border: 1px solid var(--grid); border-radius: var(--r-badge); background: var(--surface); color: var(--muted); font: 0.78rem/1.4 var(--mono); }

/* ── Nodes and connectors ────────────────────────────────────────────────── */

.compare th:last-child { color: var(--accent); }
.compare td:last-child { color: var(--ink); }
.compare td strong { font-family: var(--mono); }
@media (min-width: 721px) {
  .compare td:first-child { width: 18%; }
  .compare td:nth-child(2) { width: 36%; }
  .compare th:last-child, .compare td:last-child { background: color-mix(in srgb, var(--accent) 6%, transparent); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The hero's demo (design/demo.mp4, the README's demo.gif at full resolution) and, under it, the flow
   diagram (design/flow.svg) and the agent diagram (design/agent-flow.svg), as in the README; "How it
   works" spells out each step. */
.demo { margin: 0; overflow: hidden; border: 1px solid var(--grid); border-radius: var(--r-card); background: #0E0F12; }
.demo video { display: block; width: 100%; height: auto; }
.diagram { margin: 0; }
.diagram img { display: block; width: 100%; height: auto; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; margin: 0; padding: 0; list-style: none; }
.flow li { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 18px; border: 1px solid var(--ink); border-radius: var(--r-node); background: var(--surface); }
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  width: 42px;
  height: 1px;
  background: var(--ink);
}
.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: calc(100% + 36px);
  border: 4.5px solid transparent;
  border-left: 7px solid var(--ink);
  border-right: 0;
}
.flow .step { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.flow .rec { width: 12px; height: 12px; border-radius: 2px; background: var(--record); }
.flow h3 { margin-top: 14px; }
.flow p { margin: 6px 0 16px; color: var(--muted); font-size: 0.93rem; }
.flow code { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--grid); color: var(--ink); font-size: 0.78rem; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow li:not(:last-child)::after { top: calc(100% + 1px); left: 32px; width: 1px; height: 34px; }
  .flow li:not(:last-child)::before { top: calc(100% + 28px); left: 28px; border: 4.5px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; }
}

/* ── Feature cards ───────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--grid); border-radius: var(--r-card); background: var(--surface); }
.card .glyph { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--ink); border-radius: var(--r-node); }
.card .glyph svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 0.96rem; }
.cards.stack { grid-template-columns: 1fr; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
/* Automatic minutes: the diagram, then four cards, then how to turn it on. */
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 clamp(40px, 6vw, 64px); }
@media (max-width: 1080px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards.four { grid-template-columns: 1fr; } }
/* Below 760px the wide diagram keeps a readable size and scrolls sideways inside its frame. */
@media (max-width: 760px) {
  .diagram.wide { overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .diagram.wide img { width: 760px; max-width: none; }
}

/* ── Screens (dark band) ─────────────────────────────────────────────────── */

.band { background: var(--band); color: var(--band-ink); border-top: 0; }
.band .kicker { color: var(--band-muted); }
.band .kicker b { color: #4589FF; }
.band .kicker::after { background: var(--band-grid); }
.band .lede { color: var(--band-muted); }
.band a { color: #78A9FF; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery picture { display: block; }
.gallery img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--band-grid); }
@media (max-width: 860px) {
  .gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .gallery li { flex: 0 0 min(62%, 260px); scroll-snap-align: start; }
}

/* ── Tables (ledger rows: radius 0, hairlines) ───────────────────────────── */

.ledger { width: 100%; border-collapse: collapse; border: 1px solid var(--grid); border-radius: var(--r-card); background: var(--surface); font-size: 0.95rem; }
.ledger th, .ledger td { padding: 14px 18px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
.ledger th { color: var(--muted); font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td:first-child { font-weight: 650; white-space: nowrap; }
.ledger td { color: var(--muted); }
.ledger td:first-child, .ledger td strong { color: var(--ink); }
@media (max-width: 720px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger thead { display: none; }
  .ledger tr { padding: 14px 16px; border-bottom: 1px solid var(--grid); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td { padding: 2px 0; border: 0; white-space: normal; }
  .ledger td:first-child { margin-bottom: 6px; }
  .ledger td[data-label]::before { content: attr(data-label); display: block; margin-top: 8px; color: var(--muted); font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
}

/* ── Stats ───────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 32px; border: 1px solid var(--ink); border-radius: var(--r-node); background: var(--surface); }
.stats > div { padding: 22px 24px; }
.stats > div + div { border-left: 1px solid var(--ink); }
.stats .n { display: block; font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1 var(--mono); letter-spacing: -0.02em; }
.stats .t { display: block; margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--ink); }
}

/* ── Transcription ───────────────────────────────────────────────────────── */

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.modes .card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split + .split { margin-top: clamp(40px, 6vw, 64px); }
.sub + .cards { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 10px; border: 1px solid var(--grid); border-radius: var(--r-node); background: var(--surface); font-size: 0.9rem; }
.sub + .ledger { margin-top: 16px; }
.sub { margin: 0; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ── Skills ──────────────────────────────────────────────────────────────── */

.term { margin-top: 16px; border: 1px solid var(--grid); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.term-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 12px 12px 18px; }
.term-row + .term-row { border-top: 1px solid var(--grid); }
.term-row .who { grid-column: 1 / -1; color: var(--muted); font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.term-row pre { margin: 0; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; }
.term-row pre.wrap { overflow-x: visible; white-space: pre-wrap; }
.term-row .btn { height: 32px; padding: 0 12px; font-size: 0.82rem; }
@media (max-width: 620px) { .term-row pre { font-size: 0.78rem; } }
.prompts { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.prompts li { padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--surface); font-style: italic; }

/* ── Downloads ───────────────────────────────────────────────────────────── */

.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--grid); border-radius: var(--r-card); background: var(--surface); }
.dl header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dl .req { margin: 4px 0 0; color: var(--muted); font: 0.8rem/1.4 var(--mono); }
.dl p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.dl .actions { display: flex; margin-top: auto; }
@media (max-width: 620px) { .downloads { grid-template-columns: 1fr; } }
/* site.js moves the visitor's own platform to the front and labels it. */
.dl.is-yours { border-color: var(--ink); }
.dl .yours { margin: 0; color: var(--accent); font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
/* The stores' own badge artwork, never restyled: 40px tall, the App Store badge first. */
.store-badge { display: inline-block; line-height: 0; border-radius: 7px; }
.store-badge img { width: auto; height: 40px; }
.release-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }

/* ── Open source ─────────────────────────────────────────────────────────── */

.arch { padding: 24px; border: 1px solid var(--grid); border-radius: var(--r-card); background: var(--surface); }
.arch .sub { margin-bottom: 16px; }
.arch-clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.arch-clients li { padding: 10px; border: 1px solid var(--ink); border-radius: var(--r-node); font-size: 0.88rem; font-weight: 600; }
.arch-clients small { display: block; margin-top: 2px; color: var(--muted); font: 400 0.72rem/1.3 var(--mono); }
.arch-bus {
  height: 36px;
  background:
    linear-gradient(var(--ink), var(--ink)) 16.4% 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 0 / 1px 36px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 83.6% 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 16px / 67.2% 1px no-repeat;
}
.arch-core { padding: 16px; border: 2px solid var(--ink); border-radius: var(--r-node); }
.arch-core strong { display: block; }
.arch-core span { display: block; margin-top: 4px; color: var(--muted); font: 0.78rem/1.5 var(--mono); }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--grid); }
.links li { border-bottom: 1px solid var(--grid); }
.links a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; }
.links a:hover span { color: var(--accent); }
.links a span { display: block; font-weight: 600; }
.links a small { display: block; color: var(--muted); font-size: 0.86rem; }
.links li:nth-child(odd) a { padding-right: 16px; }
@media (max-width: 520px) {
  .links { grid-template-columns: 1fr; }
  .arch-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-bus {
    background:
      linear-gradient(var(--ink), var(--ink)) 24.6% 0 / 1px 16px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 50% 16px / 1px 20px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 75.4% 0 / 1px 16px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 50% 16px / 51% 1px no-repeat;
  }
}
.license-note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--grid); background: var(--surface); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { margin-bottom: 12px; color: var(--muted); font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid p { margin: 12px 0 0; color: var(--muted); max-width: 34ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--grid); color: var(--muted); font: 0.76rem/1.6 var(--mono); }
.footer-base a { color: inherit; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ── Document pages (install guide, privacy policy, development) ─────────── */

.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: calc(820px + 2 * var(--gutter)); }
.doc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 28px; color: var(--muted); font: 0.76rem/1.4 var(--mono); }
.doc-meta a { color: inherit; }
.prose { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--grid); border-radius: var(--r-card); background: var(--surface); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 20px; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem); margin: 2.2em 0 0.6em; padding-top: 1.2em; border-top: 1px solid var(--grid); }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre, .prose blockquote { margin: 0 0 1.1em; }
.prose li + li { margin-top: 0.3em; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--grid); }
.prose code { padding: 0.1em 0.35em; border: 1px solid var(--grid); border-radius: var(--r-badge); background: var(--ground); }
.prose pre { padding: 16px 18px; border: 1px solid var(--grid); border-radius: var(--r-node); background: var(--ground); overflow-x: auto; line-height: 1.55; }
.prose pre code { padding: 0; border: 0; background: none; font-size: 0.86rem; }
/* site.js wraps each code block to give it a Copy button. */
.prose .code-block { position: relative; margin: 0 0 1.1em; }
.prose .code-block pre { margin: 0; }
.code-block .copy { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px; font-size: 0.78rem; }
@media (hover: hover) {
  .code-block .copy { opacity: 0; transition: opacity 150ms ease-in-out; }
  .code-block:hover .copy, .code-block .copy:focus-visible { opacity: 1; }
}
@media (hover: none) { .prose .code-block pre { padding-top: 44px; } }
.prose blockquote { padding: 4px 0 4px 16px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.93rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--grid); text-align: left; vertical-align: top; }
.prose th { background: var(--ground); font-weight: 650; }
