/*
 * A (more) modern CSS reset — Andy Bell, https://piccalil.li/blog/a-more-modern-css-reset/
 * "No copyright is claimed... free to use, adapt, and redistribute it without
 * restriction." Vendored 2026-09 for packages/ds, trimmed to what
 * base.module.css doesn't already cover (box-sizing, margin reset, media
 * defaults, form-control font inheritance) — house styling for body/headings/
 * links/focus stays in base.module.css, not here.
 */

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

* {
  margin: 0;
}

/* <picture> wrappers come from @repo/astro-dist-compress's <img> rewrite: no box of
   their own, so the <img> keeps its flex/grid item role and class-driven sizing. */
picture {
  display: contents;
}

/* Browsers compute <source> as display: block; under a contents <picture> it
   becomes a phantom grid/flex item that steals the <img>'s track. */
source {
  display: none;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/*
 * Self-hosted webfonts — no Google Fonts CDN request (plan 16 §1.4).
 * Binaries live in ./fonts/ (latin + latin-ext subsets, licences in the
 * sibling OFL-*.txt files), fetched with scripts/vendor-fonts.mjs.
 */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans-latin-ext-400.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans-latin-400.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans-latin-ext-500.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans-latin-500.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans-latin-ext-600.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans-latin-600.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-ext-400.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-400.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-ext-500.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-500.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Gabarito (display) + Hanken Grotesk (body) — one variable file per subset;
 * home's design skin (design-home.css). */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/gabarito-latin-ext-var.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/gabarito-latin-var.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('./fonts/hanken-grotesk-latin-ext-var.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('./fonts/hanken-grotesk-latin-var.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallback declarations (Claude DS's originals) so families resolve — and layout
 * doesn't shift on swap — even before the woff2 above finishes loading. */
@font-face {
  font-family: 'Instrument Serif Fallback';
  src: local('Iowan Old Style'), local('Georgia'), local('Times New Roman');
  size-adjust: 104%;
}
@font-face {
  font-family: 'Plus Jakarta Sans Fallback';
  src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
}
@font-face {
  font-family: 'Gabarito Fallback';
  src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
  size-adjust: 100%;
}
@font-face {
  font-family: 'Hanken Grotesk Fallback';
  src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('SFMono-Regular'), local('Menlo'), local('Consolas');
}

:root {
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 22px;
  --ds-space-6: 26px;
  --ds-space-7: 36px;
  --ds-space-8: 48px;
  --ds-space-9: 72px;

  /* Section rhythm: vertical padding scales with viewport. */
  --ds-section-y: max(40px, min(6vw, 96px));
  --ds-section-y: clamp(40px, 6vw, 96px);
  --ds-section-x: 24px;

  --ds-container: 1160px;
  --ds-container-prose: 720px;
  --ds-container-doc: 900px;

  --ds-radius-sm: 4px;
  --ds-radius-md: 10px;
  --ds-radius-lg: 18px;
  --ds-radius-xl: 24px;
  --ds-radius-pill: 999px;
}

/* Layout tokens: the site bar everything sticky docks under, the stacking
   layers, and the media sizes shared by cards and shelves. Documented in
   Storybook under Tokens/Layout. Media and container queries can't read
   custom properties, so breakpoints stay literal where they're used. */
:root {
  /* The sticky site bar (HeaderNav). */
  --ds-layout-header-height: 68px;
  /* How far a bar docked under the header tucks beneath it: iPadOS Safari
     leaves a sub-pixel seam between two sticky bars while scrolling. */
  --ds-layout-header-overlap: 2px;
  /* `top` of a bar docked right under the header (book sections, code block controls). */
  --ds-layout-sticky-top: calc(var(--ds-layout-header-height) - var(--ds-layout-header-overlap));
  /* Anchor scroll padding and `top` of sticky rails that float clear of the header. */
  --ds-layout-scroll-offset: 6.5rem;

  /* Stacking: the header above every docked bar. */
  --ds-layer-sticky: 30;
  --ds-layer-header: 40;

  /* Post card cover (TimelinePost): side of its square, the same on every card. */
  --ds-size-thumb-width: max(128px, min(20vw, 196px));
  --ds-size-thumb-width: clamp(128px, 20vw, 196px);
  /* Book cover beside its text (BooksSection split). */
  --ds-size-cover-width-min: 8rem;
  --ds-size-cover-width-max: 12rem;
  --ds-size-cover-width-compact: max(7rem, min(26vw, 13rem));
  --ds-size-cover-width-compact: clamp(7rem, 26vw, 13rem);
  /* Book cover beside its title only, when the text drops under it (cqi: the shelf's width). */
  --ds-size-cover-width-tight: max(6.5rem, min(26cqi, 9rem));
  --ds-size-cover-width-tight: clamp(6.5rem, 26cqi, 9rem);
  /* The sandbox lab mascot when it shares the intro's row. */
  --ds-size-mascot-width-compact: 13rem;
}

:root {
  --ds-hairline: 1px solid var(--ds-border);
  --ds-shadow-card: 0 1px 2px rgba(28, 22, 19, 0.04), 0 18px 40px -24px rgba(28, 22, 19, 0.28);
  --ds-shadow-lift: 0 30px 60px -28px rgba(0, 0, 0, 0.35);
  --ds-shadow-book: inset 6px 0 0 rgba(0, 0, 0, 0.18), 0 10px 24px -14px rgba(0, 0, 0, 0.5);

  --ds-glass-blur: blur(14px);
  --ds-glass-blur-sm: blur(12px);

  /* Organic forms live in the vector background, the portrait and the nav dish;
     content surfaces stay clean, evenly rounded. */
  --ds-shape-pebble: 46% 54% 50% 50% / 58% 52% 48% 42%;
  --ds-shape-bowl: 52% 48% 44% 56% / 46% 50% 50% 54%;
  --ds-shape-tile: 22px;
  --ds-shape-slab: 32px;

  /* Soft, offset elevation tinted from the theme's shadow tone, never black halos. */
  --ds-shadow-contact:
    0 1px 2px color-mix(in oklab, var(--ds-shadow-tone) 10%, transparent),
    0 14px 32px -18px color-mix(in oklab, var(--ds-shadow-tone) 34%, transparent);
  --ds-shadow-lifted:
    0 2px 4px color-mix(in oklab, var(--ds-shadow-tone) 10%, transparent),
    0 28px 48px -24px color-mix(in oklab, var(--ds-shadow-tone) 40%, transparent);
}

:root {
  --ds-dur-fast: 0.2s;
  --ds-dur-base: 0.3s;
  --ds-dur-slow: 0.35s;
  --ds-ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ds-ease-inout: ease-in-out;

  --ds-dur-blob: 26s;
  --ds-dur-morph: 24s;
  --ds-dur-float: 9s;

  /* Ambient ground's beat: every stage loop, de-phase and the mesh's clock are
     multiples of it. Raise it to slow the whole ground down. */
  --ds-motion-ambient-duration-base: 1.3s;

  /* Keyframe names, as values: CSS-modules rewrites a bare `animation: blobA`
     to a scoped name that matches no keyframe defined in this plain file. */
  --ds-kf-blob-a: blobA;
  --ds-kf-blob-b: blobB;
  --ds-kf-morph: morph;
  --ds-kf-floaty: floaty;
  --ds-kf-target-stroke-forward: targetStrokeForward;
  --ds-kf-target-stroke-back: targetStrokeBack;
}

/* Ambient, always-on background motion. Transform + opacity only. This file
   is plain global CSS (see index.css), so these names stay bare — no
   CSS-modules scoping to escape — and are referenced by plain string
   (`animationName: 'blobA'`, …) from components that build their animation
   shorthand at runtime, matching the original design's imperative-style
   pattern. */
@keyframes blobA {
  0% {
    border-radius: 58% 42% 61% 39% / 45% 55% 45% 55%;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    border-radius: 38% 62% 34% 66% / 62% 38% 62% 38%;
    transform: translate3d(6%, -5%, 0) scale(1.12);
  }
  100% {
    border-radius: 58% 42% 61% 39% / 45% 55% 45% 55%;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes blobB {
  0% {
    border-radius: 44% 56% 39% 61% / 58% 41% 59% 42%;
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  50% {
    border-radius: 64% 36% 57% 43% / 36% 64% 36% 64%;
    transform: translate3d(-7%, 6%, 0) scale(0.92);
  }
  100% {
    border-radius: 44% 56% 39% 61% / 58% 41% 59% 42%;
    transform: translate3d(0, 0, 0) scale(1.05);
  }
}
@keyframes morph {
  0% {
    border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  }
  33% {
    border-radius: 60% 40% 44% 56% / 42% 58% 42% 58%;
  }
  66% {
    border-radius: 40% 60% 62% 38% / 58% 44% 56% 42%;
  }
  100% {
    border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  }
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* A highlighter stroke on an in-page link's target: drawn, held, dried. */
@keyframes targetStrokeForward {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  18%,
  50% {
    clip-path: inset(0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0);
    opacity: 0;
  }
}
@keyframes targetStrokeBack {
  0% {
    clip-path: inset(0 0 0 100%);
  }
  18%,
  50% {
    clip-path: inset(0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0);
    opacity: 0;
  }
}

/* Arrival: any in-page link's target gets the stroke, on every page. `:where` so a
   component's own positioning wins. Not `main` (the skip link's target), nor after
   a table of contents jump (toc-jump.ts): the reader picked that section. */
:where(section:target h1) {
  position: relative;
}
:where(section:target h2) {
  position: relative;
}
:where(section:target h3) {
  position: relative;
}
:where(section:target h4) {
  position: relative;
}
:where(section:target h5) {
  position: relative;
}
:where(section:target h6) {
  position: relative;
}
:where(aside:target h1) {
  position: relative;
}
:where(aside:target h2) {
  position: relative;
}
:where(aside:target h3) {
  position: relative;
}
:where(aside:target h4) {
  position: relative;
}
:where(aside:target h5) {
  position: relative;
}
:where(aside:target h6) {
  position: relative;
}
:where(footer:target h1) {
  position: relative;
}
:where(footer:target h2) {
  position: relative;
}
:where(footer:target h3) {
  position: relative;
}
:where(footer:target h4) {
  position: relative;
}
:where(footer:target h5) {
  position: relative;
}
:where(footer:target h6) {
  position: relative;
}
:where(article:target h1) {
  position: relative;
}
:where(article:target h2) {
  position: relative;
}
:where(article:target h3) {
  position: relative;
}
:where(article:target h4) {
  position: relative;
}
:where(article:target h5) {
  position: relative;
}
:where(article:target h6) {
  position: relative;
}
:where(:target, [data-search-arrival]) {
  position: relative;
}
:where(:target, [data-search-arrival]),
:where(:is(section, aside, footer, article):target :is(h1, h2, h3, h4, h5, h6)) {
  position: relative;
}
/* A block is too large to mark, so the stroke goes on its first heading: the one
   with no heading before it, in a sibling or in a sibling's subtree, inside the block. */
section:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--35: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
section:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--35, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
section:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--36: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
section:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--36, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
section:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--37: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
section:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--37, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
section:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--38: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
section:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--38, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
section:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--39: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
section:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--39, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
section:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--40: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
section:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--40, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
aside:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--41: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
aside:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--41, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
aside:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--42: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
aside:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--42, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
aside:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--43: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
aside:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--43, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
aside:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--44: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
aside:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--44, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
aside:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--45: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
aside:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--45, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
aside:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--46: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
aside:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--46, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
footer:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--47: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
footer:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--47, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
footer:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--48: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
footer:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--48, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
footer:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--49: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
footer:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--49, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
footer:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--50: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
footer:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--50, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
footer:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--51: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
footer:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--51, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
footer:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--52: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
footer:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--52, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
article:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--53: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
article:target
  h1:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--53, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
article:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--54: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
article:target
  h2:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--54, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
article:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--55: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
article:target
  h3:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--55, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
article:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--56: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
article:target
  h4:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--56, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
article:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--57: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
article:target
  h5:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--57, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
article:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--58: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
article:target
  h6:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6)):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(:has(h1, h2, h3, h4, h5, h6))::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--58, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
:target:not(main):not(section):not(aside):not(footer):not(article):not([data-bleed] *)::before,
[data-search-arrival]::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--34: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
:target:not(main):not(section):not(aside):not(footer):not(article):not([data-bleed] *)::before,
[data-search-arrival]::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--34, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
:target:not(main):not(section):not(aside):not(footer):not(article):not([data-bleed] *)::before,
[data-search-arrival]::before,
:is(section, aside, footer, article):target
  :is(h1, h2, h3, h4, h5, h6):not(:target :is(h1, h2, h3, h4, h5, h6, :has(h1, h2, h3, h4, h5, h6)) ~ *):not(:target :is(h1, h2, h3, h4, h5, h6, :has(h1, h2, h3, h4, h5, h6)) ~ * *)::before {
  content: '';
  position: absolute;
  top: -0.3em;
  right: -0.5em;
  bottom: -0.3em;
  left: -0.5em;
  border-radius: 6px;
  --csstools-light-dark-toggle--33: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  background: rgba(167, 58, 27, 0.2);
  background: color-mix(in oklab, rgb(167, 58, 27) 20%, transparent);
  background: color-mix(in oklab, light-dark(rgb(167, 58, 27), rgb(235, 146, 81)) 20%, transparent);
  background: color-mix(in oklab, light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55)) 20%, transparent);
  pointer-events: none;
  animation: targetStrokeForward 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation: targetStrokeForward 2.4s var(--ds-ease-out) both;
}

@supports (color: color-mix(in lch, red, blue)) {
:target:not(main):not(section):not(aside):not(footer):not(article):not([data-bleed] *)::before,
[data-search-arrival]::before,
:is(section, aside, footer, article):target
  :is(h1, h2, h3, h4, h5, h6):not(:target :is(h1, h2, h3, h4, h5, h6, :has(h1, h2, h3, h4, h5, h6)) ~ *):not(:target :is(h1, h2, h3, h4, h5, h6, :has(h1, h2, h3, h4, h5, h6)) ~ * *)::before {
  background: color-mix(in oklab, var(--csstools-light-dark-toggle--33, rgb(167, 58, 27)) 20%, transparent);
  background: color-mix(in oklab, var(--ds-accent) 20%, transparent);
}
}
/* Arrival strokes only, so ambient ::before loops keep running. !important: a state
   override must beat the stroke rules' heavier selectors, whose `animation` shorthand
   resets the play state to running. */
[data-scroll-settling]:root :target h1::before {
  animation-play-state: paused !important;
}
[data-scroll-settling]:root :target h2::before {
  animation-play-state: paused !important;
}
[data-scroll-settling]:root :target h3::before {
  animation-play-state: paused !important;
}
[data-scroll-settling]:root :target h4::before {
  animation-play-state: paused !important;
}
[data-scroll-settling]:root :target h5::before {
  animation-play-state: paused !important;
}
[data-scroll-settling]:root :target h6::before {
  animation-play-state: paused !important;
}
:root[data-scroll-settling] :target::before,
:root[data-scroll-settling] [data-search-arrival]::before,
:root[data-scroll-settling] mark.search-hit {
  animation-play-state: paused !important;
}
:root[data-scroll-settling] :target::before,
:root[data-scroll-settling] :target :is(h1, h2, h3, h4, h5, h6)::before,
:root[data-scroll-settling] [data-search-arrival]::before,
:root[data-scroll-settling] mark.search-hit {
  animation-play-state: paused !important;
}
[data-toc-jump]:root :target h1::before {
  display: none;
}
[data-toc-jump]:root :target h2::before {
  display: none;
}
[data-toc-jump]:root :target h3::before {
  display: none;
}
[data-toc-jump]:root :target h4::before {
  display: none;
}
[data-toc-jump]:root :target h5::before {
  display: none;
}
[data-toc-jump]:root :target h6::before {
  display: none;
}
:root[data-toc-jump] :target::before {
  display: none;
}
:root[data-toc-jump] :target::before,
:root[data-toc-jump] :target :is(h1, h2, h3, h4, h5, h6)::before {
  display: none;
}
/* No movement: the stroke simply stays until the next jump. */
@media (prefers-reduced-motion: reduce) {
  :target h1::before {
    animation: none;
  }
  :target h2::before {
    animation: none;
  }
  :target h3::before {
    animation: none;
  }
  :target h4::before {
    animation: none;
  }
  :target h5::before {
    animation: none;
  }
  :target h6::before {
    animation: none;
  }
  [data-search-arrival]::before,
  :target::before {
    animation: none;
  }
  [data-search-arrival]::before,
  :target::before,
  :target :is(h1, h2, h3, h4, h5, h6)::before {
    animation: none;
  }
}

/* Searched terms on a page opened from a result (search-arrival.ts), drawn like a
   highlighter pen: a band over the whole word with slanted ends, sized in the term's
   own em so a heading's mark stays tight. Bleed is padding taken back by margin, so
   a word matched in part isn't split. Doubled to outrank `.articleProse mark`.
   The paint is a token: the search results draw their matches with the same pen.
   Declared on every mark so it takes the theme and size of the mark it paints. */
:where(mark) {
  --ds-search-hit-bleed: 0.08em;
  /* Tall enough that no letter straddles the band's edge. */
  --ds-search-hit-band: 0.9em;
  /* A breath of the ground colour around the letters lifts them off the ink. */
  --ds-search-hit-halo:
    0 0 0.08em color-mix(in oklab, var(--ds-bg-primary) 80%, transparent),
    0 0 0.2em color-mix(in oklab, var(--ds-bg-primary) 50%, transparent);
  --ds-search-hit-paint: linear-gradient(
      104deg,
      transparent var(--ds-search-hit-bleed),
      var(--ds-color-highlight-background) var(--ds-search-hit-bleed)
        calc(100% - var(--ds-search-hit-bleed)),
      transparent calc(100% - var(--ds-search-hit-bleed))
    )
    0 62% / 100% var(--ds-search-hit-band) no-repeat;
}
mark.search-hit.search-hit {
  padding: 0 var(--ds-search-hit-bleed);
  margin-left: calc(var(--ds-search-hit-bleed) * -1);
  margin-right: calc(var(--ds-search-hit-bleed) * -1);
  border-radius: 0;
  background: var(--ds-search-hit-paint);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  --csstools-light-dark-toggle--2: var(--csstools-color-scheme--light) rgb(255, 249, 241);
  color: rgb(54, 28, 20);
  color: var(--csstools-light-dark-toggle--2, rgb(54, 28, 20));
  color: light-dark(light-dark(rgb(54, 28, 20), rgb(240, 230, 216)), rgb(255, 249, 241));
  color: light-dark(light-dark(rgb(54, 28, 20), rgb(240, 230, 216)), color(display-p3 1 0.97771 0.93932));
  color: light-dark(light-dark(oklch(26% 0.045 38), oklch(93% 0.022 78)), oklch(98.5% 0.02 78));
  color: var(--ds-color-highlight-text);
  text-shadow: var(--ds-search-hit-halo);
}
/* The arrival match: the pen's stroke, skewed like the tip of a highlighter, drawn
   once and left as that match's mark. Behind the text and in place of the band, so
   no word ever sits under two layers of ink (contrast is checked for one). */
mark.search-hit.search-hit[data-search-arrival] {
  isolation: isolate;
  background: transparent;
}
mark.search-hit.search-hit[data-search-arrival]::before {
  z-index: -1;
  top: 0.19em;
  right: -0.06em;
  bottom: 0.11em;
  left: -0.06em;
  border-radius: 1px;
  transform: skewX(-14deg) rotate(-1.2deg);
  --csstools-light-dark-toggle--3: var(--csstools-color-scheme--light) rgba(34, 205, 229, 0.45);
  background: rgba(175, 71, 145, 0.5);
  background: var(--csstools-light-dark-toggle--3, rgba(175, 71, 145, 0.5));
  background: color-mix(in oklab, rgb(175, 71, 145) 50%, transparent);
  background: light-dark(
    color-mix(in oklab, light-dark(rgb(175, 71, 145), rgb(34, 205, 229)) 50%, transparent),
    color-mix(in oklab, light-dark(rgb(175, 71, 145), rgb(34, 205, 229)) 45%, transparent)
  );
  background: light-dark(
    color-mix(in oklab, light-dark(oklch(56% 0.16 340), oklch(78% 0.13 210)) 50%, transparent),
    color-mix(in oklab, light-dark(oklch(56% 0.16 340), oklch(78% 0.13 210)) 45%, transparent)
  );
  background: var(--ds-color-highlight-background);
}

@supports (color: color-mix(in lch, red, blue)) {
mark.search-hit.search-hit[data-search-arrival]::before {
  --csstools-light-dark-toggle--3: var(--csstools-color-scheme--light) color-mix(in oklab, rgb(34, 205, 229) 45%, transparent);
  background: var(--csstools-light-dark-toggle--3, color-mix(in oklab, rgb(175, 71, 145) 50%, transparent));
}
}
@keyframes searchHitStroke {
  from {
    clip-path: inset(0 100% 0 0);
  }
  18% {
    clip-path: inset(0);
  }
}
/* The other matches' fill sweeps in, like a pen, once the stroke is drawn. */
@keyframes searchHitFill {
  from {
    background-size: 0% var(--ds-search-hit-band);
  }
}
@media (prefers-reduced-motion: no-preference) {
  mark.search-hit.search-hit[data-search-arrival]::before {
    animation-name: searchHitStroke;
  }
  :where(:root:has([data-search-arrival])) mark.search-hit {
    animation: searchHitFill 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) 1.2s both;
    animation: searchHitFill 1.2s var(--ds-ease-out) 1.2s both;
  }
}

