/* ============================================================
   RESET.CSS — Coalition for Cyclist Safety
   Modern CSS Reset + Opinionated Base Normalization
   ============================================================ */

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

/* 2. Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* 3. Document */
html {
  font-size: 100%; /* 16px base */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 4. Body */
body {
  min-height: 100vh;
  line-height: 1.6;
}

/* 5. Typography reset */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.1;
}

/* 6. Links — never underlined per brand guidelines */
a {
  color: inherit;
  text-decoration: none;
}

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

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

/* 9. Form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* 11. Fieldset */
fieldset {
  border: none;
}

/* 12. Quotes */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

/* 13. HR */
hr {
  border: none;
  border-top: 1px solid currentColor;
  height: 0;
}

/* 14. Hidden */
[hidden] {
  display: none !important;
}

/* 15. Focus visible — accessibility */
:focus-visible {
  outline: 2px solid #fea44b;
  outline-offset: 3px;
}

/* 16. Selection */
::selection {
  background-color: #fea44b;
  color: #ffffff;
}

/* 17. Pre overflow */
pre {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 18. Address */
address {
  font-style: normal;
}
