:root {
  --font-family-base: "Inter", sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-family-ui: var(--font-family-base);
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-size-body: 0.95rem;
  --font-size-body-small: 0.875rem;
  --font-size-ui: 0.95rem;
  --font-size-label: 0.95rem;
  --font-size-h1: 2.4rem;
  --font-size-h2: 1.5rem;
  --font-size-h3: 1.15rem;
  --line-height-body: 1.6;
  --line-height-heading: 1.15;
  --line-height-heading-tight: 1.05;
}

body {
  font-family: var(--font-family-base);
  color: var(--text);
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-family-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading-tight);
  margin-bottom: 1rem;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  margin-bottom: 1.25rem;
}

p.secondary {
  color: var(--secondary-text);
}

small {
  font-size: var(--font-size-body-small);
  line-height: 1.5;
}

label {
  color: var(--text);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

section > .section-inner > h2,
section > h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

section > .section-inner > p,
section > p {
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;
}

@media (min-width: 800px) {
  :root {
    --font-size-body: 1.1rem;
    --font-size-h1: 3rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.25rem;
  }
}
