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

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

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

input,
textarea,
select {
  font: inherit;
}

/* Document */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body copy: navy at ~85% for the body-text feel called out in the doc */
p {
  color: rgba(28, 20, 84, 0.88);
}

/* Headings — clamp() drives mobile -> desktop scaling */
h1 {
  font-size: clamp(2rem, 4.5vw + 1rem, 3.5rem);  /* 32px -> 56px */
  line-height: 1.1;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem);  /* 24px -> 36px */
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.005em;
}

h3 {
  font-size: clamp(1.25rem, 0.5vw + 1.125rem, 1.375rem);  /* 20px -> 22px */
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

h4 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

small,
.caption {
  font-size: 0.9375rem;  /* 15px */
  color: var(--muted);
  line-height: 1.5;
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-tight {
  padding-block: clamp(32px, 5vw, 56px);
}

/* Focus — orange ring per accessibility guidance in section 6 */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

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