/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  transition: background 0.4s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body {
  background: linear-gradient(rgba(20, 11, 18, 0.85), rgba(20, 11, 18, 0.85)), url('/img/background.webp') center/cover fixed no-repeat !important;
}

@media (max-width: 768px) {
  html[data-theme="dark"] body {
    background: linear-gradient(rgba(20, 11, 18, 0.85), rgba(20, 11, 18, 0.85)), url('/img/background_vertical.webp') center/cover fixed no-repeat !important;
  }
}

::selection {
  background: rgba(var(--primary-rgb), 0.2);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
