@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --ink: #000000;
  --ink-soft: #262626;
  --ink-mute: #595959;
  --line: #e3e3e3;
  --line-strong: #bfbfbf;
  --accent: #0d6b52;
  --accent-strong: #0a5440;
  --accent-soft: #e0f1e9;
  --accent-ink: #ffffff;
  --warm: #c24d25;
  --warm-soft: #fbeae1;
  --danger: #a8271c;
  --danger-soft: #fbe6e3;
  --warning: #8a5a00;
  --warning-soft: #fbf0d9;
  --ok: #14664a;
  --ok-soft: #e2f2e9;
  --code-bg: #101513;
  --code-ink: #e6efe9;

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .07), 0 1px 1px rgba(0, 0, 0, .04);
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .06);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .35);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --wrap: 1160px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

[data-theme="dark"] {
  --paper: #0e1211;
  --surface: #161b19;
  --surface-2: #1c2320;
  --ink: #e9efe9;
  --ink-soft: #b3beb7;
  --ink-mute: #8b968f;
  --line: #27302b;
  --line-strong: #3a453f;
  --accent: #4fd1a1;
  --accent-strong: #7ee3bd;
  --accent-soft: #12362b;
  --accent-ink: #06130e;
  --warm: #f08a63;
  --warm-soft: #3a2018;
  --danger: #ff9b90;
  --danger-soft: #3a1a17;
  --warning: #f0c169;
  --warning-soft: #38290f;
  --ok: #7ee3bd;
  --ok-soft: #12362b;
  --code-bg: #0a0e0c;
  --code-ink: #dfeae3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -20px rgba(0, 0, 0, .8);
  --shadow-lg: 0 36px 70px -34px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.62;
  font-feature-settings: "cv05" 1, "ss03" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-strong);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
a:hover { color: var(--accent); }

img, svg, canvas { max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .9em; }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .25em; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 100;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 0; color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link, .visually-hidden { clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }

.muted { color: var(--ink-mute); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.grid { display: grid; gap: var(--space-4); }

.section { padding-block: clamp(40px, 6vw, 76px); }
.section--tight { padding-block: clamp(28px, 4vw, 44px); }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: .15em; }
.section-head p { margin: 0; color: var(--ink-mute); max-width: 58ch; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 550;
}
.pill-link:hover { text-decoration: underline; }
.page-head { padding-block: var(--space-6) var(--space-4); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
