/* ── Custom utilities & overrides ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Reveal-on-scroll (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Default state: visible (no-JS friendly) */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* JS-enhanced hidden state */
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(24px);
}

/* ── Selection color ── */
::selection {
  background: #e05a38;
  color: #fff;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8ef;
}
::-webkit-scrollbar-thumb {
  background: #e0a080;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cc4428;
}

/* ── Input autofill override ── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fefdfb inset !important;
  -webkit-text-fill-color: #1c1917 !important;
}

/* ── Active nav link highlight ── */
#nav a.active {
  color: #e05a38;
}
