/*
 * The blog's look. It is the front page's (web/src/components/front/front.css) carried over to pages of reading:
 * the brand sheet's six colours, Geist, the burst, light on Mint and dark on a deep Night. The pages themselves are
 * written by the server (src/blog/pages.ts), so this is plain CSS with no build step: edit it and reload.
 *
 * Tokens work in two levels, as on the front page: brand constants that never change, and theme tokens (--bg, --ink,
 * --surface …) set once per theme. Everything below uses only theme tokens, so both themes come for free. A post
 * picks one brand colour as its accent (--acc), through data-accent on its card or its page.
 */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-mono.woff2") format("woff2-variations");
}

/* Moving between the blog's pages: the old page fades into the new one, and a post's cover slides from its card. */
@view-transition {
  navigation: auto;
}

:root {
  --volt: #d0ff71;
  --night: #183132;
  --mint: #ebfff5;
  --violet: #8f93ff;
  --forest: #004d43;
  --neon: #27eaa6;

  --font: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --prose: 712px;
  --nav-h: 80px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --acc: var(--volt);
  --on-acc: var(--forest);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ebfff5;
  --bg-2: #dcf7e9;
  --surface: #ffffff;
  --surface-2: #f5fffa;
  --ink: #183132;
  --ink-2: #45605d;
  --ink-3: #6f8983;
  --line: rgb(24 49 50 / 0.1);
  --line-2: rgb(24 49 50 / 0.2);
  --accent: #183132;
  --on-accent: #d0ff71;
  --accent-ink: #004d43;
  --good: #00a878;
  --glass: rgb(255 255 255 / 0.66);
  --glass-strong: rgb(255 255 255 / 0.9);
  --glass-line: rgb(24 49 50 / 0.1);
  --glass-hi: rgb(255 255 255 / 0.9);
  --shadow: 0 30px 60px -30px rgb(0 77 67 / 0.32), 0 8px 20px -12px rgb(24 49 50 / 0.14);
  --shadow-lg: 0 60px 120px -44px rgb(0 77 67 / 0.4), 0 18px 40px -20px rgb(24 49 50 / 0.18);
  --glow: rgb(208 255 113 / 0.9);
  --glow-2: rgb(39 234 166 / 0.4);
  --glow-3: rgb(143 147 255 / 0.36);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1718;
  --bg-2: #0e1f20;
  --surface: #142a2b;
  --surface-2: #1b3637;
  --ink: #ebfff5;
  --ink-2: #a8c2ba;
  --ink-3: #7c9892;
  --line: rgb(235 255 245 / 0.09);
  --line-2: rgb(235 255 245 / 0.18);
  --accent: #d0ff71;
  --on-accent: #063a31;
  --accent-ink: #d0ff71;
  --good: #27eaa6;
  --glass: rgb(20 42 43 / 0.62);
  --glass-strong: rgb(16 34 35 / 0.9);
  --glass-line: rgb(235 255 245 / 0.13);
  --glass-hi: rgb(235 255 245 / 0.1);
  --shadow: 0 30px 70px -28px rgb(0 0 0 / 0.75), 0 8px 24px -12px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 60px 140px -40px rgb(0 0 0 / 0.85), 0 18px 48px -18px rgb(0 0 0 / 0.55);
  --glow: rgb(208 255 113 / 0.22);
  --glow-2: rgb(39 234 166 / 0.2);
  --glow-3: rgb(143 147 255 / 0.24);
}

[data-accent="volt"] {
  --acc: var(--volt);
  --on-acc: var(--forest);
}
[data-accent="neon"] {
  --acc: var(--neon);
  --on-acc: var(--forest);
}
[data-accent="violet"] {
  --acc: var(--violet);
  --on-acc: var(--night);
}
[data-accent="forest"] {
  --acc: var(--forest);
  --on-acc: var(--volt);
}

