/* Standalone documentation also works when the application cannot bootstrap. */
@font-face {
  font-family: "Avant Garde";
  src: url("/fonts/ITCAvantGardeStd-Demi.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--foreground, #1a1a1a);
  background: var(--background, #fff);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
main {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border, #ddd);
  padding-bottom: 1.5rem;
}
article > * + * {
  margin-top: 1.25rem;
}
h1 {
  margin: 0;
  font-family: "Avant Garde", system-ui, sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
h2 {
  margin-top: 3rem;
  border-top: 1px solid var(--border, #ddd);
  padding-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
blockquote {
  margin-inline: 0;
  color: var(--muted-foreground, #595959);
  font-size: 1.125rem;
}
a {
  color: var(--primary, #174ea6);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
:is(ol, ul) {
  padding-left: 1.5rem;
}
li + li {
  margin-top: 0.75rem;
}
code {
  border-radius: 0.25rem;
  background: var(--muted, #f2f3f5);
  padding: 0.15em 0.3em;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
pre {
  overflow-x: auto;
  border-radius: 0.5rem;
  background: var(--muted, #f2f3f5);
  padding: 1rem;
}
