:root {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 1rem;
  left: 1rem;
  padding: .65rem .9rem;
  background: #fff;
  color: #111;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.skip-link-dark {
  background: #e7e9df;
  color: #081a27;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

.experiment-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 3.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .85rem clamp(1rem, 2.4vw, 2.5rem);
  border-bottom: 1px solid rgba(19, 25, 27, .16);
  font: 500 .8rem/1.2 "Archivo", "Barlow Semi Condensed", sans-serif;
  letter-spacing: .01em;
  pointer-events: none;
}

.experiment-header > * {
  pointer-events: auto;
}

.experiment-header p {
  margin: 0;
}

.experiment-header .back-link {
  justify-self: start;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.experiment-header > p:nth-child(2) {
  justify-self: center;
}

.header-help {
  justify-self: end;
  opacity: .65;
}

.experiment-header-dark {
  color: #e7e9df;
  border-color: rgba(231, 233, 223, .16);
}

.sr-live {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .experiment-header {
    grid-template-columns: 1fr auto;
  }

  .experiment-header > p:nth-child(2) {
    justify-self: end;
  }

  .header-help {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
