/* GitLama website on Meridian: islands on a tinted ground, one cerulean
   accent spent on intent, the spline graph as the signature. Colours are the
   GitLama brand of meridian_ui (light and dark); lane colours describe
   topology only. Depth has two levels, shadow-pane and shadow-float.
   The ivory Lama only ever sits on the brand ground (--brand), never on a
   pane or the page ground. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.woff2?v=5090862b5603") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #E8ECEE;
  --ground-hover: #DCE2E5;
  --pane: #FFFFFF;
  --pane-alt: #F6F8F9;
  --pane-hover: #EEF2F4;
  --raised: #FFFFFF;
  --ink: #0F1B21;
  --ink-muted: #52616A;
  --ink-faint: #8795A0;
  --line: #D8DFE3;
  --line-strong: #C3CCD1;
  --accent: #056CB3;
  --accent-hover: #045B98;
  --on-accent: #FFFFFF;
  --accent-soft: #DBEBFC;
  --accent-ink: #0160A0;
  --focus: #056CB3;
  --brand: #14242B;
  --brand-ink: #F4F7F8;
  --brand-muted: #A9BAC2;
  --brand-accent: #5BB1FE;
  --brand-on-accent: #06111D;
  --brand-line: rgba(244, 247, 248, 0.16);
  --danger: #B42318;
  --added: #16733A;
  --added-bg: #E6F4EA;
  --added-strong: #BFE5C9;
  --deleted: #C4302B;
  --deleted-bg: #FCEBEA;
  --modified: #9A5B00;
  --modified-bg: #FDF1DC;
  --tag-ink: #7A4A00;
  --tag-bg: #FBF0D9;
  --lane-1: #1F6FD6;
  --lane-2: #0B8A7A;
  --lane-3: #B26A00;
  --lane-4: #D4521E;
  --lane-5: #C7306B;
  --lane-6: #7A55D3;
  --lane-7: #0784A8;
  --lane-8: #5D8A12;
  --shadow-pane: 0 0 0 1px rgba(15, 27, 33, 0.07), 0 1px 2px rgba(15, 27, 33, 0.05);
  --shadow-float: 0 0 0 1px rgba(15, 27, 33, 0.09), 0 16px 40px -12px rgba(15, 27, 33, 0.28);
  --shadow-control: 0 1px 0 rgba(15, 27, 33, 0.06);
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Cantarell, "Noto Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --gutter: 32px;
  --header: 64px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B151A;
    --ground-hover: #13222A;
    --pane: #122027;
    --pane-alt: #0F1B21;
    --pane-hover: #1A2B34;
    --raised: #1A2A32;
    --ink: #E4ECEF;
    --ink-muted: #93A5AE;
    --ink-faint: #5E717B;
    --line: #21323B;
    --line-strong: #2C414B;
    --accent: #5BB1FE;
    --accent-hover: #87C4FE;
    --on-accent: #06111D;
    --accent-soft: #16334D;
    --accent-ink: #87C4FE;
    --focus: #87C4FE;
    --danger: #FF9C8F;
    --added: #4AC26B;
    --added-bg: #0F2E1C;
    --added-strong: #1D4A2E;
    --deleted: #FF7B72;
    --deleted-bg: #3A1A1B;
    --modified: #E3A948;
    --modified-bg: #3A2A10;
    --tag-ink: #F2C46B;
    --tag-bg: #33270F;
    --lane-1: #6AAEFF;
    --lane-2: #3DD6C0;
    --lane-3: #F2C14E;
    --lane-4: #FF8A5B;
    --lane-5: #FF6B9A;
    --lane-6: #B49BFF;
    --lane-7: #4CC9F0;
    --lane-8: #A3D65C;
    --shadow-pane: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
    --shadow-control: 0 1px 0 rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
p { color: var(--ink-muted); }
a { color: var(--accent-ink); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-radius: var(--radius-md);
}
code, .mono, pre { font-family: var(--font-mono); font-size: 0.875em; font-variant-ligatures: none; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 30;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-md);
}
.skip-link:focus { top: 12px; }

.wrap, footer, main.legal {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header: chrome sits straight on the ground. The navigation is the Compass,
   a pill whose accent rule follows the page's scroll progress. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  min-height: var(--header);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand {
  display: flex; align-items: center; gap: 10px; justify-self: start;
  color: var(--ink); font-size: 16px; font-weight: 650;
  letter-spacing: -0.01em; text-decoration: none;
}
.brand img { border-radius: 8px; }
.compass {
  position: relative; display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: var(--radius-pill); overflow: hidden;
  background: var(--pane); box-shadow: var(--shadow-pane);
}
.compass a {
  color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 5px 14px; border-radius: var(--radius-pill); white-space: nowrap;
  transition: background-color 80ms, color 80ms;
}
.compass a:hover { background: var(--pane-hover); color: var(--ink); }
.compass a[aria-current] { color: var(--ink); font-weight: 600; }
.compass-rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}
.header-release {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-muted); font: 12px var(--font-mono); text-decoration: none;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.header-release:hover { background: var(--ground-hover); color: var(--ink); }
.header-release:empty { display: none; }
.header-release::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--lane-1);
}

/* Buttons follow Meridian's primary and secondary ranks. */
.button {
  display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-md); border: 0; cursor: pointer;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color 80ms;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary {
  background: var(--pane); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-control);
}
.button.secondary:hover { background: var(--pane-hover); }
.button .icon { background: currentColor; }

