/* ELEMENTS — resets & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 45%, var(--color-bg-alt) 100%);
  background-attachment: fixed;
  padding-bottom: calc(var(--age-bar-h) + 3.5rem);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
}

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

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 var(--space-4);
  max-width: 70ch;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
}

a:hover,
a:focus-visible {
  background-size: 100% 2px;
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

li {
  margin-bottom: var(--space-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  vertical-align: top;
}

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

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

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