/* OpenWick product site. Same neutral palette as the app: greys, green for up, red for down,
   gold for highlights. Dark by default; light when the computer prefers it. */
:root {
  color-scheme: dark;
  /* the app's palette (openwick/public/css/app.css): neutral greys, white as the accent,
     green only for up and open */
  --bg: #0f0f0f;
  --bg-2: #131313;
  --panel: #161616;
  --panel-2: #1f1f1f;
  --border: #2a2a2a;
  --border-2: #363636;
  --hi: rgba(255, 255, 255, 0.04);
  --text: #dbdbdb;
  --text-2: #b0b0b0;
  --muted: #8c8c8c;
  --up: #18a57b;
  --up-soft: rgba(24, 165, 123, 0.14);
  --down: #ef4f5e;
  --gold: #d4a514;
  --gold-soft: rgba(212, 165, 20, 0.14);
  --accent: #e8e8e8;
  --accent-soft: rgba(255, 255, 255, 0.09);
  --btn-bg: #f2f2f2;
  --btn-fg: #0f0f0f;
  --btn-hover: #ffffff;
  --shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --glow: rgba(255, 255, 255, 0.06);
  --grid: rgba(255, 255, 255, 0.035);
  --head-1: #ffffff;
  --head-2: #a3a3a3;
  --radius: 14px;
  --wrap: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-2: #f7f7fb;
    --panel: #f7f7fb;
    --panel-2: #eeeff5;
    --border: #e3e4ec;
    --border-2: #d3d5df;
    --hi: rgba(255, 255, 255, 0.9);
    --text: #14161d;
    --text-2: #3a3d47;
    --muted: #6b6f7b;
    --up: #0f9d6f;
    --up-soft: rgba(15, 157, 111, 0.1);
    --down: #e5414f;
    --gold: #b8860b;
    --gold-soft: rgba(184, 134, 11, 0.12);
    --accent: #161616;
    --accent-soft: rgba(0, 0, 0, 0.06);
    --btn-bg: #131313;
    --btn-fg: #ffffff;
    --btn-hover: #000000;
    --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --glow: rgba(0, 0, 0, 0.035);
    --grid: rgba(0, 0, 0, 0.04);
    --head-1: #0f0f0f;
    --head-2: #6b6f7b;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
::selection { background: var(--accent); color: var(--btn-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.015em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.icon-link:hover { color: var(--text); background: var(--panel-2); }
.icon-link svg { width: 19px; height: 19px; }
.icon-link[href^="https://x.com"] svg { width: 16px; height: 16px; }
@media (max-width: 980px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--panel-2); color: var(--text);
  font: 600 14.5px/1.2 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 var(--hi);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.small { padding: 8px 15px; font-size: 13.5px; }
.btn .sub { font-weight: 500; opacity: 0.6; font-size: 0.88em; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 44px 0 0; text-align: center; }
@media (max-width: 600px) { .hero { padding-top: 28px; } }

/* The photo behind the top bar and the hero, fading into the page, as on the app's home page.
   Dark: the forest at dusk under a black fade. Light: the same forest, pale and misty. */
.cosmos { position: absolute; top: 0; left: 0; right: 0; height: 820px; z-index: 0; overflow: hidden; pointer-events: none;
  background: #0b0b0b center 45% / cover no-repeat url("../img/hero-dark-1920.webp");
  background-image: image-set(url("../img/hero-dark-1920.webp") 1x, url("../img/hero-dark-2880.webp") 2x); }
.cosmos::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 50% at 50% 42%, rgba(0, 0, 0, 0.62), transparent 78%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0, rgba(0, 0, 0, 0.55) 12%, rgba(0, 0, 0, 0.35) 34%, rgba(0, 0, 0, 0.45) 62%, var(--bg) 100%); }
.cosmos.short { height: 560px; }
@media (max-width: 720px) { .cosmos { height: 1000px; } .cosmos.short { height: 640px; } }
@media (prefers-color-scheme: light) {
  .cosmos { background-color: #e9ecef; background-image: url("../img/hero-light-1920.webp");
    background-image: image-set(url("../img/hero-light-1920.webp") 1x, url("../img/hero-light-2880.webp") 2x); }
  .cosmos::after { background:
    radial-gradient(ellipse 62% 50% at 50% 42%, rgba(255, 255, 255, 0.7), transparent 78%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.55) 12%, rgba(255, 255, 255, 0.3) 34%, rgba(255, 255, 255, 0.4) 62%, var(--bg) 100%); }
}
main, footer { position: relative; z-index: 1; }

