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

/* ── Root / html ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* prevent font scaling on iOS rotation */
}

/* ── Body ── */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Body state: drawer is open on mobile ── */
body.drawer-open {
  overflow: hidden; /* prevent background scroll */
}

/* ── Images / media ── */
img,
video,
svg {
  display: block;
  max-width: 100%;
}

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

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── Buttons ── */
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Keyboard focus / skip navigation ── */
:focus-visible {
  outline: 3px solid var(--color-accent-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

main:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-cursor) + 1);
  transform: translateY(-160%);
  background: var(--color-accent-cyan);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 800;
  transition: transform var(--transition-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

@media (pointer: fine) and (hover: hover) {
  body.cursor-enhanced,
  body.cursor-enhanced a,
  body.cursor-enhanced button,
  body.cursor-enhanced [role="button"] {
    cursor: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
