/* ============================================================
   SOMOS IMPACT TRAVEL — BASE / RESET + ELEMENT DEFAULTS
   Light reset and brand-flavored element defaults so raw HTML
   already feels like Somos. Tokens come from the other files.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings — editorial serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  color: var(--text-strong);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-snug);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--text-5xl); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--text-link); text-decoration-color: color-mix(in srgb, var(--text-link) 35%, transparent); text-underline-offset: 0.18em; transition: color var(--duration-fast) var(--ease-standard); }
a:hover { color: var(--action-active); }

strong, b { font-weight: var(--weight-bold); color: var(--text-strong); }
small { font-size: var(--text-sm); }

blockquote {
  font-family: var(--quote-font);
  font-style: var(--quote-style);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  color: var(--text-strong);
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--brand-terra);
}

code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: none; border-top: var(--border-hairline) solid var(--border-default); margin: var(--space-6) 0; }
img { max-width: 100%; display: block; }

::selection { background: var(--terra-200); color: var(--deepsea-700); }

:focus-visible { outline: var(--border-thick) solid var(--focus-ring); outline-offset: 2px; }

/* ----- A few brand helpers used across cards & kits ----- */

.somos-eyebrow {
  font-family: var(--eyebrow-font);
  font-weight: var(--eyebrow-weight);
  font-size: var(--eyebrow-size);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--brand-terra);
}

.somos-wordmark {
  font-family: var(--font-brand);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--brand-deepsea);
}

/* Hand-drawn-feel underline accent for key words */
.somos-underline {
  background-image: linear-gradient(var(--brand-terra), var(--brand-terra));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.22em;
  padding-bottom: 0.04em;
}

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