/**
 * Modern CSS Reset
 * Based on Andy Bell's modern reset with FUCIT customizations
 */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin/padding */
* {
  margin: 0;
  padding: 0;
}

/* HTML & Body */
html {
  font-size: 16px;
  /* Font smoothing handled by typography.css on body */
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Improved media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit font */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove list styles on ul, ol with class */
ul[class],
ol[class] {
  list-style: none;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

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

/* Remove default focus outline (we'll add custom ones) */
:focus {
  outline: none;
}

/* Custom focus visible (keyboard navigation) */
:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* Disable font boosting on mobile */
html {
  -webkit-text-size-adjust: 100%;
}
