/* Remy site. Colour tokens are authored in OKLCH with sRGB hex fallbacks.
   Contrast was measured for every text/background pair (WCAG 2.x and APCA);
   see the commit message for the table. Brand: ink, paper, stone, signal. */
@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/JetBrainsMono-Medium.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/JetBrainsMono-Bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Colour tokens. Dark is the default; light follows the system. */
:root {
  --bg: #0f0f10;
  --field: #18181a;
  --fg: #edebe6;
  --mute: #b0aea8;
  --accent: #a8c49a;
  --on-accent: #0f0f10;
  --inv-bg: #edebe6;
  --inv-fg: #0f0f10;
  --inv-mute: #494843;
  --w1: #94928d;
  --w2: #a09e99;
  --w3: #b0aea8;
  --w4: #c0bdb8;
  --w5: #d6d4ce;
  --w6: #edebe6;
  --term-bg: #0f0f10;
  --term-fg: #edebe6;
  --term-dim: #a6a49f;
  --term-ok: #a8c49a;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #edebe6;
    --field: #e3e0d9;
    --fg: #0f0f10;
    --mute: #575550;
    --accent: #3d5c32;
    --on-accent: #edebe6;
    --inv-bg: #0f0f10;
    --inv-fg: #edebe6;
    --inv-mute: #adaba5;
    --w1: #595854;
    --w2: #494845;
    --w3: #393836;
    --w4: #292927;
    --w5: #1b1a19;
    --w6: #0f0f10;
    color-scheme: light;
  }
}
@supports (color: oklch(0 0 0)) {
  :root {
    --bg: oklch(0.169 0.002 286);
    --field: oklch(0.21 0.004 286);
    --fg: oklch(0.94 0.007 89);
    --mute: oklch(0.75 0.008 89);
    --accent: oklch(0.788 0.065 135);
    --on-accent: oklch(0.169 0.002 286);
    --inv-bg: oklch(0.94 0.007 89);
    --inv-fg: oklch(0.169 0.002 286);
    --inv-mute: oklch(0.4 0.008 89);
    --w1: oklch(0.66 0.008 89);
    --w2: oklch(0.7 0.008 89);
    --w3: oklch(0.75 0.008 89);
    --w4: oklch(0.8 0.008 89);
    --w5: oklch(0.87 0.008 89);
    --w6: oklch(0.94 0.007 89);
    --term-bg: oklch(0.169 0.002 286);
    --term-fg: oklch(0.94 0.007 89);
    --term-dim: oklch(0.72 0.008 89);
    --term-ok: oklch(0.788 0.065 135);
  }
  @media (prefers-color-scheme: light) {
    :root {
      --bg: oklch(0.94 0.007 89);
      --field: oklch(0.907 0.01 87.5);
      --fg: oklch(0.169 0.002 286);
      --mute: oklch(0.45 0.008 89);
      --accent: oklch(0.44 0.075 138);
      --on-accent: oklch(0.94 0.007 89);
      --inv-bg: oklch(0.169 0.002 286);
      --inv-fg: oklch(0.94 0.007 89);
      --inv-mute: oklch(0.74 0.008 89);
      --w1: oklch(0.46 0.006 89);
      --w2: oklch(0.4 0.005 89);
      --w3: oklch(0.34 0.004 89);
      --w4: oklch(0.28 0.003 89);
      --w5: oklch(0.22 0.003 89);
      --w6: oklch(0.169 0.002 286);
    }
  }
}

@media (prefers-contrast: more) {
  :root {
    --mute: var(--fg);
    --inv-mute: var(--inv-fg);
    --term-dim: var(--term-fg);
  }
}

/* Fonts, spacing and measure */
:root {
  --mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
  --m: clamp(16px, 4vw, 40px);
  --pad: clamp(4.5rem, 2.5rem + 8vw, 10rem);
  --wrap: clamp(1280px, 68vw, 1760px);
  --t-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --t-lede: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  --t-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --t-h1: clamp(2.2rem, 1.3rem + 4vw, 5rem);
  --t-h2: clamp(2rem, 1.1rem + 3.8vw, 4.5rem);
  --hit: 2.75rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}
