/* base.css: fonts, brand tokens, reset, typography, focus. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Brand tokens (website brief section 1; the desktop design system).
   Blue is structure, orange is action and emphasis, green is savings.
   Text-safe variants: --orange-text and --green-text reach WCAG AA only as
   large text (24px, or 18.66px bold); cmd/sitegen's contrast test holds
   every pair below to its threshold. */
:root {
  --blue: #0b558e;
  --blue-dark: #083e68;
  --navy: #0a2540;
  --navy-2: #0f2f50;
  --blue-tint: #eef4fa;
  --blue-tint-2: #dbe8f4;
  --orange: #f3642b;
  --orange-hover: #e2531b;
  --orange-text: #e2531b;
  --green: #57ba4a;
  --green-text: #3f9a35;
  --green-on-dark: #74cc68;
  --text: #17202b;
  --text-2: #3d4856;
  --muted: #667180;
  --canvas: #f4f6f9;
  --surface: #ffffff;
  --border: #e3e7ed;
  --border-strong: #cfd6df;
  --border-input: #848e9c;
  --on-dark: #ffffff;
  --on-dark-2: #b8c7d9;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow: 0 2px 4px rgba(10, 37, 64, 0.04), 0 12px 32px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 24px 64px rgba(4, 18, 34, 0.35);
  --focus: #0b558e;
  --focus-on-dark: #ffffff;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body {
    font-size: 1.125rem;
  }
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

strong {
  font-weight: 650;
}

address {
  font-style: normal;
}

/* Focus: always visible on keyboard focus, never removed. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-navy :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-dark);
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
