/*
 * speak.brbnn.com: one stylesheet.
 *
 * The page is brbnn.com's paper and ink; the windows drawn on it are Speak's own light and
 * dark themes (src/themes/looks.ts), so they look like the app beside it. Every colour holds
 * its light and dark value through light-dark(), and follows the visitor's system.
 */

@font-face {
  font-family: 'Speak Mono';
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* The page: brbnn.com's paper, ink and red. */
  --bg: light-dark(#ece7db, #0f0f0d);
  --raised: light-dark(#e2dbcb, #1a1a17);
  --fg: light-dark(#12110e, #ebe6da);
  --muted: light-dark(#5a564c, #a09b8e);
  --rule: light-dark(rgb(18 17 14 / 22%), rgb(235 230 218 / 24%));
  --grid: light-dark(rgb(18 17 14 / 16%), rgb(235 230 218 / 11%));
  --red: light-dark(#d63c1e, #f0603c);

  /* Speak's windows. */
  --w-bg: light-dark(#ffffff, #000000);
  --w-bg2: light-dark(#fafafa, #0a0a0a);
  --w-sel: light-dark(#e5e5e5, #262626);
  --w-muted: light-dark(#949494, #5c5c5c);
  --w-dim: light-dark(#666666, #858585);
  --w-fg: light-dark(#404040, #a1a1a1);
  --w-hi: light-dark(#0a0a0a, #ededed);
  --w-edge: light-dark(#0a0a0a, #ededed);
  --w-red: light-dark(#c9341a, #f0603c);
  --w-green: light-dark(#157542, #62c98f);
  --w-yellow: light-dark(#856400, #f6c62a);
  --w-purple: light-dark(#86307a, #d483c2);
  --w-drop: light-dark(rgb(18 17 14 / 16%), rgb(0 0 0 / 70%));

  --font: 'Speak Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --step: steps(4, jump-none);
}

/* ───────────────────────────── base ───────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid) 1px, transparent 1.4px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'calt' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: #fff;
}

code,
kbd {
  font: inherit;
}

code {
  background: var(--raised);
  padding: 0 0.3em;
}

button {
  font: inherit;
  color: inherit;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

/* The shortcuts as the visitor's system writes them: site.js sets data-os. */
:root[data-os='mac'] .k-win,
:root:not([data-os='mac']) .k-mac {
  display: none;
}

/* [ bracketed ] words and links, as the app's buttons are. */
.br::before,
.br-tag::before {
  content: '[ ';
  color: var(--red);
  font-weight: 400;
}

.br::after,
.br-tag::after {
  content: ' ]';
  color: var(--red);
  font-weight: 400;
}

.br {
  text-decoration: none;
  white-space: nowrap;
}

.br:hover {
  color: inherit;
  text-decoration: underline;
}

.br-tag {
  font-weight: 700;
  white-space: nowrap;
}

/* ───────────────────────────── header ───────────────────────────── */

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wm {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wm:hover {
  color: inherit;
}

.glyph {
  width: 1.75rem;
  height: auto;
  flex: none;
}

.g-b {
  fill: currentColor;
}

.g-d {
  fill: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--fg);
}

@media (width < 40rem) {
  .nav a:not(.br) {
    display: none;
  }
}

/* ───────────────────────────── hero ───────────────────────────── */

.hero {
  display: grid;
  gap: 2.5rem 3.5rem;
  padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.8vw, 5.75rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 .dot {
  color: var(--red);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.lead {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 32ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 0.875rem 1.375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms var(--step);
}

.btn:hover {
  background: var(--red);
  color: #fff;
}

.cta-note {
  margin-top: -0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.cta-note a {
  color: var(--fg);
}

.modes-mini {
  display: grid;
  gap: 0.375rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.modes-mini li {
  display: grid;
  grid-template-columns: 12.5ch minmax(0, 1fr);
}

.modes-mini .br-tag {
  color: var(--fg);
}

@media (width >= 64rem) {
  .hero {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  .hero h1 {
    grid-column: 1 / -1;
  }

  .hero-copy {
    padding-top: 3rem;
  }
}

/* ───────────────────────────── demo ───────────────────────────── */

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin-left: -0.5rem;
}

.tab,
.demo-play {
  background: none;
  border: 0;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: var(--muted);
}

.tab::before,
.tab::after {
  color: transparent;
}

.tab::before {
  content: '[ ';
}

.tab::after {
  content: ' ]';
}

.tab:hover {
  color: var(--fg);
}

.tab[aria-pressed='true'] {
  color: var(--fg);
  font-weight: 700;
}

.tab[aria-pressed='true']::before,
.tab[aria-pressed='true']::after {
  color: var(--red);
  font-weight: 400;
}

.demo-play:hover {
  color: var(--fg);
}

.demo-play {
  margin-left: auto;
}

/* Narrow: the four examples on one line, brackets tight. */
@container (width < 34rem) {
  .demo-bar {
    font-size: 0.8125rem;
  }

  .tab {
    padding-inline: 0.25rem;
  }

  .tab::before {
    content: '[';
  }

  .tab::after {
    content: ']';
  }
}

.demo {
  container-type: inline-size;
  min-width: 0;
}

.stage {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.demo-cap {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.demo-cap kbd {
  color: var(--fg);
  font-weight: 700;
}

/* A window of some app, or of Speak, drawn in Speak's theme. */
.win {
  background: var(--w-bg);
  color: var(--w-fg);
  box-shadow:
    0 0 0 1px var(--w-sel),
    0 18px 48px var(--w-drop);
  font-size: 0.875rem;
  line-height: 1.6;
  min-width: 0;
}

.win-t {
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--w-sel);
  color: var(--w-dim);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-t b {
  color: var(--w-hi);
}

.win-b {
  padding: 0.875rem;
}

.win code {
  background: var(--w-sel);
  color: var(--w-hi);
}

.msg {
  color: var(--w-fg);
}

.msg b {
  color: var(--w-hi);
  margin-right: 1ch;
}

.hdr {
  display: grid;
  grid-template-columns: 8ch 1fr;
  border-bottom: 1px solid var(--w-sel);
  padding-block: 0.125rem;
}

.hdr span:first-child {
  color: var(--w-dim);
}

.hdr span:last-child {
  color: var(--w-hi);
}

.field {
  margin-top: 0.75rem;
  border: 1px solid var(--w-sel);
  padding: 0.625rem 0.75rem;
  min-height: 2.875rem;
  color: var(--w-hi);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.field.mail {
  border: 0;
  padding-inline: 0;
  min-height: 9.6em;
}

.field[data-ph]:not(.has-text)::before {
  content: attr(data-ph);
  color: var(--w-muted);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--w-hi);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.files li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.125rem 0;
  color: var(--w-hi);
  transition: opacity 320ms var(--step);
}

.files li span:last-child {
  color: var(--w-dim);
}

.files li.is-new span:first-child {
  color: var(--w-green);
  font-weight: 700;
}

.files li.is-out {
  opacity: 0.35;
  text-decoration: line-through;
}

/* What was said: the words Speak drops are struck through once it cleans up. */
.said {
  font-size: 0.875rem;
  color: var(--muted);
  padding-inline: 0.125rem;
}

.said-k {
  color: var(--fg);
  font-weight: 700;
  margin-right: 1ch;
}

.said-k .lang {
  color: var(--muted);
  font-weight: 400;
}

.said-q .w {
  transition:
    opacity 320ms var(--step),
    color 320ms var(--step);
}

.said[data-clean] .drop {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

/* The recording bar, as in the app. */
.pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--w-bg);
  color: var(--w-hi);
  border: 3px solid var(--w-edge);
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  box-shadow: 0 14px 36px var(--w-drop);
  white-space: nowrap;
  transition:
    opacity 240ms var(--step),
    transform 240ms var(--step);
}

.pill[data-state='off'] {
  opacity: 0;
  transform: translateY(0.5rem);
}

.p-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--w-red);
}

.pill[data-state='rec'] .p-dot {
  animation: blink 1s steps(1) infinite;
}

.pill[data-state='work'] .p-dot,
.pill[data-state='done'] .p-dot {
  background: var(--w-muted);
}

.p-time {
  font-variant-numeric: tabular-nums;
}

.p-lvl {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 1.125rem;
}

.p-lvl i {
  width: 4px;
  height: 18%;
  background: var(--w-hi);
}

.pill[data-state='rec'] .p-lvl i {
  animation: level 0.8s var(--step) infinite alternate;
}

.p-lvl i:nth-child(2n) {
  animation-duration: 0.62s !important;
}
.p-lvl i:nth-child(3n) {
  animation-duration: 0.94s !important;
}
.p-lvl i:nth-child(1) {
  animation-delay: -0.3s !important;
}
.p-lvl i:nth-child(4) {
  animation-delay: -0.5s !important;
}
.p-lvl i:nth-child(5) {
  animation-delay: -0.15s !important;
}
.p-lvl i:nth-child(7) {
  animation-delay: -0.45s !important;
}
.p-lvl i:nth-child(8) {
  animation-delay: -0.2s !important;
}
.p-lvl i:nth-child(10) {
  animation-delay: -0.6s !important;
}

@keyframes level {
  from {
    height: 18%;
  }
  to {
    height: 100%;
  }
}

.pill[data-state='done'] .p-mode {
  color: var(--w-green);
}

.p-act {
  display: inline-flex;
  gap: 0.75rem;
  color: var(--w-dim);
  font-weight: 400;
}

.p-pause {
  font-size: 0.75em;
  letter-spacing: -0.1em;
  align-self: center;
}

.p-ok {
  color: var(--w-green);
}

/* The control panel. */
.cpanel {
  background: var(--w-bg);
  color: var(--w-fg);
  border: 3px solid var(--w-edge);
  font-size: 0.875rem;
  line-height: 1.55;
  box-shadow: 0 18px 48px var(--w-drop);
  min-width: 0;
}

.cp-h,
.cp-f {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.625rem 0.875rem;
}

.cp-h {
  border-bottom: 1px solid var(--w-sel);
}

.cp-f {
  border-top: 1px solid var(--w-sel);
  color: var(--w-hi);
}

.cp-b {
  display: grid;
  gap: 0.375rem;
  padding: 0.875rem;
}

.cp-you {
  color: var(--w-hi);
}

.cp-you::before {
  content: 'you ';
  color: var(--w-dim);
}

.cp-l {
  display: grid;
  grid-template-columns: 2.5ch minmax(0, 1fr);
  gap: 1ch;
  color: var(--w-hi);
}

.cp-m {
  text-align: right;
  color: var(--w-dim);
}

.cp-s {
  color: var(--w-dim);
}

.cp-l .cp-s {
  display: block;
}

.cp-ask {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
  border: 1px solid var(--w-yellow);
  background: var(--w-bg2);
  padding: 0.625rem 0.75rem;
}

.cp-what {
  color: var(--w-hi);
}

.cp-ask .is-pressed {
  background: var(--w-green);
  color: var(--w-bg);
}

.y {
  color: var(--w-yellow);
}

.pu {
  color: var(--w-purple);
}

.g {
  color: var(--w-green);
}

.r {
  color: var(--w-red);
}

/* In the demo, the panel opens beside the window it acts on, where there is room. */
.stage .cpanel {
  align-self: start;
}

@container (width >= 34rem) {
  .stage.is-control {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 1.25rem;
  }

  .stage.is-control .said,
  .stage.is-control .pill {
    grid-column: 1 / -1;
  }
}

/* ───────────────────────────── sections ───────────────────────────── */

.sec {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.rule-h {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.rule-h::before {
  content: '';
  width: 1.25rem;
  border-top: 1px solid var(--rule);
}

.rule-h::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--rule);
}

.rule-h span {
  color: var(--fg);
  font-weight: 700;
}

.rule-h.small {
  margin: 1rem 0 0.5rem;
  color: var(--w-dim);
}

.rule-h.small::before,
.rule-h.small::after {
  border-color: var(--w-sel);
}

.rule-h.small span {
  color: var(--w-hi);
}

.sec h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 24ch;
  margin-bottom: 1rem;
}

.sub {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 2.25rem;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.split {
  display: grid;
  gap: 1rem 4rem;
  align-items: center;
}

@media (width >= 64rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .split.rev {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .split.rev > :first-child {
    order: 2;
  }
}

/* modes */

.modes {
  display: grid;
  gap: 2.5rem 2rem;
}

@media (width >= 56rem) {
  .modes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mode {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.625rem;
  border-top: 3px solid var(--fg);
  padding-top: 1rem;
}

.mode-h {
  font-size: 1.125rem;
}

.mode p:not(.mode-h, .keys) {
  color: var(--muted);
}

.keys kbd,
.steps kbd {
  display: inline-block;
  border: 1px solid var(--rule);
  background: var(--raised);
  padding: 0.125rem 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.keys {
  margin-top: 0.5rem;
}

/* formats */

.fmt {
  position: relative;
}

.fmt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fmt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.375rem;
  margin-bottom: 1rem;
  color: var(--w-dim);
  font-size: 0.8125rem;
}

.fmt-k {
  margin-right: 0.75ch;
  padding-block: 0.125rem;
}

.fmt-tabs label {
  cursor: pointer;
  padding: 0.125rem 0.375rem;
}

.fmt-tabs label:hover {
  color: var(--w-hi);
}

.fmt-outs {
  display: grid;
  color: var(--w-hi);
}

.out {
  grid-area: 1 / 1;
  visibility: hidden;
}

.out ul {
  margin-top: 0.25rem;
}

.out li {
  padding-left: 2ch;
  text-indent: -2ch;
}

.out li::before {
  content: '- ';
  color: var(--w-dim);
}

#f-clean:checked ~ .win .o-clean,
#f-verbatim:checked ~ .win .o-verbatim,
#f-structured:checked ~ .win .o-structured,
#f-summary:checked ~ .win .o-summary {
  visibility: visible;
}

#f-clean:checked ~ .win [for='f-clean'],
#f-verbatim:checked ~ .win [for='f-verbatim'],
#f-structured:checked ~ .win [for='f-structured'],
#f-summary:checked ~ .win [for='f-summary'] {
  background: var(--w-hi);
  color: var(--w-bg);
  font-weight: 700;
}

#f-clean:focus-visible ~ .win [for='f-clean'],
#f-verbatim:focus-visible ~ .win [for='f-verbatim'],
#f-structured:focus-visible ~ .win [for='f-structured'],
#f-summary:focus-visible ~ .win [for='f-summary'] {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.tx {
  color: var(--w-dim);
}

/* control */

.facts {
  display: grid;
  gap: 1.125rem;
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  color: var(--muted);
}

.facts dd b {
  color: var(--fg);
}

.ctl-fig {
  margin-top: 1.5rem;
}

@media (width >= 64rem) {
  .ctl-fig {
    margin-top: 0;
  }
}

/* context & languages */

.duo {
  display: grid;
  gap: 4rem;
}

@media (width >= 64rem) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.duo-c .sub {
  margin-bottom: 1.75rem;
}

.ctx .win-b {
  display: grid;
  gap: 0.375rem;
}

.ctx-r {
  display: grid;
  grid-template-columns: 9ch minmax(0, 1fr);
  gap: 1ch;
  color: var(--w-hi);
}

.ctx-k {
  color: var(--w-dim);
}

.ctx-r .muted {
  color: var(--w-dim);
}

.ctx .br-tag {
  font-weight: 400;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.langs li {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 0.125rem 0.5rem;
  font-size: 0.8125rem;
}

/* privacy */

.tiles {
  display: grid;
  gap: 2rem;
  margin-top: 2.25rem;
}

@media (width >= 36rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 64rem) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tiles li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border-top: 3px solid var(--fg);
  padding-top: 1rem;
}

.tiles p {
  color: var(--muted);
}

.aside {
  margin-top: 2.5rem;
  max-width: 70ch;
  font-size: 0.875rem;
  color: var(--muted);
}

/* download */

.get {
  display: grid;
  gap: 3rem 4rem;
  align-items: start;
}

@media (width >= 64rem) {
  .get {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

.rel {
  margin: -1.25rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.rel a {
  color: var(--fg);
}

.builds {
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid var(--fg);
}

.builds tr {
  border-bottom: 1px solid var(--rule);
}

.builds th,
.builds td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  vertical-align: baseline;
}

.builds th {
  font-weight: 700;
  padding-left: 0.875rem;
}

.builds td {
  color: var(--muted);
}

.builds td:last-child {
  text-align: right;
  color: var(--fg);
}

.builds .sz {
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* The visitor's own build: the app's active-item bar. */
.builds tr.is-mine {
  background: var(--raised);
  box-shadow: inset 4px 0 0 var(--red);
}

.builds tr.is-mine td:last-child a {
  font-weight: 700;
}

/* Narrow: the arrow says it, and the word stays for screen readers. */
@media (width < 36rem) {
  .builds .sz {
    display: none;
  }

  .builds .dl-w {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.steps {
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
}

.steps .k {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.25rem;
}

.steps p {
  color: var(--muted);
}

.steps h3 kbd {
  font-size: 0.875rem;
}

.notes {
  display: grid;
  gap: 1rem 3rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

@media (width >= 48rem) {
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.notes b {
  display: block;
  color: var(--fg);
}

/* ───────────────────────────── footer ───────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.foot-wm {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.foot-wm .glyph {
  width: 1.25rem;
  color: var(--fg);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover {
  text-decoration: underline;
}

/* ───────────────────────────── motion ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
