/* Element defaults. No classes here. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* the footer stays at the bottom of short pages */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

/* page titles: 50px by default; heroes set --h1 to the size their design uses */
h1 {
  font-size: clamp(32px, 6vw, var(--h1, 50px));
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-ink);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
}

svg {
  display: block;
}

/* the hidden attribute wins over any display a class sets */
[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* every field sits on a light background, also inside the dark bands: dark text in it */
input,
select,
textarea {
  color: var(--ink);
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
