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

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
}

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

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

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

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

:root {
  --color-ink: #1c2a33;
  --color-ink-soft: #45535c;
  --color-paper: #f6f4f0;
  --color-surface: #ffffff;
  --color-surface-alt: #ece7dd;
  --color-line: #d8d2c6;
  --color-navy: #1f3b52;
  --color-navy-dark: #142837;
  --color-accent: #5f7a6f;
  --color-accent-soft: #e4e9e2;

  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container-width: 76rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(28, 42, 51, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(28, 42, 51, 0.18);
}

html {
  background-color: var(--color-paper);
}

body {
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-dark);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.375rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  max-width: 42rem;
}

p + p {
  margin-top: var(--space-3);
}

strong {
  font-weight: 600;
  color: var(--color-navy-dark);
}

::selection {
  background-color: var(--color-accent-soft);
  color: var(--color-navy-dark);
}

:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
