/* ============================================================
   Montalvi — Global Styles (served from /styles/global.css)
   SAFE layer: additive polish only — NO design tokens, NO body
   color/background/font-weight. The page/component scoped styles
   reference CSS vars (--ivory etc.) that were never defined and
   intentionally fall back to browser defaults; defining them here
   would invert text colours on the ivory sections. So we don't.
   Everything below uses literal hex and only adds, never overrides.
   ============================================================ */

html { scroll-behavior: smooth; }

/* Crisper type everywhere — a real, risk-free premium lift */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .font-display {
  font-feature-settings: "liga" 1, "dlig" 1, "kern" 1;
}

::selection { background-color: #C2A14D; color: #0E0E10; }
::-moz-selection { background-color: #C2A14D; color: #0E0E10; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0E0E10; }
::-webkit-scrollbar-thumb { background: #2A2620; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C2A14D; }

:focus-visible { outline: 2px solid #C2A14D; outline-offset: 2px; }

/* Eyebrow label — applies where a page hasn't scoped its own */
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #C2A14D;
}

.hairline {
  border: none;
  border-top: 1px solid #C2A14D;
  opacity: 0.4;
}

/* Gold underline-slide for inline links/nav (opt-in via class) */
.link-underline { position: relative; text-decoration: none; }
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: #C2A14D;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   Gentle entrance — load-based fade (zero risk: ends visible).
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