/* ---------- Ground ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body.bl-root {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: var(--volt);
  color: var(--forest);
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
.bl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bl-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  transform: translateY(-200%);
}
.bl-skip:focus {
  transform: none;
}
.bl-wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.bl-display {
  font-weight: 500;
  font-size: clamp(3rem, 7.6vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.bl-h1 {
  font-weight: 500;
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.bl-h2 {
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.bl-lede {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.36;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.bl-mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* A word picked out in a headline: a Volt block with Forest on it, on either theme. */
.bl-hl {
  display: inline-block;
  padding: 0.02em 0.16em 0.08em;
  margin: 0 -0.04em;
  border-radius: 0.14em;
  background: var(--volt);
  color: var(--forest);
}
.bl-burst {
  display: block;
  overflow: visible;
}
.bl-wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.07em;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.bl-wordmark > svg {
  width: 0.42em;
  height: 0.42em;
  margin-top: 0.02em;
  flex: none;
}
.bl-wordmark--lg {
  font-size: 34px;
}
.bl-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent);
}
.bl-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.bl-eyebrow a {
  text-decoration: none;
}
.bl-eyebrow a:hover {
  color: var(--ink);
}

/* ---------- Chips and buttons ---------- */

.bl-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s,
    color 0.25s;
}
a.bl-chip:hover {
  background: var(--acc);
  border-color: transparent;
  color: var(--on-acc);
}
.bl-chip--violet {
  border-color: transparent;
  background: var(--violet);
  color: var(--night);
}
.bl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.4s,
    background-color 0.3s,
    color 0.3s;
}
.bl-btn:active {
  transform: scale(0.97);
}
.bl-btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 0 0 0 var(--glow),
    inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.bl-btn--primary:hover {
  box-shadow:
    0 10px 40px -6px var(--glow),
    inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.bl-btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.bl-arrow {
  flex: none;
  transition: transform 0.4s var(--ease);
}
.bl-btn:hover .bl-arrow {
  transform: translate(3px, -3px);
}
.bl-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.bl-icon-btn:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}
.bl-theme-btn {
  overflow: hidden;
}
.bl-theme-btn svg {
  position: absolute;
  transition:
    transform 0.5s var(--ease),
    opacity 0.3s;
}
html[data-theme="light"] .bl-sun,
html[data-theme="dark"] .bl-moon {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

/* ---------- The nav: a frosted bar floating at the top ---------- */

.bl-nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 12px 12px 0;
  pointer-events: none;
}
.bl-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 1080px;
  height: 56px;
  padding: 0 9px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.bl-nav-home {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.bl-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.bl-nav-links a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 0.3s,
    background-color 0.3s;
}
.bl-nav-links a:hover {
  color: var(--ink);
}
.bl-nav-links a[aria-current="page"] {
  background: var(--volt);
  color: var(--forest);
}
.bl-nav-end {
  display: flex;
  align-items: center;
  gap: 2px;
}
.bl-nav-signin {
  margin: 0 10px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.bl-nav-signin:hover {
  color: var(--ink);
}
@media (max-width: 900px) {
  .bl-nav-links {
    display: none;
  }
  .bl-nav-end {
    margin-left: auto;
  }
}
@media (max-width: 520px) {
  .bl-nav-signin {
    display: none;
  }
}

/* ---------- The first screen of /blog ---------- */

.bl-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 112px)) 0 clamp(36px, 5vw, 72px);
  overflow: clip;
}
/* The bar grid of a step sequencer, fading out down the page, with the brand's three lights behind it. */
.bl-hero-grid,
.bl-band-grid {
  --cell: 28px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(0deg, var(--line) 1px, transparent 1px);
  background-size:
    calc(var(--cell) * 4) 100%,
    var(--cell) 100%,
    100% var(--cell);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
}
.bl-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 78% 30%, var(--glow) 0%, transparent 70%), radial-gradient(30% 40% at 96% 62%, var(--glow-3) 0%, transparent 70%),
    radial-gradient(34% 44% at 58% 4%, var(--glow-2) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.7;
}
.bl-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.bl-hero-words .bl-display {
  margin-top: 22px;
}
.bl-hero-words .bl-lede {
  max-width: 34ch;
  margin-top: 26px;
}
/* The newest three covers, fanned out in depth. */
.bl-hero-stack {
  position: relative;
  height: clamp(300px, 34vw, 460px);
  perspective: 1500px;
  perspective-origin: 40% 40%;
}
.bl-hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(82%, 440px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--glass-line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition:
    transform 0.9s var(--ease),
    box-shadow 0.6s;
  will-change: transform;
}
.bl-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bl-hero-card--1 {
  z-index: 3;
  transform: translate(-58%, -38%) rotateY(-22deg) rotateX(9deg) rotateZ(1.5deg);
  animation: bl-bob 7s ease-in-out infinite;
}
.bl-hero-card--2 {
  z-index: 2;
  transform: translate(-34%, -66%) translateZ(-140px) rotateY(-22deg) rotateX(9deg) rotateZ(1.5deg);
  animation: bl-bob 7s ease-in-out -2.3s infinite;
}
.bl-hero-card--3 {
  z-index: 1;
  transform: translate(-10%, -94%) translateZ(-280px) rotateY(-22deg) rotateX(9deg) rotateZ(1.5deg);
  animation: bl-bob 7s ease-in-out -4.6s infinite;
}
.bl-hero-stack:hover .bl-hero-card {
  animation-play-state: paused;
}
.bl-hero-card:hover {
  z-index: 4;
  box-shadow:
    var(--shadow-lg),
    0 0 0 2px var(--volt);
}
@keyframes bl-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@media (max-width: 900px) {
  .bl-hero-inner {
    grid-template-columns: 1fr;
  }
  .bl-hero-stack {
    display: none;
  }
}

