/* ITCSS: elements — reset + base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-slate);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10c20 15 30 25 30 50s-10 35-30 50c-20-15-30-25-30-50s10-35 30-50z' fill='none' stroke='%230d7377' stroke-opacity='0.045' stroke-width='1'/%3E%3Cpath d='M60 25c12 10 18 16 18 35s-6 25-18 35c-12-10-18-16-18-35s6-25 18-35z' fill='none' stroke='%230d7377' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  padding-top: var(--age-h);
  padding-bottom: 4.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color var(--ease);
}

a:hover {
  color: var(--color-teal-dark);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
}

strong {
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  vertical-align: top;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}
