/* Elements — base */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-base);
  padding-bottom: calc(var(--age-bar-h) + 0.5rem);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-slate-deep);
  text-decoration: none;
  background-image: linear-gradient(var(--color-lime-deep), var(--color-lime-deep));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s ease, color 0.2s ease;
}

a:hover,
a:focus-visible {
  background-size: 100% 1.5px;
  color: var(--color-ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

h1 { font-size: var(--font-size-hero); font-weight: 700; }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); font-weight: 700; }

p { margin: 0 0 var(--space-md); }

ul, ol { margin: 0 0 var(--space-md); padding-left: 1.25rem; }

strong { font-weight: 700; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-2xs);
  font-size: var(--font-size-sm);
}

input, textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: var(--border-key);
  border-radius: 0.75rem;
  background: var(--color-surface);
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

input:focus, textarea:focus {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

th, td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px dotted var(--color-border);
}

th {
  font-weight: 700;
  color: var(--color-slate-deep);
}