/* Over the photo the top bar is clear; it gets its background once the page scrolls. */
.photo .nav:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (prefers-color-scheme: dark) {
  .photo .nav:not(.scrolled) .brand, .photo .nav:not(.scrolled) .nav-links a, .photo .nav:not(.scrolled) .icon-link { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
  .hero h1, .page-head h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.5); }
  .hero h1 .soft { color: rgba(255, 255, 255, 0.68); }
  .hero .lede, .page-head .lede { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
  .hero .plat:not(.mine) { background: rgba(15, 15, 15, 0.6); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hero .plat-more a { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.3); }
  .hero .pill { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); }
}
@media (prefers-color-scheme: light) {
  .hero h1, .page-head h1 { text-shadow: 0 2px 30px rgba(255, 255, 255, 0.8); }
  .hero .plat:not(.mine) { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 80%, transparent);
  color: var(--text-2); font-size: 13px; text-decoration: none; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--border-2); color: var(--text); }
.pill b { background: var(--accent-soft); color: var(--text); padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pill .arr { opacity: 0.5; transition: transform 0.2s var(--ease); }
.pill:hover .arr { transform: translateX(2px); }
h1 {
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.045em;
  font-weight: 800; margin: 22px auto 20px; max-width: 980px; text-wrap: balance; color: var(--head-1);
}
h1 .soft { color: var(--head-2); }
.lede { font-size: clamp(17px, 1.9vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 640px; margin: 0 auto 34px; text-wrap: pretty; }

/* the three downloads, side by side */
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 780px; margin: 0 auto; }
.plats > * { min-width: 0; }
@media (max-width: 720px) { .plats { grid-template-columns: 1fr; max-width: 380px; } }
.plat {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px 14px 18px; border-radius: 14px; text-decoration: none;
  background: color-mix(in srgb, var(--panel-2) 85%, transparent); border: 1px solid var(--border-2);
  box-shadow: inset 0 1px 0 var(--hi);
  transition: transform 0.25s var(--ease), border-color 0.2s, background 0.2s;
}
.plat:hover { transform: translateY(-2px); border-color: var(--muted); }
.plat > svg:first-child { width: 26px; height: 26px; flex: none; }
.plat-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.plat-txt b { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.plat-txt small { color: var(--muted); font-size: 12.5px; margin-top: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plat .go { margin-left: auto; width: 18px; height: 18px; flex: none; opacity: 0.55; transition: transform 0.25s var(--ease), opacity 0.2s; }
.plat:hover .go { transform: translateY(2px); opacity: 1; }
.plat.mine { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55); }
.plat.mine small { color: color-mix(in srgb, var(--btn-fg) 58%, transparent); }
.plat.mine .go { opacity: 0.8; }
.plat.mine::before {
  content: "Your computer"; position: absolute; top: -9px; right: 12px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border-2); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 2px 8px; border-radius: 999px;
}
.sz:not(:empty)::before { content: " · "; }
.plat-more { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.plat-more a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border-2); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.plat-more a:hover { color: var(--text); border-color: var(--text); }

/* the screenshot */
.stage { margin: 48px auto 0; max-width: 1160px; perspective: 1800px; }
.shot-frame {
  border-radius: 18px; padding: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--border-2) 90%, transparent), color-mix(in srgb, var(--border) 40%, transparent));
  box-shadow: var(--shadow);
}
.shot-frame .inner { position: relative; border-radius: 11px; overflow: hidden; background: #0f0f0f; }
.shot-frame .inner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: #141416; border-bottom: 1px solid #222; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2d2d31; }
.shot-bar span { margin: 0 auto; font: 500 11.5px var(--font); color: #77777d; transform: translateX(-20px); }
@supports (animation-timeline: view()) {
  .stage .shot-frame { transform-origin: 50% 0; animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes settle { from { transform: rotateX(16deg) scale(0.93); } to { transform: none; } }
}

/* exchanges strip */
.marquee { position: relative; overflow: hidden; margin-top: 56px; padding: 22px 0; border-block: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 50s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font: 600 13.5px var(--font); letter-spacing: 0.16em; color: var(--muted); white-space: nowrap; display: flex; align-items: center; }
.marquee li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); margin: 0 30px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 80px 0 0; }
@media (max-width: 600px) { .section { padding-top: 60px; } .head { margin-bottom: 28px; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.head.center .kicker::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
h2 {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 750; margin: 0 0 18px; text-wrap: balance; color: var(--head-1);
}
h3 { font-size: 17px; letter-spacing: -0.012em; margin: 0 0 8px; font-weight: 640; }
.head { max-width: 700px; margin-bottom: 36px; }
.head.center { text-align: center; margin-inline: auto; }
.head > p:not(.kicker) { color: var(--text-2); font-size: 18px; margin: 0; text-wrap: pretty; }

/* cards */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: inset 0 1px 0 var(--hi);
  transition: border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--head-1) 6%, transparent), transparent 60%);
}
.card:hover { border-color: var(--border-2); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }
.card .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--border-2); margin-bottom: 18px; color: var(--text);
  box-shadow: inset 0 1px 0 var(--hi);
}
.card .ic svg { width: 19px; height: 19px; }

