.cs-head[data-astro-cid-ewqbbb6m] {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--head-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: #fffaf3db;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px #14053312;
}

.brand[data-astro-cid-ewqbbb6m] {
  position: relative;
  display: block;
  flex: none;
  width: 190px;
  height: 40px;
}

.wm[data-astro-cid-ewqbbb6m] {
  display: block;
  width: 190px;
  height: 40px;
}

.wm-src[data-astro-cid-ewqbbb6m] {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  opacity: .01;
  pointer-events: none;
}

nav[data-astro-cid-ewqbbb6m] {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}

nav[data-astro-cid-ewqbbb6m] a[data-astro-cid-ewqbbb6m] {
  font: 500 15px / 1 Satoshi, system-ui, sans-serif;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

nav[data-astro-cid-ewqbbb6m] a[data-astro-cid-ewqbbb6m]:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}

nav[data-astro-cid-ewqbbb6m] a[data-astro-cid-ewqbbb6m]:hover:after {
  transform: scaleX(1);
}

.back[data-astro-cid-ewqbbb6m] {
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #14053338;
  padding: 9px 14px !important;
}

.back[data-astro-cid-ewqbbb6m]:after {
  display: none;
}

.back[data-astro-cid-ewqbbb6m]:hover {
  background: #1405330d;
}

.progress[data-astro-cid-ewqbbb6m] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0;
  transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
  .progress[data-astro-cid-ewqbbb6m] {
    animation: linear both cs-read;
    animation-timeline: scroll(root);
  }
}

@keyframes cs-read {
  to {
    transform: scaleX(1);
  }
}

@media (width <= 640px) {
  .brand[data-astro-cid-ewqbbb6m], .wm[data-astro-cid-ewqbbb6m] {
    width: 150px;
    height: 32px;
  }

  .extra[data-astro-cid-ewqbbb6m] {
    display: none;
  }
}
/* Case study pages: the base every case study shares (paper, ink, type, links, focus).
   Each case study styles itself with scoped <style> blocks in its own folder, and may
   override these tokens on its root element (e.g. a different --accent). */
:root {
  --paper: #fffaf3;
  --paper-deep: #f6efe3;
  --ink: #140533;
  --text: #2a2433;
  --muted: #6d6874;
  --line: rgba(20, 5, 51, 0.13);
  --gold: #e0a100;
  --gold-soft: #fff0c2;
  --accent: var(--gold);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 68ch;                                   /* comfortable line length for prose */
  --wide: 1180px;                                    /* figures and grids */
  --gutter: clamp(16px, 4vw, 48px);
  --head-h: 64px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.cs {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 18px/1.7 Satoshi, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.cs :where(h1, h2, h3, h4) { color: var(--ink); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
body.cs :where(p, li) { text-wrap: pretty; }
body.cs :where(strong) { color: var(--ink); font-weight: 700; }
body.cs :where(a) { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.cs :where(a:hover) { text-decoration-color: var(--accent); }
body.cs :where(code, kbd, samp) { font-family: var(--mono); font-size: 0.88em; }
body.cs :where(img, video) { max-width: 100%; height: auto; }
body.cs :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
body.cs ::selection { background: var(--gold-soft); color: var(--ink); }
.cs-skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper) !important; text-decoration: none; }
.cs-skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
