/* What every page owes the visitor, whatever layout it chooses: a page that stands
   outside base.html loads this too, so opting out of the layout cannot drop the rules. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The masthead sticks to the top, so an anchor target has to clear it. */
  scroll-padding-top: var(--masthead-height);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 70;
  padding: 8px 18px;
  background: #fffdf6;
  border: var(--rule);
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 8px;
}

.wordmark {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.wordmark__mark {
  display: block;
  flex: none;
}

.language {
  display: inline-flex;
  margin: 0;
}

.language__select {
  padding: 5px 10px;
  border: var(--rule);
  border-radius: var(--radius-sm);
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
}

.language__select:hover {
  background: var(--yellow);
}

/* How far the visitor has read; every page that drives one uses this element. */
.progress {
  position: fixed;
  top: var(--masthead-height);
  left: 0;
  z-index: 61;
  width: 0;
  height: 3px;
  background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
