/* Elements — resets and base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--age-bar-h);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}

a:hover,
a:focus-visible {
  background-size: 100% 2px;
  color: var(--color-accent-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

button,
input,
textarea,
select {
  font: inherit;
  border-radius: 0 !important;
}

button {
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  vertical-align: top;
}

label {
  display: block;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px dashed var(--color-dashed);
  background: var(--color-white);
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}
