/* ============================================
   RESET.CSS — Modern CSS Reset
   Ps. Giovanni Chicago
   ============================================ */

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

/* ── Remove Default Margins & Padding ── */
* {
  margin: 0;
  padding: 0;
}

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

/* ── Body ── */
body {
  background-color: var(--midnight);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

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

/* ── Buttons & Inputs ── */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

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

/* ── Fieldset ── */
fieldset {
  border: none;
}

/* ── Summary ── */
summary {
  cursor: pointer;
}

/* ── Horizontal Rule ── */
hr {
  border: none;
  height: 1px;
  background: rgba(201, 169, 110, 0.12);
}

/* ── Selection ── */
::selection {
  background-color: var(--gold);
  color: var(--midnight);
}

::-moz-selection {
  background-color: var(--gold);
  color: var(--midnight);
}

/* ── Scrollbar — Webkit ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--midnight);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 110, 0.55);
}

::-webkit-scrollbar-corner {
  background: var(--midnight);
}

/* ── Scrollbar — Firefox ── */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, 0.35) var(--midnight);
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Reduced Motion ── */
@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;
  }
}
