/* ============================================================
   danpartain.com — Base styles
   Reset, html/body, scroll, selection, the reveal animation.
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(236, 227, 208, 0.50), rgba(236, 227, 208, 0.50)), url('../images/textured_paper.webp');
  background-size: auto, auto;
  background-repeat: repeat;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

::selection {
  background: rgba(181, 51, 30, 0.22);
}

button {
  font-family: var(--font);
}

/* ---- Scroll reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-thumb {
  background: rgba(28, 24, 19, 0.22);
}

::-webkit-scrollbar-track {
  background: transparent;
}
