*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Site chrome (injected by shell.js) */
.site-header { border-bottom: 2px solid var(--line); background: var(--surface); }
.site-header .inner, .site-footer .inner {
  max-width: var(--maxw); margin: 0 auto; padding: .75rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
}
.brand { font-weight: 800; font-size: 1.3rem; text-decoration: none; margin-right: auto; }
.brand span { color: var(--brand); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.site-nav a { text-decoration: none; padding: .35rem .75rem; border-radius: 999px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.site-footer { border-top: 2px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
