/* ==========================================================================
   Base / reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, picture, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
}

.hairline {
  display: block;
  height: 1px;
  width: 3.5rem;
  background: currentColor;
  opacity: 0.5;
}

.hairline--gold {
  background: var(--color-gold);
  opacity: 1;
}

/* Custom scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-charcoal);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 0;
  border: 3px solid var(--color-charcoal);
}

::selection {
  background: var(--color-wine);
  color: var(--color-ivory);
}

/* Hide native cursor on precision-pointer devices; custom cursor takes over */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, input, textarea, select {
    cursor: none;
  }
}

.section {
  position: relative;
  padding-block: var(--section-pad-y);
}

.section--ivory {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.section--charcoal {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--wine {
  background: var(--color-wine);
  color: var(--color-ivory);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@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;
  }
}
