/* Layout: one quiet 680px column under a full-width wordmark. The live island floats at the top centre. */
:root {
  --paper: #FFFFFF;
  --ink: #0B0B0C;
  --muted: #5B5B63;
  --soft: #71717A;
  --nav: #3F3F46;
  --line: #E4E4E7;
  --rule: #ECECEE;
  --hair: #F0F0F2;
  --tile: #F6F6F7;
  --dot: #DCDCE0;
  /* Deep sea teal: the bright shade on dark surfaces, the deep one on paper. */
  --accent: #5EEAD4;
  --accent-ink: #115E59;
  --success: #34D399;
  --on-ink-chip: rgba(255, 255, 255, 0.1);
  --on-ink-track: rgba(255, 255, 255, 0.16);
  --success-chip: rgba(52, 211, 153, 0.16);
  --accent-chip: rgba(94, 234, 212, 0.18);
  --island-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.6);
  --on-ink-soft: rgba(255, 255, 255, 0.55);
  --on-ink-line: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.55);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.4);
  --paper-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.3);
  --frost-1: #0F766E;
  --frost-2: #EA580C;
  --frost-3: #1E293B;
  --code: #27272A;
  --code-key: #6D28D9;
  --code-str: #B45309;
  --code-fn: #115E59;
  --code-tag: #1D4ED8;
  --code-com: #71717A;
  /* Live activity demos: album art and call avatars. */
  --art-0: linear-gradient(135deg, #2DD4BF 0%, #0F766E 45%, #1E293B 100%);
  --art-1: linear-gradient(135deg, #FBBF24 0%, #EA580C 50%, #7C2D12 100%);
  --art-2: linear-gradient(135deg, #A78BFA 0%, #4F46E5 50%, #1E1B4B 100%);
  --face-1: #A7F3D0;
  --face-2: #BFDBFE;
  --face-3: #E4E4E7;
  --face-fg: #0B0B0C;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* The island picks up the page's face and accent. */
  --buoy-font: var(--sans);
  --buoy-accent: #5EEAD4;
  --buoy-accent-strong: #115E59;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
code, pre { font-family: var(--mono); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.page {
  position: relative;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}

/* ───── Ripples ─────
   Faint rings spread from the island at the top of the page, behind the hero.
   A teal ripple runs out through them whenever the island changes what it shows (main.ts). */
.ripples {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 860px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
/* Centred on the island: 16px from the top, plus half its 40px height. */
.ripples i, .ripples b { position: absolute; left: 50%; top: 36px; border-radius: 50%; transform: translate(-50%, -50%); }
.ripples i { border: 1px solid color-mix(in srgb, var(--accent-ink) 13%, transparent); }
.ripples i:nth-child(1) { width: 190px; height: 190px; border-color: color-mix(in srgb, var(--accent-ink) 20%, transparent); }
.ripples i:nth-child(2) { width: 420px; height: 420px; border-color: color-mix(in srgb, var(--accent-ink) 16%, transparent); }
.ripples i:nth-child(3) { width: 700px; height: 700px; }
.ripples i:nth-child(4) { width: 1030px; height: 1030px; border-color: color-mix(in srgb, var(--accent-ink) 11%, transparent); }
.ripples i:nth-child(5) { width: 1420px; height: 1420px; border-color: color-mix(in srgb, var(--accent-ink) 9%, transparent); }
.ripples i:nth-child(6) { width: 1860px; height: 1860px; border-color: color-mix(in srgb, var(--accent-ink) 7%, transparent); }
/* It grows by size rather than scale, so its line stays crisp. */
.ripples b { width: 110px; height: 110px; border: 1.5px solid var(--accent); opacity: 0; animation: ripple 3.2s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
@keyframes ripple {
  0% { width: 110px; height: 110px; opacity: 0.9; }
  70% { opacity: 0.25; }
  100% { width: 1860px; height: 1860px; opacity: 0; }
}

/* ───── Header ───── */
.head {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark .ring { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 54 70; }
.brand-mark .pill { fill: var(--ink); }
/* Room for the resting island, which is fixed to the top of the viewport. */
.head-gap { width: 104px; height: 30px; }
.nav { justify-self: end; display: flex; gap: 2px; }
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--nav);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--tile); }
.nav svg { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ───── Hero ───── */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* The box ends at the baseline, and the tail of the y hangs into the reserved space below. */
.wordmark {
  margin-top: 20px;
  margin-bottom: 0.16em;
  align-self: stretch;
  font-size: clamp(96px, 27vw, 400px);
  height: 0.795em;
}
/* The right margin centres the letters' outline (from the stem of the B to the arm of the y), not their advance widths. */
.wordmark h1 { margin: -0.06em 0.124em 0 0; font-size: 1em; line-height: 1; font-weight: 700; letter-spacing: -0.075em; }
.tagline {
  margin: 28px 0 0;
  max-width: 680px;
  font-size: clamp(26px, 5.2vw, 36px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.tagline span { color: var(--soft); }
.install { margin-top: 26px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* The package manager tabs and the command they pick share one dark card, centred under the tagline. */
.term {
  width: 400px;
  max-width: 100%;
  padding: 5px 5px 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--card-shadow);
}
.term :focus-visible { outline-color: var(--accent); outline-offset: -2px; }
.pm { display: flex; gap: 2px; }
/* Inset by the card's 5px padding, so their corners follow the card's (20px − 5px). */
.pm-option {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: none;
  color: var(--on-ink-soft);
  font: 500 13px/1 var(--mono);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.pm-option:hover { color: var(--paper); }
.pm-option[aria-pressed="true"] { background: var(--on-ink-chip); color: var(--paper); }
/* One width for every package manager: the long shadcn command ends in an ellipsis, and is shown whole on hover and copied whole. */
.term-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% + 10px);
  height: 52px;
  margin: 5px -5px 0;
  padding: 0 18px 0 20px;
  border: 0;
  border-top: 1px solid var(--on-ink-line);
  border-radius: 0 0 20px 20px;
  background: none;
  color: var(--paper);
  font: 400 14px/1 var(--mono);
  text-align: left;
  cursor: pointer;
}
#install-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt { color: var(--accent); }
.term-line svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; transition: opacity 0.15s; }
.term-line:hover svg { opacity: 1; }
.install-note { margin: 0; min-height: 21px; font-size: 13px; line-height: 21px; color: var(--muted); }
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.gh-link:hover { color: var(--ink); background: var(--tile); }
.gh-link svg { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ───── Column ───── */
.column {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 104px;
}
.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.try { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--accent-ink); }
.chip.is-current { border-color: var(--accent-ink); background: var(--accent-ink); color: var(--paper); }
.call {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tile);
  font-size: 13px;
  line-height: 1.6;
  color: var(--code);
  overflow-x: auto;
  white-space: pre;
}
.note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.block { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 72px; }
.block-head { display: flex; flex-direction: column; gap: 10px; }
.block-head h2 { margin: 0; font-size: clamp(36px, 7vw, 48px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; }
.block-head p { margin: 0; max-width: 34rem; color: var(--muted); }

/* States */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tile { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tile-stage {
  height: 112px;
  border-radius: 20px;
  background-color: var(--tile);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tile figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mini {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--island-shadow);
}
.mini-task { padding-right: 7px; }
.mini-ico {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--on-ink-chip);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-ico.is-success { background: var(--success-chip); color: var(--success); }
.mini-ico.is-success svg { stroke-width: 2.5; }
.mini-ico.is-accent { background: var(--accent-chip); color: var(--accent); }
.ring { width: 26px; height: 26px; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring .track { stroke: var(--on-ink-track); }
.ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 42.2 66; }
.mini-bubble {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--island-shadow);
}

/* Usage */
.code { min-width: 0; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 0 8px;
  border-bottom: 1px solid var(--hair);
}
.tabs { display: flex; min-width: 0; overflow-x: auto; }
.tabs [role="tab"] {
  flex: none;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--accent-ink); color: var(--accent-ink); font-weight: 600; }
.code-copy {
  flex: none;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
}
.code-copy:hover { color: var(--ink); }
.code-body { margin: 0; padding: 22px 24px 24px; overflow-x: auto; font-size: 14px; line-height: 1.8; color: var(--code); }
.more { margin: 0; font-size: 14px; color: var(--muted); }
.more a { color: var(--accent-ink); }
.t-k { color: var(--code-key); }
.t-s { color: var(--code-str); }
.t-f { color: var(--code-fn); }
.t-g { color: var(--code-tag); }
.t-c { color: var(--code-com); }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.theme {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.theme-stage {
  position: relative;
  height: 88px;
  border-radius: 18px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.15s;
}
.theme:hover .theme-stage { box-shadow: inset 0 0 0 1px var(--line); }
.theme[aria-pressed="true"] .theme-stage { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.theme-name { font-size: 14px; font-weight: 600; }
.theme-note { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.theme-pill { position: relative; width: 104px; height: 32px; border-radius: 999px; }
.theme-pill.is-ink { background: var(--ink); box-shadow: var(--island-shadow); }
.theme-pill.is-frost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.theme-pill.is-paper { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--paper-shadow); }
.frost-bg { position: absolute; inset: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.frost-bg i { border-radius: 10px; background: var(--frost-1); }
.frost-bg i:nth-child(2) { background: var(--frost-2); }
.frost-bg i:nth-child(3) { background: var(--frost-3); }
.theme-stage.is-notch { align-items: flex-start; }
.notch { position: relative; width: 104px; height: 28px; border-radius: 0 0 16px 16px; background: var(--ink); }
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: 12px; height: 12px; }
.notch::before { left: -12px; background: radial-gradient(circle at 0 100%, transparent 12px, var(--ink) 12.5px); }
.notch::after { right: -12px; background: radial-gradient(circle at 100% 100%, transparent 12px, var(--ink) 12.5px); }

/* Details */
.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.details > div { display: flex; flex-direction: column; gap: 6px; }
.details h3 { margin: 0; font-size: 15px; font-weight: 600; }
.details p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ───── Live activities ─────
   Drawn inside the island with buoy.live(). Colors come from the island's theme tokens (--buoy-*). */
.chip[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-ink); color: var(--paper); }

.buoy .lv-media { padding-right: 16px; }
/* Round in the compact island, like its icons, so it keeps the same 6px from the rounded end all the way around. */
.buoy .lv-art {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: var(--art-0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.buoy .lv-art[data-i="1"] { background: var(--art-1); }
.buoy .lv-art[data-i="2"] { background: var(--art-2); }
.buoy .lv-art.is-large { width: 56px; height: 56px; border-radius: 14px; }

.buoy .lv-bars { display: flex; align-items: center; gap: 2px; height: 24px; }
.buoy .lv-bars i { width: 3px; height: 20px; border-radius: 2px; background: var(--buoy-tint); transform: scaleY(0.2); transition: transform 0.2s ease; }
.buoy .lv-bars.is-plain i { background: currentColor; }
.buoy .lv-bars.is-on i:nth-child(7n + 1) { transform: scaleY(0.45); }
.buoy .lv-bars.is-on i:nth-child(7n + 2) { transform: scaleY(0.85); }
.buoy .lv-bars.is-on i:nth-child(7n + 3) { transform: scaleY(0.6); }
.buoy .lv-bars.is-on i:nth-child(7n + 4) { transform: scaleY(1); }
.buoy .lv-bars.is-on i:nth-child(7n + 5) { transform: scaleY(0.7); }
.buoy .lv-bars.is-on i:nth-child(7n + 6) { transform: scaleY(0.4); }
.buoy .lv-bars.is-on i:nth-child(7n) { transform: scaleY(0.75); }

.buoy .lv-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--buoy-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--buoy-success) 22%, transparent);
}
.buoy .lv-dot.is-rec { width: 10px; height: 10px; background: var(--buoy-error); box-shadow: 0 0 0 5px color-mix(in srgb, var(--buoy-error) 20%, transparent); }
.buoy .lv-dot.is-rec:not(.is-on) { opacity: 0.45; box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .buoy .lv-bars.is-on i { animation: lv-level 0.9s ease-in-out infinite alternate; }
  .buoy .lv-bars.is-on i:nth-child(2n) { animation-duration: 0.7s; animation-delay: -0.35s; }
  .buoy .lv-bars.is-on i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -0.6s; }
  .buoy .lv-dot { animation: lv-pulse 1.6s ease-in-out infinite; }
  .buoy .lv-dot.is-rec:not(.is-on) { animation: none; }
}
@keyframes lv-level { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes lv-pulse { 50% { opacity: 0.55; } }

.buoy .lv-note { color: var(--buoy-fg-2); font-weight: 400; }

.buoy .lv-readout { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.buoy .lv-big { font-family: var(--sans); font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.buoy .lv-line { margin: 0 4px; height: 6px; }

.buoy .lv-scrub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--buoy-fg-2);
  font-variant-numeric: tabular-nums;
}
.buoy .lv-scrub .lv-line { flex: 1; margin: 0; }
.buoy .lv-scrub .lv-line > i { background: var(--buoy-fg); }

.buoy .lv-transport { display: flex; align-items: center; justify-content: center; gap: 28px; }
.buoy .lv-ctl {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--buoy-fg);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.buoy .lv-ctl:hover { background: var(--buoy-chip); }
.buoy .lv-ctl:focus-visible { outline: 2px solid var(--buoy-tint); outline-offset: 2px; }
.buoy .lv-ctl svg { width: 22px; height: 22px; }
.buoy .buoy-btn.lv-play { flex: none; width: 52px; height: 52px; padding: 0; display: grid; place-items: center; }
.buoy .lv-play svg { width: 22px; height: 22px; stroke-width: 2.6; }

.buoy .lv-faces { display: flex; width: 64px; flex: none; }
.buoy .lv-faces span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--face-fg);
  background: var(--face-1);
  box-shadow: 0 0 0 2px var(--buoy-bg);
}
.buoy .lv-faces span + span { margin-left: -8px; background: var(--face-2); }
.buoy .lv-faces span + span + span { background: var(--face-3); }

.buoy .lv-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.buoy .lv-with-icon svg { width: 16px; height: 16px; }

.buoy .lv-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 28px; padding: 4px 4px 0; }
.buoy .lv-wave i { width: 4px; height: 4px; flex: none; border-radius: 2px; background: var(--buoy-fg); transition: height 0.18s ease; }
.buoy .lv-wave i.is-quiet { opacity: 0.35; }

.buoy .lv-undo { padding-right: 10px; }
.buoy .lv-undo .buoy-act { padding-right: 4px; }
.buoy .lv-countdown { width: 22px; height: 22px; }
.buoy .lv-countdown .val { stroke: var(--buoy-fg); animation: lv-count linear forwards; }
.buoy .buoy-stage:hover .lv-countdown .val { animation-play-state: paused; }
@keyframes lv-count { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 65.97; } }

/* ───── Footer ───── */
.foot {
  max-width: 680px;
  margin: 112px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.foot-version { font-family: var(--mono); font-size: 12px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nav); }

/* ───── Phones ───── */
@media (max-width: 640px) {
  .head { grid-template-columns: 1fr auto; row-gap: 0; }
  .head-gap { grid-column: 1 / -1; grid-row: 1; justify-self: center; height: 46px; }
  .nav a { padding: 0 9px; }
  .hero { padding-top: 40px; }
  .wordmark { font-size: 39vw; }
  .column { padding-top: 72px; gap: 80px; }
  .code-body { padding: 18px 18px 20px; font-size: 13px; }
}
/* The narrowest phones: the three nav links still fit beside the wordmark. */
@media (max-width: 350px) {
  .nav a { padding: 0 6px; }
  .nav svg { display: none; }
}
