*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.25em; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.4vw + .8rem, 2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); }
.muted { color: var(--text-muted); }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }
pre { background: var(--bg-tertiary); padding: var(--space-4); border-radius: var(--radius-md); overflow-x: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -100px; left: 0; padding: 8px 16px;
  background: var(--accent); color: #fff; z-index: 9999; border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container-sm { max-width: var(--container-sm); }

.row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }

.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(15px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
