/* ==========================================================================
   reset.css — Modern, minimal normalisation.
   Opinionated only where it benefits every page (typography inheritance,
   media defaults, motion safety).
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Honour the operating-system motion preference globally. */
@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,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

body {
  min-block-size: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Balanced wrapping for headings; pretty wrapping for prose. */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

img, picture, svg, video {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; }

a { color: inherit; }

table {
  border-collapse: collapse;
  inline-size: 100%;
}

:target { scroll-margin-block-start: var(--header-height, 5rem); }

/* Remove the default focus ring only where a custom one is guaranteed. */
:focus-visible {
  outline: 2px solid var(--focus-ring, #C8A75B);
  outline-offset: 3px;
}
