/* ============================================================
   PURE POWER CONTRACTORS — Reset / Normalize
   css/reset.css

   Minimal, modern reset. Strips browser defaults, sets sane
   box-sizing, and establishes base typography from variables.css.
   ============================================================ */


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


/* --- Reset Margins & Padding ------------------------------ */
body,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
figure,
figcaption,
dl, dd,
ol, ul {
  margin: 0;
  padding: 0;
}


/* --- Document --------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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


/* --- Body ------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-surface-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* --- Headings --------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  line-height: var(--leading-snug);
}


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


/* --- Links ------------------------------------------------ */
a {
  color: var(--color-text-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-text-link-hover);
}


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


/* --- Form Elements ---------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
}


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


/* --- Misc ------------------------------------------------- */
/* Remove default summary triangle in webkit */
summary {
  cursor: pointer;
}

/* Prevent text overflow breaking layouts */
p,
h1, h2, h3, h4, h5, h6,
li,
figcaption {
  overflow-wrap: break-word;
}

/* Hidden but accessible to screen readers */
.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;
}

/* Visible focus styles — keyboard navigation (WCAG) */
:focus-visible {
  outline: var(--border-width-medium) solid var(--color-focus-ring);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}

/* Remove focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}
