/* @hugocxl/design — generated by scripts/build.mjs. Do not edit. */
:root {
  --ds-canvas: #111311;
  --ds-ink: #f1f1ee;
  --ds-muted: #8c8e89;
  --ds-faint: #5e605c;
  --ds-rule: #262826;
  --ds-surface: #1a1c1a;
  --ds-edge: #222422;
  --ds-accent: #f56300;
  --ds-accent-text: #ff7a2e;
  --ds-action: #efefec;
  --ds-on-action: #111311;
  --ds-material: #111311cc;
  --ds-glow-a: #ff9a52;
  --ds-glow-b: #7a2a6e;
  --ds-glow-c: #a8321f;
  --ds-glow-base: #c4461f;
  --ds-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ds-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ds-size-reading: 1rem;
  --ds-size-display: clamp(2.25rem, calc(1.5rem + 2.4vw), 3.25rem);
  --ds-size-title: 2.25rem;
  --ds-size-panel: clamp(1.625rem, calc(1.2rem + 1.3vw), 2.125rem);
  --ds-size-heading: 1.25rem;
  --ds-size-prose: 1.25rem;
  --ds-size-lead: 1.25rem;
  --ds-size-small: .9375rem;
  --ds-size-control: 1rem;
  --ds-size-label: .8125rem;
  --ds-size-code: .875rem;
  --ds-space-1: .25rem;
  --ds-space-2: .5rem;
  --ds-space-3: .75rem;
  --ds-space-4: 1rem;
  --ds-space-5: 1.25rem;
  --ds-space-6: 2rem;
  --ds-space-7: 2.5rem;
  --ds-space-8: 3.5rem;
  --ds-space-9: 5rem;
  --ds-space-10: 8rem;
  --ds-radius-control: 1rem;
  --ds-radius-media: 1.5rem;
  --ds-radius-pill: 999px;
  --ds-target: 40px;
  --ds-bar: 4rem;
  --ds-measure: 37rem;
  --ds-wide: 62rem;
  --ds-ease: 160ms cubic-bezier(.25, .1, .25, 1);
  accent-color: var(--ds-accent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --ds-canvas: #111311;
    --ds-ink: #f1f1ee;
    --ds-muted: #8c8e89;
    --ds-faint: #5e605c;
    --ds-rule: #262826;
    --ds-surface: #1a1c1a;
    --ds-edge: #222422;
    --ds-accent: #f56300;
    --ds-accent-text: #ff7a2e;
    --ds-action: #efefec;
    --ds-on-action: #111311;
    --ds-material: #111311cc;
    --ds-glow-a: #ff9a52;
    --ds-glow-b: #7a2a6e;
    --ds-glow-c: #a8321f;
    --ds-glow-base: #c4461f;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --ds-canvas: #111311;
  --ds-ink: #f1f1ee;
  --ds-muted: #8c8e89;
  --ds-faint: #5e605c;
  --ds-rule: #262826;
  --ds-surface: #1a1c1a;
  --ds-edge: #222422;
  --ds-accent: #f56300;
  --ds-accent-text: #ff7a2e;
  --ds-action: #efefec;
  --ds-on-action: #111311;
  --ds-material: #111311cc;
  --ds-glow-a: #ff9a52;
  --ds-glow-b: #7a2a6e;
  --ds-glow-c: #a8321f;
  --ds-glow-base: #c4461f;
  color-scheme: dark;
}

/* @hugocxl/design: near-black, one grotesk at regular weight, two-tone prose, monospace details,
   pill buttons and large rounded surfaces, some with a soft glow. Dark only. */

/* ─── Shell and layout ───────────────────────────────────────────────── */
/* Put .ds on <body> (or on the outermost element of the page) with data-layout="plain". */
html:has(> body.ds), html:has(> body > .ds) { background: var(--ds-canvas); color-scheme: dark }
body:has(> .ds) { margin: 0 }
.ds {
  --ds-gutter: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  padding: 0 var(--ds-gutter);
  color: var(--ds-ink);
  background: var(--ds-canvas);
  font: 400 var(--ds-size-reading)/1.5 var(--ds-sans);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box }
.ds main { container-type: inline-size }
.ds :where(h1, h2, h3, p, ol, ul, figure, pre, table) { margin: 0 }
.ds :where(img, svg, video) { max-width: 100% }
/* The column is the prose measure; .ds-wide blocks break out to the wide measure. */
.ds-column { max-width: var(--ds-measure); margin-inline: auto }
.ds-opening { padding-top: clamp(var(--ds-space-5), 4vw, var(--ds-space-7)) }
.ds-wide {
  width: min(100cqw, var(--ds-wide));
  margin-block: var(--ds-space-7);
  margin-inline: calc((100% - min(100cqw, var(--ds-wide))) / 2);
}

/* ─── Text ───────────────────────────────────────────────────────────── */
.ds :where(h1, h2, h3) { font: inherit; letter-spacing: inherit }
.ds :where(p, ul, ol, .ds-code, .ds-table, .ds-table-scroll) + :where(p, ul, ol, .ds-code, .ds-table, .ds-table-scroll) { margin-top: var(--ds-space-5) }
.ds p { text-wrap: pretty }
.ds strong { font-weight: 500 }
/* Links read as the text around them, underlined faintly. The accent never means "clickable". */
.ds a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: .2em }
.ds a:hover { text-decoration-color: currentColor }
.ds :where(code, kbd, samp) { font-family: var(--ds-mono); font-size: .875em; font-weight: 400; font-variant-numeric: tabular-nums slashed-zero }
.ds :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px }
.ds-muted { color: var(--ds-muted) }
.ds-accent { color: var(--ds-accent-text) }
.ds-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }

/* Monospace details: dates, versions, platforms, captions. */
.ds-label, .ds-mono { display: inline-block; color: var(--ds-muted); font: 400 var(--ds-size-label)/1.5 var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums }
.ds-mono { display: block }
.ds-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2) var(--ds-space-5); margin-top: var(--ds-space-5); padding: 0; list-style: none }
.ds-meta + * { margin-top: var(--ds-space-7) }

/* The page title (an <hgroup>): two tones, the line under it in muted. */
.ds-title { font-size: var(--ds-size-title); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance }
.ds-title > * { display: block }
.ds-title > :not(:first-child) { margin-top: var(--ds-space-3); color: var(--ds-muted); font-size: var(--ds-size-prose); line-height: 1.36; letter-spacing: -.01em }

/* The hero: an eyebrow, one headline in two tones, a muted lead and pill actions. */
.ds-eyebrow { margin-bottom: var(--ds-space-5); color: var(--ds-muted); font: 400 var(--ds-size-label)/1.5 var(--ds-mono); letter-spacing: .08em; text-transform: uppercase }
.ds-hero h1 { max-width: 17em; font-size: var(--ds-size-display); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance }
.ds-hero h1 .ds-muted { color: color-mix(in srgb, var(--ds-ink) 58%, transparent) }
.ds-hero h1 + p { max-width: 34em; margin-top: var(--ds-space-5); color: var(--ds-muted); font-size: var(--ds-size-prose); line-height: 1.36; letter-spacing: -.01em }
.ds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2); margin-top: var(--ds-space-6) }
.ds-hero + * { margin-top: clamp(var(--ds-space-8), 8vw, var(--ds-space-9)) }