.icon {
  display: inline-block; flex: none; width: 18px; height: 18px; background: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}

/* Overline: Meridian's section header style. */
.eyebrow {
  margin: 0 0 12px; color: var(--ink-muted);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); }
h2 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 650;
}
h3 { font-size: 16px; line-height: 1.3; margin: 0 0 6px; font-weight: 600; }

/* Hero: a brand-ground stage. site.js draws a field of spline lanes on it,
   and the Lama stands on a merge at the right, as in the app icon. The stage
   keeps the dark lane colours in both appearances. */
.hero { padding: 8px var(--gutter) 0; }
.stage {
  --ground: var(--brand);
  --lane-1: #6AAEFF; --lane-2: #3DD6C0; --lane-3: #F2C14E; --lane-4: #FF8A5B;
  --lane-5: #FF6B9A; --lane-6: #B49BFF; --lane-7: #4CC9F0; --lane-8: #A3D65C;
  --focus: #87C4FE;
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--max) + 2 * var(--gutter) + 160px); margin-inline: auto;
  min-height: min(760px, calc(100svh - var(--header) - 24px));
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); align-items: center; gap: 24px;
  /* Padding percentages resolve against .hero, not the capped stage, so the
     inset stops growing once the stage reaches its max-width. */
  padding: 72px max(40px, min(calc((100% - var(--max)) / 2 + 24px), calc(var(--gutter) + 104px))) 168px;
  background: var(--brand); color: var(--brand-ink);
  border-radius: 22px; box-shadow: var(--shadow-float);
}
.lane-field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.stage-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 70%, var(--brand)),
    linear-gradient(to right, var(--brand) 18%, color-mix(in srgb, var(--brand) 82%, transparent) 46%, transparent 72%),
    radial-gradient(ellipse 30% 36% at 76% 50%, color-mix(in srgb, var(--brand) 88%, transparent) 30%, transparent 100%);
}
.hero-copy { position: relative; max-width: 600px; }
.hero .eyebrow { color: var(--brand-muted); }
.hero h1 {
  color: var(--brand-ink);
  font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04;
  letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 700;
}
.hero .intro { color: var(--brand-muted); font-size: 19px; max-width: 520px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button.primary { background: var(--brand-accent); color: var(--brand-on-accent); }
.hero .button.primary:hover { background: #87C4FE; }
.hero .button.secondary {
  background: transparent; color: var(--brand-ink);
  border-color: var(--brand-line); box-shadow: none;
}
.hero .button.secondary:hover { background: rgba(244, 247, 248, 0.08); }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--brand-muted); }
.hero-note .mono:not(:empty)::after { content: " · "; }