body {
  margin: 0;
  min-width: 20rem;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body) / 1.6 var(--sans);
  position: relative;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: light) {
  body::before {
    opacity: 0.05;
    mix-blend-mode: multiply;
  }
}
body > * {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: from-font;
  text-decoration-skip-ink: auto;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
button,
.btn,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--m);
  top: -4rem;
  background: var(--fg);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus {
  top: max(8px, env(safe-area-inset-top));
}

/* Page frame. Each .wrap is also an inline-size container: the layout
   and the logo size respond to the space they actually get. */
.wrap {
  container-type: inline-size;
  padding-left: max(var(--m), env(safe-area-inset-left));
  padding-right: max(var(--m), env(safe-area-inset-right));
  max-width: var(--wrap);
  margin-inline: auto;
}
header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: max(8px, env(safe-area-inset-top)) 8px;
  min-height: 4.5rem;
}
header.top .brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  font: 700 1rem var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
}
header.top nav {
  display: flex;
  gap: clamp(8px, 2.4vw, 24px);
  font-size: var(--t-small);
}
header.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding-inline: 4px;
  text-decoration: none;
  color: var(--mute);
}
@media (max-width: 560px) {
  header.top nav a:not(.gh) {
    display: none;
  }
}

/* Type */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1,
h2 {
  margin-left: -0.04em;
}
h2 {
  font-size: var(--t-h2);
  max-width: 18ch;
}
h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
p {
  margin: 0 0 1em;
  max-width: 62ch;
  text-wrap: pretty;
}
code {
  font: 500 0.9em var(--mono);
  overflow-wrap: anywhere;
}
section {
  padding-block: var(--pad);
  scroll-margin-top: calc(1.5rem - var(--pad));
}
/* The first screen is exactly one screen: the hero fills what the header leaves, so the
   next section never peeks in, and its content is spread across that height, not stacked
   at the top. */
.hero {
  --hero-h: calc(100vh - 4.5rem);
  min-height: var(--hero-h);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(1.5rem, 5vh, 4rem);
  padding-block: clamp(1rem, 3vh, 2.5rem);
}
@supports (height: 100svh) {
  .hero {
    --hero-h: calc(100svh - 4.5rem);
  }
}
.hero > * {
  min-width: 0; /* a flex column would otherwise let the wordmark's width widen everything */
}
.hero .word {
  margin: 0;
}

/* Logo. The wordmark is 48 columns of mono; size it from its container. */
.word {
  margin: 0 0 clamp(28px, 4vw, 56px);
  font: 700 clamp(9.5px, calc((100vw - 2 * var(--m)) / 32.5), 37px) / 1.1 var(--mono);
  white-space: pre;
  overflow: hidden;
  font-variant-ligatures: none;
}
@supports (width: 1cqi) {
  .word {
    font-size: clamp(9.2px, min(3.05cqi, 2.6svh), 56px);
  }
}
.word span {
  display: block;
}
.word span:nth-child(1) {
  color: var(--w1);
}
.word span:nth-child(2) {
  color: var(--w2);
}
.word span:nth-child(3) {
  color: var(--w3);
}
.word span:nth-child(4) {
  color: var(--w4);
}
.word span:nth-child(5) {
  color: var(--w5);
}
.word span:nth-child(6) {
  color: var(--w6);
}

.hero h1 {
  font-size: var(--t-h1);
  max-width: 19ch;
}
.lede {
  margin-top: 1.5rem;
  font-size: var(--t-lede);
  max-width: 46ch;
  line-height: 1.5;
}
.hero .lede {
  margin-bottom: 0.9rem;
}
.where {
  color: var(--mute);
  max-width: 46ch;
}
.note {
  color: var(--mute);
  font-size: var(--t-small);
  margin-top: 0.9rem;
}