/* Sections: a muted heading at prose size, then large prose. */
.ds-section { margin-top: clamp(var(--ds-space-8), 9vw, 7rem); scroll-margin-top: calc(var(--ds-bar) + var(--ds-space-5)) }
.ds-section > h2 { margin-bottom: var(--ds-space-4); color: var(--ds-muted); font-size: var(--ds-size-heading); font-weight: 400; line-height: 1.3 }
.ds-section > p { font-size: var(--ds-size-prose); line-height: 1.36; letter-spacing: -.01em }
.ds-section h3 { font-weight: 500 }
.ds-section :where(ul:not([class]), ol:not([class])) { padding-left: 1.2em; font-size: 1.125rem; line-height: 1.45 }
.ds-section :where(ul:not([class]), ol:not([class])) > li + li { margin-top: var(--ds-space-2) }
.ds-section > :where(ul, ol, .ds-rows, .ds-list) + p { margin-top: var(--ds-space-7) }

/* ─── Masthead and footer ────────────────────────────────────────────── */
/* The sticky bar: the wordmark, up to three monospace links on the right, then one pill. */
.ds-masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0 var(--ds-space-6);
  min-height: var(--ds-bar);
  margin-inline: calc(-1 * var(--ds-gutter));
  padding-inline: max(var(--ds-gutter), calc((100vw - var(--ds-wide)) / 2));
  background: var(--ds-material);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
}
.ds-masthead a { display: inline-flex; align-items: center; min-height: var(--ds-target); color: var(--ds-ink); text-decoration: none; white-space: nowrap }
.ds .ds-wordmark { color: var(--ds-ink); font: 600 1.0625rem/1 var(--ds-sans); letter-spacing: -.02em; text-decoration: none }
.ds-masthead nav { display: flex; align-items: center; gap: 0 var(--ds-space-6); margin-left: auto }
.ds-masthead nav a { font: 400 var(--ds-size-label)/1 var(--ds-mono); letter-spacing: .01em }
.ds-masthead nav a:hover, .ds-masthead nav a[aria-current] { color: var(--ds-muted) }
.ds-masthead nav .ds-icon { display: none }
.ds-masthead > .ds-wordmark:has(+ :not(nav)) { margin-right: auto }
/* The one page link after the nav is a pill. */
.ds-masthead > nav ~ a:not(.ds-wordmark), .ds-masthead > .ds-wordmark ~ a:last-of-type:not(nav a) {
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: var(--ds-radius-pill);
  color: var(--ds-on-action);
  background: var(--ds-action);
  font-size: var(--ds-size-small);
}
.ds-masthead > nav ~ a:not(.ds-wordmark):hover { opacity: .88 }
/* Narrow screens: nav items show only their icons (words stay for screen readers). */
@media (max-width: 640px) {
  .ds-masthead { gap: 0 var(--ds-space-4) }
  .ds-masthead nav { gap: 0 var(--ds-space-4) }
  .ds-masthead nav > a:has(> .ds-icon) { font-size: 0 }
  .ds-masthead nav > a > .ds-icon { display: inline-block; width: 1.25rem; height: 1.25rem; margin: 0 }
}
@media (max-width: 400px) {
  .ds-masthead nav { display: none }
  .ds-masthead > nav ~ a:not(.ds-wordmark) { margin-left: auto }
}
/* Dark only: the theme switch from earlier versions stays hidden. */
.ds-theme { display: none }

/* The footer: the wordmark (or the first list), a hairline, monospace links. */
.ds-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3) var(--ds-space-6);
  width: min(100%, var(--ds-wide));
  margin: clamp(6rem, 12vw, 9rem) auto 0;
  padding-block: var(--ds-space-7) var(--ds-space-8);
  color: var(--ds-ink);
  font: 400 var(--ds-size-label)/1.4 var(--ds-mono);
}
.ds-footer ul { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-6); margin: 0; padding: 0; list-style: none }
.ds-footer > ul:first-child:not(:last-child) { flex: 1 1 12rem; align-items: center }
.ds-footer > ul:first-child:not(:last-child)::after { content: ""; flex: 1 1 3rem; height: 1px; background: var(--ds-rule) }
/* Or: the wordmark, an <hr> as the hairline, then the links. */
.ds-footer > hr { flex: 1 1 3rem; height: 1px; margin: 0; border: 0; background: var(--ds-rule) }
.ds-footer a { color: var(--ds-ink); text-decoration: none }
.ds-footer a:hover { color: var(--ds-muted) }

