*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-2); }
h1 { font-size: var(--step-3); letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-2); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding-block: var(--space-5); }
.section--alt { background: var(--surface-2); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.stack > * + * { margin-top: var(--space-2); }

.grid { display: grid; gap: var(--space-3); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: var(--space-1); z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-2); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-4); font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; display: flex; gap: var(--space-2); margin: 0; padding: 0; flex-wrap: wrap; }
.narrow { max-width: 46rem; }
.mt-4 { margin-top: var(--space-4); }
