/* Minimal element defaults. Components carry their own styles inline;
   this file only sets the page canvas and the typographic baseline. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  transition: background-color var(--duration-base) var(--ease-soft), color var(--duration-base) var(--ease-soft);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); line-height: var(--text-display-lh); letter-spacing: var(--text-display-ls); }
h2 { font-size: var(--text-title); line-height: var(--text-title-lh); letter-spacing: var(--text-title-ls); }
h3 { font-size: var(--text-heading); line-height: var(--text-heading-lh); letter-spacing: var(--text-heading-ls); }
h4 { font-size: var(--text-subhead); line-height: var(--text-subhead-lh); letter-spacing: var(--text-subhead-ls); }
p { margin: 0 0 var(--space-4); }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--duration-fast) var(--ease-soft); }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
code, kbd, pre { font-family: var(--font-mono); font-size: 0.92em; }
hr { border: 0; border-top: var(--hairline); margin: var(--space-6) 0; }
::selection { background: var(--accent-soft); color: var(--text); }
