/* Optics — site styles.
   One layout rule: every split is two equal columns on the same gutter (.two),
   so left and right edges line up down the whole page. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.2, 1.4, .35, 1);
  --gutter: clamp(32px, 4.5vw, 56px);

  /* the four ways: bracket fills are the logo colours in both themes */
  --write: #9672F8; --record: #24C3AB; --say: #F3BE00; --delegate: #F56FA1;

  /* terminal palette, identical in both themes */
  --code-ink: #DADDFF; --code-dim: #7D82B3; --code-mod: #B9A3FF; --code-var: #F3BE00;
  --code-lit: #5FD6C4; --code-pass: #3DDC84; --code-info: #6FD0FF;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #F6F7FC;         /* lens white */
  --bg-2: #ECEEF8;
  --ink: #15183D;        /* indigo ink */
  --ink-2: #454A75;
  --ink-3: #5F6493;
  --line: rgba(21, 24, 61, .12);
  --line-2: rgba(21, 24, 61, .22);
  --accent: #002CDE;     /* the star */
  --on-accent: #FFFFFF;
  --star: #002CDE;
  --hero-run: #002CDE;
  --code-bg: #15183D;
  --code-line: rgba(255, 255, 255, .08);
  --shadow: 0 40px 90px -50px rgba(15, 18, 60, .55);
  /* readable-on-light versions of the four ways */
  --write-t: #6A45E0; --record-t: #0A7A6B; --say-t: #8A6600; --delegate-t: #C0346E;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1230;         /* night */
  --bg-2: #161A42;
  --ink: #E9EBFF;
  --ink-2: #B4B8E2;
  --ink-3: #8C90C0;
  --line: rgba(233, 235, 255, .11);
  --line-2: rgba(233, 235, 255, .2);
  --accent: #7086FF;
  --on-accent: #0B0E2A;
  --star: #4D67FF;
  --hero-run: #A3B4FF;
  --code-bg: #090B24;
  --code-line: rgba(255, 255, 255, .07);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
  --write-t: #B09AFF; --record-t: #4FD9C4; --say-t: #F6CD3D; --delegate-t: #FF8FB9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.6 var(--sans); font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3, p, ol, dl, dd, figure, pre { margin: 0; }
a { color: inherit; }
img, svg, video { display: block; }
code, kbd, pre { font-family: var(--mono); font-variant-ligatures: none; } /* show == and -- as typed: people copy these */
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.cmd :focus-visible, .code :focus-visible { outline-color: var(--code-info); }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.align-center { align-items: center; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 620; font-stretch: 86%; line-height: 1.05; letter-spacing: -.028em; text-wrap: balance; }
.h3 { font-size: 1.3125rem; font-weight: 620; line-height: 1.3; letter-spacing: -.012em; }
.body-text { color: var(--ink-2); max-width: 60ch; }
.body-text + .body-text { margin-top: 16px; }
.h3 + .body-text { margin-top: 10px; }
.ic { font-size: .86em; padding: .12em .38em; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); white-space: nowrap; }
kbd { font-size: .8em; padding: .1em .45em; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; border-radius: 12px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; cursor: pointer; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 650; font-size: 1.25rem; letter-spacing: -.02em; }
.mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .96875rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: var(--bg-2); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .i-sun, [data-theme="dark"] .i-moon { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero-grid { align-items: center; gap: clamp(24px, 3vw, 40px); }
.hero-title { font-size: clamp(3.25rem, 6.8vw, 5.75rem); font-weight: 650; font-stretch: 76%; line-height: .88; letter-spacing: -.04em; }
.hero-title span { display: block; }
.hero-title span:nth-child(-n+2) { color: var(--ink); }
.hero-title span:nth-child(n+3) { color: var(--hero-run); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: center; }
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.fineprint { font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.fineprint a { color: var(--ink-2); text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise .9s var(--ease) both; }
  .hero-title span:nth-child(2) { animation-delay: .06s; }
  .hero-title span:nth-child(3) { animation-delay: .12s; }
  .hero-title span:nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.3em); } }

/* the proof under the hero: a suite running on a phone, drawn by scenes.js */
.hero-proof { margin-top: clamp(32px, 3.4vw, 48px); }
.hero-proof .scene { border-radius: 22px; border-color: var(--line-2); box-shadow: var(--shadow); }
.hero-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; color: var(--ink-3); font-size: .9375rem; }
.hero-cap code { font-size: .875em; color: var(--ink-2); }
.film-open { gap: 8px; }
.film-open svg { width: 12px; height: 12px; fill: currentColor; }