.hero-scene { position: relative; justify-self: end; width: min(100%, 540px); }
.hero-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-scene path { fill: none; stroke-width: 4; stroke-linecap: round; }
.hero-scene .branch { stroke: var(--brand-accent); }
.hero-scene .ring { fill: var(--brand); stroke: var(--brand-accent); stroke-width: 2.5; }
.hero-scene .node, .hero-scene .runner { fill: var(--brand-accent); }
.hero-scene .runner { opacity: 0; }
.hero-scene .head { transform-box: fill-box; transform-origin: center; }
.hero-scene .head.landed { animation: merge-land 520ms var(--ease); }
@keyframes merge-land { 40% { transform: scale(1.5); } }
/* The Lama's feet are 92% down its artwork; hops pivot there. */
.hero-lama { transform-box: fill-box; transform-origin: 55% 92%; cursor: default; }
.hero-lama .pose { transition: opacity 320ms var(--ease); }
.hero-lama .hello, .hero-lama.is-hello .proud { opacity: 0; }
.hero-lama.is-hello .hello { opacity: 1; }
.hero-lama.is-hopping { animation: lama-hop 560ms var(--ease); }
@keyframes lama-hop {
  18% { transform: scale(1.03, 0.96); }
  45% { transform: translateY(-9%) scale(0.98, 1.03); }
  78% { transform: scale(1.02, 0.98); }
}

/* A small brand-ground tile that lets the ivory Lama appear on panes. */
.lama-tile {
  flex: none; display: grid; place-items: center;
  width: 88px; height: 88px; border-radius: 20px; background: var(--brand);
}
.lama-tile img { display: block; }

/* The product shot is an island that floats above the ground. */
.shot { position: relative; z-index: 1; margin-top: -128px; padding-bottom: 40px; perspective: 1800px; }
.window {
  background: var(--window-ground); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float); overflow: hidden;
  transform-origin: 50% 0; transform: rotateX(calc(var(--tilt, 0) * 1deg));
  --window-ground: #E8ECEE; --window-dot: #C3CCD1; --window-ink: #52616A; --window-pane: #FFFFFF;
}
.window[data-theme="dark"] {
  --window-ground: #0B151A; --window-dot: #2C414B; --window-ink: #93A5AE; --window-pane: #122027;
}
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px;
  background: var(--window-ground);
}
.window-bar > span { width: 12px; height: 12px; border-radius: 50%; background: var(--window-dot); }
.segmented {
  margin-left: auto; display: flex; gap: 2px; padding: 2px;
  border-radius: var(--radius-md); visibility: hidden;
}
.js .segmented { visibility: visible; }
.segmented button {
  border: 0; background: none; cursor: pointer; color: var(--window-ink);
  font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-sm);
}
.segmented button[aria-pressed="true"] {
  background: var(--window-pane); color: inherit; box-shadow: var(--shadow-control);
}
.window[data-theme="dark"] .segmented button[aria-pressed="true"] { color: #E4ECEF; }
.window[data-theme="light"] .segmented button[aria-pressed="true"] { color: #0F1B21; }
.window img { display: block; width: 100%; height: auto; }
.caption { text-align: center; font-size: 14px; margin: 18px 0 0; }

/* Sections hang on one lane: a spine and a commit ring lead into each. */
.section { position: relative; padding-block: 132px 40px; }
.section::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 2px; height: 84px; background: var(--lane-1);
  transform: translateX(-50%);
  transform-origin: 50% 0; transition: transform 640ms var(--ease);
}
.section::after {
  content: ""; position: absolute; left: 50%; top: 84px;
  width: 14px; height: 14px; border-radius: 50%; transform: translateX(-50%);
  border: 2px solid var(--lane-1); background: var(--ground);
  transition: opacity 240ms 480ms;
}
.js .section:not(.in)::before { transform: translateX(-50%) scaleY(0); }
.js .section:not(.in)::after { opacity: 0; }
.section-heading { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-heading p:last-child { margin-bottom: 0; }

.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}

/* Islands */
.island, .feature-grid article, .platform, .release-status, .release-record, .release-bar, .latest-notes, .verify {
  background: var(--pane); border-radius: var(--radius-lg); box-shadow: var(--shadow-pane);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-grid article { padding: 24px; transition: background-color 80ms; }
.feature-grid article:hover { background: var(--pane-hover); }
.feature-grid p { margin: 0; font-size: 15px; }
.feature-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--ground); margin-bottom: 16px;
}

