/* ============================================================
   BASE.CSS
   Resets and global typography. Element-level defaults only —
   component styling lives in components.css.
   ============================================================ */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); font-weight: 600; }

p { margin: 0; }

a {
  color: var(--color-brand);
  text-decoration: none;
}
a:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
}

small, .text-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Scrollbar kept subtle and consistent across browsers */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--radius-sm); }
::-webkit-scrollbar-track { background: transparent; }

/* Visible keyboard focus everywhere — accessibility baseline */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}