/* full demo dialog */
.film-dialog { width: min(1200px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.film-dialog::backdrop { background: rgba(6, 8, 28, .82); backdrop-filter: blur(6px); }
.film-dialog-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.film-dialog video { width: 100%; height: 100%; }
.film-close { position: absolute; top: -52px; right: 0; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font: 600 .9375rem/1 var(--sans); cursor: pointer; }
.film-close:hover { background: rgba(255, 255, 255, .16); }

/* ---------- command blocks ---------- */
.cmd { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 18px; border-radius: 12px; background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); }
.cmd code { flex: 1; min-width: 0; font-size: .8125rem; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.prompt { color: var(--code-dim); margin-right: 4px; }
.copy { flex: none; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--code-ink); font: 600 .875rem/1 var(--sans); cursor: pointer; min-width: 68px; }
.copy:hover { background: rgba(255, 255, 255, .1); }
.copy.done { color: var(--code-pass); border-color: rgba(61, 220, 132, .45); }

/* ---------- sections ---------- */
.band { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.band .h2 { margin-bottom: clamp(28px, 3.5vw, 44px); }
.head-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); align-items: baseline; margin-bottom: clamp(28px, 3.5vw, 44px); }
.head-row .h2 { margin-bottom: 0; }
.head-note { color: var(--ink-3); font-size: 1rem; }
.statement { font-size: clamp(2.5rem, 5vw, 4.25rem); font-stretch: 78%; letter-spacing: -.035em; }

/* ---------- create: the logo selector ---------- */
.create-grid { align-items: stretch; }
.selector { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; gap: 32px; padding: 32px; border-radius: 20px; background: var(--bg-2); }
.selector-mark { position: relative; width: min(100%, 300px); aspect-ratio: 1; }
.selector-mark svg { width: 100%; height: 100%; overflow: visible; }
.sel-piece path { fill: none; stroke-width: 83; stroke-linecap: round; }
.sel-piece { transition: transform .5s var(--spring), opacity .3s ease; opacity: .26; }
.sel-star { fill: var(--star); stroke: var(--star); stroke-width: 18; stroke-linejoin: round; transform-origin: 300px 300px; }
.sel-star.pulse { animation: pulse .55s var(--spring); }
@keyframes pulse { 40% { transform: scale(1.28); } }
[data-active="write"] .sel-piece[data-way="write"] { opacity: 1; transform: translate(-34px, -34px); }
[data-active="record"] .sel-piece[data-way="record"] { opacity: 1; transform: translate(34px, -34px); }
[data-active="say"] .sel-piece[data-way="say"] { opacity: 1; transform: translate(34px, 34px); }
[data-active="delegate"] .sel-piece[data-way="delegate"] { opacity: 1; transform: translate(-34px, 34px); }
.selector-mark:has(.hit-write:hover) .sel-piece[data-way="write"],
.selector-mark:has(.hit-record:hover) .sel-piece[data-way="record"],
.selector-mark:has(.hit-say:hover) .sel-piece[data-way="say"],
.selector-mark:has(.hit-delegate:hover) .sel-piece[data-way="delegate"] { opacity: 1; }
.hit { position: absolute; width: 50%; height: 50%; border: 0; background: transparent; cursor: pointer; font-size: 0; color: transparent; }
.hit-write { left: 0; top: 0; } .hit-record { right: 0; top: 0; } .hit-say { right: 0; bottom: 0; } .hit-delegate { left: 0; bottom: 0; }

.ways { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.way { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-3); font: 560 1rem/1 var(--sans); text-align: left; cursor: pointer; }
.way i { width: 12px; height: 12px; border-radius: 3px; background: currentColor; opacity: .5; flex: none; }
.way[data-way="write"] i { color: var(--write); } .way[data-way="record"] i { color: var(--record); }
.way[data-way="say"] i { color: var(--say); } .way[data-way="delegate"] i { color: var(--delegate); }
.way:hover { color: var(--ink); }
.way[aria-selected="true"] { background: var(--bg); border-color: var(--line); color: var(--ink); }
.way[aria-selected="true"] i { opacity: 1; }