/* Stories: a text island beside a small working model of the app. */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px; align-items: stretch; }
.story + .story { margin-top: 12px; }
.story.flip > :first-child { order: 2; }
.story > .island { padding: 32px; min-width: 0; }
.story h2 { font-size: clamp(24px, 2.6vw, 30px); }
.story .island > ul { margin: 18px 0 0; padding: 0; list-style: none; }
.story .island > ul > li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-muted); }
.story .island > ul > li + li { margin-top: 10px; }
.story .island > ul > li::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--lane-1); transform: translateY(1px);
}
.story .demo { background: var(--pane); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.demo-note {
  margin: auto 0 0; padding: 10px 16px; font-size: 13px;
  background: var(--pane-alt); color: var(--ink-muted);
}

/* Graph model: true Meridian geometry. 14 px lanes, 2 px strokes, r 4.5
   rings, 0.3 for everything outside the selected commit's ancestry. */
.graph-demo { position: relative; margin-block: auto; padding: 8px 4px; font-size: 13px; line-height: 18px; }
.graph-demo svg { position: absolute; z-index: 1; left: 4px; top: 8px; pointer-events: none; }
.graph-demo path { fill: none; stroke-width: 2; stroke-linecap: round; }
.graph-demo circle { stroke-width: 2; fill: var(--pane); }
.graph-demo .dot { stroke: none; }
.graph-demo .l1 { stroke: var(--lane-1); }
.graph-demo .l2 { stroke: var(--lane-2); }
.graph-demo .dot.l1 { fill: var(--lane-1); }
.graph-demo .dot.l2 { fill: var(--lane-2); }
/* On the selected row, strokes and rings paint in on-accent. */
.graph-demo circle.on { stroke: var(--on-accent); fill: var(--accent); }
.graph-demo .dot.on { fill: var(--on-accent); }
.graph-demo path, .graph-demo circle, .graph-demo .row > * { transition: opacity 120ms, stroke-width 120ms; }
.graph-demo path.lit { stroke-width: 2.5; }
.graph-demo .unlit { opacity: 0.3; }
.graph-demo ol { margin: 0; padding: 0; list-style: none; }
.graph-demo .row {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px;
  padding: 0 12px 0 44px; border: 0; border-radius: var(--radius-sm);
  background: none; text-align: left; cursor: pointer;
}
.graph-demo .row:hover { background: var(--pane-hover); }
.graph-demo .row[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.graph-demo .row.unlit > * { opacity: 0.3; }
.subject { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hash { font: 11px/16px var(--font-mono); color: var(--ink-muted); letter-spacing: 0.01em; }
.row[aria-pressed="true"] .hash { color: inherit; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; line-height: 16px; font-weight: 600;
  padding: 1px 7px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-ink);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lane, var(--lane-1)); }
.chip.head { background: var(--ink); color: var(--pane); }
.chip.head::before { background: currentColor; }
.chip.tag { background: var(--tag-bg); color: var(--tag-ink); }
.chip.tag::before { background: var(--tag-ink); }
.chip.plain::before { content: none; }

/* Diff model: an unstaged hunk. A gutter click selects a line; staging acts
   on the changed lines in the selection and washes them in added-strong. */
.diff-demo { position: relative; }
.diff-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  font-size: 13px; color: var(--ink);
}
.diff-head .count { margin-left: auto; color: var(--ink-muted); }
.glyph {
  flex: none; width: 16px; height: 16px; border-radius: var(--radius-xs);
  display: grid; place-items: center;
  font: 600 10px/1 var(--font-mono); background: var(--modified-bg); color: var(--modified);
}
.hunk-head {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 8px 4px 16px;
  background: var(--pane-alt); border-block: 1px solid var(--line); font-size: 12px;
}
.hunk-context { color: var(--ink-muted); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button.small {
  min-height: 24px; padding: 2px 8px; gap: 6px; font-size: 12px; font-weight: 500;
  border-radius: var(--radius-md);
}
.button.small .icon { width: 14px; height: 14px; }
.button:disabled { color: var(--ink-faint); cursor: default; }
.button.secondary:disabled:hover { background: var(--pane); }
.diff-lines {
  position: relative; font: 12px/24px var(--font-mono); font-variant-ligatures: none;
  overflow-x: auto; padding-block: 8px; min-height: 216px;
}
.dl {
  display: grid; grid-template-columns: 88px 18px max-content; align-items: center;
  min-width: max-content; padding-right: 16px;
  color: var(--ink); white-space: pre;
}
.gutter {
  display: grid; grid-template-columns: 44px 44px; height: 24px; padding: 0;
  border: 0; background: none; color: var(--ink-faint); font: inherit;
}
.gutter .ln { text-align: right; padding-right: 10px; }
button.gutter { cursor: pointer; }
button.gutter:hover { color: var(--ink); }
button.gutter:focus-visible { outline-offset: -2px; border-radius: var(--radius-xs); }
.dl.add { background-color: var(--added-bg); }
.dl.del { background-color: var(--deleted-bg); }
.dl.add .sign { color: var(--added); }
.dl.del .sign { color: var(--deleted); }
.dl.selected {
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  box-shadow: inset 1px 0 var(--accent), inset -1px 0 var(--accent);
}
.dl.selected .gutter { background: var(--accent-soft); color: var(--ink); }
.dl.run-start { box-shadow: inset 1px 0 var(--accent), inset -1px 0 var(--accent), inset 0 1px var(--accent); }
.dl.run-end { box-shadow: inset 1px 0 var(--accent), inset -1px 0 var(--accent), inset 0 -1px var(--accent); }
.dl.run-start.run-end { box-shadow: inset 0 0 0 1px var(--accent); }
.dl.wash { animation: stage-wash 240ms ease-out; }
@keyframes stage-wash { from { background-color: var(--added-strong); } }
.floating-stage { position: absolute; right: 12px; z-index: 1; box-shadow: var(--shadow-float); }
.diff-empty {
  display: grid; place-items: center; align-content: center; gap: 12px; min-height: 216px;
  padding: 16px 24px; text-align: center;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink-muted);
}
.diff-empty p { margin: 0; max-width: 300px; }
.diff-empty strong { display: block; color: var(--ink); font-weight: 600; }

