/* ==========================================================================
   HAMCO Sports News - Modern CSS Reset
   Normalizes browser defaults for a consistent baseline
   ========================================================================== */

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

/* ---- Remove Default Margins & Padding ---- */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  tab-size: 4;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--hn-font-body);
  font-size: var(--hn-text-base);
  color: var(--hn-text);
  background-color: var(--hn-bg);
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* ---- Paragraphs ---- */
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

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

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

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* ---- 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;
  padding: 0;
}

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

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

textarea {
  resize: vertical;
}

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

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

/* ---- Misc ---- */
hr {
  border: none;
  border-top: 1px solid var(--hn-border);
  margin: var(--hn-space-8) 0;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

summary {
  cursor: pointer;
  display: list-item;
}

[hidden] {
  display: none !important;
}

::selection {
  background-color: var(--hn-red);
  color: var(--hn-white);
}

/* ---- Focus Visible ---- */
:focus-visible {
  outline: 2px solid var(--hn-red);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
