@import "utility.css";

html {
  overscroll-behavior-y: none;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;

  min-height: 100vh;
}

main {
  flex-grow: 1;
}

* {
  font-family: var(--font-secondary);
}

*:focus-visible {
  outline-style: solid;
  outline-color: var(--color-primary);
}

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

a:visited {
  font-style: italic;
}

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

a:focus {
  background-color: var(--color-secondary) !important;
  color: var(--color-tertiary);
}

a:active {
  text-decoration: underline wavy currentColor;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  margin: 0;
}

h1 {
  font-size: 3.75rem;
  line-height: 2.25;
}

h2 {
  font-size: 2.25rem;
  line-height: 2;
}

h3 {
  font-size: 2rem;
  line-height: 1.75;
}

h4 {
  font-size: 1.75rem;
  line-height: 1.5;
}

h5 {
  font-size: 1.5rem;
  line-height: 1.25;
}

h6 {
  font-size: 1.25rem;
  line-height: 1;
}

section {
  padding: 1rem 1rem 0 1rem;
}

/* Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/blockquote */
blockquote p::before {
  content: "\201C";
}

blockquote p::after {
  content: "\201D";
}

thead {
  background-color: var(--color-tertiary);
}

tbody tr:nth-child(even) {
  background-color: var(--color-card-bg);
}

td {
  padding: 1rem 0;
  text-align: center;
}

th {
  padding: 0.5rem 1rem;
}
