/* base.css — reset, body, scrollbar, ::selection */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: opacity 150ms ease;
}
a:hover { opacity: 0.75; }

::selection { background: rgba(var(--teal-rgb), 0.35); color: var(--text); }

/* Use the OS-native overlay scrollbar (macOS default) rather than a
   custom WebKit one. A forced ::-webkit-scrollbar makes Chrome render a
   classic scrollbar that reserves a fixed-width column on the right —
   which showed as a colored line (or, when transparent, an empty gap)
   alongside the navbar. The native overlay floats over the content, so
   there's no reserved column: no line, no gap, and it auto-hides when
   not scrolling. */

/* Visually-hidden but readable to assistive tech */
.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;
}
