/* base.css: colors, fonts, reset. Palette: Harbor navy (see PROJECT.md) */

:root {
  --navy: #0B2545;
  --ocean: #1D5C96;
  --green: #2E9E6B;
  --green-dark: #1F7A52;
  --teal: #167E85;
  --bg: #F5F8FA;
  --text: #1B2430;
  --muted: #4A5868;
  --line: #DCE3EA;
  --white: #FFFFFF;

  /* Accent for the current page. Overridden by brand-* classes in components.css */
  --accent: var(--green);         /* decorative: borders, bars */
  --accent-strong: var(--green-dark); /* text and buttons */

  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-body);

  --radius: 6px;
  --shadow: 0 1px 3px rgba(11, 37, 69, .08), 0 4px 16px rgba(11, 37, 69, .06);
  --max: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: var(--ocean); text-underline-offset: .15em; }
a:hover { color: var(--navy); }

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

:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }

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

/* Marks placeholder text to be replaced in Phase 3 */
.placeholder {
  text-decoration: underline dotted #B07A00;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
