/* base.css — Reset, body, typography, utilities */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--footer-h);
  transition: background .25s ease, color .25s ease;
}
main { flex: 1 0 auto; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-body); font-weight: 700; color: var(--text); line-height: 1.25; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; } h5 { font-size: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); text-decoration: underline; }
p { margin-bottom: .85rem; }
code, pre { font-family: var(--font-mono); font-size: .85rem; }
pre { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; overflow-x: auto; }
code { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 4px; padding: .1em .35em; color: var(--accent); font-size: .82em; }
pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 1em; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: .85rem; }
li { margin-bottom: .3rem; }
strong { font-weight: 600; }

/* Utilities */
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.small        { font-size: .85rem; }
.mt-1{margin-top:.5rem}  .mb-1{margin-bottom:.5rem}
.mt-2{margin-top:1rem}   .mb-2{margin-bottom:1rem}
.mt-3{margin-top:1.5rem} .mb-3{margin-bottom:1.5rem}
.py-3{padding-top:1.5rem;padding-bottom:1.5rem}
.py-5{padding-top:3rem;padding-bottom:3rem}
.d-flex{display:flex} .flex-wrap{flex-wrap:wrap}
.d-grid{display:grid}
.align-items-center{align-items:center}
.align-items-start{align-items:flex-start}
.justify-content-between{justify-content:space-between}
.justify-content-center{justify-content:center}
.flex-grow-1{flex-grow:1} .flex-shrink-0{flex-shrink:0}
.ms-auto{margin-left:auto}
.text-nowrap{white-space:nowrap}
.w-100{width:100%} .m-0{margin:0} .mb-0{margin-bottom:0} .mt-0{margin-top:0}
.gap-1{gap:.5rem} .gap-2{gap:1rem} .gap-3{gap:1.5rem}
