/* base.css — element defaults, layout primitives, accessibility. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font-family: var(--f-body); font-size: var(--fs-2); line-height: var(--lh);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--f-head); font-weight: var(--head-weight); line-height: var(--lh-tight);
  color: var(--c-ink); margin: 0 0 var(--s-3); text-transform: var(--head-case);
}
h1 { font-size: var(--fs-7); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-5); }
h3 { font-size: var(--fs-4); }
h4 { font-size: var(--fs-3); }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
a { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--c-accent-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
hr { border: 0; border-top: var(--rule-w) solid var(--c-rule); margin: var(--s-6) 0; }
small, .small { font-size: var(--fs-1); }
.muted { color: var(--c-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-2); top: -3rem; background: var(--c-ink); color: #fff; padding: var(--s-2) var(--s-3); z-index: 100; }
.skip-link:focus { top: var(--s-2); color: #fff; }

/* layout */
.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--w-text); }
.prose p, .prose li { font-size: var(--fs-3); }
main { display: block; }
.section { padding: var(--s-7) 0; border-top: var(--rule-w) solid var(--c-rule); }
.section:first-of-type { border-top: 0; }
.section--tint { background: var(--c-surface); }
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 40rem) and (max-width: 47.99rem) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 36rem) and (max-width: 55.99rem) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .split--even { grid-template-columns: 1fr 1fr; } }

/* verify flags: hidden on the public page, visible with ?verify */
.needs-verify { display: none !important; }
.show-verify .needs-verify { display: revert !important; outline: 2px dashed var(--c-verify-ink); background: var(--c-verify-bg); }
.show-verify .verify-note { display: inline !important; }
.verify-note { display: none; font-size: var(--fs-0); color: var(--c-verify-ink); background: var(--c-verify-bg); padding: 0 var(--s-1); }

/* motion: everything static unless .motion-on */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation: none !important; transition: none !important; }

/* print */
@media print {
  .site-header, .site-footer, .no-print, .motion-toggle, .filters { display: none !important; }
  body { font-size: 10.5pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
  .section { padding: 0.6rem 0; border: 0; }
  .wrap { max-width: none; padding: 0; }
}
