/* === CSS RESET (with Accessibility) === */

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

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

/* Base defaults */
html,
body {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Improve media elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form styles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Buttons clickable */
button {
  cursor: pointer;
}

/* Reset lists */
ul,
ol {
  list-style: none;
}

/* Anchor reset */
a {
  text-decoration: none;
  color: inherit;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* === Accessibility improvements === */

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

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

/* Focus states only when using keyboard */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #0a84ff;
  /* High contrast blue */
  outline-offset: 2px;
}

/* Prevent long words from breaking layouts */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  max-width: 65ch;
  text-wrap: pretty;

}



/* Set default body background & text color */
body {
  background-color: #fff;
  color: #111;
}