/* ============================================================
   Sanders Beach Rentals — Base element styling & utilities
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--text-body);
  font-family: var(--font-sans-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headlines default to the editorial serif */
h1, h2, h3, h4 {
  font-family: var(--font-serif-display);
  color: var(--text-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display-lg); line-height: var(--lh-display); }
h2 { font-size: var(--fs-display-md); }
h3 { font-size: var(--fs-heading); }
h4 { font-size: var(--fs-subhead); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--sbr-sea-glass-deep); text-decoration: none; }

/* ---- Utility classes (optional, prefixed sbr-) ---------- */

/* Tracked, all-caps eyebrow label — the SBR signature */
.sbr-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Wordmark-style spacing for titles set in the sans */
.sbr-wordmark {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
}

/* Thin editorial divider */
.sbr-rule {
  border: 0;
  height: 1px;
  background: var(--border-hairline);
  margin: var(--space-6) 0;
}
.sbr-rule--center {
  width: 56px;
  margin-left: auto;
  margin-right: auto;
  background: var(--sbr-sea-glass);
}

/* Lead paragraph */
.sbr-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--text-body);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