/* Cross-document view transitions (plan 21): every navigation cross-fades,
   where supported. Opt-in only without reduced motion — the `*` rule below
   doesn't reach `::view-transition-*` pseudo-elements. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-duration: var(--ds-dur-base);
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-timing-function: var(--ds-ease-out);
}

/* Language switch (LangPebbles): the filled pebble glides to the other code,
   a touch longer than the page fade so the move reads. */
::view-transition-group(page-lang) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.3, 1.25, 0.4, 1);
}

/* Theme switch: a slow cross-fade (ThemeSwitch starts a `theme`-typed view
   transition). `*`, not `root`: the named header must fade in step. */
:root:active-view-transition-type(theme)::view-transition-old(*),
:root:active-view-transition-type(theme)::view-transition-new(*) {
  animation-duration: 0.7s;
}
/* One root snapshot for a theme switch: named groups (portrait, header) paint
   above root, so they'd cover the open mobile menu, a top-layer popover. */
:root:active-view-transition-type(theme) * {
  view-transition-name: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * Three palettes (home redesign): terracotta (light), espresso (dark) and teal
 * (light). Ids are kept from the earlier palettes so saved localStorage
 * choices keep working; only the values changed.
 *
 * Terracotta is the default: it lives on bare :root (PRODUCT.md — Terracotta
 * when the OS is light). `parchment` is a legacy id kept as an alias of
 * terracotta until it is removed from `ThemeName`. Espresso is the dark half
 * of each `light-dark()` pair: it shows under a dark OS setting, or when
 * `[data-theme='espresso']` pins `color-scheme: dark` (below). JS must read
 * these through `tokenColor()` (token-color.ts), never `getPropertyValue`.
 *
 * `.module.css`, not plain — the default palette's 12 values are the only ones
 * `COLORS` (src/tokens/index.ts) mirrors into JS, bridged below via `@value`
 * (ICSS), `tokenColor`-prefixed per TOKEN-NAMING.md. The other palettes are
 * runtime `[data-theme]` switches, which `@value` can't express, so they stay
 * plain declarations (plan 17 §1.1a).
 *
 * All values are CSS Color 4 `oklch()` (TOKEN-NAMING.md); contrast checked:
 * ink/ground ≥ 11:1, accent/ground and ground-on-accent ≥ 4.5:1 in every
 * palette. `scripts/build-geode.mjs` compiles old-browser fallbacks.
 */













:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) rgb(25, 17, 12);
  --ds-bg-primary: var(--csstools-light-dark-toggle--4, rgb(241, 219, 204));
  --csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) rgb(39, 27, 21);
  --ds-bg-secondary: var(--csstools-light-dark-toggle--5, rgb(247, 234, 224));
  --csstools-light-dark-toggle--6: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-text-main: var(--csstools-light-dark-toggle--6, rgb(54, 28, 20));
  --csstools-light-dark-toggle--7: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  --ds-accent: var(--csstools-light-dark-toggle--7, rgb(167, 58, 27));
  /* Second vibrant hue, set against the accent: a fill for the brand mark
     (graphic, 3:1) and a darker/lighter text step (4.5:1). */
  --csstools-light-dark-toggle--8: var(--csstools-color-scheme--light) rgb(34, 205, 229);
  --ds-color-accent-fill-secondary: var(--csstools-light-dark-toggle--8, rgb(175, 71, 145));
  --csstools-light-dark-toggle--9: var(--csstools-color-scheme--light) rgb(145, 224, 238);
  --ds-color-accent-text-secondary: var(--csstools-light-dark-toggle--9, rgb(148, 46, 121));
  /* Highlighter marks (`mark`, search hits), in the second hue, with the text
     colour they need: ink on the band ≥ 4.5:1 in every palette (text/band 6.3:1). */
  --csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-fill-secondary) 45%, transparent);
  --ds-color-highlight-background: var(--csstools-light-dark-toggle--0, color-mix(in oklab, var(--ds-color-accent-fill-secondary) 50%, transparent));
  --csstools-light-dark-toggle--10: var(--csstools-color-scheme--light) rgb(255, 249, 241);
  --ds-color-highlight-text: var(--csstools-light-dark-toggle--10, var(--ds-text-main));
  /* A failure (SearchBox's unavailable index): text and its edge. A crimson
     deeper than the terracotta accent; on the surface ≥ 6.4:1 in every palette. */
  --csstools-light-dark-toggle--11: var(--csstools-color-scheme--light) rgb(255, 149, 146);
  --ds-color-feedback-text-error: var(--csstools-light-dark-toggle--11, rgb(172, 1, 26));

  --csstools-light-dark-toggle--12: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.15);

  --ds-blob-1: var(--csstools-light-dark-toggle--12, rgba(167, 58, 27, 0.16));
  --csstools-light-dark-toggle--13: var(--csstools-color-scheme--light) rgba(84, 129, 151, 0.16);
  --ds-blob-2: var(--csstools-light-dark-toggle--13, rgba(234, 178, 107, 0.32));
  --csstools-light-dark-toggle--14: var(--csstools-color-scheme--light) rgba(186, 103, 63, 0.1);
  --ds-blob-3: var(--csstools-light-dark-toggle--14, rgba(198, 104, 70, 0.12));
  --csstools-light-dark-toggle--15: var(--csstools-color-scheme--light) rgba(65, 25, 4, 0.6);
  --ds-ambient-1: var(--csstools-light-dark-toggle--15, rgba(208, 95, 65, 0.23));
  --csstools-light-dark-toggle--16: var(--csstools-color-scheme--light) rgba(40, 63, 119, 0.5);
  --ds-ambient-2: var(--csstools-light-dark-toggle--16, rgba(205, 142, 94, 0.28));
  --csstools-light-dark-toggle--17: var(--csstools-color-scheme--light) rgba(86, 19, 99, 0.5);
  --ds-ambient-3: var(--csstools-light-dark-toggle--17, rgba(214, 119, 138, 0.19));
  --csstools-light-dark-toggle--18: var(--csstools-color-scheme--light) rgba(22, 7, 3, 0.6);
  --ds-ambient-4: var(--csstools-light-dark-toggle--18, rgba(156, 109, 158, 0.13));

  --csstools-light-dark-toggle--19: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.7);

  --ds-muted: var(--csstools-light-dark-toggle--19, rgba(54, 28, 20, 0.7));
  --csstools-light-dark-toggle--20: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.5);
  --ds-faint: var(--csstools-light-dark-toggle--20, rgba(54, 28, 20, 0.5));
  --csstools-light-dark-toggle--21: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.14);
  --ds-border: var(--csstools-light-dark-toggle--21, rgba(54, 28, 20, 0.13));
  --csstools-light-dark-toggle--22: var(--csstools-color-scheme--light) rgba(39, 27, 21, 0.66);
  --ds-glass: var(--csstools-light-dark-toggle--22, rgba(248, 236, 227, 0.62));
  --csstools-light-dark-toggle--23: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.11);
  --ds-tint: var(--csstools-light-dark-toggle--23, rgba(167, 58, 27, 0.09));
  /* Inline links in running text: present, not competing with it. */
  --csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-text-secondary) 40%, transparent);
  --ds-color-link-underline: var(--csstools-light-dark-toggle--1, color-mix(in oklab, var(--ds-color-accent-text-secondary) 65%, transparent));
  --csstools-light-dark-toggle--24: var(--csstools-color-scheme--light) rgb(13, 8, 5);
  --ds-code-bg: var(--csstools-light-dark-toggle--24, rgb(42, 19, 12));
  --csstools-light-dark-toggle--25: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-code-fg: var(--csstools-light-dark-toggle--25, rgb(242, 229, 219));

  --csstools-light-dark-toggle--26: var(--csstools-color-scheme--light) rgb(1, 0, 0);

  --ds-shadow-tone: var(--csstools-light-dark-toggle--26, rgb(71, 34, 22));

  /* Deep band: a dark ground below the page, in every theme (DeepBand). */
  --csstools-light-dark-toggle--27: var(--csstools-color-scheme--light) rgb(11, 5, 3);
  --ds-color-deep-background: var(--csstools-light-dark-toggle--27, rgb(42, 19, 12));
  --csstools-light-dark-toggle--28: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-color-deep-text: var(--csstools-light-dark-toggle--28, rgb(247, 234, 224));
  --csstools-light-dark-toggle--29: var(--csstools-color-scheme--light) rgb(249, 159, 85);
  --ds-color-deep-light: var(--csstools-light-dark-toggle--29, rgb(237, 132, 91));

  /* Post covers: both accents tuned to pop on the ink ground, and the
     linework's light (PostCover). */
  --csstools-light-dark-toggle--30: var(--csstools-color-scheme--light) rgb(231, 109, 0);
  --ds-color-cover-fill-primary: var(--csstools-light-dark-toggle--30, rgb(255, 119, 45));
  --csstools-light-dark-toggle--31: var(--csstools-color-scheme--light) rgb(0, 141, 179);
  --ds-color-cover-fill-secondary: var(--csstools-light-dark-toggle--31, rgb(227, 110, 188));
  --csstools-light-dark-toggle--32: var(--csstools-color-scheme--light) rgb(48, 32, 23);
  --ds-color-cover-fill-neutral: var(--csstools-light-dark-toggle--32, rgb(249, 207, 163));
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-bg-primary: light-dark(rgb(241, 219, 204), rgb(25, 17, 12));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-bg-primary: light-dark(oklch(90.5% 0.032 55), oklch(18.5% 0.016 50));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-bg-secondary: light-dark(rgb(247, 234, 224), rgb(39, 27, 21));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-bg-secondary: light-dark(oklch(94.5% 0.02 62), oklch(23.5% 0.022 48));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-text-main: light-dark(rgb(54, 28, 20), rgb(240, 230, 216));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-text-main: light-dark(oklch(26% 0.045 38), oklch(93% 0.022 78));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-accent: light-dark(rgb(167, 58, 27), rgb(235, 146, 81));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-accent: light-dark(oklch(50% 0.15 36), oklch(74% 0.135 55));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-accent-fill-secondary: light-dark(rgb(175, 71, 145), rgb(34, 205, 229));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-accent-fill-secondary: light-dark(oklch(56% 0.16 340), oklch(78% 0.13 210));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-accent-text-secondary: light-dark(rgb(148, 46, 121), rgb(145, 224, 238));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-accent-text-secondary: light-dark(oklch(48% 0.16 340), oklch(86% 0.08 210));
}
}

