/* Elements — resets and base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cool);
  padding-top: var(--age-h);
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

a:hover {
  background: var(--color-accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.85em;
}

button,
input,
textarea,
select {
  font: inherit;
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-slate);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: var(--border-dash);
  background: var(--color-white);
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

input:focus,
textarea:focus {
  outline: 3px solid var(--color-accent);
  border-style: solid;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: var(--border-dot);
  font-variant-numeric: tabular-nums;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--color-slate);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}