/* The sections of the blog, as a row of pills. */
.bl-topics {
  display: flex;
  gap: 8px;
  padding: 6px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bl-topics::-webkit-scrollbar {
  display: none;
}
.bl-topic {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.bl-topic:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.bl-topic.is-on {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.bl-section {
  padding-block: clamp(40px, 5.5vw, 80px);
}
.bl-section--feature {
  padding-block: clamp(28px, 4vw, 56px) 0;
}
.bl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.bl-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
}
.bl-more:hover {
  color: var(--ink);
}
.bl-empty {
  padding-block: 80px 120px;
}

/* The guides, as a row of doors in the brand's colours. */
.bl-section--starts {
  padding-bottom: 0;
}
.bl-starts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.bl-starts:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bl-start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
  padding: clamp(20px, 2.2vw, 30px);
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--acc);
  color: var(--on-acc);
  text-decoration: none;
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.bl-start-card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: var(--shadow-lg);
}
.bl-start-card strong {
  font-weight: 500;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.bl-start-card .bl-mono {
  opacity: 0.72;
}
.bl-start-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 14px;
}
.bl-start-card-foot .bl-arrow {
  width: 26px;
  height: 26px;
  transition: transform 0.5s var(--ease);
}
.bl-start-card:hover .bl-arrow {
  transform: translate(4px, -4px);
}
@media (max-width: 900px) {
  .bl-starts,
  .bl-starts:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }
  .bl-start-card {
    min-height: 0;
  }
}

/* ---------- The newest post, large ---------- */

