/* EVE Design System — base styles (reset + element defaults).
   Requires dist/tokens.css to be loaded first. Dark theme is the default;
   set data-theme="light" on <html> for the light theme. */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--eve-font-base);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--eve-text-primary);
  background-color: var(--eve-bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
/* display:block выше перебивал браузерное [hidden] — накладка с дисками показывалась на 9X */
[hidden] { display: none !important; }

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6, p { overflow-wrap: break-word; }

::selection {
  background: var(--eve-accent);
  color: var(--eve-accent-contrast);
}

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

/* EVE page container: 1432px content width, 40px page gutters (from Figma 1512 grid). */
.eve-container {
  width: 100%;
  max-width: var(--eve-layout-containerMax);
  margin-inline: auto;
  padding-inline: var(--eve-layout-pageMargin);
}

@media (max-width: 768px) {
  .eve-container { padding-inline: var(--eve-space-4); }
}

/* Glass surface: blurred bar used for the sticky header and overlays. */
.eve-glass {
  background: var(--eve-glass-bg);
  backdrop-filter: blur(var(--eve-blur-glass));
  -webkit-backdrop-filter: blur(var(--eve-blur-glass));
}
