/* Revontulet — base / reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

a { color: inherit; text-decoration: none; }
a.rv-link { color: var(--link); }
a.rv-link:hover { text-decoration: underline; }

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

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

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

svg { display: block; }

:focus-visible {
  outline: 2px solid var(--aurora-green);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection {
  background: rgba(61,220,132,0.32);
  color: var(--frost-50);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--night-600); border-radius: 6px; border: 2px solid var(--night-900); }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Layout helpers ---- */
.rv-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 720px) {
  .rv-container { padding-left: 20px; padding-right: 20px; }
}

.rv-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