.bl-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: calc(var(--radius) + 14px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bl-feature-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.bl-feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.bl-feature:hover .bl-feature-cover img {
  transform: scale(1.03);
}
.bl-feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(6px, 1.4vw, 20px) clamp(8px, 2vw, 28px) clamp(12px, 1.6vw, 22px) 0;
}
.bl-feature-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.bl-feature-title {
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.bl-feature-title a {
  text-decoration: none;
}
@media (max-width: 900px) {
  .bl-feature {
    grid-template-columns: 1fr;
  }
  .bl-feature-body {
    padding: 4px 10px 16px;
  }
}

/* ---------- Cards ---------- */

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.4vw, 32px);
}
@media (max-width: 1000px) {
  .bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .bl-grid {
    grid-template-columns: 1fr;
  }
}
.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bl-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 0 0 0 transparent;
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.bl-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.bl-card:hover .bl-card-cover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.bl-card:hover .bl-card-cover img {
  transform: scale(1.04);
}
.bl-cover-blank {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--acc);
  color: var(--on-acc);
}
.bl-cover-blank svg {
  width: 22%;
}
.bl-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bl-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13px;
}
.bl-card-meta .bl-chip {
  position: relative;
  z-index: 1;
}
.bl-card-title {
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.bl-card-title a {
  text-decoration: none;
  background-image: linear-gradient(var(--acc), var(--acc));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 0.34em;
  transition: background-size 0.5s var(--ease);
}
/* The whole card is the link. */
.bl-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.bl-card:hover .bl-card-title a {
  background-size: 100% 0.34em;
}
html[data-theme="dark"] .bl-card:hover .bl-card-title a {
  color: var(--on-acc);
  background-size: 100% 100%;
}
.bl-card-text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(36px, 5vw, 64px);
}
.bl-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}
.bl-page:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.bl-page.is-on {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- A section's page ---------- */

.bl-topic-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(44px, 7vw, 96px));
  padding-bottom: clamp(24px, 3vw, 40px);
}
.bl-topic-head .bl-h1 {
  margin-top: 20px;
}
.bl-topic-head .bl-lede {
  max-width: 44ch;
  margin-top: 20px;
}
.bl-notfound .bl-btn {
  margin-top: 28px;
}

/* ---------- The band that asks for a website ---------- */

.bl-band {
  position: relative;
  margin-block: clamp(40px, 6vw, 96px);
  margin-inline: clamp(10px, 2vw, 24px);
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 44px);
  background: var(--volt);
  color: var(--forest);
  --line: rgb(0 77 67 / 0.09);
  --line-2: rgb(0 77 67 / 0.18);
}
.bl-band-grid {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.bl-band-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: clamp(48px, 7vw, 104px);
}
.bl-band-mark {
  position: absolute;
  right: clamp(-40px, 2vw, 60px);
  top: 50%;
  width: clamp(180px, 30vw, 420px);
  translate: 0 -50%;
  color: var(--forest);
  opacity: 0.12;
}
.bl-band-title {
  max-width: 14ch;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.bl-band-text {
  max-width: 44ch;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.36;
  color: rgb(0 77 67 / 0.82);
}
.bl-band .bl-start {
  margin-top: 30px;
}
.bl-band-note {
  margin-top: 16px;
  color: rgb(0 77 67 / 0.66);
}

/* The field and its button. */
.bl-start {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 520px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgb(24 49 50 / 0.16);
  background: #ffffff;
  box-shadow: 0 24px 50px -28px rgb(0 77 67 / 0.5);
}
.bl-start-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 8px 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #183132;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.bl-start-input::placeholder {
  color: #7a938d;
}
.bl-start:focus-within {
  box-shadow:
    0 24px 50px -28px rgb(0 77 67 / 0.5),
    0 0 0 3px var(--violet);
}
.bl-start .bl-btn {
  height: 48px;
  padding: 0 20px;
  background: #183132;
  color: #d0ff71;
}
@media (max-width: 480px) {
  .bl-start {
    flex-direction: column;
    border-radius: 26px;
  }
}

/* ---------- A post ---------- */

.bl-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}
.bl-progress i {
  display: block;
  height: 100%;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
html[data-theme="light"] .bl-progress i {
  background: var(--forest);
}
.bl-preview {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  translate: -50% 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--night);
  box-shadow: var(--shadow);
}
.bl-post-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px));
}
.bl-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}
.bl-crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.bl-crumbs a:hover {
  color: var(--ink);
}
.bl-title {
  max-width: 17ch;
  margin-top: 22px;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.bl-post-lede {
  max-width: 52ch;
  margin-top: 24px;
}
.bl-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 30px;
}
.bl-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 999px;
  background: var(--acc);
  color: var(--on-acc);
}
.bl-avatar svg {
  width: 18px;
  height: 18px;
}
.bl-byline p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: auto;
  font-size: 14.5px;
}
.bl-byline-name {
  font-weight: 500;
}
.bl-byline-meta {
  color: var(--ink-3);
}
.bl-share {
  display: flex;
  gap: 6px;
}
.bl-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.bl-share-btn:hover {
  border-color: transparent;
  background: var(--acc);
  color: var(--on-acc);
}

