/**
 * DuplexDot DIGITAL AGENCY — MODERN CSS RESET
 * Accessible, zero-margin baseline with smooth typography and image responsiveness.
 */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Set core root defaults */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

/* 3. Accessible body styling */
body {
  min-height: 100vh;
  line-height: var(--line-height-body, 1.6);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* 5. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* 6. Avoid text overflow */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 7. Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul, ol {
  list-style: none;
}

/* 8. Anchor defaults */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* 9. Buttons have a pointer cursor */
button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 10. Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* 11. Accessible focus rings */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* 12. Remove animations for people who've turned them off */
@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;
  }
}
