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

html {
  min-width: 20rem;
  background: var(--black);
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--black);
  color: var(--primary);
  font-family: var(--serif);
  font-size: 16px;
  opacity: 1;
  transition: opacity 220ms ease-in-out;
  -webkit-font-smoothing: antialiased;
}

body.page-entering {
  animation: page-enter 220ms ease-in-out both;
}

body.page-leaving {
  opacity: 0;
  pointer-events: none;
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

a {
  color: inherit;
  text-underline-offset: 0.3em;
}

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

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

p {
  line-height: 1.72;
}

strong {
  color: var(--primary);
  font-weight: 600;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--black);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin-bottom: 1.35rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}