/* Downloads: the heading is a brand-ground island where the Lama stands
   ready. */
.download-stage {
  display: flex; align-items: center; gap: 28px; margin-bottom: 12px;
  padding: 28px 36px; border-radius: var(--radius-xl);
  background: var(--brand); box-shadow: var(--shadow-pane);
}
.download-stage .eyebrow, .download-stage p { color: var(--brand-muted); }
.download-stage h2 { color: var(--brand-ink); margin-bottom: 8px; }
.download-stage p:last-child { margin: 0; max-width: 620px; }
.download-lama { flex: none; width: 120px; height: 120px; }
.download-lama img { display: block; width: 100%; height: 100%; }
.release-status {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  color: var(--ink-muted); padding: 18px 20px; text-align: center;
}
/* With nothing to show, the resting Lama nods at the empty list. */
.release-status::before, .release-list:not(:has(.release-record))::before {
  content: ""; flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: url("assets/lama/lama-nod.svg?v=fffbdbba65ac") center / 48px no-repeat var(--brand);
}
.release-list:not(:has(.release-record)) { display: flex; align-items: center; gap: 16px; color: var(--ink-muted); }
.release-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 16px; margin-bottom: 12px; font-size: 14px; color: var(--ink-muted);
}
.release-bar .chip { font: 12px/18px var(--font-mono); padding: 2px 9px; }
.release-bar a { margin-left: auto; font-weight: 500; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform { padding: 8px; display: flex; flex-direction: column; }
.platform[data-platform="linux"] { grid-column: 2; grid-row: 1 / span 2; }
.platform-head { display: flex; align-items: center; gap: 14px; padding: 12px 12px 14px; }
.platform-mark {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: grid; place-items: center; background: var(--ground);
}
.platform-mark .icon { width: 26px; height: 26px; }
.platform-head h3 { margin: 0; font-size: 18px; }
.platform-head p { margin: 2px 0 0; font-size: 13px; }
.platform-head .chip { margin-left: auto; }
.assets { margin: 0; padding: 0; list-style: none; }
.asset {
  position: relative; display: grid; align-items: center; gap: 4px 14px;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  min-height: 60px; padding: 8px 12px; border-radius: var(--radius-md);
  transition: background-color 80ms;
}
.asset:hover { background: var(--pane-hover); }
.asset-icons { display: flex; justify-content: center; gap: 6px; }
.asset-icons .icon { width: 20px; height: 20px; background: var(--ink-muted); }
.asset:hover .asset-icons .icon { background: var(--ink); }
.asset-name { display: block; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.asset-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.asset-name:focus-visible { outline: none; }
.asset-name:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 1px; }
.asset-hint { display: block; font-size: 13px; color: var(--ink-muted); }
.asset-meta { font: 12px var(--font-mono); color: var(--ink-muted); white-space: nowrap; }
.sha {
  position: relative; z-index: 1; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--pane); color: var(--ink-muted);
  font: 11px/16px var(--font-mono); padding: 3px 8px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-control); min-width: 68px;
}
.sha:hover { color: var(--ink); background: var(--pane-hover); }
.asset.suggested .asset-get { background: var(--accent); }
.asset.suggested .asset-get .icon { background: var(--on-accent); }
.asset-get {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--ground);
}
.asset-tail { display: flex; align-items: center; gap: 10px; }