.bl-cover-wrap {
  position: relative;
  margin-top: clamp(32px, 4.4vw, 60px);
  perspective: 2000px;
}
/* The post's colour, as a light behind its cover. */
.bl-cover-wrap::before {
  content: "";
  position: absolute;
  inset: 12% 8% -6%;
  border-radius: 50%;
  background: var(--acc);
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}
html[data-theme="dark"] .bl-cover-wrap::before {
  opacity: 0.2;
}
.bl-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--glass-line);
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease);
}
.bl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--prose)) 250px;
  justify-content: center;
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 72px);
}
.bl-layout--plain {
  grid-template-columns: minmax(0, var(--prose));
}
.bl-toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  max-height: calc(100vh - var(--nav-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.bl-prose {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.bl-toc-box summary {
  list-style: none;
  color: var(--ink-3);
  cursor: default;
}
.bl-toc-box summary::-webkit-details-marker {
  display: none;
}
.bl-toc-box ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line-2);
}
.bl-toc-box a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.bl-toc-box a:hover {
  color: var(--ink);
}
.bl-toc-box a.is-on {
  border-color: var(--accent-ink);
  color: var(--ink);
  font-weight: 500;
}
.bl-toc-cta {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: var(--volt);
  color: var(--forest);
}
.bl-toc-cta p {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.bl-toc-cta .bl-btn {
  background: var(--night);
  color: var(--volt);
}
@media (max-width: 1080px) {
  .bl-layout {
    grid-template-columns: minmax(0, var(--prose));
  }
  .bl-toc {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .bl-prose {
    grid-row: auto;
  }
  .bl-toc-box summary {
    cursor: pointer;
  }
  .bl-toc-cta {
    display: none;
  }
}

/* ---------- The words of a post ---------- */

.bl-prose {
  counter-reset: section;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
  color: color-mix(in srgb, var(--ink) 88%, var(--bg));
  overflow-wrap: break-word;
}
.bl-prose > * + * {
  margin-top: 1.25em;
}
.bl-prose h2 {
  margin-top: 2.5em;
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
/* Each section is numbered, the way the front page numbers its chapters. */
.bl-prose h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.bl-prose h3 {
  margin-top: 2em;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.bl-prose h4 {
  margin-top: 1.8em;
  font-weight: 600;
  font-size: 1em;
  color: var(--ink);
}
.bl-anchor {
  text-decoration: none;
}
.bl-prose h2 + *,
.bl-prose h3 + *,
.bl-prose h4 + * {
  margin-top: 0.8em;
}
.bl-prose p {
  text-wrap: pretty;
}
.bl-prose strong {
  font-weight: 600;
  color: var(--ink);
}
.bl-prose :where(p, li, td, figcaption, blockquote) a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.bl-prose :where(p, li, td, figcaption, blockquote) a:hover {
  background: var(--volt);
  color: var(--forest);
  text-decoration-color: transparent;
}
.bl-prose :where(ul, ol) {
  padding-left: 1.3em;
}
.bl-prose li + li {
  margin-top: 0.5em;
}
.bl-prose li::marker {
  color: var(--accent-ink);
  font-weight: 500;
}
.bl-prose ul > li {
  list-style: none;
  position: relative;
}
.bl-prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-ink);
}
.bl-prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent-ink);
  color: var(--ink);
  font-size: 1.16em;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.bl-prose :not(pre) > code {
  padding: 0.14em 0.4em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  font-family: var(--mono);
  font-size: 0.86em;
}
.bl-prose pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
}
.bl-prose hr {
  height: 1px;
  margin-block: 2.6em;
  border: 0;
  background: var(--line-2);
}
.bl-partof {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  line-height: 1.4;
}

/* The answer, given away at the top. */
.bl-summary {
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bl-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
}
.bl-summary-title svg {
  width: 14px;
  height: 14px;
}
.bl-summary ul {
  margin-top: 16px;
  padding-left: 1.3em;
}
.bl-summary li {
  color: var(--ink);
  font-size: 0.96em;
  line-height: 1.45;
}

/* Pictures. A screenshot sits in a small window, wider than the words around it. */
.bl-figure,
.bl-shot {
  margin-block: 2.2em;
}
.bl-figure img,
.bl-figure video {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bl-prose figcaption {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}
.bl-window {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease);
}
.bl-shot:hover .bl-window {
  transform: translateY(-4px);
}
.bl-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.bl-dots {
  display: inline-flex;
  gap: 5px;
}
.bl-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
}
.bl-dots i:first-child {
  background: var(--acc);
}
html[data-theme="light"] [data-accent="volt"] .bl-dots i:first-child {
  background: var(--forest);
}
.bl-address {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bl-window img {
  width: 100%;
}
[data-zoom] {
  cursor: zoom-in;
}
@media (min-width: 1081px) {
  .bl-shot,
  .bl-gallery {
    margin-inline: -44px;
  }
}

.bl-gallery {
  display: flex;
  gap: 16px;
  margin-block: 2.2em;
  padding: 6px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.bl-gallery .bl-figure {
  flex: 0 0 min(300px, 68%);
  margin: 0;
  scroll-snap-align: start;
}

/* Steps: a numbered list with each number on a pad, joined by a line. */
.bl-steps ol {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bl-steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 6px 0 30px 62px;
}
.bl-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--acc);
  color: var(--on-acc);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.bl-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-2);
}
.bl-steps li:last-child {
  padding-bottom: 0;
}
.bl-steps li > * + * {
  margin-top: 0.6em;
}

