/* ===== Base & reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Themed vertical scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) var(--bg-elevated);
}

/* Themed vertical scrollbar (Chrome / Safari / Edge) */
html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}
html::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
html::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-in,
  .reveal { animation: none; transition: none; }
  .scroll-indicator::after { animation: none; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover {
  color: var(--accent-dim);
}

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

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

/* Selection */
::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}
