/* Base typography, layout primitives and shared utility classes used across
   every page. Page-specific look lives in its own stylesheet (e.g.
   home.css); this file is the shared vocabulary. */

body {
  font-family: var(--font-primary);
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
}

p {
  font-size: var(--fs-body);
  color: var(--ink-soft);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--riviera-dark);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--sunset);
  display: inline-block;
}

/* Buttons. Hover/active feedback stays under --dur-instant per the global
   rule in build-spec-v2.md section 3.11 — interactive response must never
   feel laggy, even though scroll-triggered moments elsewhere are slower. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--dur-instant) var(--ease-out), box-shadow var(--dur-instant) var(--ease-out),
    background-color var(--dur-instant) var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sunset);
  color: var(--navy);
  box-shadow: 0 10px 24px -8px rgba(244, 166, 60, 0.6);
}

.btn-primary:hover {
  background: var(--sunset-dark);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid rgba(251, 248, 242, 0.5);
}

.btn-outline:hover {
  border-color: var(--warm-white);
}

/* Skip link — accessible, visible only on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--navy);
  color: var(--warm-white);
  padding: 0.75em 1.25em;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Image scale-on-scroll container (build-spec.md section 5.3): the
   overflow: hidden box is the reusable unit; animations.js scales the
   <img>/<picture> inside it. */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Route-line dotted connector — signature element, section 5.4 */
.route-line {
  display: block;
  width: 100%;
  height: 2px;
  overflow: visible;
}

.route-line line {
  stroke: var(--riviera);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 14;
}

/* Reveal utility — animations.js toggles opacity/transform via GSAP, this
   just sets the resting "before reveal" state so content isn't visible
   flashing unstyled before JS attaches (and degrades to visible if JS
   never runs, e.g. disabled). */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Placeholder layout shared by the not-yet-built pages (Phase 2, Codex).
   Just enough to clear the fixed header and read as a real page rather
   than a blank screen while direct-URL and Barba navigation are wired up. */
.page-stub {
  padding-block: calc(var(--section-pad) + 60px) var(--section-pad);
  min-height: 60vh;
}

.page-stub h1 {
  margin-bottom: 0.5em;
}

.page-stub p {
  max-width: 60ch;
}
