/* Elements — base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, #ececee 0%, var(--paper) 28%, var(--paper) 100%);
  background-attachment: fixed;
  padding-top: var(--age-bar-h);
  padding-bottom: 4.5rem;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 var(--space-md);
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.28s ease;
}

a:hover,
a:focus-visible {
  background-size: 100% 1px;
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: var(--space-xl) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  vertical-align: top;
}

th {
  font-weight: 700;
  color: var(--ink);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: var(--wash);
  color: var(--ink);
  margin-bottom: var(--space-md);
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-mid);
  color: var(--ink);
}