.panels { display: grid; grid-template-columns: minmax(0, 1fr); }
.panel { display: flex; flex-direction: column; }
.panel-title { font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 620; font-stretch: 86%; letter-spacing: -.025em; line-height: 1.1; }
.panel[data-way="write"] .panel-title { color: var(--write-t); }
.panel[data-way="record"] .panel-title { color: var(--record-t); }
.panel[data-way="say"] .panel-title { color: var(--say-t); }
.panel[data-way="delegate"] .panel-title { color: var(--delegate-t); }
.panel > p { margin-top: 14px; color: var(--ink-2); }
.panel .code { margin-top: 24px; flex: 1; }
.panel:not([hidden]) { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- code figures ---------- */
.code { border-radius: 14px; background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); overflow: hidden; }
.code figcaption { font: 500 .8125rem/1 var(--mono); color: var(--code-dim); padding: 14px 20px; border-bottom: 1px solid var(--code-line); }
.code pre { padding: 18px 20px 20px; overflow-x: auto; font-size: .8125rem; line-height: 1.8; }
.code b { font-weight: 500; color: #fff; }
.c-dim { color: var(--code-dim); } .c-mod { color: var(--code-mod); } .c-var { color: var(--code-var); }
.c-lit { color: var(--code-lit); } .c-pass { color: var(--code-pass); } .c-info { color: var(--code-info); }
.c-run { color: var(--code-var); font-weight: 500; } .c-ghost { color: var(--code-dim); font-style: italic; }
.diff pre code { display: block; min-width: max-content; }
.diff pre span { display: inline-block; min-width: 100%; padding: 0 20px; margin: 0 -20px; }
.d-ctx { color: var(--code-dim); }
.d-del { color: #FF9DB8; background: rgba(245, 111, 161, .14); }
.d-add { color: var(--code-pass); background: rgba(61, 220, 132, .12); }
.suite-formats { margin-top: clamp(64px, 8vw, 104px); }
.formats { display: grid; gap: 14px; min-width: 0; }
/* Both panels share one cell so switching formats never changes the height. */
.fmt-panels { display: grid; grid-template-columns: minmax(0, 1fr); }
.fmt-panels > .code { grid-area: 1 / 1; display: flex; flex-direction: column; }
.fmt-panels > .code[hidden] { display: flex !important; visibility: hidden; }
.fmt-panels pre { flex: 1; }
.bar { display: inline-block; width: 140px; height: 6px; border-radius: 3px; background: var(--code-pass); vertical-align: 3px; margin: 0 6px; }

/* ---------- run ---------- */
.outputs { margin-top: 28px; display: grid; border-top: 1px solid var(--line); }
.outputs div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.outputs dt { font: 500 .9375rem/1.4 var(--mono); color: var(--ink); }
.outputs dd { margin-top: 4px; color: var(--ink-2); font-size: 1rem; }

/* ---------- ladder ---------- */
.rungs { list-style: none; padding: 0; position: relative; display: grid; gap: 8px; }
.rungs::before, .rungs::after { content: ""; position: absolute; top: -8px; bottom: -8px; width: 3px; border-radius: 2px; background: var(--line-2); }
.rungs::before { left: 14px; } .rungs::after { left: 61px; }
.rungs li { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: start; gap: 18px; min-height: 64px; }
.rung-n { position: relative; z-index: 1; width: 50px; margin-left: 14px; height: 36px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 1rem/1 var(--sans); color: var(--ink-2); }
.rungs b { display: block; font-weight: 620; font-size: 1.125rem; line-height: 36px; }
.rungs li span:not(.rung-n) { display: block; color: var(--ink-2); font-size: 1rem; margin-top: -2px; }
.rung-opt .rung-n { border-style: dashed; background: var(--bg); }

/* ---------- where ---------- */
.where-grid { row-gap: 40px; }
.where-item { padding-top: 24px; border-top: 2px solid var(--ink); }
.where-item > .body-text + .body-text { margin-top: 14px; }
.ci-row { align-items: start; }
.ci-yaml pre { font-size: .75rem; line-height: 1.75; }
.where-rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); margin-top: clamp(48px, 6vw, 72px); }

/* ---------- install ---------- */
.steps { list-style: none; padding: 0; }
.step { align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1rem; font-weight: 650; vertical-align: 2px; }
.step-text .body-text { margin-left: 48px; }
.step-cmds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.os { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); justify-self: start; }
.os-tab { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: 560 .875rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.os-tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 18, 60, .12); }

/* ---------- learn (docs entry points) ---------- */
.learn-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 2px; text-underline-offset: .22em; transition: text-decoration-color .2s ease; }
.learn-link:hover, .learn-link:focus-visible { text-decoration-color: currentColor; }
.learn-cta { margin-top: 40px; }

/* ---------- text pages (about, contact, privacy, 404) ---------- */
.page { padding-block: clamp(56px, 7vw, 96px); }
.page .wrap > * { max-width: 68ch; }
.page .lede { margin-top: 20px; }
.page .h3 { margin-top: 40px; }
.page .body-text a { text-underline-offset: 3px; }
.page .btn-row { margin-top: 32px; }