@supports (color: color-mix(in lch, red, blue)) and (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-highlight-background: light-dark(
    color-mix(in oklab, var(--ds-color-accent-fill-secondary) 50%, transparent),
    color-mix(in oklab, var(--ds-color-accent-fill-secondary) 45%, transparent)
  );
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-highlight-text: light-dark(var(--ds-text-main), rgb(255, 249, 241));
  --ds-color-feedback-text-error: light-dark(rgb(172, 1, 26), rgb(255, 149, 146));

  --ds-blob-1: light-dark(rgba(167, 58, 27, 0.16), rgba(235, 146, 81, 0.15));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {

  --ds-blob-1: light-dark(oklch(50% 0.15 36 / 0.16), oklch(74% 0.135 55 / 0.15));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-blob-2: light-dark(rgba(234, 178, 107, 0.32), rgba(84, 129, 151, 0.16));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-blob-2: light-dark(oklch(80% 0.11 72 / 0.32), oklch(58% 0.06 230 / 0.16));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-blob-3: light-dark(rgba(198, 104, 70, 0.12), rgba(186, 103, 63, 0.1));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-blob-3: light-dark(oklch(62% 0.13 40 / 0.12), oklch(60% 0.12 45 / 0.1));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-1: light-dark(rgba(208, 95, 65, 0.23), rgba(65, 25, 4, 0.6));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-1: light-dark(oklch(62% 0.15 36 / 0.23), oklch(27% 0.07 45 / 0.6));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-2: light-dark(rgba(205, 142, 94, 0.28), rgba(40, 63, 119, 0.5));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-2: light-dark(oklch(70% 0.1 58 / 0.28), oklch(38% 0.1 265 / 0.5));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-3: light-dark(rgba(214, 119, 138, 0.19), rgba(86, 19, 99, 0.5));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-3: light-dark(oklch(68% 0.12 8 / 0.19), oklch(34% 0.14 320 / 0.5));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-4: light-dark(rgba(156, 109, 158, 0.13), rgba(22, 7, 3, 0.6));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-ambient-4: light-dark(oklch(60% 0.09 325 / 0.13), oklch(15% 0.03 40 / 0.6));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {

  --ds-muted: light-dark(rgba(54, 28, 20, 0.7), rgba(240, 230, 216, 0.7));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {

  --ds-muted: light-dark(oklch(26% 0.045 38 / 0.7), oklch(93% 0.022 78 / 0.7));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-faint: light-dark(rgba(54, 28, 20, 0.5), rgba(240, 230, 216, 0.5));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-faint: light-dark(oklch(26% 0.045 38 / 0.5), oklch(93% 0.022 78 / 0.5));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-border: light-dark(rgba(54, 28, 20, 0.13), rgba(240, 230, 216, 0.14));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-border: light-dark(oklch(26% 0.045 38 / 0.13), oklch(93% 0.022 78 / 0.14));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-glass: light-dark(rgba(248, 236, 227, 0.62), rgba(39, 27, 21, 0.66));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-glass: light-dark(oklch(95% 0.018 60 / 0.62), oklch(23.5% 0.022 48 / 0.66));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-tint: light-dark(rgba(167, 58, 27, 0.09), rgba(235, 146, 81, 0.11));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-tint: light-dark(oklch(50% 0.15 36 / 0.09), oklch(74% 0.135 55 / 0.11));
}
}

@supports (color: color-mix(in lch, red, blue)) and (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-link-underline: light-dark(
    color-mix(in oklab, var(--ds-color-accent-text-secondary) 65%, transparent),
    color-mix(in oklab, var(--ds-color-accent-text-secondary) 40%, transparent)
  );
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-code-bg: light-dark(rgb(42, 19, 12), rgb(13, 8, 5));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-code-bg: light-dark(oklch(22% 0.04 38), oklch(14% 0.012 50));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-code-fg: light-dark(rgb(242, 229, 219), rgb(240, 230, 216));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-code-fg: light-dark(oklch(93% 0.02 62), oklch(93% 0.022 78));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {

  --ds-shadow-tone: light-dark(rgb(71, 34, 22), rgb(1, 0, 0));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {

  --ds-shadow-tone: light-dark(oklch(30% 0.06 38), oklch(5% 0.01 50));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-deep-background: light-dark(rgb(42, 19, 12), rgb(11, 5, 3));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-deep-background: light-dark(oklch(22% 0.04 38), oklch(12.5% 0.014 48));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-deep-text: light-dark(rgb(247, 234, 224), rgb(240, 230, 216));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-deep-text: light-dark(oklch(94.5% 0.02 62), oklch(93% 0.022 78));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-deep-light: light-dark(rgb(237, 132, 91), rgb(249, 159, 85));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-deep-light: light-dark(oklch(72% 0.14 42), oklch(78% 0.14 58));
}
}

@supports (color: light-dark(red, red)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-cover-fill-primary: light-dark(rgb(255, 119, 45), rgb(231, 109, 0));
  --ds-color-cover-fill-secondary: light-dark(rgb(227, 110, 188), rgb(0, 141, 179));
  --ds-color-cover-fill-neutral: light-dark(rgb(249, 207, 163), rgb(48, 32, 23));
}
}

@supports (color: light-dark(red, red)) and (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-cover-fill-neutral: light-dark(oklch(88% 0.075 68), oklch(26% 0.03 50));
}
}

@media (color-gamut: p3) {

@supports (color: color(display-p3 0 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-highlight-text: light-dark(var(--ds-text-main), color(display-p3 1 0.97771 0.93932));
}
}
}

@media (color-gamut: rec2020) {

@supports (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-highlight-text: light-dark(var(--ds-text-main), oklch(98.5% 0.02 78));
}
}
}

