/* ── WRETAN v2.0 — Base Reset & Globals ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14.5px;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: row;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

body::after {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--accent-rgb), 0.18) 0%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text3);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Selection */
::selection {
  background: rgba(var(--accent-rgb, 37, 99, 235), 0.18);
  color: var(--text);
}

/* Links */
a {
  color: inherit;
}

/* SVG icon sprite */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}
