/* Global: reset and element defaults. Values come from tokens.css only. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* The main row takes the free height, so the footer stays at the bottom of
   short pages. The column is pinned: an auto column widens to the longest
   unbreakable content and pushes the whole page past the viewport. */
body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-block-size: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-heading);
}

h1 {
  font-size: var(--step-2);
}

h2 {
  font-size: var(--step-1);
}

h3,
h4 {
  font-size: var(--step-0);
}

ul[role="list"] {
  padding: 0;
  list-style: none;
}

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

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

/* The transparent outline is what forced-colors mode paints: it drops the
   box-shadow ring. */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

table {
  border-collapse: collapse;
}

main {
  padding-block: var(--space-xl);
}