@media (color-gamut: p3) {

@supports (color: color(display-p3 0 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-feedback-text-error: light-dark(rgb(172, 1, 26), color(display-p3 0.94568 0.6018 0.58253));
}
}
}

@media (color-gamut: p3) {

@supports (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-feedback-text-error: light-dark(oklch(47% 0.19 25), oklch(78% 0.13 22));
}
}
}

@media (color-gamut: p3) {

@supports (color: color(display-p3 0 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-cover-fill-primary: light-dark(color(display-p3 0.94033 0.49066 0.24417), color(display-p3 0.85105 0.45095 0.15874));
}
}
}

@media (color-gamut: p3) {

@supports (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-cover-fill-primary: light-dark(oklch(72% 0.19 45), oklch(67% 0.18 50));
}
}
}

@media (color-gamut: p3) {

@supports (color: color(display-p3 0 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-cover-fill-secondary: light-dark(rgb(227, 110, 188), color(display-p3 0.11786 0.55272 0.7288));
}
}
}

@media (color-gamut: p3) {

@supports (color: oklab(0% 0 0%)) {
:root,
[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='espresso'] {
  --ds-color-cover-fill-secondary: light-dark(oklch(70% 0.17 342), oklch(60% 0.14 225));
}
}
}













@supports not (color: light-dark(tan, tan)) {













:root * {
  --csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) rgb(25, 17, 12);
  --ds-bg-primary: var(--csstools-light-dark-toggle--4, rgb(241, 219, 204));
  --csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) rgb(39, 27, 21);
  --ds-bg-secondary: var(--csstools-light-dark-toggle--5, rgb(247, 234, 224));
  --csstools-light-dark-toggle--6: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-text-main: var(--csstools-light-dark-toggle--6, rgb(54, 28, 20));
  --csstools-light-dark-toggle--7: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  --ds-accent: var(--csstools-light-dark-toggle--7, rgb(167, 58, 27));
  --csstools-light-dark-toggle--8: var(--csstools-color-scheme--light) rgb(34, 205, 229);
  --ds-color-accent-fill-secondary: var(--csstools-light-dark-toggle--8, rgb(175, 71, 145));
  --csstools-light-dark-toggle--9: var(--csstools-color-scheme--light) rgb(145, 224, 238);
  --ds-color-accent-text-secondary: var(--csstools-light-dark-toggle--9, rgb(148, 46, 121));
  --csstools-light-dark-toggle--10: var(--csstools-color-scheme--light) rgb(255, 249, 241);
  --ds-color-highlight-text: var(--csstools-light-dark-toggle--10, var(--ds-text-main));
  --csstools-light-dark-toggle--11: var(--csstools-color-scheme--light) rgb(255, 149, 146);
  --ds-color-feedback-text-error: var(--csstools-light-dark-toggle--11, rgb(172, 1, 26));

  --csstools-light-dark-toggle--12: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.15);

  --ds-blob-1: var(--csstools-light-dark-toggle--12, rgba(167, 58, 27, 0.16));
  --csstools-light-dark-toggle--13: var(--csstools-color-scheme--light) rgba(84, 129, 151, 0.16);
  --ds-blob-2: var(--csstools-light-dark-toggle--13, rgba(234, 178, 107, 0.32));
  --csstools-light-dark-toggle--14: var(--csstools-color-scheme--light) rgba(186, 103, 63, 0.1);
  --ds-blob-3: var(--csstools-light-dark-toggle--14, rgba(198, 104, 70, 0.12));
  --csstools-light-dark-toggle--15: var(--csstools-color-scheme--light) rgba(65, 25, 4, 0.6);
  --ds-ambient-1: var(--csstools-light-dark-toggle--15, rgba(208, 95, 65, 0.23));
  --csstools-light-dark-toggle--16: var(--csstools-color-scheme--light) rgba(40, 63, 119, 0.5);
  --ds-ambient-2: var(--csstools-light-dark-toggle--16, rgba(205, 142, 94, 0.28));
  --csstools-light-dark-toggle--17: var(--csstools-color-scheme--light) rgba(86, 19, 99, 0.5);
  --ds-ambient-3: var(--csstools-light-dark-toggle--17, rgba(214, 119, 138, 0.19));
  --csstools-light-dark-toggle--18: var(--csstools-color-scheme--light) rgba(22, 7, 3, 0.6);
  --ds-ambient-4: var(--csstools-light-dark-toggle--18, rgba(156, 109, 158, 0.13));

  --csstools-light-dark-toggle--19: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.7);

  --ds-muted: var(--csstools-light-dark-toggle--19, rgba(54, 28, 20, 0.7));
  --csstools-light-dark-toggle--20: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.5);
  --ds-faint: var(--csstools-light-dark-toggle--20, rgba(54, 28, 20, 0.5));
  --csstools-light-dark-toggle--21: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.14);
  --ds-border: var(--csstools-light-dark-toggle--21, rgba(54, 28, 20, 0.13));
  --csstools-light-dark-toggle--22: var(--csstools-color-scheme--light) rgba(39, 27, 21, 0.66);
  --ds-glass: var(--csstools-light-dark-toggle--22, rgba(248, 236, 227, 0.62));
  --csstools-light-dark-toggle--23: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.11);
  --ds-tint: var(--csstools-light-dark-toggle--23, rgba(167, 58, 27, 0.09));
  --csstools-light-dark-toggle--24: var(--csstools-color-scheme--light) rgb(13, 8, 5);
  --ds-code-bg: var(--csstools-light-dark-toggle--24, rgb(42, 19, 12));
  --csstools-light-dark-toggle--25: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-code-fg: var(--csstools-light-dark-toggle--25, rgb(242, 229, 219));

  --csstools-light-dark-toggle--26: var(--csstools-color-scheme--light) rgb(1, 0, 0);

  --ds-shadow-tone: var(--csstools-light-dark-toggle--26, rgb(71, 34, 22));
  --csstools-light-dark-toggle--27: var(--csstools-color-scheme--light) rgb(11, 5, 3);
  --ds-color-deep-background: var(--csstools-light-dark-toggle--27, rgb(42, 19, 12));
  --csstools-light-dark-toggle--28: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-color-deep-text: var(--csstools-light-dark-toggle--28, rgb(247, 234, 224));
  --csstools-light-dark-toggle--29: var(--csstools-color-scheme--light) rgb(249, 159, 85);
  --ds-color-deep-light: var(--csstools-light-dark-toggle--29, rgb(237, 132, 91));
  --csstools-light-dark-toggle--30: var(--csstools-color-scheme--light) rgb(231, 109, 0);
  --ds-color-cover-fill-primary: var(--csstools-light-dark-toggle--30, rgb(255, 119, 45));
  --csstools-light-dark-toggle--31: var(--csstools-color-scheme--light) rgb(0, 141, 179);
  --ds-color-cover-fill-secondary: var(--csstools-light-dark-toggle--31, rgb(227, 110, 188));
  --csstools-light-dark-toggle--32: var(--csstools-color-scheme--light) rgb(48, 32, 23);
  --ds-color-cover-fill-neutral: var(--csstools-light-dark-toggle--32, rgb(249, 207, 163));
  }













