/* base.css — global reset + layout primitives */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 { line-height: 1.25; margin-top: 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); font-size: .9em; }

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--surface); padding: .5rem 1rem;
  border: 2px solid var(--primary); border-radius: var(--radius);
  z-index: 1000;
}

main { flex: 1; }
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Topbar */
.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar .brand {
  font-weight: 700; font-size: 1.1rem;
  color: var(--text);
}
.topbar .brand:hover { text-decoration: none; }
.topbar .spacer { flex: 1; }
.topbar nav a {
  margin: 0 .5rem; padding: .25rem .5rem;
  color: var(--muted);
}
.topbar nav a[aria-current="page"] {
  color: var(--text); font-weight: 600;
}
