/* ============================================================
   reset.css — S.C. Kincaid Author Website
   Modern minimal reset
   ============================================================ */

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

/* --- 2. Document & Root --- */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* --- 3. Body --- */
body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 4. Typography --- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
}

p {
  margin: 0;
}

/* --- 5. Lists --- */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- 6. Links --- */
a {
  color: inherit;
  text-decoration: none;
}

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

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

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

/* --- 9. Tables --- */
table {
  border-collapse: collapse;
}

/* --- 10. Misc --- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Skip to main content — visually hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: #8b2020;
  color: #f0ead8;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}
