@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/fonts/roboto-mono-latin-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
:root {
  --paper: #f7f5ef;
  --white: #fffefa;
  --ink: #20382e;
  --muted: #59665d;
  --green: #17654b;
  --green-deep: #114b38;
  --green-wash: #e8eee5;
  --line: #d4d9cf;
  --ochre: #ead59c;
  --rust: #a8442e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --mono: "Roboto Mono", monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
a,
button {
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button[hidden],
[hidden] {
  display: none !important;
}
em {
  font-family: var(--serif);
  font-weight: 400;
}
.site-header,
.ex-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner,
.ex-header-inner {
  max-width: 1280px;
  min-height: 80px;
  padding: 0 36px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand,
.ex-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -1px;
}
.brand img,
.ex-brand img {
  width: 32px;
  height: 32px;
  filter: none;
}
.brand small,
.ex-brand > span {
  font: 10px var(--mono);
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 2px;
}
.main-nav,
.ex-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: auto;
  font-size: 12px;
  font-weight: 600;
}
.main-nav a,
.ex-nav a {
  padding: 10px 0;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.main-nav a:hover,
.ex-nav a:hover,
.ex-nav a[aria-current] {
  color: var(--green);
}
.main-nav a[aria-current]::after,
.ex-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--green);
}
.header-github,
.ex-github {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 42px;
}
.header-github:hover,
.ex-github:hover {
  border-color: var(--green);
}
.menu-toggle,
.ex-menu-toggle {
  display: none;
}
.skip-link,
.ex-skip {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus,
.ex-skip:focus {
  transform: none;
}
.eyebrow,
.ex-eyebrow {
  display: block;
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.button,
.ex-primary,
.ex-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.15s,
    transform 0.15s;
}
.button:hover,
.ex-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}
.button-secondary,
.ex-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button-secondary:hover,
.ex-secondary:hover {
  background: var(--green-wash);
  border-color: var(--green);
}
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.site-footer,
.ex-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 45px 36px 28px;
  border-top: 1px solid var(--line);
}
.footer-main,
.ex-footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand p,
.ex-footer p {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.footer-links strong {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
}
.footer-links a,
.ex-footer a {
  text-decoration: none;
}
.footer-links a:hover,
.ex-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  margin-top: 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
}
.ex-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
}
.tk-root {
  --tk-accent: #17654b;
  --tk-accent-hover: #114b38;
  --tk-accent-contrast: #ffffff;
  --tk-font: Manrope, system-ui, sans-serif;
  --tk-radius: 7px;
}
.tk-tooltip {
  min-width: min(260px, calc(100% - 16px));
  max-width: min(var(--tk-tooltip-max-width), calc(100% - 16px));
}
.tk-hint-popover {
  min-width: min(200px, calc(100% - 16px));
  max-width: min(300px, calc(100% - 16px));
}
@media (max-width: 900px) {
  .main-nav,
  .ex-nav {
    gap: 18px;
  }
  .header-inner,
  .ex-header-inner {
    padding: 0 24px;
    gap: 18px;
  }
  .header-github,
  .ex-github {
    display: none;
  }
}
@media (max-width: 650px) {
  .header-inner,
  .ex-header-inner {
    min-height: 68px;
    padding: 0 20px;
  }
  .brand,
  .ex-brand {
    font-size: 21px;
  }
  .main-nav,
  .ex-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    gap: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open,
  .ex-nav.is-open {
    display: flex;
  }
  .main-nav a,
  .ex-nav a {
    min-height: 48px;
  }
  .menu-toggle,
  .ex-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span,
  .ex-menu-toggle span {
    height: 2px;
    width: 20px;
    background: var(--ink);
  }
  .site-footer,
  .ex-footer {
    padding: 32px 20px;
  }
  .footer-main,
  .ex-footer {
    flex-wrap: wrap;
    gap: 32px;
  }
  .footer-brand {
    width: 100%;
  }
  .footer-links {
    min-width: 100px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    line-height: 1.8;
  }
  .ex-footer nav {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
