/* ============================================
   MENAART — Base Reset & Global Styles
   ============================================ */

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

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

body {
  background-color: var(--color-dark);
  color: var(--color-cream);
  font-family: var(--ff-body);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.6s var(--ease-out-expo),
              background 0.6s var(--ease-out-expo),
              color 0.6s var(--ease-out-expo);
}

/* Custom cursor only for pointer devices — NOT touch */
@media (pointer: fine) {
  body {
    cursor: none;
  }
}

/* ── Typography Base ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

p {
  line-height: var(--lh-normal);
  color: var(--text-dim);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

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

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Media ── */
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Form Elements ── */
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ── Selection ── */
::selection {
  background-color: var(--color-orange);
  color: var(--color-dark);
}

::-moz-selection {
  background-color: var(--color-orange);
  color: var(--color-dark);
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--color-dark-4);
  border-radius: var(--radius-full);
}

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

/* ── Background Canvas ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