/* Hero layout */
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.hero-grid > div {
  min-width: 0;
}
@container (min-width: 58rem) {
  .hero-grid {
    grid-template-columns: 6fr 5fr;
    align-items: center;
    gap: clamp(3rem, 7cqi, 7rem);
  }
}
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.15s ease-out,
    background-color 0.2s,
    color 0.2s;
}
.btn:active {
  transform: scale(0.96);
}
.links .alt {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
}

/* Install box */
.install {
  min-width: 0;
  container-type: inline-size;
  scroll-margin-top: 1.5rem;
}
.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 0.75rem;
  font-size: var(--t-small);
  color: var(--fg);
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--mute);
  opacity: 0.5;
}
.dot.next {
  opacity: 0.75;
}
.dot.now {
  background: var(--accent);
  opacity: 1;
}
.cmd {
  position: relative;
  background: var(--field);
}
.cmd pre {
  margin: 0;
  padding: 1.1rem 6rem 1.1rem 1.25rem; /* room on the right for Copy */
  font: 500 0.8125rem / 1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-variant-ligatures: none;
}
.cmd .line {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}
.p {
  color: var(--mute);
  user-select: none;
}
/* A quiet ghost button in the corner; it only fills on hover or once copied. */
button.copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font: 500 0.75rem var(--mono);
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--mute);
  border: 1px solid color-mix(in oklab, var(--mute) 40%, transparent);
  padding: 0 0.9rem;
  min-height: 2.25rem;
  cursor: pointer;
  transition:
    transform 0.15s ease-out,
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
button.copy::after {
  /* keeps a 44px touch target around the smaller visual */
  content: "";
  position: absolute;
  inset: -0.25rem;
}
button.copy:focus-visible {
  color: var(--fg);
}
button.copy:active {
  transform: scale(0.96);
}
button.copy[data-state="copied"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* Terminal demo. Every line is laid out from the first paint (hidden, not
   removed), and a typed line keeps its unwritten remainder as an invisible
   ghost, so nothing below the demo ever moves while it plays. */
.term {
  background: var(--term-bg);
  color: var(--term-fg);
  font: 500 clamp(0.78rem, 0.7rem + 0.4vw, 0.95rem) / 1.75 var(--mono);
  padding: clamp(16px, 3cqi, 32px);
  font-variant-numeric: tabular-nums;
  font-variant-ligatures: none;
}
.term .l {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 1.75em;
}
.term .dim {
  color: var(--term-dim);
}
.term .ok {
  color: var(--term-ok);
}
.term .you {
  font-weight: 700;
}
.ghost {
  visibility: hidden;
}
.cur {
  display: inline-block;
  width: 0.6em;
  margin-right: -0.6em;
  height: 1.1em;
  background: var(--term-ok);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) 4;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}