/* ─── Cards, pictures and lists ──────────────────────────────────────── */
/* Pictures: a rounded card on the surface. */
.ds-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--ds-radius-media); background: var(--ds-surface) }
.ds-media > img, .ds-media > video { width: 100%; height: 100%; object-fit: cover }
.ds-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); min-height: var(--ds-target); margin-top: var(--ds-space-2) }

/* The opening split: two tall cards side by side, one on phones. */
.ds-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--ds-space-2) }
.ds-split.ds-wide { margin-top: 0 }
/* A panel: a tall rounded card with a label on top, words in the middle and actions at the foot.
   data-tone="glow" paints it with the soft gradient. A panel can be a link. */
.ds-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 31rem;
  padding: clamp(var(--ds-space-6), 3vw, var(--ds-space-6));
  overflow: hidden;
  border: 1px solid var(--ds-edge);
  border-radius: var(--ds-radius-media);
  color: var(--ds-ink);
  background: var(--ds-surface);
}
.ds a.ds-panel { text-decoration: none }
.ds-panel > :is(h1, h2, h3, div) { margin-block: auto }
.ds-panel :is(h1, h2) { font-size: var(--ds-size-panel); font-weight: 400; line-height: 1.16; letter-spacing: -.015em; text-wrap: balance }
.ds-panel :is(h1, h2) .ds-muted { color: color-mix(in srgb, var(--ds-ink) 58%, transparent) }
.ds-panel > .ds-actions { margin-top: 0 }
.ds-panel[data-tone="glow"] {
  border-color: transparent;
  background:
    radial-gradient(60% 55% at 12% 8%, var(--ds-glow-a) 0%, transparent 70%),
    radial-gradient(55% 60% at 92% 96%, var(--ds-glow-b) 0%, transparent 70%),
    radial-gradient(45% 45% at 25% 92%, var(--ds-glow-c) 0%, transparent 70%),
    var(--ds-glow-base);
}
.ds-panel[data-tone="glow"] :is(h1, h2) .ds-muted { color: rgb(255 255 255 / .72) }
.ds-panel[data-tone="glow"] .ds-more { color: var(--ds-on-action); background: rgb(255 255 255 / .9) }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.ds-panel { transition: transform 400ms cubic-bezier(.2, .7, .2, 1) }
  a.ds-panel:hover { transform: scale(.995) }
}
@container (max-width: 46rem) {
  .ds-split { grid-template-columns: minmax(0, 1fr) }
  .ds-panel { min-height: 24rem }
}

/* A row of app icons, as exported (they carry their own shape). */
.ds-icons { display: flex; flex-wrap: wrap; margin: -.4rem 0 0 -.4rem; padding: 0; list-style: none }
.ds-icons img { display: block; width: 3.5rem; height: 3.5rem }

/* Gallery: rounded pictures close together, wider than the prose. Two columns; one on phones. */
.ds-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-2); padding: 0; list-style: none }
.ds-gallery > li > :is(a, figure) { position: relative; display: block; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--ds-radius-media); background: var(--ds-surface) }
.ds-gallery > li[data-span="2"] { grid-column: span 2 }
.ds-gallery > li[data-span="2"] > :is(a, figure) { aspect-ratio: 16 / 9 }
.ds-gallery img { display: block; width: 100%; height: 100%; object-fit: cover }
.ds-gallery figcaption { position: absolute; inset: auto var(--ds-space-5) var(--ds-space-4); color: rgb(255 255 255 / .86); font: 400 var(--ds-size-label)/1.4 var(--ds-mono); letter-spacing: .08em; text-transform: uppercase }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ds-gallery img { transition: transform 600ms cubic-bezier(.2, .7, .2, 1) }
  .ds-gallery a:hover img { transform: scale(1.02) }
}
@container (max-width: 40rem) {
  .ds-gallery { grid-template-columns: minmax(0, 1fr) }
  .ds-gallery > li[data-span="2"] { grid-column: auto }
}

