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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.5;
  padding-bottom: 0;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:not([class]):hover,
a.link:hover {
  text-decoration: underline;
}

a[class]:not(.link):hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

p {
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: 0.85rem;
}

.center {
  text-align: center;
}

.link {
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: inherit;
}

.link.danger {
  color: var(--color-danger);
}

.hidden {
  display: none !important;
}
