/* @hugocxl/design — generated by scripts/build.mjs. Do not edit. */
:root {
  --ds-canvas: #f8f8f8;
  --ds-ink: #151515;
  --ds-muted: #151515a3;
  --ds-faint: #1515155c;
  --ds-rule: #15151514;
  --ds-surface: #ffffffcc;
  --ds-edge: #ffffff;
  --ds-accent: #f31a7c;
  --ds-accent-text: #d5176d;
  --ds-action: #151515;
  --ds-on-action: #ffffff;
  --ds-material: #f8f8f8cc;
  --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 + 3vw), 3.5rem);
  --ds-size-title: 2rem;
  --ds-size-heading: 1.25rem;
  --ds-size-lead: 1.125rem;
  --ds-size-small: .875rem;
  --ds-size-control: .9375rem;
  --ds-size-label: .875rem;
  --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: 8px;
  --ds-radius-media: 12px;
  --ds-radius-pill: 999px;
  --ds-target: 40px;
  --ds-bar: 3.25rem;
  --ds-measure: 40rem;
  --ds-wide: 51.25rem;
  --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: #151515;
    --ds-ink: #ffffff;
    --ds-muted: #ffffffc9;
    --ds-faint: #ffffff80;
    --ds-rule: #ffffff14;
    --ds-surface: #ffffff0a;
    --ds-edge: #ffffff0a;
    --ds-accent: #f31a7c;
    --ds-accent-text: #f6539d;
    --ds-action: #ffffff;
    --ds-on-action: #151515;
    --ds-material: #151515cc;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --ds-canvas: #151515;
  --ds-ink: #ffffff;
  --ds-muted: #ffffffc9;
  --ds-faint: #ffffff80;
  --ds-rule: #ffffff14;
  --ds-surface: #ffffff0a;
  --ds-edge: #ffffff0a;
  --ds-accent: #f31a7c;
  --ds-accent-text: #f6539d;
  --ds-action: #ffffff;
  --ds-on-action: #151515;
  --ds-material: #151515cc;
  color-scheme: dark;
}

/* ─── Shell and layout ───────────────────────────────────────────────── */
/* The page: the canvas with a soft glow of the accent at the top. 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) }
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: radial-gradient(ellipse 120% 26rem at 50% 0, color-mix(in srgb, var(--ds-accent) 9%, transparent), transparent) no-repeat, var(--ds-canvas);
  font: 400 var(--ds-size-reading)/1.5 var(--ds-sans);
  letter-spacing: 0;
  -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% }
.ds-column { max-width: var(--ds-measure); margin-inline: auto }
.ds-opening { padding-top: clamp(var(--ds-space-7), 6vw, var(--ds-space-9)) }
.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-4) }
.ds p { text-wrap: pretty }
.ds-section :where(ul:not([class]), ol:not([class])) { padding-left: 1.2em }
.ds-section :where(ul:not([class]), ol:not([class])) > li + li { margin-top: var(--ds-space-2) }
.ds strong { font-weight: 600 }
/* Links read as the text around them, underlined. 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 35%, 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 }

/* The page title (an <hgroup>): large, semibold, tight; the line under it in muted. */
.ds-title { font-size: var(--ds-size-title); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance }
.ds-title > * { display: block }
.ds-title > :not(:first-child) { margin-top: var(--ds-space-2); color: var(--ds-muted); font-size: var(--ds-size-lead); font-weight: 400; line-height: 1.4; letter-spacing: 0 }

/* The hero: the product name, one display headline, a muted subhead and the actions. */
.ds-eyebrow { color: var(--ds-muted); font-size: var(--ds-size-lead); font-weight: 500; line-height: 1.3 }
.ds-hero h1 { max-width: 14em; margin-top: var(--ds-space-2); font-size: var(--ds-size-display); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance }
.ds-hero h1:first-child { margin-top: 0 }
.ds-hero h1 + p { max-width: 32em; margin-top: var(--ds-space-4); color: var(--ds-muted); font-size: var(--ds-size-lead); line-height: 1.45; text-wrap: pretty }
.ds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-3); margin-top: var(--ds-space-6) }
.ds-hero + * { margin-top: var(--ds-space-8) }

