/*
 * Field Guide Marina — Base Styles
 * v8.0.0 — Reset, body defaults, Inter font loading, antialiasing
 *
 * Loaded after fgm-tokens.css, before any component or page CSS.
 */

/* ── Inter Variable (self-hosted, latin subset) ────────────── */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ── Reset ─────────────────────────────────────────────────── */

.fgm-wrap *,
.fgm-wrap *::before,
.fgm-wrap *::after,
.fgm-portal *,
.fgm-portal *::before,
.fgm-portal *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Body defaults (scoped to plugin surfaces) ─────────────── */

.fgm-wrap,
.fgm-portal {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* Tabular numerals on numeric content */
.fgm-wrap [data-numeric],
.fgm-wrap .fgm-stat-number,
.fgm-wrap .fgm-stat-value,
.fgm-wrap table td:first-child,
.fgm-portal [data-numeric],
.fgm-portal .fgm-stat-number,
.fgm-portal .fgm-stat-value {
  font-variant-numeric: tabular-nums;
}

/* ── Links ─────────────────────────────────────────────────── */

.fgm-wrap a,
.fgm-portal a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s;
}

.fgm-wrap a:hover,
.fgm-portal a:hover {
  color: var(--brand-ink);
}

/* ── Page background ───────────────────────────────────────── */

.fgm-wrap {
  background: var(--bg);
}

/* ── Selection ─────────────────────────────────────────────── */

.fgm-wrap ::selection,
.fgm-portal ::selection {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--fg);
}

/* ── Accessibility utilities ──────────────────────────────── */

.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;
}

.fgm-wrap a:focus-visible,
.fgm-portal a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Reduced motion ───────────────────────────────────────── */

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