.download-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.latest-notes, .verify { padding: 20px 24px; }
.latest-notes ul { margin: 10px 0 14px; padding-left: 20px; color: var(--ink-muted); font-size: 15px; }
.latest-notes li + li { margin-top: 8px; }
.verify summary { cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); }
.verify p { font-size: 15px; margin: 12px 0 8px; }
.verify pre {
  margin: 0 0 8px; padding: 10px 12px; overflow-x: auto;
  background: var(--pane-alt); border-radius: var(--radius-md);
  font: 12px/18px var(--font-mono); color: var(--ink);
}
.trust-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0 0; }
.trust-note .icon { background: var(--ink-muted); margin-top: 2px; }

/* Footer */
footer {
  margin-top: 96px; padding-top: 32px; padding-bottom: 44px;
  display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 32px;
}
footer strong { color: var(--ink); }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
/* The family signature: 16 px tall, in ink-faint. */
.signature {
  flex: none; width: 17.23px; height: 16px; margin-top: 4px; background: var(--ink-faint);
  -webkit-mask: url("assets/lama/lama-signature.svg?v=f42d5d84b9d9") center / contain no-repeat;
  mask: url("assets/lama/lama-signature.svg?v=f42d5d84b9d9") center / contain no-repeat;
}
footer p { margin: 4px 0 0; font-size: 14px; }
footer nav { display: flex; gap: 6px; align-items: center; }
footer nav a { color: var(--ink-muted); font-size: 14px; padding: 4px 8px; border-radius: var(--radius-sm); }
footer nav a:hover { color: var(--ink); background: var(--ground-hover); }