[data-theme='parchment'] *,[data-theme='terracotta'] *,[data-theme='espresso'] * {
  --csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) rgb(25, 17, 12);
  --ds-bg-primary: var(--csstools-light-dark-toggle--4, rgb(241, 219, 204));
  --csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) rgb(39, 27, 21);
  --ds-bg-secondary: var(--csstools-light-dark-toggle--5, rgb(247, 234, 224));
  --csstools-light-dark-toggle--6: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-text-main: var(--csstools-light-dark-toggle--6, rgb(54, 28, 20));
  --csstools-light-dark-toggle--7: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  --ds-accent: var(--csstools-light-dark-toggle--7, rgb(167, 58, 27));
  --csstools-light-dark-toggle--8: var(--csstools-color-scheme--light) rgb(34, 205, 229);
  --ds-color-accent-fill-secondary: var(--csstools-light-dark-toggle--8, rgb(175, 71, 145));
  --csstools-light-dark-toggle--9: var(--csstools-color-scheme--light) rgb(145, 224, 238);
  --ds-color-accent-text-secondary: var(--csstools-light-dark-toggle--9, rgb(148, 46, 121));
  --csstools-light-dark-toggle--10: var(--csstools-color-scheme--light) rgb(255, 249, 241);
  --ds-color-highlight-text: var(--csstools-light-dark-toggle--10, var(--ds-text-main));
  --csstools-light-dark-toggle--11: var(--csstools-color-scheme--light) rgb(255, 149, 146);
  --ds-color-feedback-text-error: var(--csstools-light-dark-toggle--11, rgb(172, 1, 26));

  --csstools-light-dark-toggle--12: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.15);

  --ds-blob-1: var(--csstools-light-dark-toggle--12, rgba(167, 58, 27, 0.16));
  --csstools-light-dark-toggle--13: var(--csstools-color-scheme--light) rgba(84, 129, 151, 0.16);
  --ds-blob-2: var(--csstools-light-dark-toggle--13, rgba(234, 178, 107, 0.32));
  --csstools-light-dark-toggle--14: var(--csstools-color-scheme--light) rgba(186, 103, 63, 0.1);
  --ds-blob-3: var(--csstools-light-dark-toggle--14, rgba(198, 104, 70, 0.12));
  --csstools-light-dark-toggle--15: var(--csstools-color-scheme--light) rgba(65, 25, 4, 0.6);
  --ds-ambient-1: var(--csstools-light-dark-toggle--15, rgba(208, 95, 65, 0.23));
  --csstools-light-dark-toggle--16: var(--csstools-color-scheme--light) rgba(40, 63, 119, 0.5);
  --ds-ambient-2: var(--csstools-light-dark-toggle--16, rgba(205, 142, 94, 0.28));
  --csstools-light-dark-toggle--17: var(--csstools-color-scheme--light) rgba(86, 19, 99, 0.5);
  --ds-ambient-3: var(--csstools-light-dark-toggle--17, rgba(214, 119, 138, 0.19));
  --csstools-light-dark-toggle--18: var(--csstools-color-scheme--light) rgba(22, 7, 3, 0.6);
  --ds-ambient-4: var(--csstools-light-dark-toggle--18, rgba(156, 109, 158, 0.13));

  --csstools-light-dark-toggle--19: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.7);

  --ds-muted: var(--csstools-light-dark-toggle--19, rgba(54, 28, 20, 0.7));
  --csstools-light-dark-toggle--20: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.5);
  --ds-faint: var(--csstools-light-dark-toggle--20, rgba(54, 28, 20, 0.5));
  --csstools-light-dark-toggle--21: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.14);
  --ds-border: var(--csstools-light-dark-toggle--21, rgba(54, 28, 20, 0.13));
  --csstools-light-dark-toggle--22: var(--csstools-color-scheme--light) rgba(39, 27, 21, 0.66);
  --ds-glass: var(--csstools-light-dark-toggle--22, rgba(248, 236, 227, 0.62));
  --csstools-light-dark-toggle--23: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.11);
  --ds-tint: var(--csstools-light-dark-toggle--23, rgba(167, 58, 27, 0.09));
  --csstools-light-dark-toggle--24: var(--csstools-color-scheme--light) rgb(13, 8, 5);
  --ds-code-bg: var(--csstools-light-dark-toggle--24, rgb(42, 19, 12));
  --csstools-light-dark-toggle--25: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-code-fg: var(--csstools-light-dark-toggle--25, rgb(242, 229, 219));

  --csstools-light-dark-toggle--26: var(--csstools-color-scheme--light) rgb(1, 0, 0);

  --ds-shadow-tone: var(--csstools-light-dark-toggle--26, rgb(71, 34, 22));
  --csstools-light-dark-toggle--27: var(--csstools-color-scheme--light) rgb(11, 5, 3);
  --ds-color-deep-background: var(--csstools-light-dark-toggle--27, rgb(42, 19, 12));
  --csstools-light-dark-toggle--28: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-color-deep-text: var(--csstools-light-dark-toggle--28, rgb(247, 234, 224));
  --csstools-light-dark-toggle--29: var(--csstools-color-scheme--light) rgb(249, 159, 85);
  --ds-color-deep-light: var(--csstools-light-dark-toggle--29, rgb(237, 132, 91));
  --csstools-light-dark-toggle--30: var(--csstools-color-scheme--light) rgb(231, 109, 0);
  --ds-color-cover-fill-primary: var(--csstools-light-dark-toggle--30, rgb(255, 119, 45));
  --csstools-light-dark-toggle--31: var(--csstools-color-scheme--light) rgb(0, 141, 179);
  --ds-color-cover-fill-secondary: var(--csstools-light-dark-toggle--31, rgb(227, 110, 188));
  --csstools-light-dark-toggle--32: var(--csstools-color-scheme--light) rgb(48, 32, 23);
  --ds-color-cover-fill-neutral: var(--csstools-light-dark-toggle--32, rgb(249, 207, 163));
  }













