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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 45%, #dce8e7 100%);
  background-attachment: fixed;
  padding-bottom: calc(var(--age-h) + var(--space-4));
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--teal-700);
}

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.5rem, 7vw, 4.75rem);
  letter-spacing: -0.02em;
}

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

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

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

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

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

strong {
  font-weight: 700;
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.accent-word {
  color: var(--color-primary);
  background: linear-gradient(180deg, transparent 62%, var(--color-accent) 62%);
  padding: 0 0.1em;
}

.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;
}