.js .term .l {
  visibility: hidden;
}
.js .term .l.on {
  visibility: visible;
}
@media (prefers-reduced-motion: no-preference) {
  .js .term .l.on {
    animation: line-in 0.22s ease-out;
  }
}
.demo-col .note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-top: 0.75rem;
}
.replay {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.replay:disabled {
  color: var(--mute);
  cursor: default;
  text-decoration: none;
}
.replay[hidden] {
  display: none;
}

/* What it does */
.does {
  display: grid;
  gap: clamp(2.5rem, 6cqi, 6rem);
}
.does .lede {
  margin-top: 1.25rem;
}
.does ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.does ul.tools {
  margin-top: 1.75rem;
}
.demo-col {
  min-width: 0;
}
.does li {
  display: grid;
  gap: 6px;
  padding-block: 1.25rem;
}
.does li b {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.does li span {
  color: var(--mute);
  max-width: 52ch;
  text-wrap: pretty;
}
@container (min-width: 56rem) {
  .does {
    grid-template-columns: 6fr 5fr;
    align-items: start;
  }
  .does li {
    grid-template-columns: 7.5rem 1fr;
    gap: 1.25rem;
    align-items: baseline;
    padding-block: 1rem;
  }
}
@media (min-width: 960px) and (min-height: 44rem) {
  .demo-col {
    position: sticky;
    top: 2rem;
  }
}

/* Safety. An inverted section: its own scoped tokens. */
.safe {
  --bg: var(--inv-bg);
  --fg: var(--inv-fg);
  --mute: var(--inv-mute);
  --accent: var(--inv-fg);
  --on-accent: var(--inv-bg);
  background: var(--bg);
  color: var(--fg);
}
.safe-grid {
  display: grid;
  gap: clamp(2.25rem, 5cqi, 4rem);
  margin-top: clamp(2.25rem, 6vw, 4.5rem);
}
.safe-grid h3 {
  margin-bottom: 0.65rem;
}
.safe-grid p {
  margin: 0;
  color: var(--mute);
}
@container (min-width: 44rem) {
  .safe-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(3rem, 8cqi, 8rem);
  }
  .safe-grid p {
    max-width: 44ch;
  }
}

/* Results */
.big {
  font: 700 clamp(4.5rem, 2rem + 14vw, 14rem) / 0.9 var(--mono);
  letter-spacing: -0.06em;
  margin: 0 0 0 -0.05em;
  font-variant-numeric: tabular-nums;
}
.results {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.facts {
  display: grid;
  gap: 1.75rem;
  align-content: end;
}
.facts div b {
  display: block;
  font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem) / 1.1 var(--mono);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.nw {
  white-space: nowrap;
}
.facts div > span {
  display: block;
  color: var(--mute);
  max-width: 36ch;
  margin-top: 0.25rem;
}
@container (min-width: 54rem) {
  .results {
    grid-template-columns: 7fr 5fr;
  }
}
.fine {
  color: var(--mute);
  font-size: var(--t-small);
  margin-top: 2.25rem;
  max-width: 70ch;
}

/* Get started */
.start {
  background: var(--field);
}
.start .note {
  margin-top: 1.75rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.75rem;
  max-width: 54rem;
}
.steps li {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}
.steps li > span {
  font-weight: 700;
  font-size: 1.1rem;
}
.steps pre {
  margin: 0;
  background: var(--term-bg);
  color: var(--term-fg);
  padding: 1rem 1.25rem;
  font: 500 0.8125rem / 1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-variant-ligatures: none;
}

@media (max-width: 30rem) {
  .steps pre,
  .cmd pre {
    font-size: 0.75rem;
  }
  .steps pre {
    padding-inline: 1rem;
  }
}

/* Limits */
.not {
  columns: 1;
  column-gap: 3rem;
  padding: 0;
  list-style: none;
  margin: 2.5rem 0 0;
}
.not li {
  break-inside: avoid;
  padding-block: 0.6rem;
  max-width: 60ch;
  text-wrap: pretty;
}
@container (min-width: 54rem) {
  .not {
    columns: 2;
  }
}

/* Footer */
footer {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) max(2rem, env(safe-area-inset-bottom));
}
footer .word {
  margin-bottom: 2rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 1rem;
  color: var(--mute);
  font-size: var(--t-small);
}
.foot > span {
  max-width: 52ch;
  text-wrap: pretty;
}
footer .foot nav {
  display: flex;
  gap: 0.5rem;
  margin-inline: -0.5rem;
}
footer .foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding-inline: 0.5rem;
}

/* Reach Remy anywhere */
.reach {
  background: var(--field);
}
.reach .lede {
  margin-top: 1.25rem;
}
.reach-top {
  display: grid;
  gap: clamp(2.25rem, 6cqi, 5rem);
}
@container (min-width: 56rem) {
  .reach-top {
    grid-template-columns: 5fr 6fr;
    align-items: start;
  }
  .reach-top > div:first-child {
    position: sticky;
    top: 2rem;
  }
}
.surfaces {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.surfaces li {
  display: grid;
  gap: 4px 1.25rem;
  padding-block: 1.1rem;
  grid-template-columns: 1fr auto;
  align-items: baseline;
}
.surfaces li:first-child {
  padding-top: 0;
}
.s-name {
  font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.6rem) / 1.1 var(--mono);
  letter-spacing: -0.04em;
  margin-left: -0.03em;
}
.s-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-small);
  white-space: nowrap;
}
.surfaces p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--mute);
  max-width: 48ch;
}
.surfaces li:first-child .s-name,
.surfaces li:first-child p {
  color: var(--fg);
}