:is(:root,[data-theme='parchment'],[data-theme='terracotta'],[data-theme='espresso']) * {
  --csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) rgb(25, 17, 12);
  --ds-bg-primary: var(--csstools-light-dark-toggle--4, rgb(241, 219, 204));
  --csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) rgb(39, 27, 21);
  --ds-bg-secondary: var(--csstools-light-dark-toggle--5, rgb(247, 234, 224));
  --csstools-light-dark-toggle--6: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-text-main: var(--csstools-light-dark-toggle--6, rgb(54, 28, 20));
  --csstools-light-dark-toggle--7: var(--csstools-color-scheme--light) rgb(235, 146, 81);
  --ds-accent: var(--csstools-light-dark-toggle--7, rgb(167, 58, 27));
  --csstools-light-dark-toggle--8: var(--csstools-color-scheme--light) rgb(34, 205, 229);
  --ds-color-accent-fill-secondary: var(--csstools-light-dark-toggle--8, rgb(175, 71, 145));
  --csstools-light-dark-toggle--9: var(--csstools-color-scheme--light) rgb(145, 224, 238);
  --ds-color-accent-text-secondary: var(--csstools-light-dark-toggle--9, rgb(148, 46, 121));
  --csstools-light-dark-toggle--10: var(--csstools-color-scheme--light) rgb(255, 249, 241);
  --ds-color-highlight-text: var(--csstools-light-dark-toggle--10, var(--ds-text-main));
  --csstools-light-dark-toggle--11: var(--csstools-color-scheme--light) rgb(255, 149, 146);
  --ds-color-feedback-text-error: var(--csstools-light-dark-toggle--11, rgb(172, 1, 26));

  --csstools-light-dark-toggle--12: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.15);

  --ds-blob-1: var(--csstools-light-dark-toggle--12, rgba(167, 58, 27, 0.16));
  --csstools-light-dark-toggle--13: var(--csstools-color-scheme--light) rgba(84, 129, 151, 0.16);
  --ds-blob-2: var(--csstools-light-dark-toggle--13, rgba(234, 178, 107, 0.32));
  --csstools-light-dark-toggle--14: var(--csstools-color-scheme--light) rgba(186, 103, 63, 0.1);
  --ds-blob-3: var(--csstools-light-dark-toggle--14, rgba(198, 104, 70, 0.12));
  --csstools-light-dark-toggle--15: var(--csstools-color-scheme--light) rgba(65, 25, 4, 0.6);
  --ds-ambient-1: var(--csstools-light-dark-toggle--15, rgba(208, 95, 65, 0.23));
  --csstools-light-dark-toggle--16: var(--csstools-color-scheme--light) rgba(40, 63, 119, 0.5);
  --ds-ambient-2: var(--csstools-light-dark-toggle--16, rgba(205, 142, 94, 0.28));
  --csstools-light-dark-toggle--17: var(--csstools-color-scheme--light) rgba(86, 19, 99, 0.5);
  --ds-ambient-3: var(--csstools-light-dark-toggle--17, rgba(214, 119, 138, 0.19));
  --csstools-light-dark-toggle--18: var(--csstools-color-scheme--light) rgba(22, 7, 3, 0.6);
  --ds-ambient-4: var(--csstools-light-dark-toggle--18, rgba(156, 109, 158, 0.13));

  --csstools-light-dark-toggle--19: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.7);

  --ds-muted: var(--csstools-light-dark-toggle--19, rgba(54, 28, 20, 0.7));
  --csstools-light-dark-toggle--20: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.5);
  --ds-faint: var(--csstools-light-dark-toggle--20, rgba(54, 28, 20, 0.5));
  --csstools-light-dark-toggle--21: var(--csstools-color-scheme--light) rgba(240, 230, 216, 0.14);
  --ds-border: var(--csstools-light-dark-toggle--21, rgba(54, 28, 20, 0.13));
  --csstools-light-dark-toggle--22: var(--csstools-color-scheme--light) rgba(39, 27, 21, 0.66);
  --ds-glass: var(--csstools-light-dark-toggle--22, rgba(248, 236, 227, 0.62));
  --csstools-light-dark-toggle--23: var(--csstools-color-scheme--light) rgba(235, 146, 81, 0.11);
  --ds-tint: var(--csstools-light-dark-toggle--23, rgba(167, 58, 27, 0.09));
  --csstools-light-dark-toggle--24: var(--csstools-color-scheme--light) rgb(13, 8, 5);
  --ds-code-bg: var(--csstools-light-dark-toggle--24, rgb(42, 19, 12));
  --csstools-light-dark-toggle--25: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-code-fg: var(--csstools-light-dark-toggle--25, rgb(242, 229, 219));

  --csstools-light-dark-toggle--26: var(--csstools-color-scheme--light) rgb(1, 0, 0);

  --ds-shadow-tone: var(--csstools-light-dark-toggle--26, rgb(71, 34, 22));
  --csstools-light-dark-toggle--27: var(--csstools-color-scheme--light) rgb(11, 5, 3);
  --ds-color-deep-background: var(--csstools-light-dark-toggle--27, rgb(42, 19, 12));
  --csstools-light-dark-toggle--28: var(--csstools-color-scheme--light) rgb(240, 230, 216);
  --ds-color-deep-text: var(--csstools-light-dark-toggle--28, rgb(247, 234, 224));
  --csstools-light-dark-toggle--29: var(--csstools-color-scheme--light) rgb(249, 159, 85);
  --ds-color-deep-light: var(--csstools-light-dark-toggle--29, rgb(237, 132, 91));
  --csstools-light-dark-toggle--30: var(--csstools-color-scheme--light) rgb(231, 109, 0);
  --ds-color-cover-fill-primary: var(--csstools-light-dark-toggle--30, rgb(255, 119, 45));
  --csstools-light-dark-toggle--31: var(--csstools-color-scheme--light) rgb(0, 141, 179);
  --ds-color-cover-fill-secondary: var(--csstools-light-dark-toggle--31, rgb(227, 110, 188));
  --csstools-light-dark-toggle--32: var(--csstools-color-scheme--light) rgb(48, 32, 23);
  --ds-color-cover-fill-neutral: var(--csstools-light-dark-toggle--32, rgb(249, 207, 163));
  }
}













