*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--cb-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cb-ink);
  background: var(--cb-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--cb-ink);
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }

p { margin: 0 0 1em; color: var(--cb-ink-soft); }
p.lede { font-size: 1.18rem; color: var(--cb-ink-soft); max-width: 60ch; }

a {
  color: var(--cb-accent);
  text-decoration: none;
  transition: color var(--cb-dur) var(--cb-ease);
}
a:hover { color: var(--cb-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible {
  outline: 2px solid var(--cb-focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { max-width: 100%; display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--cb-rule);
  margin: 2.5rem 0;
}

code, pre, kbd {
  font-family: var(--cb-font-mono);
  font-size: 0.92em;
}
:not(pre) > code {
  background: var(--cb-code-bg);
  color: var(--cb-code-ink);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--cb-rule);
}

.container {
  max-width: var(--cb-maxw);
  margin: 0 auto;
  padding: 0 var(--cb-gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
  }
}
