/* ============================================================
   Minimal Reset — Consistent Cross-Browser Baseline
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--misa-font);
  font-size: var(--misa-text-body);
  line-height: var(--misa-lh-body);
  color: var(--misa-text-primary);
  background: var(--misa-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* SPA layout controls scroll */
}

a {
  color: var(--misa-brand-accent);
  text-decoration: none;
}
a:hover { color: var(--misa-brand-hover); }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: var(--misa-fw-semibold); }

:focus-visible {
  outline: 2px solid var(--misa-brand-accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(38, 98, 255, 0.15);
  color: var(--misa-text-dark);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