@supports not (color: light-dark(tan, tan)) {













:root * {
  --csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-fill-secondary) 45%, transparent);
  --ds-color-highlight-background: var(--csstools-light-dark-toggle--0, color-mix(in oklab, var(--ds-color-accent-fill-secondary) 50%, transparent));
  --csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-text-secondary) 40%, transparent);
  --ds-color-link-underline: var(--csstools-light-dark-toggle--1, color-mix(in oklab, var(--ds-color-accent-text-secondary) 65%, transparent));
  }













[data-theme='parchment'] *,[data-theme='terracotta'] *,[data-theme='espresso'] * {
  --csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-fill-secondary) 45%, transparent);
  --ds-color-highlight-background: var(--csstools-light-dark-toggle--0, color-mix(in oklab, var(--ds-color-accent-fill-secondary) 50%, transparent));
  --csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-text-secondary) 40%, transparent);
  --ds-color-link-underline: var(--csstools-light-dark-toggle--1, color-mix(in oklab, var(--ds-color-accent-text-secondary) 65%, transparent));
  }













:is(:root,[data-theme='parchment'],[data-theme='terracotta'],[data-theme='espresso']) * {
  --csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-fill-secondary) 45%, transparent);
  --ds-color-highlight-background: var(--csstools-light-dark-toggle--0, color-mix(in oklab, var(--ds-color-accent-fill-secondary) 50%, transparent));
  --csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) color-mix(in oklab, var(--ds-color-accent-text-secondary) 40%, transparent);
  --ds-color-link-underline: var(--csstools-light-dark-toggle--1, color-mix(in oklab, var(--ds-color-accent-text-secondary) 65%, transparent));
  }
}

[data-theme='teal'] {
  --ds-bg-primary: rgb(204, 229, 219);
  --ds-bg-secondary: rgb(225, 241, 234);
  --ds-text-main: rgb(9, 39, 39);
  --ds-accent: rgb(6, 106, 91);
  --ds-color-accent-fill-secondary: rgb(201, 41, 112);
  --ds-color-accent-text-secondary: rgb(169, 9, 89);
  /* text/band 6.1:1. */
  --ds-color-highlight-background: color-mix(
    in oklab,
    var(--ds-color-accent-fill-secondary) 45%,
    transparent
  );

  --ds-blob-1: rgba(6, 106, 91, 0.18);
  --ds-blob-2: rgba(222, 143, 87, 0.16);
  --ds-blob-3: rgba(80, 142, 126, 0.12);
  --ds-ambient-1: rgba(56, 126, 130, 0.2);
  --ds-ambient-2: rgba(92, 139, 179, 0.22);
  --ds-ambient-3: rgba(123, 121, 174, 0.16);
  --ds-ambient-4: rgba(215, 184, 148, 0.2);

  --ds-muted: rgba(9, 39, 39, 0.7);
  --ds-faint: rgba(9, 39, 39, 0.5);
  --ds-border: rgba(9, 39, 39, 0.14);
  --ds-glass: rgba(228, 243, 236, 0.6);
  --ds-tint: rgba(6, 106, 91, 0.1);
  --ds-color-link-underline: color-mix(
    in oklab,
    var(--ds-color-accent-text-secondary) 55%,
    transparent
  );
  --ds-code-bg: rgb(2, 32, 32);
  --ds-code-fg: rgb(223, 240, 233);

  --ds-shadow-tone: rgb(3, 39, 40);

  /* Deep band: a dark ground below the page, in every theme (DeepBand). */
  --ds-color-deep-background: rgb(5, 29, 29);
  --ds-color-deep-text: rgb(225, 241, 234);
  --ds-color-deep-light: rgb(90, 192, 171);

  /* Post covers: both accents tuned to pop on the ink ground, and the
     linework's light (PostCover). */
  --ds-color-cover-fill-primary: rgb(34, 220, 179);
  --ds-color-cover-fill-secondary: rgb(255, 90, 141);
  --ds-color-cover-fill-neutral: rgb(198, 230, 223);
}