/* Rows: an icon (or nothing) beside a line of prose and a monospace detail. data-kind="dates"
   puts the date above instead. */
.ds-rows { display: grid; gap: var(--ds-space-6); margin-top: var(--ds-space-6); padding: 0; list-style: none }
.ds-rows > li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--ds-space-4); align-items: start }
.ds-rows > li > img { width: 3rem; height: 3rem; margin-top: -.35rem }
.ds-rows p { font-size: var(--ds-size-prose); line-height: 1.36; letter-spacing: -.01em }
.ds-rows p a { color: var(--ds-ink); text-decoration: none }
.ds-rows p a:hover { text-decoration: underline }
.ds-rows .ds-mono { margin-top: var(--ds-space-2) }
.ds-rows[data-kind="dates"] > li { grid-template-columns: minmax(0, 1fr) }
.ds-rows[data-kind="dates"] .ds-mono { margin: 0 0 var(--ds-space-1) }

/* A plain list: one line each, the name in ink and the rest muted. */
.ds-list { margin-top: var(--ds-space-5); padding: 0; list-style: none }
.ds-list > li { padding-block: var(--ds-space-2); font-size: 1.125rem; line-height: 1.4 }
.ds-list a { color: var(--ds-ink); text-decoration: none }
.ds-list a:hover { text-decoration: underline }

