/* ============================================
   CASA BRAVA — Design Tokens
   ============================================ */

@font-face {
  font-family: 'Sunmora';
  src: url('../assets/fonts/Sunmora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('https://fonts.gstatic.com/s/manrope/v15/xn7gYHE41ni1AdIRqAuZuw1Bx9mbZk9FMZoI0A.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Brand palette */
  --cb-offwhite: #FBF9F1;
  --cb-navy: #2C3036;
  --cb-sage: #888E73;
  --cb-blush: #EFD9D8;

  /* Derived tones */
  --cb-sage-light: #A5A992; /* sage + 25% offwhite */
  --cb-sage-dark: #6C7261; /* sage + 30% navy */
  --cb-navy-soft: rgba(44, 48, 54, 0.72);
  --cb-white-veil: rgba(251, 249, 241, 0.88);
  --cb-line: rgba(44, 48, 54, 0.12);
  --cb-sage-tint: #EDECE2; /* offwhite + 12% sage */
  --cb-sage-tint-2: #E4E4D8; /* offwhite + 20% sage */
  --cb-sage-tint-3: #CDCEBF; /* offwhite + 40% sage */
  --cb-sage-tint-4: #BCBEAC; /* offwhite + 55% sage */

  /* Typography */
  --font-display: 'Sunmora', serif;
  --font-editorial: 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-2xl: 11rem;

  /* Radii & motion */
  --radius-soft: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 900ms;
  --dur-med: 550ms;
  --dur-fast: 280ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--cb-offwhite);
  color: var(--cb-navy);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--cb-sage);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cb-sage-dark);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.h-editorial {
  font-family: var(--font-editorial);
  font-weight: 800;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.h-editorial em {
  font-style: normal;
  font-weight: 800;
  color: var(--cb-sage);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--cb-navy-soft);
  max-width: 42ch;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* Reveal-on-scroll base state */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }
[data-reveal].is-visible[data-reveal="fade"] { transform: none; }
