/* ==========================================================================
   Finca Escondida — design system: reset, globals and accessibility baseline

   Single source of truth, shared by the marketing site (sites/marketing,
   which receives a copy in vendor/ via scripts/sync-design.mjs) and the club
   application (apps/book). Do not edit the vendored copy.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;               /* running text never below this (rule 26) */
  line-height: 1.5;
  color: var(--forest);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--terracotta-text); }

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

::selection { background: var(--gold); color: var(--forest); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--forest);
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Smooth scrolling only for in-page interaction: a deep link (/about#team)
   must land exactly, even while lazy images above it are still arriving. */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
