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

html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  display: block;
  background-color: #000;
  color: #fff;
  padding: 8px 12px 7px 12px;
  margin: 4px;
  font-size: 9px;
  text-transform: uppercase;
  border: none;
  border-radius: 24px;
  outline: none;
  cursor: pointer;
}

/* --- additions -------------------------------------------------------- */

/* The template had `::selection { background: none }`, which removes the
   highlight when you select text — there is no way to see what you have
   selected. Dropped. */

body {
  color: var(--color-text);
  background: var(--color-bg);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.project a:focus-visible,
.project button:focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100001;
  padding: 0.75em 1.25em;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 11px;
  text-transform: uppercase;
  transform: translateY(-120%);
  transition: transform 0.2s;
}

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

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

site-menu {
  display: contents;
}

/* The menu items were <button> elements wrapped in <Link>, which is
   interactive content inside an anchor — invalid, and two focus stops for one
   destination. They are anchors wearing the button's look. */
.pill {
  display: block;
  background-color: #000;
  color: #fff;
  padding: 8px 12px 7px 12px;
  margin: 4px;
  font-size: 9px;
  text-transform: uppercase;
  border: none;
  border-radius: 24px;
  cursor: pointer;
}

/* One arrow, inline, instead of the whole react-icons package the template
   pulled in for this single glyph. */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