/* Legal and release pages: one reading island. */
main.legal { max-width: calc(820px + 2 * var(--gutter)); padding-top: 40px; padding-bottom: 40px; }
.legal > .island { padding: 40px 44px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 650; }
.legal h2 { font-size: 22px; margin-top: 36px; }

/* Release history: each release is a commit on one lane. */
.release-list { margin-top: 28px; }
.release-record {
  position: relative; margin-left: 28px; padding: 18px 22px;
  background: var(--pane-alt); box-shadow: none;
}
.release-record + .release-record { margin-top: 12px; }
.release-record::before {
  content: ""; position: absolute; left: -22px; top: 0; bottom: -12px;
  width: 2px; background: var(--lane-1); transform: translateX(-50%);
}
.release-record:first-child::before { top: 28px; }
.release-record:last-child::before { bottom: auto; height: 28px; }
.release-record:only-child::before { content: none; }
.release-record::after {
  content: ""; position: absolute; left: -22px; top: 22px; width: 14px; height: 14px; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid var(--lane-1); background: var(--pane);
}
.release-record h2 { font-size: 18px; margin: 0 0 2px; letter-spacing: -0.01em; }
.release-record > p { margin: 0; font: 12px var(--font-mono); }
.release-record ul { color: var(--ink-muted); font-size: 15px; padding-left: 20px; margin: 12px 0 0; }
.release-record li + li { margin-top: 6px; }
.release-record .formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.release-record .formats a {
  font: 12px var(--font-mono); text-decoration: none; color: var(--ink-muted);
  padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
}
.release-record .formats a:hover { color: var(--ink); background: var(--pane-hover); }

@media (max-width: 880px) {
  .site-header { grid-template-columns: auto 1fr; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 40px 32px 152px; min-height: 0; gap: 8px; }
  .hero-scene { order: -1; justify-self: center; width: min(100%, 440px); margin-right: -8%; }
  .stage-veil {
    background:
      linear-gradient(to bottom, transparent 70%, var(--brand)),
      linear-gradient(to bottom, transparent 20%, color-mix(in srgb, var(--brand) 88%, transparent) 48%);
  }
  .compass { justify-self: end; }
  .header-release { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .story, .download-grid, .download-extra { grid-template-columns: minmax(0, 1fr); }
  .story.flip > :first-child { order: 0; }
  .platform[data-platform="linux"] { grid-column: auto; grid-row: auto; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > p { grid-column: 1 / -1; }
}
@media(max-width:620px) {
  :root { --gutter: 16px; --header: 56px; }
  .brand { font-size: 0; gap: 0; }
  .compass a { padding: 5px 9px; font-size: 13px; }
  .hero { padding-inline: 8px; }
  .stage { padding: 28px 20px 112px; border-radius: var(--radius-xl); }
  .hero .intro { font-size: 17px; }
  .shot { margin-top: -88px; }
  .download-stage { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 20px; }
  .download-lama { width: 88px; height: 88px; }
  .feature-grid, footer { grid-template-columns: 1fr; }
  .section { padding-top: 112px; }
  .section::before { height: 64px; }
  .section::after { top: 64px; }
  .story > .island:not(.demo) { padding: 24px 20px; }
  .window { border-radius: var(--radius-lg); }
  .window-bar > span { width: 9px; height: 9px; }
  .asset { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .asset-meta { grid-column: 2; grid-row: 2; }
  .asset-tail { grid-row: 1 / span 2; grid-column: 3; }
  .graph-demo .hash { display: none; }
  .legal > .island { padding: 28px 20px; }
  footer { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
  .hero-scene .runner { display: none; }
}