/* Sections: a semibold heading, then the content. */
.ds-section { margin-top: var(--ds-space-8); scroll-margin-top: calc(var(--ds-bar) + var(--ds-space-4)) }
.ds-section > h2 { margin-bottom: var(--ds-space-4); font-size: var(--ds-size-heading); font-weight: 600; line-height: 1.3; letter-spacing: -.01em }
.ds-section h3 { font-weight: 600 }

/* Labels: the small grey line for dates, versions and captions, with tabular figures. */
.ds-label { font: 400 var(--ds-size-label)/1.4 var(--ds-sans); color: var(--ds-muted); font-variant-numeric: tabular-nums }
.ds-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2) var(--ds-space-4); margin-top: var(--ds-space-5); list-style: none; padding: 0 }
.ds-meta + * { margin-top: var(--ds-space-7) }

/* ─── Masthead and footer ────────────────────────────────────────────── */
/* The sticky bar on the translucent page color. The wordmark goes home, up to three nav items
   follow (an icon before their words), then one page link and the theme switch. A hairline
   appears once the page has scrolled (design.js or the React Masthead sets data-scrolled). */
.ds-masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0 var(--ds-space-5);
  min-height: var(--ds-bar);
  margin-inline: calc(-1 * var(--ds-gutter));
  padding-inline: var(--ds-space-4);
  border-bottom: 1px solid transparent;
  background: var(--ds-material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  font-size: var(--ds-size-small);
  font-weight: 500;
}
.ds-masthead[data-scrolled] { border-bottom-color: var(--ds-rule) }
.ds-masthead a { display: inline-flex; align-items: center; min-height: var(--ds-target); color: var(--ds-muted); text-decoration: none; white-space: nowrap }
.ds-masthead a:hover, .ds-masthead a[aria-current] { color: var(--ds-ink) }
.ds-masthead nav { display: flex; align-items: center; gap: 0 var(--ds-space-5); margin-left: var(--ds-space-4); margin-right: auto }
.ds-masthead nav .ds-icon { width: 1.125em; height: 1.125em; margin-inline-end: .375rem; vertical-align: -.2em }
.ds .ds-wordmark { color: var(--ds-ink); font-size: 1rem; font-weight: 700; letter-spacing: -.03em }
.ds-masthead > .ds-wordmark:has(+ :not(nav)) { margin-right: auto }
.ds-masthead > nav ~ a:not(.ds-wordmark) { color: var(--ds-ink) }
/* Narrow screens: nav items show only their icons (words stay for screen readers); on a phone
   the page link steps out. */
@media (max-width: 640px) {
  .ds-masthead nav { margin-left: var(--ds-space-2) }
  .ds-masthead nav > a:has(> .ds-icon) { font-size: 0 }
  .ds-masthead nav > a > .ds-icon { width: 1.25rem; height: 1.25rem; margin: 0 }
}
@media (max-width: 400px) {
  .ds-masthead { gap: 0 var(--ds-space-3); padding-inline: var(--ds-space-3) }
  .ds-masthead nav { gap: 0 var(--ds-space-4) }
  .ds-masthead > nav ~ a:not(.ds-wordmark) { display: none }
}
.ds-theme { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; margin-inline: calc(-1 * var(--ds-space-3)); padding: 0; border: 0; border-radius: 50%; color: var(--ds-muted); background: transparent; font: inherit; font-size: 1.125rem; cursor: pointer }
.ds-theme:hover { color: var(--ds-ink) }
.ds-theme > .ds-icon { margin: 0 }

