/* =========================================================================
   Base — reset + global typography + shared primitives (container, eyebrow).
   Keep this file small; component-specific styles go in /components/*.css.
   ========================================================================= */

@font-face {
  font-family: 'Ambra';
  src: url('../fonts/Ambra-Sans-Text-Medium.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  font-family: var(--fm-font-body);
  font-size: var(--fm-fs-base);
  line-height: var(--fm-lh-normal);
  color: var(--fm-text);
  background: var(--fm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--fm-sp-4);
  color: var(--fm-text-strong);
  line-height: var(--fm-lh-tight);
  font-weight: var(--fm-fw-bold);
}

h1 { font-size: var(--fm-fs-2xl); }
h2 { font-size: var(--fm-fs-xl); }
h3 { font-size: var(--fm-fs-lg); }

@media (min-width: 992px) {
  h1 { font-size: var(--fm-fs-3xl); }
  h2 { font-size: var(--fm-fs-2xl); }
}

p { margin: 0 0 var(--fm-sp-4); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fm-dur-fast) var(--fm-ease);
}
a:hover { color: var(--fm-accent); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- Shared primitives ---------- */

.fm-container {
  width: 100%;
  max-width: var(--fm-container);
  margin: 0 auto;
  padding-left: var(--fm-container-pad);
  padding-right: var(--fm-container-pad);
}

.fm-eyebrow {
  display: inline-block;
  margin: 0 0 var(--fm-sp-3);
  font-size: var(--fm-fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm-accent);
  font-weight: var(--fm-fw-bold);
}

/* Kept for API compatibility; eyebrow is now brand-orange on any background. */
.fm-eyebrow--invert { color: var(--fm-accent); }

/* Utility: visually hidden but accessible */
.fm-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;
}
