*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--cb-font-sans);
  font-size: var(--cb-font-size-body);
  line-height: var(--cb-line-height-body);
  color: var(--cb-ink);
  background: var(--cb-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 {
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.5em;
  color: var(--cb-ink);
}
h1 {
  font-size: clamp(var(--cb-font-size-title-1), 2.3vw + 1rem, var(--cb-font-size-large-title));
  line-height: var(--cb-line-height-large-title);
}
h2 {
  font-size: clamp(var(--cb-font-size-title-3), 1.1vw + 1rem, var(--cb-font-size-title-2));
  line-height: var(--cb-line-height-title-2);
  margin-top: 2em;
}
h3 {
  font-size: var(--cb-font-size-subtitle);
  line-height: var(--cb-line-height-subtitle);
  margin-top: 1.6em;
}

p { margin: 0 0 1em; color: var(--cb-ink-soft); }
p.lede {
  font-size: var(--cb-font-size-subtitle);
  line-height: var(--cb-line-height-subtitle);
  color: var(--cb-ink-soft);
  max-width: 65ch;
}

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: var(--cb-stroke-thick) solid var(--cb-focus-ring);
  outline-offset: var(--cb-size-40);
  border-radius: var(--cb-radius-sm);
}

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: var(--cb-radius);
  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;
  }
}