/* bento */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.bento > * { min-width: 0; }
.b4 { grid-column: span 4; } .b3 { grid-column: span 3; } .b2 { grid-column: span 2; }
.tall { grid-row: span 2; }
@media (max-width: 980px) { .b3, .b2 { grid-column: span 3; } .b4 { grid-column: span 6; } .tall { grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .b4, .b3, .b2 { grid-column: auto; } }
.bento .card { display: flex; flex-direction: column; }
.crop {
  position: relative; margin: 26px -28px -28px; flex: 1; min-height: 200px; overflow: hidden;
  border-top: 1px solid var(--border); background: #0f0f0f;
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.crop img { position: absolute; max-width: none; height: auto; }
.crop.chart { min-height: 340px; }
.crop.chart img { width: 150%; left: -3%; top: -4%; }
.crop.tech img { width: 260%; left: -78%; top: -16%; }
.crop.heat img { width: 140%; left: -5%; top: -10%; }
.crop.sym img { width: 150%; left: -3%; top: -7%; }
.crop.jn { min-height: 300px; }
.crop.jn img { width: 125%; left: -1.5%; top: -12%; }
.card .try { margin-top: 18px; }
.big-num { font-size: 80px; line-height: 0.9; font-weight: 700; letter-spacing: -0.06em; margin: 4px 0 16px;
  background: linear-gradient(180deg, var(--head-1), var(--head-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chips span { font: 500 11.5px var(--mono); color: var(--text-2); border: 1px solid var(--border-2); background: var(--panel); padding: 3px 8px; border-radius: 6px; }
.chips span.more { color: var(--text); border-color: var(--muted); background: var(--accent-soft); }
.keys { display: grid; gap: 9px; margin-top: 22px; }
.keys div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.keys kbd { display: inline-flex; gap: 4px; }
.keys kbd span { font: 600 11px var(--mono); min-width: 26px; text-align: center; padding: 3px 7px; border-radius: 6px; color: var(--text); background: var(--panel-2); border: 1px solid var(--border-2); box-shadow: 0 2px 0 var(--border-2); }
.toasts { display: grid; gap: 8px; margin-top: 22px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border-2); font-size: 13px; color: var(--text-2); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5); }
.toast b { color: var(--text); font-weight: 600; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex: none; box-shadow: 0 0 0 3px var(--up-soft); }
.toast .dot.red { background: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 15%, transparent); }
.toast small { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.toast:nth-child(2) { opacity: 0.7; transform: scale(0.97); }
.toast:nth-child(3) { opacity: 0.4; transform: scale(0.94); }
.curve { display: block; margin-top: 22px; width: 100%; height: 90px; color: var(--up); overflow: visible; }
.curve-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); margin-top: 10px; font-variant-numeric: tabular-nums; }
.curve-legend b { color: var(--text); font-weight: 600; }

/* "and also" list */
.also { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
@media (max-width: 980px) { .also { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .also { grid-template-columns: 1fr; } }
.also div { padding: 22px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.also b { display: block; font-size: 14.5px; font-weight: 620; margin-bottom: 4px; }
.also span { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: block; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 100px; border-block: 1px solid var(--border); }
.stats div { padding: 32px 12px; text-align: center; border-right: 1px solid var(--border); }
.stats div:last-child { border-right: 0; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-bottom: 1px solid var(--border); }
  .stats div:nth-child(2n) { border-right: 0; }
  .stats div:last-child { grid-column: span 2; border-bottom: 0; }
}
.stats b { display: block; font-size: 46px; letter-spacing: -0.05em; line-height: 1; font-weight: 680; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; margin-top: 10px; display: block; }

/* screenshot tour */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 0 auto 36px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); width: fit-content; max-width: 100%; }
.tabs button {
  font: 550 13.5px var(--font); color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--btn-fg); background: var(--btn-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
@media (max-width: 640px) { .tabs { border-radius: 16px; } }
.panel[hidden] { display: none; }
.panel figure { margin: 0; animation: fade 0.45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 22px; padding: 0 12px; }
.panel figcaption b { color: var(--text); font-weight: 600; }

/* markets */
.markets { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.markets > * { min-width: 0; }
@media (max-width: 1000px) { .markets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .markets { grid-template-columns: 1fr; } }
.mkt { display: flex; flex-direction: column; gap: 3px; padding: 22px 22px 18px; }
.mkt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.mkt h3 { margin: 0; font-size: 16.5px; }
.mkt .cur { font: 600 11.5px var(--mono); color: var(--gold); background: var(--gold-soft); border-radius: 6px; padding: 2px 7px; letter-spacing: 0.04em; }
.mkt .ex { color: var(--text-2); font-size: 14px; }
.mkt .list { color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.mkt .hours { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mkt .hours i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); flex: none; }
.mkt .hours.open i { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.mkt .hours.closed i { background: var(--down); }
.mkt .hours b { color: var(--text-2); font-weight: 600; }
.mkt-note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.checks svg { width: 18px; height: 18px; color: var(--up); margin-top: 4px; }
.checks b { color: var(--text); font-weight: 600; }
.window { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); background: #0c0c0e; box-shadow: var(--shadow); color: #d6d6d6; }
.window .shot-bar span { transform: none; margin: 0 0 0 10px; }
.window + .window { margin-top: 16px; }
.terminal { margin: 0; font: 12.5px/1.8 var(--mono); padding: 18px 22px; overflow-x: auto; white-space: pre; scrollbar-width: thin; }
.terminal .c { color: #6a6a72; }
.terminal .g { color: #1fb487; }
.terminal .y { color: #d4a514; }
.terminal .r { color: #ef4f5e; }
.terminal .k { color: #e3a06b; }
.terminal .s { color: #9fcf8a; }

/* update dialog picture */
.dialog-mock { max-width: 460px; margin: 0 auto; border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--border-2); box-shadow: var(--shadow); padding: 26px; }
.dm-head { display: flex; gap: 14px; align-items: center; }
.dm-head img { width: 46px; height: 46px; }
.dm-head b { display: block; font-size: 16.5px; letter-spacing: -0.012em; }
.dm-head small { color: var(--up); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.dm-head small svg { width: 13px; height: 13px; }
.dialog-mock p { color: var(--text-2); font-size: 14px; margin: 16px 0 20px; }
.dm-bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 18px; }
.dm-bar i { display: block; height: 100%; width: 100%; background: var(--up); transform-origin: left; }
.in .dm-bar i { animation: fill 2.4s var(--ease) both; }
@keyframes fill { from { transform: scaleX(0.04); } }
.dm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-btns .btn { pointer-events: none; }
.dm-btns .ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }

/* downloads */
.dl-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.dl-grid > * { min-width: 0; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.dl { display: flex; flex-direction: column; gap: 16px; }
.dl.mine { border-color: var(--muted); box-shadow: 0 0 0 1px var(--muted) inset; }
.dl.mine .dl-head::after {
  content: "Your computer"; margin-left: auto; align-self: flex-start; white-space: nowrap;
  background: var(--accent-soft); color: var(--text); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head svg { width: 30px; height: 30px; flex: none; }
.dl-head h3 { margin: 0; font-size: 19px; }
.dl-head p { margin: 0; color: var(--muted); font-size: 13px; }
.dl .btn { width: 100%; justify-content: space-between; border-radius: 12px; padding: 13px 16px; }
.dl .files { display: grid; gap: 8px; }
.dl small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }
.meta a { color: var(--text-2); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: 17px; font-weight: 600; letter-spacing: -0.012em; transition: color 0.2s;
}
.faq summary:hover { color: var(--head-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 1.5px; background: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .a { color: var(--text-2); padding: 0 40px 24px 0; margin-top: -8px; font-size: 15.5px; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin: 0; }

/* closing */
.final { position: relative; margin-top: 88px; text-align: center; padding: 96px 24px 88px; border-radius: 28px; overflow: hidden; isolation: isolate; border: 1px solid var(--border); background: var(--bg-2); }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.86)), #0b0b0b center 40% / cover no-repeat url("../img/hero-dark-1920.webp"); }
@media (prefers-color-scheme: light) {
  .final::before { background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.86)), #e9ecef center 40% / cover no-repeat url("../img/hero-light-1920.webp"); }
}
@media (prefers-color-scheme: dark) {
  .final h2 { color: #fff; } .final > p { color: rgba(255, 255, 255, 0.85); }
  .final .plat:not(.mine) { background: rgba(15, 15, 15, 0.6); border-color: rgba(255, 255, 255, 0.18); }
}
.final > img { width: 56px; height: 56px; margin: 0 auto 26px; }
.final h2 { margin-bottom: 14px; }
.final > p { color: var(--text-2); margin: 0 auto 36px; max-width: 520px; font-size: 18px; }
@media (max-width: 600px) { .final { padding: 64px 16px; border-radius: 20px; } }

/* download page */
.page-head { position: relative; padding: 44px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 62px); margin-top: 0; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.steps > * { min-width: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps .card ol { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.steps .card li { margin-bottom: 7px; }
.steps .card li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.req { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.req th, .req td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.req th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.req td:first-child { font-weight: 600; white-space: nowrap; color: var(--text); }
.req td { color: var(--text-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.table-wrap .req tr:last-child td { border-bottom: 0; }
.code-row { display: flex; align-items: center; gap: 10px; background: #0c0c0e; color: #d6d6d6; border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 10px 10px 16px; margin-top: 10px; }
.code-row code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 13px; scrollbar-width: none; }
.copy { flex: none; font: 600 12px var(--font); background: #1d1d21; color: #ddd; border: 1px solid #333; border-radius: 7px; padding: 6px 11px; cursor: pointer; transition: background 0.2s; }
.copy:hover { background: #28282d; }
.note { border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); background: var(--gold-soft); padding: 16px 20px; border-radius: 12px; color: var(--text-2); font-size: 14.5px; margin-top: 28px; }
.note b { color: var(--text); }
.lede.flush { margin: 0; text-align: left; }
#verify p b, #other-ways p b { color: var(--text); }
#verify .split > div > p, #other-ways .split p { margin: 18px 0 0; color: var(--text-2); }

/* footer */
footer { margin-top: 88px; border-top: 1px solid var(--border); padding: 56px 0 44px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 4px 0 14px; font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--text); }
.foot .brand { color: var(--text); margin-bottom: 14px; }
.foot p { margin: 0 0 8px; max-width: 400px; line-height: 1.6; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.65; }

/* reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.lost b { font: 700 104px/1 var(--font); letter-spacing: -0.06em; color: var(--down); display: block; margin-bottom: 10px; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.plat-more.left { justify-content: flex-start; margin-top: 28px; }
.dl-count { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dl-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.dl-count[hidden] { display: none; }

/* phone menu */
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .x { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav.open { background: var(--bg) !important; border-bottom-color: var(--border); }
  .nav.open .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0;
    padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
  .nav.open .nav-links a { color: var(--text) !important; text-shadow: none !important; font-size: 16px; padding: 12px 12px; border-radius: 10px; }
  .nav.open .menu-btn .bars { display: none; }
  .nav.open .menu-btn .x { display: block; }
  .nav.open .brand, .nav.open .icon-link { color: var(--text) !important; text-shadow: none !important; }
}
/* a split block whose picture sits left on wide screens but comes after the text on phones */
@media (min-width: 901px) { .split.flip > :first-child { order: 2; } }
/* code pictures fit a phone without sideways scrolling */
@media (max-width: 600px) {
  .terminal { font-size: 11px; padding: 16px; }
  .window .shot-bar span { font-size: 11px; }
}

/* ---------- pages ---------- */
.nav-links a.active { color: var(--text); background: var(--panel-2); }
@media (prefers-color-scheme: dark) { .photo .nav:not(.scrolled) .nav-links a.active { background: rgba(255, 255, 255, 0.14); } }
@media (prefers-color-scheme: light) { .photo .nav:not(.scrolled) .nav-links a.active { background: rgba(0, 0, 0, 0.07); } }
.nav-end .btn.active { box-shadow: 0 0 0 2px var(--muted); }
.section.first { padding-top: 48px; }
@media (max-width: 600px) { .section.first { padding-top: 32px; } }
.page-title { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 18px; color: var(--head-1); text-wrap: balance; }
@media (prefers-color-scheme: dark) {
  .section.first .page-title { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.5); }
  .section.first .head > p:not(.kicker) { color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
  .section.first .head .kicker { color: rgba(255, 255, 255, 0.72); }
}
.section > .wrap > .final:first-child { margin-top: 0; }
.more-link { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border-2); padding-bottom: 2px; transition: border-color 0.2s; }
.more-link:hover { border-color: var(--text); }
.more-link span { display: inline-block; transition: transform 0.2s var(--ease); }
.more-link:hover span { transform: translateX(3px); }
.more-row { margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.more-row.center { text-align: center; margin: 28px 0 0; }

/* ---------- home hero: words on the left, downloads on the right ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 390px); grid-template-areas: "title get" "lede get"; gap: 0 64px; text-align: left; align-items: start; }
.h-title { grid-area: title; }
.h-lede { grid-area: lede; }
.get { grid-area: get; align-self: center; }
.hero-grid h1 { font-size: clamp(40px, 5vw, 66px); margin: 20px 0 18px; max-width: none; }
.hero-grid .lede { margin: 0 0 20px; max-width: 600px; }
.h-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-2); }
.h-trust li { display: flex; align-items: center; gap: 7px; }
.h-trust svg { width: 15px; height: 15px; color: var(--up); }
@media (prefers-color-scheme: dark) { .h-trust li { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); } }
.get { padding: 20px; border-radius: 18px; border: 1px solid var(--border-2); background: color-mix(in srgb, var(--panel) 88%, transparent); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (prefers-color-scheme: dark) { .get { background: rgba(14, 14, 14, 0.62); border-color: rgba(255, 255, 255, 0.14); } }
.get-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 14px; }
.get h2 { font-size: 15px; letter-spacing: -0.01em; font-weight: 650; margin: 0; color: var(--head-1); }
.get-ver { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.get .plats { grid-template-columns: 1fr; max-width: none; gap: 8px; }
.get .plat { padding: 13px 14px 13px 16px; }
.get-more { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 2px 0; font-size: 13px; color: var(--muted); }
.get-more a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border-2); }
.get-more a:hover { color: var(--text); border-color: var(--text); }
@media (prefers-color-scheme: dark) { .get-more a { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.25); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "title" "get" "lede"; gap: 26px; text-align: center; }
  .hero-grid h1 { margin-bottom: 0; }
  .get { width: 100%; max-width: 440px; margin: 0 auto; text-align: left; }
  .hero-grid .lede { margin: 0 auto 18px; }
  .h-trust { justify-content: center; }
}
@media (max-width: 600px) { .get { padding: 16px; } }

/* ---------- philosophy ---------- */
.philo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 1px 0 var(--hi); }
.philo-text p:not(.kicker) { color: var(--text-2); font-size: 17.5px; line-height: 1.65; margin: 0 0 22px; text-wrap: pretty; }
.philo-text .philo-lead { font-size: 19px; color: var(--text); margin: 0; }
.philo-text h2 { margin-bottom: 16px; }
.philo-stats { display: grid; gap: 0; border-left: 1px solid var(--border); }
.philo-stats div { padding: 18px 0 18px 32px; border-bottom: 1px solid var(--border); }
.philo-stats div:last-child { border-bottom: 0; }
.philo-stats b { display: block; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.045em; color: var(--head-1); }
.philo-stats span { display: block; color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 860px) {
  .philo { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .philo-stats { border-left: 0; border-top: 1px solid var(--border); grid-template-columns: repeat(3, 1fr); }
  .philo-stats div { padding: 20px 8px 0; border-bottom: 0; text-align: center; }
  .philo-stats b { font-size: 30px; }
  .philo-stats span { font-size: 12.5px; }
}
.principles { margin-top: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.grid > * { min-width: 0; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- explore (links to each page) ---------- */
.explore-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.explore-grid > * { min-width: 0; }
@media (max-width: 760px) { .explore-grid { grid-template-columns: 1fr; } }
.explore.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; }
.explore.wide .crop.jn { min-height: 240px; margin: 0; }
.explore.wide .crop.jn img { width: 112%; left: -2%; top: -2%; }
@media (max-width: 760px) { .explore.wide { grid-template-columns: 1fr; } }
.explore { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.explore h3 { display: flex; align-items: center; justify-content: space-between; font-size: 19px; }
.explore .go-r { color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; }
.explore:hover .go-r { transform: translateX(4px); color: var(--text); }
.explore .crop { min-height: 180px; }
.explore .crop.chart { min-height: 180px; }

/* ---------- GitHub card ---------- */
.gh-card { padding: 28px; }
.gh-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gh-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.gh-id > svg { width: 40px; height: 40px; flex: none; }
.gh-id a { text-decoration: none; font-size: 20px; letter-spacing: -0.015em; }
.gh-id a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.gh-owner { color: var(--muted); font-weight: 500; }
.gh-desc { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.gh-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.gh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 26px 0 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gh-stats > div { padding: 16px 18px; border-right: 1px solid var(--border); margin-right: -1px; }
.gh-stats > div[hidden] { display: none; }
.gh-stats dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.gh-stats dd { margin: 6px 0 0; font-size: 16px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.gh-stats dd a { text-decoration: none; }
.gh-stats dd a:hover { text-decoration: underline; }
@media (max-width: 600px) { .gh-stats { grid-template-columns: repeat(2, 1fr); } .gh-stats > div { border-bottom: 1px solid var(--border); } }
.gh-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 32px; }
.gh-cols > * { min-width: 0; }
@media (max-width: 860px) { .gh-cols { grid-template-columns: 1fr; gap: 28px; } }
.gh-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.commits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.commits li { border-bottom: 1px solid var(--border); }
.commits a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 2px; text-decoration: none; font-size: 14.5px; }
.commits a:hover .msg { color: var(--head-1); text-decoration: underline; text-underline-offset: 3px; }
.commits .sha { font: 500 12px var(--mono); color: var(--muted); }
.commits .msg { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commits time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.commits-empty a { display: block; color: var(--text-2); }
.gh-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gh-links a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.gh-links a:hover { border-color: var(--border-2); background: var(--panel-2); }
.gh-links b { display: block; font-size: 14.5px; font-weight: 620; }
.gh-links span { color: var(--muted); font-size: 13.5px; }

/* the home page ends with the philosophy, on the forest photo */
.philo.closing { position: relative; overflow: hidden; isolation: isolate; border-color: var(--border); padding: 64px 56px; }
.philo.closing::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(10, 10, 10, 0.74), rgba(10, 10, 10, 0.88)), #0b0b0b center 40% / cover no-repeat url("../img/hero-dark-1920.webp"); }
@media (prefers-color-scheme: light) {
  .philo.closing::before { background: linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.88)), #e9ecef center 40% / cover no-repeat url("../img/hero-light-1920.webp"); }
}
@media (prefers-color-scheme: dark) {
  .philo.closing h2, .philo.closing .philo-stats b { color: #fff; }
  .philo.closing .philo-text p:not(.kicker) { color: rgba(255, 255, 255, 0.84); }
  .philo.closing .philo-stats, .philo.closing .philo-stats div { border-color: rgba(255, 255, 255, 0.14); }
  .philo.closing .philo-stats span { color: rgba(255, 255, 255, 0.65); }
}
@media (max-width: 860px) { .philo.closing { padding: 32px 24px; } }

/* the philosophy page's statement */
.philo-text p.philo-lead { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.022em; font-weight: 650; color: var(--head-1); margin: 0 0 22px; text-wrap: balance; }
.philo-text p.philo-lead span { color: var(--head-2); }
.philo-text p.philo-why { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); margin: 0; text-wrap: pretty; }

/* The version, in green wherever it shows (filled in from the latest GitHub release by site.js). */
.ver { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; border: 1px solid rgba(24, 165, 123, 0.4); background: var(--up-soft); color: var(--up) !important; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; white-space: nowrap; }
.ver::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.pill b.ver { padding: 2px 9px 2px 8px; }
.hero .pill b.ver { background: rgba(24, 165, 123, 0.16); }
.get-head .ver { align-self: center; }
.foot-ver { margin-right: 8px; vertical-align: 1px; }