.bl-callout {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 26%, transparent);
  background: color-mix(in srgb, var(--acc) 22%, var(--surface));
  font-size: 0.95em;
}
.bl-callout--note {
  border-color: var(--line-2);
  background: var(--surface);
}
.bl-callout-title {
  margin-bottom: 8px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bl-callout > * + * {
  margin-top: 0.7em;
}

/* The "paste your website" field, in the middle of a post. */
.bl-cta {
  position: relative;
  overflow: hidden;
  margin-block: 2.4em;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--night);
  color: var(--mint);
}
.bl-cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--volt);
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}
.bl-cta-title {
  position: relative;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.bl-cta-text {
  position: relative;
  margin-top: 10px;
  color: rgb(235 255 245 / 0.76);
  font-size: 0.95em;
}
.bl-cta .bl-start {
  position: relative;
  margin-top: 22px;
}

.bl-table {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.bl-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  line-height: 1.4;
}
.bl-table th,
.bl-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.bl-table thead th {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--surface-2);
}
.bl-table tbody tr:last-child > * {
  border-bottom: 0;
}
.bl-table tbody th {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.bl-table--platforms td {
  white-space: nowrap;
  color: var(--ink-3);
}
.bl-table--platforms td[data-cell="Yes"],
.bl-table--platforms td[data-cell="By hand"] {
  color: var(--ink);
  font-weight: 500;
}
.bl-table--platforms td[data-cell="Yes"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--good);
  vertical-align: 0.08em;
}

/* Go deeper: the posts written under a guide. */
.bl-cluster ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.bl-cluster li {
  margin: 0;
  border-bottom: 1px solid var(--line-2);
}
.bl-cluster a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 6px;
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color 0.3s,
    padding 0.4s var(--ease);
}
.bl-cluster a:hover {
  padding-inline: 16px;
  background: var(--volt);
  color: var(--forest);
}
.bl-cluster a > .bl-mono {
  color: var(--ink-3);
}
.bl-cluster a:hover > .bl-mono,
.bl-cluster a:hover em {
  color: inherit;
}
.bl-cluster strong {
  display: block;
  font-weight: 500;
  font-size: 1.05em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
}
.bl-cluster em {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.84em;
  font-style: normal;
  line-height: 1.35;
}

.bl-faq-item {
  border-bottom: 1px solid var(--line-2);
}
.bl-faq h2 + .bl-faq-item {
  border-top: 1px solid var(--line-2);
  margin-top: 1.2em;
}
.bl-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  color: var(--ink);
  font-size: 1.05em;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}
