:root {
  --color-brand-green: #2e9348;
  --color-brand-blue: #0081c5;
  --color-brand-orange: #f5a623;
  --color-surface: #ffffff;
  --color-surface-muted: #f4f7f9;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 8px 30px rgb(15 23 42 / 0.08);
  --max-w: 72rem;
  --space-section: clamp(3rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Prevent browser scroll anchoring when header/footer inject and shift layout */
  overflow-anchor: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-brand-green);
}

:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: var(--color-brand-blue);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  transform: translateY(-120%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline-offset: 2px;
}

.layout-error {
  padding: 1rem;
  background: #fee;
  color: #900;
  font-size: 0.875rem;
  margin: 0;
}

.u-mt-125 {
  margin-top: 1.25rem;
}