/* Shelf: products on square cards, a caption under each. Three columns; two on phones. */
.ds-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-6) var(--ds-space-2); padding: 0; list-style: none }
.ds-shelf figure { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--ds-radius-media); background: var(--ds-surface) }
.ds-shelf figure img { width: 86%; height: auto }
.ds-shelf p { margin-top: var(--ds-space-4); padding-inline: var(--ds-space-1); font-size: var(--ds-size-reading); line-height: 1.4 }
@container (max-width: 46rem) { .ds-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* Tiles: a grid of cards, one idea each. data-columns="2" | "3" (default) | "4". */
.ds-grid { display: grid; grid-template-columns: repeat(var(--ds-cols, 3), minmax(0, 1fr)); gap: var(--ds-space-2); margin-top: var(--ds-space-6); list-style: none; padding: 0 }
.ds-grid[data-columns="2"] { --ds-cols: 2 }
.ds-grid[data-columns="4"] { --ds-cols: 4 }
.ds-grid > li { display: flex; flex-direction: column; padding: var(--ds-space-6); border: 1px solid var(--ds-edge); border-radius: var(--ds-radius-media); background: var(--ds-surface) }
.ds-grid h3 { margin-top: auto; font-size: 1.125rem; font-weight: 500; line-height: 1.3 }
.ds-grid h3 a { color: var(--ds-ink); text-decoration: none }
.ds-grid h3 a:hover { text-decoration: underline }
.ds-grid p { margin-top: var(--ds-space-2); font-size: var(--ds-size-reading); line-height: 1.45; color: var(--ds-muted) }
.ds-grid .ds-label { margin-bottom: var(--ds-space-4) }
@container (max-width: 34rem) { .ds-grid { grid-template-columns: minmax(0, 1fr) } }

/* Illustrations from @hugocxl/vectors, in ink. */
.ds-vector { display: block; color: var(--ds-ink) }
.ds-media > .ds-vector { width: auto; height: 82%; max-width: 92%; aspect-ratio: 4 / 3 }
.ds-grid .ds-vector { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-block: var(--ds-space-3) var(--ds-space-4) }

/* ─── Index list and table ───────────────────────────────────────────── */
/* The index (changelog, posts, experience): a monospace date above a line in two tones. */
.ds-index { display: grid; gap: var(--ds-space-7); margin-top: var(--ds-space-6); padding: 0; list-style: none }
.ds-index > li { display: grid; gap: var(--ds-space-1); scroll-margin-top: calc(var(--ds-bar) + var(--ds-space-5)) }
.ds-index h3 { font-size: var(--ds-size-prose); font-weight: 400; line-height: 1.36; letter-spacing: -.01em }
.ds-index h3 a { color: var(--ds-ink); text-decoration: none }
.ds-index p { color: var(--ds-muted); font-size: 1.125rem; line-height: 1.45 }
.ds-index p + p { margin-top: var(--ds-space-2) }
.ds-index :where(ul, ol) { margin-top: var(--ds-space-3); padding-left: 1.2em; color: var(--ds-muted); font-size: 1.0625rem }

.ds-table { width: 100%; border-collapse: collapse; font-size: var(--ds-size-reading); font-variant-numeric: tabular-nums }
.ds-table th { color: var(--ds-muted); font: 400 var(--ds-size-label)/1.4 var(--ds-mono); letter-spacing: .06em; text-align: left; text-transform: uppercase }
.ds-table :where(th, td) { padding: var(--ds-space-3) var(--ds-space-4) var(--ds-space-3) 0; border-bottom: 1px solid var(--ds-rule); vertical-align: top }
.ds-table tbody th { font: inherit; color: var(--ds-ink); text-transform: none; letter-spacing: 0 }
.ds-table-scroll { overflow-x: auto }

/* ─── Controls and code ──────────────────────────────────────────────── */
/* Buttons are pills: light for the main action, a soft wash for the rest. */
.ds-button, .ds .ds-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--ds-radius-pill);
  font: 400 var(--ds-size-control)/1 var(--ds-sans);
  text-decoration: none;
  cursor: pointer;
}
.ds-button { color: var(--ds-on-action); background: var(--ds-action) }
.ds a.ds-button { color: var(--ds-on-action); text-decoration: none }
.ds-button:hover { opacity: .88 }
.ds-button > .ds-icon { margin: 0 }
.ds .ds-more { color: var(--ds-ink); background: color-mix(in srgb, var(--ds-ink) 10%, transparent) }
.ds .ds-more:hover { background: color-mix(in srgb, var(--ds-ink) 16%, transparent) }
.ds-more > .ds-icon { order: 1; width: .9em; height: .9em; margin: 0 }

/* Code blocks: a rounded card with a copy button (design.js wires it). */
.ds-code { position: relative; border-radius: var(--ds-radius-control); background: var(--ds-surface) }
.ds-code pre { padding: var(--ds-space-4) var(--ds-space-5); overflow-x: auto; font: 400 var(--ds-size-code)/1.6 var(--ds-mono); font-variant-numeric: tabular-nums slashed-zero; white-space: pre; tab-size: 2 }
.ds-code pre code { font: inherit }
.ds-code:has(button) pre { padding-top: calc(var(--ds-space-2) * 2 + 1.75rem) }
.ds-code button { position: absolute; top: var(--ds-space-2); right: var(--ds-space-2); min-height: 1.75rem; padding: 0 var(--ds-space-3); border: 0; border-radius: var(--ds-radius-pill); color: var(--ds-muted); background: var(--ds-rule); font: 400 var(--ds-size-label)/1 var(--ds-mono); cursor: pointer }
.ds-code button:hover { color: var(--ds-ink) }

@media (prefers-reduced-motion: no-preference) {
  .ds-button, .ds-more { transition: transform var(--ds-ease), color var(--ds-ease), background-color var(--ds-ease), opacity var(--ds-ease) }
  .ds-button:active, .ds-more:active { transform: scale(.97) }
}

/* Icons (e.g. @hugocxl/icons, Stroke): before the words of a link, button or label. */
.ds-icon { display: inline-block; width: 1em; height: 1em; margin-inline-end: var(--ds-space-2); vertical-align: -.125em; flex: none }