.flow {
  container-type: inline-size;
  margin: clamp(3.5rem, 2rem + 7vw, 7.5rem) 0 0;
}
.flow figcaption {
  max-width: 62ch;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}
.flow figcaption span {
  color: var(--mute);
}
.flow ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.flow li {
  background: var(--bg);
  padding: clamp(1.1rem, 2.4cqi, 1.75rem);
  min-width: 0;
}
.flow .mock {
  white-space: pre-wrap;
  display: grid;
  gap: 8px;
  font-size: var(--t-small);
  line-height: 1.55;
}
.flow .mock.mono {
  font: 500 clamp(0.78rem, 0.72rem + 0.25vw, 0.85rem) / 1.65 var(--mono);
  font-variant-ligatures: none;
  overflow-wrap: anywhere;
}
.flow .you {
  font-weight: 700;
}
.flow .ok {
  color: var(--accent);
}
.flow .card b {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.flow .card span {
  color: var(--mute);
}
.flow .btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.flow .btns .b {
  padding: 0.5rem 1.1rem;
  background: var(--field);
  color: var(--fg);
  font-weight: 600;
}
.flow .btns .b:first-child {
  background: var(--fg);
  color: var(--bg);
}
@container (min-width: 50rem) {
  .flow ol {
    grid-template-columns: 1.25fr 1fr 0.8fr;
    align-items: start;
  }
  .flow li:nth-child(2) {
    margin-top: 2.5rem;
  }
  .flow li:nth-child(3) {
    margin-top: 5rem;
  }
}

/* 404 */
.nf {
  min-height: 100vh;
  display: grid;
  align-content: center;
}
.nf h1 {
  font-size: var(--t-h1);
}

@supports (height: 100svh) {
  .nf {
    min-height: 100svh;
  }
}

/* Reveal on scroll. Hidden only when script runs and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.6s ease calc(var(--d, 0) * 90ms),
      transform 0.6s ease calc(var(--d, 0) * 90ms);
  }
  .js .rv.in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .term .l {
    visibility: visible;
  }
  .cur,
  .btn,
  button.copy {
    animation: none;
    transition: none;
  }
}

/* Hover only where hover exists */
@media (hover: hover) and (pointer: fine) {
  header.top nav a:hover {
    color: var(--fg);
  }
  .btn:hover,
  button.copy:hover {
    background: var(--accent);
    color: var(--on-accent);
  }
  .replay:not(:disabled):hover {
    text-decoration-thickness: 2px;
  }
}

@media (forced-colors: active) {
  body::before {
    display: none;
  }
  .btn,
  button.copy,
  .flow .btns .b {
    border: 1px solid ButtonText;
  }
  .dot {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

@media print {
  body::before,
  .skip,
  header.top nav,
  .cmd button,
  .replay {
    display: none;
  }
  :root {
    --bg: #fff;
    --fg: #000;
    --mute: #333;
    --field: #f2f2f2;
    --w1: #000;
    --w2: #000;
    --w3: #000;
    --w4: #000;
    --w5: #000;
    --w6: #000;
  }
  .safe,
  .term {
    --bg: #fff;
    --fg: #000;
    --term-bg: #fff;
    --term-fg: #000;
    --term-dim: #333;
    --term-ok: #000;
    border: 1px solid #000;
  }
  .js .rv,
  .js .rv.in,
  .js .term .l {
    opacity: 1;
    transform: none;
    visibility: visible;
    animation: none;
  }
  .cur {
    display: none;
  }
  section {
    padding-block: 1.5rem;
    break-inside: avoid-page;
  }
  .demo-col {
    position: static;
  }
}