@supports (color: oklab(0% 0 0%)) {
[data-theme='teal'] {
  --ds-bg-primary: oklch(90% 0.03 170);
  --ds-bg-secondary: oklch(94.5% 0.02 168);
  --ds-text-main: oklch(25% 0.035 195);
  --ds-accent: oklch(47% 0.085 178);
  --ds-color-accent-fill-secondary: oklch(56% 0.2 0);
  --ds-color-accent-text-secondary: oklch(48% 0.19 0);

  --ds-blob-1: oklch(47% 0.085 178 / 0.18);
  --ds-blob-2: oklch(72% 0.12 55 / 0.16);
  --ds-blob-3: oklch(60% 0.07 175 / 0.12);
  --ds-ambient-1: oklch(55% 0.07 200 / 0.2);
  --ds-ambient-2: oklch(62% 0.08 245 / 0.22);
  --ds-ambient-3: oklch(60% 0.08 285 / 0.16);
  --ds-ambient-4: oklch(80% 0.06 70 / 0.2);

  --ds-muted: oklch(25% 0.035 195 / 0.7);
  --ds-faint: oklch(25% 0.035 195 / 0.5);
  --ds-border: oklch(25% 0.035 195 / 0.14);
  --ds-glass: oklch(95% 0.018 168 / 0.6);
  --ds-tint: oklch(47% 0.085 178 / 0.1);
  --ds-code-bg: oklch(22% 0.035 195);
  --ds-code-fg: oklch(94% 0.02 168);

  --ds-shadow-tone: oklch(25% 0.04 195);
  --ds-color-deep-background: oklch(21% 0.03 195);
  --ds-color-deep-text: oklch(94.5% 0.02 168);
  --ds-color-deep-light: oklch(74% 0.1 178);
  --ds-color-cover-fill-primary: oklch(80% 0.15 172);
  --ds-color-cover-fill-neutral: oklch(90% 0.035 180);
}
}

@media (color-gamut: p3) {

@supports (color: color(display-p3 0 0 0%)) {
[data-theme='teal'] {
  --ds-color-cover-fill-secondary: color(display-p3 0.94919 0.37114 0.5495);
}
}
}

@media (color-gamut: p3) {

@supports (color: oklab(0% 0 0%)) {
[data-theme='teal'] {
  --ds-color-cover-fill-secondary: oklch(70% 0.22 5);
}
}
}

/*
 * Native UI (scrollbars, form controls, canvas) follows the palette: bare
 * :root tracks the OS like the token block above, an explicit palette pins
 * its own scheme. Same specificity as :root, so source order makes it win.
 */
:root {
  --csstools-color-scheme--light: initial;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root {
  --csstools-color-scheme--light:  ;
}
}

[data-theme='parchment'],
[data-theme='terracotta'],
[data-theme='teal'] {
  --csstools-color-scheme--light: initial;
  color-scheme: light;
}

[data-theme='espresso'] {
  --csstools-color-scheme--light:  ;
  color-scheme: dark;
}

/* Inverted band: a full-bleed section painted in the ink colour.
   Apply data-surface="ink" to re-map the neutral aliases. */
[data-surface='ink'] {
  --ds-surface-bg: var(--ds-text-main);
  --ds-surface-fg: var(--ds-bg-primary);
  --ds-tint: color-mix(in oklab, var(--ds-bg-primary) 12%, transparent);
  --ds-color-link-underline: color-mix(in oklab, var(--ds-bg-primary) 56%, transparent);
  --ds-muted: color-mix(in oklab, var(--ds-bg-primary) 74%, transparent);
  --ds-faint: color-mix(in oklab, var(--ds-bg-primary) 56%, transparent);
  --ds-border: color-mix(in oklab, var(--ds-bg-primary) 18%, transparent);
}

/* Deep band: the dark ground of DeepBand. Same remap as ink, read from the
   deep tokens, and the accent steps up to the band's own light. */
[data-surface='deep'] {
  --ds-surface-bg: var(--ds-color-deep-background);
  --ds-surface-fg: var(--ds-color-deep-text);
  --ds-text-main: var(--ds-color-deep-text);
  --ds-accent: var(--ds-color-deep-light);
  --ds-tint: color-mix(in oklab, var(--ds-color-deep-light) 14%, transparent);
  --ds-color-link-underline: color-mix(in oklab, var(--ds-color-deep-light) 50%, transparent);
  --ds-muted: color-mix(in oklab, var(--ds-color-deep-text) 74%, transparent);
  --ds-faint: color-mix(in oklab, var(--ds-color-deep-text) 56%, transparent);
  --ds-border: color-mix(in oklab, var(--ds-color-deep-text) 16%, transparent);
}

/*
 * `--ds-link-hover` is a house addition, not in the source Claude DS (its
 * base.css hardcodes the hover colour straight to the ink token) — added so
 * an override needing a hover colour distinct from its accent has a token
 * to redefine, matching the
 * old `packages/ui/src/tokens/tokens.css`'s `--color-link-hover` indirection.
 */
:root {
  --ds-link-hover: var(--ds-text-main);
}

/* Syntax highlighting — fixed across themes, always shown on --ds-code-bg. */
:root {
  --ds-syntax-keyword: #c792ea;
  --ds-syntax-function: #82aaff;
  --ds-syntax-string: #c3e88d;
  --ds-syntax-type: #ffcb6b;
  --ds-syntax-param: #f78c6c;
  --ds-syntax-comment: #697098;
}

/* `.module.css`, not plain — the 3 font stacks are what `FONTS` (src/tokens/index.ts)
 * mirrors into JS, bridged below via `@value` (ICSS), `tokenFont`-prefixed per
 * TOKEN-NAMING.md. Everything else here has no JS consumer and stays a plain
 * declaration (plan 17 §1.1a). */




:root {
  --ds-font-display: 'Instrument Serif', 'Instrument Serif Fallback', Iowan Old Style,
  Georgia, serif;
  --ds-font-body: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
  --ds-font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, monospace;

  /* Display — editorial impact, always weight 400, always negative tracking. */
  --ds-text-hero: max(44px, min(6.4vw, 82px));
  --ds-text-hero: clamp(44px, 6.4vw, 82px);
  --ds-text-h1: max(38px, min(5.2vw, 64px));
  --ds-text-h1: clamp(38px, 5.2vw, 64px);
  --ds-text-h2: max(28px, min(3.4vw, 42px));
  --ds-text-h2: clamp(28px, 3.4vw, 42px);
  --ds-text-h3: 25px;
  --ds-lh-display: 1.02;
  --ds-track-display: -0.025em;
  --ds-track-h2: -0.02em;

  /* Body — geometric sans, generous leading, ~70ch measure. */
  --ds-text-lead: 19px;
  --ds-text-body: 17px;
  --ds-text-body-sm: 14.5px;
  --ds-lh-body: 1.8;
  --ds-measure: 70ch;
  --ds-measure-tight: 56ch;

  /* Mono — eyebrows, metadata, code. Uppercase eyebrows carry wide tracking. */
  --ds-text-eyebrow: 11px;
  --ds-text-meta: 12px;
  --ds-text-code: 13.5px;
  --ds-track-eyebrow: 0.2em;
  --ds-track-meta: 0.14em;

  --ds-weight-regular: 400;
  --ds-weight-medium: 500;
  --ds-weight-semibold: 600;
}

/*
 * Design skin: cv.
 *
 * The CV app already renders entirely on the base token set (plan 06 — it
 * never defined private CSS var names). This file carries no overrides yet;
 * it exists so `design="cv"` resolves and any future CV-only divergence has
 * one obvious home. Add `--ds-*` redefinitions here, never in the app.
 */
:root[data-design='cv'] {
}

/*
 * Design skin: home ("Glaze & Kiln", sites/mehdi/apps/web/.impeccable/surfaces).
 *
 * Swaps the type pair for Gabarito (round-terminal geometric display, echoes
 * the blob shapes) over Hanken Grotesk (neutral body) and keeps JetBrains Mono
 * for marginalia. Scoped to home until the other apps get their redesign.
 */
:root[data-design='home'] {
  --ds-font-display: 'Gabarito', 'Gabarito Fallback',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
  --ds-font-body: 'Hanken Grotesk', 'Hanken Grotesk Fallback',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;

  --ds-text-hero: max(2.9rem, min(6.6vw, 5.5rem));

  --ds-text-hero: clamp(2.9rem, 6.6vw, 5.5rem);
  --ds-text-h2: max(2.1rem, min(4.2vw, 3.4rem));
  --ds-text-h2: clamp(2.1rem, 4.2vw, 3.4rem);
  --ds-text-h3: 1.5rem;
  --ds-text-body: 1.0625rem;
  --ds-track-display: -0.03em;
  --ds-track-h2: -0.025em;
}