/* The footer: a hairline, then small grey words at both ends. */
.ds-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-2) var(--ds-space-5); margin-top: var(--ds-space-9); padding-block: var(--ds-space-5) var(--ds-space-7); border-top: 1px solid var(--ds-rule); color: var(--ds-muted); font: 400 var(--ds-size-label)/1.4 var(--ds-sans) }
.ds-footer ul { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-5); margin: 0; padding: 0; list-style: none }
.ds-footer a { color: var(--ds-muted); text-decoration: none }
.ds-footer a:hover { color: var(--ds-ink) }

/* ─── Figures and tiles ──────────────────────────────────────────────── */
/* The card: the surface with a hairline edge and a 12px radius. Figures, tiles and code sit on one. */
.ds-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--ds-edge); 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) }

/* 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-4); 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-5); border: 1px solid var(--ds-edge); border-radius: var(--ds-radius-media); background: var(--ds-surface) }
.ds-grid h3 { margin-top: auto; font-weight: 600; 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-1); font-size: var(--ds-size-small); line-height: 1.45; color: var(--ds-muted) }
@container (max-width: 34rem) { .ds-grid { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-3) } }

/* 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 grey label beside a title, rows on hairlines. */
.ds-index { list-style: none; padding: 0; border-bottom: 1px solid var(--ds-rule) }
.ds-opening > .ds-index, .ds-section + .ds-index { margin-top: var(--ds-space-7) }
.ds-index > li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--ds-space-1) var(--ds-space-5); padding-block: var(--ds-space-4); border-top: 1px solid var(--ds-rule); scroll-margin-top: calc(var(--ds-bar) + var(--ds-space-4)) }
.ds-index .ds-label { padding-top: .15em }
.ds-index h3 { font-weight: 600 }
.ds-index p { margin-top: var(--ds-space-1); color: var(--ds-muted) }
.ds-index p + p { margin-top: var(--ds-space-2) }
@container (max-width: 30rem) { .ds-index > li { grid-template-columns: minmax(0, 1fr) } }

.ds-table { width: 100%; border-collapse: collapse; font-size: var(--ds-size-small); font-variant-numeric: tabular-nums }
.ds-table th { font: 500 var(--ds-size-label)/1.4 var(--ds-sans); color: var(--ds-muted); text-align: left }
.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) }
.ds-table-scroll { overflow-x: auto }

/* ─── Controls and code ──────────────────────────────────────────────── */
/* The primary button is inverted ink; .ds-more is an 8% wash of ink with grey words and an arrow. */
.ds-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2); min-height: var(--ds-target); padding: 0 var(--ds-space-4); border: 0; border-radius: var(--ds-radius-control); color: var(--ds-on-action); background: var(--ds-action); font: 500 var(--ds-size-control)/1 var(--ds-sans); text-decoration: none; cursor: pointer }
.ds a.ds-button { color: var(--ds-on-action); text-decoration: none }
.ds-button:hover { opacity: .86 }
.ds-button > .ds-icon { margin: 0 }
.ds .ds-more { display: inline-flex; align-items: center; gap: var(--ds-space-2); min-height: var(--ds-target); padding: 0 var(--ds-space-4); border: 0; border-radius: var(--ds-radius-control); color: var(--ds-muted); background: var(--ds-rule); font: 500 var(--ds-size-control)/1 var(--ds-sans); text-decoration: none; cursor: pointer }
.ds .ds-more:hover { color: var(--ds-ink) }
.ds-more > .ds-icon { order: 1; width: .9em; height: .9em; margin: 0 }

/* Code blocks: a card with a copy button (design.js wires it). */
.ds-code { position: relative; border: 1px solid var(--ds-edge); border-radius: var(--ds-radius-media); 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-control); color: var(--ds-muted); background: var(--ds-rule); font: 500 var(--ds-size-small)/1 var(--ds-sans); cursor: pointer }
.ds-code button:hover { color: var(--ds-ink) }

@media (prefers-reduced-motion: no-preference) {
  .ds-button, .ds-more, .ds-theme { transition: transform var(--ds-ease), color var(--ds-ease), background-color var(--ds-ease), opacity var(--ds-ease) }
  .ds-button:active, .ds-more:active, .ds-theme: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 }