.bl-faq-item summary::-webkit-details-marker {
  display: none;
}
.bl-faq-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  transition:
    background-color 0.3s,
    transform 0.5s var(--ease);
}
.bl-faq-mark::before,
.bl-faq-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.bl-faq-mark::after {
  transform: rotate(90deg);
  transition: transform 0.5s var(--ease);
}
.bl-faq-item[open] .bl-faq-mark {
  background: var(--volt);
  color: var(--forest);
}
.bl-faq-item[open] .bl-faq-mark::after {
  transform: rotate(0deg);
}
.bl-faq-item p {
  margin: 0;
  padding: 0 44px 20px 2px;
  color: var(--ink-2);
  font-size: 0.95em;
}

.bl-post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 3em;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.bl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bl-steps-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.bl-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.bl-step:hover {
  border-color: transparent;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bl-step .bl-mono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}
.bl-step strong {
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.bl-step--right {
  align-items: flex-end;
  text-align: right;
}
@media (max-width: 640px) {
  .bl-steps-nav {
    grid-template-columns: 1fr;
  }
}

/* A picture, opened large. */
.bl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 48px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  cursor: zoom-out;
}
.bl-lightbox[hidden] {
  display: none;
}
.bl-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.bl-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}

/* ---------- Search ---------- */

.bl-search {
  width: min(640px, calc(100vw - 24px));
  max-height: min(560px, 76vh);
  margin-top: 12vh;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.bl-search::backdrop {
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bl-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 18px;
  border-bottom: 1px solid var(--line);
}
.bl-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  color: var(--ink-3);
}
.bl-search-field input {
  flex: 1;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.bl-search-field input::-webkit-search-cancel-button {
  display: none;
}
.bl-search-close {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.bl-search-results {
  max-height: min(460px, 60vh);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}
.bl-search-results a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
}
.bl-search-results a:hover,
.bl-search-results a:focus-visible,
.bl-search-results li.is-on a {
  background: var(--volt);
  color: var(--forest);
}
.bl-search-results strong {
  display: block;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.bl-search-results span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  opacity: 0.72;
}
.bl-search-empty {
  padding: 26px 22px 30px;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */

.bl-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
}
.bl-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
}
.bl-footer-brand p {
  max-width: 26ch;
  margin: 16px 0 22px;
  color: var(--ink-2);
  font-size: 15px;
}
.bl-footer-title {
  color: var(--ink-3);
}
.bl-footer ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.bl-footer li + li {
  margin-top: 12px;
}
.bl-footer li a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s;
}
.bl-footer li a:hover {
  color: var(--ink);
}
.bl-footer-legal {
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
/* The wordmark at full width, cropped by the page's bottom edge. */
.bl-footer-giant {
  display: flex;
  justify-content: center;
  margin: clamp(48px, 7vw, 110px) 0 -5.5vw;
  pointer-events: none;
  user-select: none;
}
.bl-footer-giant .bl-wordmark {
  font-size: 31vw;
  line-height: 0.74;
  opacity: 0.06;
}
@media (max-width: 900px) {
  .bl-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bl-footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Motion ---------- */

/* Blocks rise into place as they scroll in. Only once the script is there to bring them in (theme.js marks the page). */
html.bl-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
html.bl-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* The theme switch: the new theme opens as a circle from the switch (blog.js sets where). */
html.bl-theme-switch::view-transition-old(root),
html.bl-theme-switch::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html.bl-theme-switch::view-transition-new(root) {
  z-index: 1;
  animation: bl-open 0.7s var(--ease);
}
@keyframes bl-open {
  from {
    clip-path: circle(0 at var(--tx, 50%) var(--ty, 0%));
  }
  to {
    clip-path: circle(150vmax at var(--tx, 50%) var(--ty, 0%));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  html.bl-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  @view-transition {
    navigation: none;
  }
}

@media print {
  .bl-nav-wrap,
  .bl-band,
  .bl-toc,
  .bl-share,
  .bl-footer,
  .bl-progress,
  .bl-steps-nav {
    display: none !important;
  }
}
