/* ==========================================================================
   BASE
   Reset + default element styling + utility classes.
   No component-specific or layout-specific rules here.
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

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

img {
  color: transparent; /* hide alt text ugliness while loading */
}

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

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

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

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  margin: 0;
  font-weight: 600;
  color: var(--color-ink);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 500; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0;
}

/* ---- Focus visibility (accessibility baseline) ---- */
:focus-visible {
  outline: 3px solid var(--color-brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default focus ring only when a visible one is provided above */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  background: var(--color-ink);
  color: var(--color-text-on-dark);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--duration-base) var(--ease-standard);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ---- Selection ---- */
::selection {
  background: var(--color-brass-tint);
  color: var(--color-ink);
}

/* ---- Utility classes ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brass-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-lg {
  font-size: var(--fs-body-lg);
}

.center {
  text-align: center;
}

.mt-0 { margin-top: 0; }

#brokers {
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}