/* ════════════════════════════════════════════════════════════
   Selfolyx Bio — base.css
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');

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

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); border-radius: 2px; }

/* ── Loading ─────────────────────────────────────────────── */
#sl-loading {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #0A0A0A;
  z-index: 100;
  transition: opacity 0.3s ease;
}
#sl-loading.hidden { opacity: 0; pointer-events: none; }

.sl-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(59,130,246,0.2);
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Not found ───────────────────────────────────────────── */
#sl-not-found {
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100dvh;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: #0A0A0A;
  color: #FAFAFA;
}
#sl-not-found.visible { display: flex; }

#sl-not-found h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 0.05em;
  color: #3B82F6;
  line-height: 1;
}

#sl-not-found p { font-size: 0.9rem; color: #A1A1A1; }

@keyframes spin { to { transform: rotate(360deg); } }

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