/* Gittan: the site built from the icon. Its navy tile is the dark theme's ground and the light theme's ink,
   its green row is the one accent and its red row the other half of a diff, drawn as the two pills before each
   heading. Pill shapes as the icon's rows; Varela Round for headings, Afacad for reading.
   The diff colours otherwise live only inside the interface fragments (data-ui) and the screenshots. */
:root {
  --bg: #f4f6f9;
  --surface: #e9edf5;
  --ink: #161c29;
  --muted: #4f5b72;
  --faint: #7b869c;
  --accent: #127a3a;          /* text, links and the main button on light */
  --accent-ink: #ffffff;
  --accent-bright: #2be070;   /* bars and marks, never text */
  --accent-tint: #d5f7e1;     /* the wordmark's tile */
  --accent-inv: #2be070;      /* the other theme's green, for what sits on the ink */
  --accent-inv-ink: #0b1a12;
  --lead-bg: var(--ink);       /* the lead card: the ink on light, the dark wordmark's green tile on dark */
  --lead-ink: var(--bg);
  --lead-hot: #2be070;
  --red: #c8323f;
  --red-bright: #ff4b58;
  --red-tint: #fde3e5;
  --link: var(--accent);
  --ui-bg: #ffffff;
  --code-bg: #161c29;
  --code-ink: #e9edf5;
  --code-dim: #9aa6bc;
  --kbd: rgba(22, 28, 41, .08);
  --line: #d7dde8;
  --line-strong: #b9c2d2;
  /* names the interface fragments use */
  --fg: var(--ink); --fg-muted: var(--muted); --fg-faint: var(--faint);
  --bg-elev: #ffffff; --bg-sunk: #eef1f6;
  --add-bg: var(--accent-tint); --add-fg: var(--accent); --add-bar: #1fb45a;
  --del-bg: var(--red-tint); --del-fg: var(--red); --del-bar: var(--red-bright);
  --h1: #d8e6fb; --h2: #fde4c8; --h3: #e8dcfb; --h4: #fbd9e7;

  --display: "Varela Round", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Afacad", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --step-small: 0.8125rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.198rem, 0.719rem + 0.59vw, 1.331rem);
  --step-sub: clamp(1.42rem, 0.852rem + 0.89vw, 1.775rem);
  --step-head: clamp(1.775rem, 1.065rem + 1.32vw, 2.369rem);
  --step-display: clamp(2.5rem, 1.2rem + 4.2vw, 5rem);

  --margin: clamp(1.25rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section-gap: clamp(5rem, 4rem + 5vw, 8.5rem);
  --bar: 56px;
  --radius: 10px;
  --card-radius: 20px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(22, 28, 41, .06), 0 24px 48px -24px rgba(22, 28, 41, .28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-open: cubic-bezier(0.6, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a26; --surface: #1b2231; --ink: #e9edf5; --muted: #9aa6bc; --faint: #6f7b92;
    --accent: #2be070; --accent-ink: #0b1a12; --accent-tint: #1f3a33; --accent-inv: #127a3a; --accent-inv-ink: #ffffff;
    --lead-bg: #1f3a33; --lead-ink: #e9edf5; --lead-hot: #2be070;
    --red: #ff6b75; --red-tint: #3a2530;
    --ui-bg: #1b2231; --code-bg: #0f141d; --kbd: rgba(233, 237, 245, .1);
    --line: #2b3446; --line-strong: #3a465c;
    --bg-elev: #232c3d; --bg-sunk: #0f141d;
    --add-bar: #2be070; --del-bar: #ff4b58;
    --h1: #1d3550; --h2: #4a3317; --h3: #33244f; --h4: #4a1f33;
    --shadow: 0 1px 0 rgba(233, 237, 245, .06), 0 28px 56px -24px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #141a26; --surface: #1b2231; --ink: #e9edf5; --muted: #9aa6bc; --faint: #6f7b92;
  --accent: #2be070; --accent-ink: #0b1a12; --accent-tint: #1f3a33; --accent-inv: #127a3a; --accent-inv-ink: #ffffff;
    --lead-bg: #1f3a33; --lead-ink: #e9edf5; --lead-hot: #2be070;
  --red: #ff6b75; --red-tint: #3a2530;
  --ui-bg: #1b2231; --code-bg: #0f141d; --kbd: rgba(233, 237, 245, .1);
  --line: #2b3446; --line-strong: #3a465c;
  --bg-elev: #232c3d; --bg-sunk: #0f141d;
  --add-bar: #2be070; --del-bar: #ff4b58;
  --h1: #1d3550; --h2: #4a3317; --h3: #33244f; --h4: #4a1f33;
  --shadow: 0 1px 0 rgba(233, 237, 245, .06), 0 28px 56px -24px rgba(0, 0, 0, .6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: color .18s, text-decoration-color .18s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 600; }
img { max-width: 100%; }
code, pre { font-family: var(--mono); }
code { font-size: .86em; white-space: nowrap; background: var(--kbd); padding: 1px 6px; border-radius: 5px; }
kbd { font: 600 .875em/1 var(--text); background: var(--kbd); color: var(--ink); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.023em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-head); line-height: 1.05; }
h3 { font-family: var(--text); font-weight: 600; margin: 0; }
p { margin: 0; }
.wrap { max-width: calc(1360px + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
section { padding: calc(var(--section-gap) / 2) 0; }
.lead { font-size: var(--step-lead); line-height: 1.45; max-width: 58ch; text-wrap: pretty; color: var(--muted); }
.lead a { color: var(--ink); }
.sechead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sechead .eyebrow { grid-column: 1 / -1; margin-bottom: 22px; }
.sechead h2 { grid-column: 1 / span 6; }
.sechead .lead { grid-column: 8 / -1; }
@media (max-width: 900px) { .sechead { display: block; } .sechead .eyebrow { margin-bottom: 16px; } .sechead .lead { margin-top: 16px; } }

/* the eyebrow: the icon's two rows, a red and a green, then the section's name */
.eyebrow { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 var(--step-small)/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { display: inline-block; height: 6px; border-radius: 3px; }
.eyebrow i:first-child { width: 12px; background: var(--red-bright); }
.eyebrow i:nth-child(2) { width: 22px; background: var(--accent-bright); margin-right: 8px; }

/* ---------- the one button: a pill, as the icon's rows ---------- */
.tag {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 52px; padding: 0 26px; border: 0; cursor: pointer; text-decoration: none; border-radius: var(--pill);
  font: 600 1rem/1 var(--text); background: var(--ink); color: var(--bg);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.tag svg { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease-out); }
.tag:hover { background: var(--accent); color: var(--accent-ink); }
.tag:hover svg { transform: translateX(3px); }
.tag:active { transform: translateY(1px); }
.tag.quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tag.quiet:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.tag.small { height: 40px; padding: 0 18px; font-size: .9375rem; }
/* the main calls to action are green, and turn to ink */
.hero .tag, .bar .bar-cta, .dl .card.mine .tag { background: var(--accent); color: var(--accent-ink); }
.hero .tag:hover, .bar .bar-cta:hover, .dl .card.mine .tag:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 600px) { .tag:not(.small) { width: 100%; } }

/* ---------- the bar: a little glass, the section in view underlined in green ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.bar .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bar .brand { justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.bar .brand img { width: 26px; height: 26px; border-radius: 7px; }
.bar .brand .name img { display: block; width: auto; height: 20px; border-radius: 0; }
.bar .sections { display: flex; align-items: center; gap: 2px; }
.bar .sections a { position: relative; padding: 8px 12px; color: var(--muted); text-decoration: none; font-size: 1.0625rem; border-radius: var(--pill); transition: color .18s, background-color .18s; }
.bar .sections a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.bar .sections > a::after, .has-sub > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s var(--ease-out); }
.bar .sections > a[aria-current], .has-sub > a[aria-current] { color: var(--ink); }
.bar .sections > a[aria-current]::after, .has-sub > a[aria-current]::after { transform: scaleX(1); }
/* All features opens a short list of the features page's other sections: on hover, focus or the arrow. */
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: 4px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.has-sub > a::after { right: 4px; }
.sub-toggle { display: grid; place-items: center; width: 28px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: var(--pill); transition: color .18s; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.has-sub:hover .sub-toggle, .sub-toggle:focus-visible, .has-sub.open .sub-toggle { color: var(--ink); }
.has-sub:hover .sub-toggle svg, .has-sub:focus-within .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 8px; display: grid;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s; }
.js .has-sub.shut .sub { opacity: 0; visibility: hidden; }
.bar .sub a { padding: 9px 12px; color: var(--ink); white-space: nowrap; border-radius: 8px; transition: background-color .15s, color .15s; }
.bar .sub a:hover { background: var(--surface); color: var(--ink); }
.bar .sub a[aria-current] { font-weight: 600; }
.bar .acts { justify-self: end; display: flex; align-items: center; gap: 6px; }
.plain { font: 600 1rem/1 var(--text); color: var(--ink); background: transparent; border: 0; padding: 0 12px; height: 40px; cursor: pointer; border-radius: var(--pill); transition: color .18s, background-color .18s; }
.plain:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn { display: none; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; border-radius: var(--pill); transition: color .18s, background-color .18s; }
.js .icon-btn { display: inline-grid; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.js .bar:not(.cta-on) .bar-cta { display: none; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .bar .wrap { grid-template-columns: 1fr auto; }
  .bar .sections { display: none; }
  .js .menu-btn { display: inline-block; }
}

/* the menu: the section names full-screen on the ink */
.menu-panel { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--bg); overflow-y: auto; }
.menu-panel[hidden] { display: none; }
.menu-panel .wrap { min-height: 100%; display: flex; flex-direction: column; padding-top: 14px; padding-bottom: 40px; }
.menu-panel .top { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.menu-panel .top span { font: 400 var(--step-lead)/1 var(--display); }
.menu-panel .plain { color: var(--bg); }
.menu-panel .plain:hover { color: var(--accent-inv); background: transparent; }
.menu-panel nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin: clamp(40px, 8vh, 96px) 0 48px; }
.menu-panel nav a { font: 400 var(--step-head)/1.35 var(--display); letter-spacing: -.02em; color: var(--bg); text-decoration: none; justify-self: start; transition: color .18s; }
.menu-panel nav a:hover { color: var(--accent-inv); }
.menu-panel .tag { align-self: flex-start; background: var(--accent-inv); color: var(--accent-inv-ink); }
.menu-panel .tag:hover { background: var(--bg); color: var(--ink); }
.menu-panel .contact { margin-top: 28px; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.menu-panel .contact a { color: var(--bg); }
@media (max-width: 600px) { .menu-panel nav { grid-template-columns: 1fr; } }

/* ---------- hero: the words on the left, the whole window on the right running off the edge ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--bar) + clamp(40px, 8vh, 96px)) 0 clamp(40px, 6vw, 88px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -10vw; top: -10vw; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-bright) 16%, transparent), color-mix(in srgb, var(--accent-bright) 5%, transparent) 55%, transparent 100%);
}
.hero .grid { align-items: center; }
.hero-words { grid-column: 1 / span 5; padding-right: var(--gutter); }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { font-size: var(--step-display); line-height: .98; }
.hero h1 span { display: block; white-space: nowrap; }
/* the headline as a diff: the line that was, struck through on red, and the line that is, on green */
.diffhead { display: grid; gap: 8px; }
.diffhead .del, .diffhead .add { position: relative; margin: 0; border-left: 4px solid; border-radius: 0 10px 10px 0; }
.diffhead .del { font: 400 var(--step-sub)/1.2 var(--display); letter-spacing: -.02em; color: var(--muted); padding: .22em .6em .22em 1.5em; background: var(--red-tint); border-left-color: var(--red-bright); justify-self: start; }
.diffhead .del::after { content: ""; position: absolute; left: 1.5em; right: .6em; top: calc(50% - 1px); height: 2px; border-radius: 1px; background: var(--red); transform-origin: 0 50%; }
.diffhead .del::before { content: "\2212"; position: absolute; left: .55em; top: .22em; color: var(--red); font-weight: 600; text-decoration: none; }
.diffhead .add { padding: .14em .3em .16em .62em; background: var(--add-bg); border-left-color: var(--accent-bright); }
.diffhead .add::before { content: "+"; position: absolute; left: .16em; top: .12em; font-size: .46em; line-height: 1; color: var(--accent); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .js .diffhead .del { animation: e-del .5s ease .1s backwards; }
  .js .diffhead .del::after { transform: scaleX(0); animation: e-strike .55s var(--ease-out) .7s forwards; }
  .js .diffhead .add { animation: e-add .8s var(--ease-out) 1.1s backwards; }
}
@keyframes e-del { from { opacity: 0; } }
@keyframes e-strike { to { transform: scaleX(1); } }
@keyframes e-add { from { opacity: 0; transform: translateY(10px); } }
.hero .tag-line { font-size: var(--step-lead); line-height: 1.45; max-width: 38ch; margin: 28px 0 36px; color: var(--muted); }
.hero .tag { justify-content: flex-start; }
.hero .tag > svg:last-child { margin-left: auto; }
.hero .tag .os-glyph { width: 17px; height: 17px; fill: currentColor; margin-right: -4px; }
.hero .sub { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.hero .sub a { color: var(--ink); }
.hero-facts { margin: 48px 0 0; padding: 28px 0 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.hero-facts b { display: block; font: 400 1.125rem/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); margin-bottom: 4px; }
.hero-facts a { color: var(--ink); }
.hero-shot { grid-column: 6 / -1; margin: 0; margin-right: calc(-1 * (var(--margin) + max(0px, (100vw - 1360px - 2 * var(--margin)) / 2))); filter: drop-shadow(0 30px 50px color-mix(in srgb, #000 26%, transparent)); }
.hero-shot img { display: block; width: 112%; max-width: none; height: auto; }
@media (max-width: 1100px) {
  .hero-words { grid-column: 1 / span 6; }
  .hero-shot { grid-column: 7 / -1; }
  .hero-shot img { width: 128%; }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--bar) + 32px); }
  .hero .grid { display: flex; flex-direction: column; }
  .hero-words { padding: 0; }
  .hero .eyebrow { margin-bottom: 20px; }
  .hero .tag-line { margin: 20px 0 26px; }
  .hero-facts { order: 3; margin: 32px 0 0; padding-top: 24px; grid-template-columns: 1fr; gap: 12px; }
  .hero-facts b { display: inline; margin-right: 6px; font-size: 1.0625rem; }
  .hero-shot { order: 2; width: 100%; margin: 36px 0 0; align-self: stretch; }
  .hero-shot img { width: 124%; }
}

/* ---------- the three proofs: the first wide and on the ink, the other two side by side under it ---------- */
.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.scard { min-width: 0; display: flex; flex-direction: column; border-radius: var(--card-radius); overflow: hidden; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.scard .words { padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.scard h3 { font: 400 var(--step-sub)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.scard h3::before { content: ""; display: block; width: 28px; height: 6px; border-radius: 3px; margin-bottom: 16px; background: var(--accent-bright); }
.scard p { color: var(--muted); max-width: 52ch; }
.scard .more { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: none; color: var(--ink); }
.scard .more:hover { color: var(--accent); }
.scard .pic { order: -1; display: flex; align-items: center; justify-content: center; height: clamp(220px, 23vw, 320px); padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0; }
.scard .pic .uipills span { background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line); }
.scard .pic .menu { box-shadow: 0 0 0 1px var(--line), 0 14px 34px -14px rgba(0, 0, 0, .35); }
.scard .pic .reviewed .mini { box-shadow: 0 0 0 1px var(--line), 0 14px 34px -14px rgba(0, 0, 0, .35); }
.scard .pic img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
/* the first: the claim no client has, wide, words beside the dialog, on the ink */
.scard:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--lead-bg); color: var(--lead-ink); box-shadow: var(--shadow); }
.scard:first-child .words { grid-column: 1 / span 5; padding: clamp(32px, 4vw, 56px); gap: 22px; }
.scard:first-child h3 { font-size: var(--step-head); line-height: 1.08; }
.scard:first-child p { font-size: var(--step-lead); line-height: 1.45; max-width: 40ch; color: inherit; }
.scard:first-child .more { color: var(--lead-ink); padding-top: 16px; }
.scard:first-child .more:hover { color: var(--lead-hot); }
.scard:first-child .pic { order: 0; grid-column: 6 / -1; min-height: 0; height: auto; padding: clamp(24px, 3vw, 44px); box-shadow: none;
  background: radial-gradient(closest-side at 55% 50%, color-mix(in srgb, var(--lead-hot) 30%, transparent), color-mix(in srgb, var(--lead-hot) 9%, transparent) 60%, transparent); }
.scard:first-child .pic img { max-height: 460px; }
/* the lead card's illustration: a changed block drops into the commit of the branch that wrote its lines */
.absorb { width: min(100%, 480px); display: grid; gap: 16px; }
.absorb > *, .absorb .mini { min-width: 0; }
.absorb .change { position: relative; z-index: 1; padding: 10px 10px 4px; background: var(--bg-elev); border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 14px 34px -14px rgba(0, 0, 0, .45); transform-origin: 50% 0; }
.absorb .change .uipills { margin-bottom: 6px; }
.absorb .change .file { padding: 0 12px 2px; font: 600 11.5px/1.6 var(--text); color: var(--fg-faint); }
.absorb .change .mini { padding: 2px 0 0; }
.absorb .commits { padding: 6px; background: var(--bg-elev); border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 14px 34px -14px rgba(0, 0, 0, .45); font: 12px/1.9 var(--mono); color: var(--fg-muted); }
.absorb .commits div { display: flex; align-items: center; gap: 12px; padding: 2px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.absorb .commits b { flex: none; font-weight: 400; color: var(--fg-faint); }
.absorb .commits span { color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.absorb .commits i { margin-left: auto; flex: none; font: 600 11px/1.9 var(--text); font-style: normal; color: var(--add-fg); opacity: 0; }
.absorb .commits .dim span { color: var(--fg-faint); font-size: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .absorb .change { animation: absorb-go 7s var(--ease-open) infinite; }
  .absorb .hit { animation: absorb-land 7s ease infinite; }
  .absorb .hit i { animation: absorb-badge 7s ease infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .absorb .hit { background: var(--add-bg); }
  .absorb .hit i { opacity: 1; }
}
@keyframes absorb-go { 0%, 22% { transform: none; opacity: 1; } 42%, 78% { transform: translateY(calc(100% + 34px)) scale(.45); opacity: 0; } 86%, 100% { transform: none; opacity: 1; } }
@keyframes absorb-land { 0%, 38% { background: transparent; } 46%, 80% { background: var(--add-bg); } 90%, 100% { background: transparent; } }
@keyframes absorb-badge { 0%, 40% { opacity: 0; } 48%, 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
/* the half cards' live illustrations: a menu with Undo chosen, and a block that settles into plain code */
.scard .pic .menu { width: min(100%, 300px); }
.scard .pic .reviewed { width: min(100%, 420px); }
.reviewed .mini { background: var(--bg-elev); border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.reviewed .settle { background: var(--add-bg); color: var(--add-fg); border-left-color: var(--add-bar); animation: settle 5s ease-in-out infinite; }
.reviewed .settle:nth-child(3) { animation-delay: .15s; }
.reviewed .settle:nth-child(4) { animation-delay: .3s; }
@keyframes settle { 0%, 30% { background: var(--add-bg); color: var(--add-fg); border-left-color: var(--add-bar); } 50%, 88% { background: transparent; color: var(--fg-muted); border-left-color: transparent; } 100% { background: var(--add-bg); color: var(--add-fg); border-left-color: var(--add-bar); } }
@media (max-width: 900px) {
  .stack { grid-template-columns: 1fr; }
  .scard:first-child { display: flex; flex-direction: column; }
  .scard:first-child .pic { order: -1; }
  .scard:first-child .pic { height: auto; }
  .scard:first-child .pic img { max-height: none; }
}

/* ---------- the other nine, a list of rows ---------- */
.flist { list-style: none; margin: clamp(64px, 8vw, 112px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.flist li { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.flist h3 { font: 400 var(--step-sub)/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.flist p { max-width: 40ch; color: var(--muted); }
.all-link { margin-top: 56px; }
@media (max-width: 900px) { .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flist { grid-template-columns: 1fr; row-gap: 28px; } }

/* ---------- tour: the list of views beside the screenshot ---------- */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.tour .tabs { display: none; position: sticky; top: calc(var(--bar) + 24px); margin: 0; }
.tour .tabs [role="tablist"] { display: flex; flex-direction: column; gap: 2px; }
.tour .tabs [role="tab"] { font: inherit; text-align: left; padding: 8px 14px; cursor: pointer; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); width: 100%; transition: color .18s, background-color .18s; }
.tour .tabs [role="tab"]:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tour .tabs [role="tab"] b { display: block; font-weight: 600; font-size: 1.0625rem; color: inherit; }
.tour .tabs [role="tab"] .desc { display: none; margin-top: 8px; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.tour .tabs [role="tab"] .desc b { display: inline; font-size: inherit; color: var(--ink); }
.tour .tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--accent-tint); padding: 16px; box-shadow: inset 3px 0 0 var(--accent-bright); }
.tour .tabs [role="tab"][aria-selected="true"] .desc { display: block; }
.tour .stage { min-width: 0; }
.tour figure { margin: 0 0 56px; }
.tour figcaption { margin: 0 0 18px; max-width: 70ch; color: var(--muted); }
.tour figcaption b { color: var(--ink); }
.tour .frame { filter: drop-shadow(0 26px 40px color-mix(in srgb, #000 22%, transparent)); }
.tour .frame img { display: block; width: 100%; height: auto; }
.js .tour .tabs { display: block; }
.js .tour.folded [role="tab"][data-more] { display: none; }
.tabs-more { display: none; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border: 0; border-radius: var(--radius); background: transparent; font: 600 .9375rem/1 var(--text); color: var(--accent); cursor: pointer; transition: background-color .18s; }
.js .tabs-more { display: inline-flex; }
.tabs-more:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tabs-more svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.tabs-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.tour.folded .when-open, .tour:not(.folded) .when-folded { display: none; }
.js .tour figure { display: none; margin-bottom: 0; }
.js .tour figure.on { display: block; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 901px) { .js .tour figcaption { display: none; } }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; gap: 20px; }
  .tour .tabs { position: static; }
  .tour .tabs [role="tablist"] { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .tour .tabs [role="tab"], .tour .tabs [role="tab"][aria-selected="true"] { width: auto; padding: 7px 14px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); }
  .tour .tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  .tour .tabs [role="tab"] .desc { display: none !important; }
}

/* ---------- then commit it: three steps in a row, each with its window ---------- */
.flow { position: relative; list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.flow::before { content: ""; position: absolute; left: 30px; right: 30px; top: 29px; height: 2px; background: var(--line-strong); }
.flow li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flow .shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; }
.flow .shot img { display: block; width: calc(100% * var(--zoom, 1)); max-width: none; height: auto; transform: translate(var(--x, 0), var(--y, 0)); transform-origin: 0 0; clip-path: none; }
.flow .shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.flow h3 { font: 400 var(--step-sub)/1.15 var(--display); letter-spacing: -.02em; }
.flow h3::before { content: counter(step); position: absolute; left: 14px; top: 14px; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 400 1rem/1 var(--display); box-shadow: 0 0 0 3px var(--bg), 0 4px 12px rgba(0, 0, 0, .25); }
.flow p { color: var(--muted); max-width: 46ch; }
.flow a { font-weight: 600; text-decoration: none; color: var(--ink); }
.flow a:hover { color: var(--accent); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 40px; } .flow::before { display: none; } }

/* ---------- download: three platforms on the ground ---------- */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.dl .card { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border-radius: var(--card-radius); box-shadow: inset 0 0 0 1px var(--line); }
.dl .card.mine { background: var(--accent-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.dl .os { display: flex; align-items: center; gap: 12px; font: 400 var(--step-sub)/1.1 var(--display); letter-spacing: -.02em; }
.dl .os svg { width: 24px; height: 24px; fill: currentColor; }
.dl .file { margin: 8px 0 24px; color: var(--muted); }
.dl .tag { margin-top: auto; align-self: flex-start; }
.dl .card .tag { background: var(--ink); color: var(--bg); }
.dl .card .tag:hover { background: var(--accent); color: var(--accent-ink); }
.dl .more { margin-top: 14px; min-height: 3em; color: var(--muted); }
.dl .yours { display: none; margin-left: 4px; padding: 4px 9px; border-radius: var(--pill); background: var(--accent); font: 600 var(--step-small)/1 var(--text); letter-spacing: 0; color: var(--accent-ink); }
.dl .card.mine .yours { display: inline; }
.install { margin-top: clamp(48px, 6vw, 80px); max-width: 980px; }
.install summary { cursor: pointer; font: 400 var(--step-sub)/1.2 var(--display); letter-spacing: -.02em; list-style: none; display: inline-flex; align-items: center; gap: 12px; transition: color .18s; }
.install summary::-webkit-details-marker { display: none; }
.install summary::after { content: "+"; font-family: var(--text); font-size: 1.4em; line-height: 1; color: var(--accent); transition: transform .25s var(--ease-out); }
.install[open] summary::after { transform: rotate(45deg); }
.install summary:hover { color: var(--accent); }
.install ul { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 22px; color: var(--muted); }
.install li b { display: block; margin-bottom: 4px; color: var(--ink); }
/* Haiku and FreeBSD: a low row under the three cards, a line each, as their builds may miss a release. */
.dl.also { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--gutter); margin-top: var(--gutter); }
.dl.also .card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 18px 28px; }
.dl.also .os { gap: 10px; font-size: 1.25rem; }
.dl.also .os svg { width: 20px; height: 20px; }
.dl.also .file { margin: 0; }
.dl.also .links { margin-left: auto; color: var(--muted); }
@media (max-width: 900px) { .dl, .dl.also, .install ul { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dl .card { padding: 22px; } .dl.also .card { padding: 16px 22px; } }

/* ---------- footer: a picture of the product beside the closing line and the links ---------- */
.foot { padding: calc(var(--section-gap) / 2) 0 0; }
.foot .grid { align-items: stretch; }
.foot-pic { grid-column: 1 / span 6; min-height: 60svh; margin: 0; overflow: clip; container-type: size; border-radius: var(--card-radius); filter: drop-shadow(0 20px 30px color-mix(in srgb, #000 18%, transparent)); }
.foot-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.foot-side { grid-column: 7 / -1; background: var(--lead-bg); color: var(--lead-ink); border-radius: var(--card-radius); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px; }
.foot-side .tag { background: var(--lead-hot); color: #0b1a12; }
.foot-side .tag:hover { background: var(--lead-ink); color: var(--lead-bg); }
.foot-logo { display: block; width: min(100%, 300px); height: auto; }
.foot-side h2 { font-size: var(--step-sub); line-height: 1.15; max-width: 24ch; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin: 0 0 6px; }
.foot-cols a { color: var(--lead-ink); text-decoration: none; }
.foot-cols a:hover { color: var(--lead-hot); text-decoration: underline; }
.foot-legal { margin-top: auto; font-size: var(--step-small); color: color-mix(in srgb, var(--lead-ink) 70%, transparent); }
.foot-legal a { color: inherit; }
.foot-end { height: var(--margin); }
@media (max-width: 900px) {
  .foot .grid { display: flex; flex-direction: column; gap: 16px; }
  .foot-pic { min-height: 0; height: 320px; }
}

/* ---------- the features page ---------- */
.pagehead { padding: calc(var(--bar) + clamp(48px, 10vh, 112px)) 0 clamp(40px, 5vw, 72px); }
.pagehead h1 { font-size: var(--step-display); line-height: .98; max-width: 12ch; }
.pagehead .grid { align-items: end; }
.pagehead .eyebrow { grid-column: 1 / -1; margin-bottom: 28px; }
.pagehead .h { grid-column: 1 / span 7; }
.pagehead .lead { grid-column: 8 / -1; }
.pagehead nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagehead nav a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .18s, color .18s; }
.pagehead nav a:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) { .pagehead .grid { display: block; } .pagehead .lead { margin-top: 24px; } .pagehead nav { margin-top: 32px; } }

.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4.5rem); row-gap: clamp(56px, 7vw, 96px); container-type: inline-size; }
.story { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.story.wide { grid-column: 1 / -1; }
.story > div:not(.art) { min-width: 0; }
.story > .art { order: -1; min-width: 0; margin: 0; border-radius: 16px; overflow: hidden; }
.story > .art:not(.pic) { background: var(--ui-bg); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: center; min-height: 190px; }
.story > .art.pic { display: flex; align-items: center; justify-content: center; background: var(--ui-bg); box-shadow: inset 0 0 0 1px var(--line); }
.story > .art.oswins { overflow: visible; box-shadow: none; background: transparent; }
.story .art.pic picture, .story .art.pic img { display: block; width: 100%; height: auto; }
@container (min-width: 760px) {
  .story.wide { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .story.wide > .art { grid-column: 1; grid-row: 1; }
  .story.wide > div:not(.art) { grid-column: 2; grid-row: 1; }
}
.story h3 { font: 400 var(--step-sub)/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 10px; }
.story p { max-width: 66ch; color: var(--muted); }
.story p + p { margin-top: 12px; }
.story p b { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; margin-top: clamp(56px, 7vw, 96px); }
.facts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts > div { min-width: 0; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.facts h3 { font-size: var(--step-lead); line-height: 1.25; margin-bottom: 6px; }
.facts p { color: var(--muted); }
.facts p b { color: var(--ink); }
.facts .lede { margin-bottom: 12px; }
.facts p a[data-tab], .facts p a[href^="#"] { white-space: nowrap; }
.smalls { margin: 48px 0 0; max-width: 72ch; text-wrap: pretty; color: var(--muted); }
.smalls b { color: var(--ink); }
@media (max-width: 1100px) { .facts.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .facts, .facts.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stories, .facts, .facts.c4 { grid-template-columns: 1fr; } .facts { row-gap: 28px; } .story > .art:not(.pic) { padding: 20px; } }

/* build from source */
.codeblock { position: relative; margin: 0 0 12px; min-width: 0; }
pre.sh { background: var(--code-bg); color: var(--code-ink); padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.65; margin: 0; border-radius: 12px; }
:root[data-theme="dark"] pre.sh { box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) pre.sh { box-shadow: inset 0 0 0 1px var(--line); } }
pre.sh .c { color: var(--code-dim); }
.copy { position: absolute; top: 8px; right: 8px; display: none; align-items: center; gap: 6px; font: 600 13px/1 var(--text); padding: 7px 10px; cursor: pointer; background: #2b3446; color: #e9edf5; border: 0; border-radius: 7px; opacity: 0; transition: opacity .15s, color .15s, background-color .15s; }
.js .copy { display: inline-flex; }
.codeblock:hover .copy, .copy:focus-visible, .copy.done { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.copy:hover { background: #3a465c; color: #fff; }
.copy.done { color: #2be070; }
.copy svg { width: 14px; height: 14px; }
.build-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.steps { grid-column: 1 / span 7; list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 40px; min-width: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 56px; min-width: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font: 400 1.125rem/1 var(--display); }
.steps h3 { font-size: var(--step-lead); margin-bottom: 8px; line-height: 36px; }
.steps p { margin: 0 0 12px; max-width: 68ch; color: var(--muted); }
.notes { grid-column: 9 / -1; margin: 0; padding: 0 0 0 20px; align-self: start; color: var(--muted); }
.notes li { margin: 0 0 10px; }
@media (max-width: 900px) { .build-grid { display: block; } .notes { margin-top: 48px; } .steps > li { padding-left: 48px; } }

/* ---------- interface fragments (data-ui): the product's own look, at its own sizes ---------- */
.mini { font: 12px/1.75 var(--mono); color: var(--fg-muted); padding: 6px 0; overflow: hidden; }
.mini div { padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid transparent; }
.mini .a { background: var(--add-bg); color: var(--add-fg); border-left-color: var(--add-bar); }
.mini .d { background: var(--del-bg); color: var(--del-fg); border-left-color: var(--del-bar); }
.mini .live { animation: live 4s ease-in-out infinite; }
@keyframes live { 0%, 15% { background: transparent; color: var(--fg-muted); border-left-color: transparent; } 30%, 85% { background: var(--add-bg); color: var(--add-fg); border-left-color: var(--add-bar); } 100% { background: transparent; color: var(--fg-muted); border-left-color: transparent; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--add-fg); margin-bottom: 8px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--add-bar); animation: ping 2s infinite; }
@keyframes ping { 50% { opacity: .35; } }
.mini.hist div { border-left-width: 4px; }
.mini.hist .c1 { border-left-color: #4f8fe0; background: var(--h1); color: var(--fg); }
.mini.hist .c2 { border-left-color: #e0913a; background: var(--h2); color: var(--fg); }
.mini.hist .c3 { border-left-color: #8b5cf6; background: var(--h3); color: var(--fg); }
.mini.hist .c4 { border-left-color: #db4f8a; background: var(--h4); color: var(--fg); }
.mini.hist .old { opacity: .62; font-style: italic; padding-left: 24px; }
.mini.blame { display: grid; grid-template-columns: auto 1fr; padding: 0; }
.mini.blame div { border-left: 0; padding: 2px 12px; }
.mini.blame .who { color: var(--fg-faint); background: var(--bg-sunk); font-size: 11.5px; }
.mini.blame .who.me { color: var(--add-fg); }
.mini.blame .who.hot, .mini.blame .code.hot { background: color-mix(in srgb, var(--accent) 14%, var(--ui-bg)); }
.big { font: 400 var(--step-display)/1 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
.big i { font-style: normal; }
.badges { display: flex; gap: 18px; margin: 4px 0 14px; }
.badges span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.badges i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.badges .part { border: 3px solid var(--add-bar); }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pics div { aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-radius: 8px; }
.pics div::after { content: attr(data-l); position: absolute; left: 8px; bottom: 6px; font-size: 12px; font-weight: 600; color: #fff; }
.pics .o { background: radial-gradient(circle at 70% 30%, #ffd27a 0 12%, transparent 13%), linear-gradient(#7cc4f5 0 58%, #4d9a5a 58%); }
.pics .n { background: radial-gradient(circle at 30% 26%, #ffe8a8 0 12%, transparent 13%), linear-gradient(#f39c6b 0 58%, #3f7f4e 58%); }
.graph svg { width: 100%; height: auto; display: block; }
.mini.tree div { display: flex; align-items: center; gap: 8px; }
.mini.tree .n { margin-left: auto; color: var(--fg-faint); }
.mini.tree .add { color: var(--add-fg); }
.mini.tree .del { color: var(--del-fg); }
.cbx { flex: none; width: 13px; height: 13px; border-radius: 3.5px; border: 1.5px solid var(--line-strong); background: var(--ui-bg); position: relative; }
.cbx.on, .cbx.mix { background: var(--accent); border-color: var(--accent); }
.cbx.on::after { content: ""; position: absolute; left: 3.2px; top: .6px; width: 3px; height: 6.5px; border: solid var(--accent-ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.cbx.mix::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.2px; height: 1.6px; background: var(--accent-ink); }
.commitbox { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.commitbox .msg { font-size: 13px; padding: 8px 10px; background: var(--bg-sunk); color: var(--fg); border-radius: 6px; }
.commitbox .msg span { display: inline-block; width: 1px; height: 1.05em; vertical-align: -2px; background: var(--fg); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.commitbox .go { display: grid; place-items: center; padding: 0 14px; font-size: 13px; font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 6px; }
.commitbox .amend { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.mini.settings div { display: flex; align-items: center; gap: 8px; }
.mini.settings .n { margin-left: auto; color: var(--fg-faint); }
.rdo { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--ui-bg); position: relative; }
.rdo.on { border-color: var(--accent); }
.rdo.on::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--accent); }
.aicard { margin-top: 10px; font-size: 13px; padding: 8px 12px; border-left: 3px solid #8b5cf6; background: var(--bg-sunk); color: var(--fg-muted); border-radius: 0 6px 6px 0; }
.aicard b { color: var(--fg); }
.aicard .who { color: #8b5cf6; font-weight: 600; margin-right: 6px; }
.aicard.ext { border-left-color: var(--accent); }
.aicard.ext .who { color: var(--link); }
.mini.code div { white-space: pre; color: var(--fg); }
.mini.code .c { color: var(--fg-faint); }
.uipills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.uipills span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-sunk); color: var(--fg-muted); }
.uipills .hot { color: var(--link); }
.uipills .nav { margin-left: auto; background: transparent; color: var(--fg-faint); }
.mini.cf div { border-left-width: 4px; }
.mini.cf .mk { color: #8b5cf6; font-weight: 700; }
.mini.cf .mine { background: color-mix(in srgb, #4f8fe0 18%, transparent); border-left-color: #4f8fe0; color: var(--fg); }
.mini.cf .theirs { background: color-mix(in srgb, #e0913a 20%, transparent); border-left-color: #e0913a; color: var(--fg); }
.menu { font-size: 13px; background: var(--bg-elev); padding: 5px; max-width: 340px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px -12px rgba(0, 0, 0, .35); }
.menu div { padding: 4px 10px; border-radius: 4px; color: var(--fg); display: flex; gap: 12px; white-space: nowrap; }
.menu div.sel { background: var(--accent); color: var(--accent-ink); }
.menu div i { margin-left: auto; font-style: normal; color: var(--fg-faint); }
.menu div.sel i { color: inherit; opacity: .8; }
.menu hr { border: 0; height: 6px; margin: 0; }
.sync { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 600 13px/1 var(--text); padding: 7px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sync b { color: var(--link); }
.po { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; font: 12px/1.75 var(--mono); }
.po > div { padding: 10px 12px; min-width: 0; background: var(--bg-sunk); border-radius: 6px; }
.po p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); font-size: 12px; }
.po .ctx { color: var(--fg-faint); }
.po .chg { background: var(--add-bg); color: var(--add-fg); margin: 0 -12px; padding: 0 12px; }
.po .gap { height: 1.75em; }
.ban { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 12px; color: var(--fg); margin-bottom: 8px; border-radius: 6px; background: color-mix(in srgb, var(--del-bar) 14%, var(--ui-bg)); }
.ban b { font-weight: 600; white-space: nowrap; }
.ban span { color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; }
.ban i { font-style: normal; color: var(--link); font-weight: 600; }
.ban.ok { background: color-mix(in srgb, var(--add-bar) 14%, var(--ui-bg)); margin-bottom: 0; }
.ban.ok b { color: var(--add-fg); }
.prev { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; font-size: 12px; }
.prev > div { padding: 10px 12px; min-width: 0; background: var(--bg-sunk); border-radius: 6px; }
.prev .md { font-family: var(--mono); color: var(--fg-muted); line-height: 1.7; white-space: nowrap; overflow: hidden; }
.prev .md .a { color: var(--add-fg); background: var(--add-bg); margin: 0 -12px; padding: 0 12px; }
.prev h4 { margin: 0 0 4px; font: 400 16px/1.2 var(--display); }
.prev p { margin: 0; color: var(--fg-muted); line-height: 1.5; font-size: 12px; }
.oswins { position: relative; aspect-ratio: 1000 / 760; }
.oswins figure { position: absolute; width: 74%; margin: 0; }
.oswins img { display: block; width: 100%; height: auto; }
.oswins figcaption { position: absolute; right: 12px; top: -12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--bg); background: var(--ink); }
.oswins .os-linux { left: 0; top: 0; }
.oswins .os-windows { left: 13%; top: 17%; }
.oswins .os-mac { right: 0; bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--bg-sunk); padding: 10px 12px; min-width: 0; border-radius: 6px; }
.stats b { display: block; font: 400 22px/1 var(--display); margin-bottom: 4px; }
.stats span { font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- the entrance: aperture; and what rises into place as it comes into view ---------- */
[data-entrance="aperture"] [data-e="picture"] { --window: 30% 30% 46% 26%; overflow: clip; }
@media (max-width: 47.99em) { [data-entrance="aperture"] [data-e="picture"] { --window: 24% 16%; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-entrance="aperture"] [data-e="picture"] { animation: e-ap-open 1100ms var(--ease-open) 80ms backwards; }
  .js [data-entrance="aperture"] [data-e="picture"] > :not(figcaption) { animation: e-ap-settle 1200ms var(--ease-open) backwards; }
  .js [data-entrance="aperture"] [data-reveal="picture"] { overflow: clip; clip-path: inset(12% 14% round var(--card-radius)); transition: clip-path 1000ms var(--ease-open); }
  .js [data-entrance="aperture"] [data-reveal="picture"] > :not(figcaption) { transform: scale(1.08); transition: transform 1100ms var(--ease-open); }
  .js [data-entrance="aperture"] [data-reveal="picture"].is-in { clip-path: inset(0 round var(--card-radius)); }
  .js [data-entrance="aperture"] [data-reveal="picture"].is-in > :not(figcaption) { transform: none; }
  .js .rise { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
  .js .rise.is-in { opacity: 1; transform: none; }
}
@keyframes e-ap-open { from { clip-path: inset(var(--window)); } to { clip-path: inset(0); } }
@keyframes e-ap-settle { from { transform: scale(var(--from-scale, 1.1)); } }

@media (prefers-reduced-motion: reduce) {
  .mini .live, .reviewed .settle, .chip::before, .js .tour figure.on, .commitbox .msg span { animation: none; }
  .tag:hover svg { transform: none; }
  .bar .sections a::after, .sub, .sub-toggle svg { transition: none; }
}

/* ---------- screenshot corners ----------
   The window shots carry desktop wallpaper in their rounded corners (up to 19px along the top edge at the
   shots' 1280 x 800) and a lighter outline pixel round the window. Scaled down, the browser blends both into
   the picture, so clip 3 shot pixels in, on a curve of 26 (2% of 1280, 3.25% of 800), scaled with it. */
img[src^="assets/shots/"]:not([src*="-zoom"]) { clip-path: inset(0.375% 0.234% round 2% / 3.25%); }
img[src^="assets/shots/os-"] { clip-path: inset(0.5% 0.3% round 2.6% / 4.2%); }
/* The footer crop fills its frame's height and keeps the window's left edge, so only the
   left corners are the window's, measured in the frame's height: 3 of 800 is 0.375cqh, 26 is 3.25cqh. */
.foot-pic img { clip-path: inset(0.375cqh 0 0.375cqh 0.375cqh round 3.25cqh 0 0 3.25cqh); }

@media (prefers-reduced-motion: no-preference) {
  .tag { transition: background-color .25s, color .25s, transform .3s var(--ease-out), box-shadow .25s; }
  .tag:hover { transform: translateY(-1px); }
}
@media (max-width: 760px) {
  .hero::before { right: -40vw; top: 30%; width: 130vw; height: 130vw; }
}