/* ---------- blog: articles and videos hosted elsewhere (built from content/blog.json) ---------- */
.page .wrap > .blog-feed { max-width: none; }
.blog-head .lede { margin-top: 20px; text-wrap: pretty; }
.blog-rss { margin-top: 16px; font-size: .9375rem; }
.blog-rss a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-underline-offset: 4px; }
.blog-rss a:hover { color: var(--ink); }
.blog-rss svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.blog-rss circle { fill: currentColor; stroke: none; }
.blog-feed { margin-top: clamp(40px, 5vw, 64px); }
.blog-filters { margin-bottom: 32px; flex-wrap: wrap; }
.os-tab[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 18, 60, .12); }
.os-tab .n { margin-left: 4px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.blog-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.entries { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 56px) var(--gutter); }
.entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 20px; border-radius: 16px; }
.entry:has(.entry-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 8px; }
.entry-media { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--code-bg); border: 1px solid var(--line); }
.entry-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s ease; }
.entry:hover .entry-media img { transform: scale(1.03); }
.entry-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(9, 11, 36, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .35s var(--ease); }
.entry-play svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.entry:hover .entry-play { transform: scale(1.1); }
.entry-dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(9, 11, 36, .82); color: #fff; font: 600 .8125rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.entry-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 22px 24px; color: var(--code-ink); }
.entry-quote .pf-lg { width: 26px; height: 26px; fill: currentColor; opacity: .85; }
.entry-quote p { font-size: 1.0625rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .875rem; line-height: 1.4; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.entry-meta > span + span::before { content: "·"; margin: 0 8px; color: var(--line-2); }
.entry-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.entry-type i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.entry[data-type="article"] .entry-type i { color: var(--write); }
.entry[data-type="video"] .entry-type i { color: var(--delegate); }
.entry[data-type="post"] .entry-type i { color: var(--record); }
.entry-title { margin: 10px 0 0; font-size: 1.3125rem; font-weight: 620; line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; }
.entry-title a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .2em; transition: text-decoration-color .2s ease; }
.entry-title a:focus-visible { outline: none; }
.entry-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.entry:hover .entry-title a { text-decoration-color: var(--line-2); }
.entry-summary { margin-top: 10px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entry-cta { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .9375rem; }
.entry-cta .pf { width: 16px; height: 16px; fill: currentColor; }
.arr { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.entry:hover .arr { transform: translate(2px, -2px); }

/* the newest item spans the row: picture left, words right */
.entry-lead { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.entry-lead .entry-media { border-radius: 20px; border-color: var(--line-2); box-shadow: var(--shadow); }
.entry-lead .entry-title { font-size: clamp(1.75rem, 2.8vw, 2.375rem); font-stretch: 86%; line-height: 1.08; letter-spacing: -.025em; }
.entry-lead .entry-summary { margin-top: 16px; font-size: 1.0625rem; -webkit-line-clamp: 4; }
.entry-lead .entry-cta { margin-top: 24px; font-size: 1rem; }
.entry-lead .entry-play { width: 84px; height: 84px; }
.entry-lead .entry-play svg { width: 30px; height: 30px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-row .brand { font-size: 1.0625rem; }
.foot-row .mark { width: 22px; height: 22px; }
.foot-note { color: var(--ink-3); font-size: .9375rem; }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { gap: 18px; margin-left: 0; }
  .nav-links a[href*="#"] { display: none; }
  .two, .head-row { grid-template-columns: minmax(0, 1fr); }
  .where-rest { grid-template-columns: minmax(0, 1fr); }
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-lead { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 28px; }
  .step { gap: 18px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav-row { gap: 16px; }
  .nav-links a[href^="http"] { display: none; }
  .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .selector { padding: 24px 16px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .foot-links { margin-left: 0; }
  .step-text .body-text { margin-left: 0; }
  .os-tab { padding: 0 10px; font-size: .8125rem; }
  .entries { grid-template-columns: minmax(0, 1fr); }
}
/* Touch screens: every control is at least 44px on each side. Compact controls keep their look and grow an invisible hit area instead. */
@media (pointer: coarse) {
  .theme-toggle { width: 44px; height: 44px; }
  .btn-sm, .copy, .film-close, .os-tab { height: 44px; }
  .os-tab { min-width: 44px; }
  .brand { min-height: 44px; }
  .nav-links { gap: 6px; }
  .nav-links a, .foot-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 6px; }
  .foot-links { gap: 0 10px; margin-right: -6px; }
  .learn .where-item { position: relative; }
  .learn .learn-link::after { content: ""; position: absolute; inset: 0; }
}
@media (pointer: coarse) and (max-width: 520px) {
  .foot-links { margin-left: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
