/* Elements — 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-base);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  padding-top: var(--age-h);
  padding-bottom: 5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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 1.5px;
  transition: background-size 0.28s ease;
}

a:hover,
a:focus-visible {
  background-size: 100% 1.5px;
}

a:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
}

strong,
.mark {
  font-weight: 600;
}

.mark,
.hl {
  background: linear-gradient(transparent 62%, rgba(225, 29, 138, 0.18) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}
