/* Small usability and accessibility refinements layered over the original design. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #d52e3b;
  outline-width: 3px;
}

.brand,
.site-header nav a,
.text-action,
.direct-contact a,
.linkedin,
footer > a:last-child {
  min-height: 44px;
}

.brand,
.site-header nav a,
.text-action,
.direct-contact a,
.linkedin,
footer > a:last-child {
  display: inline-flex;
  align-items: center;
}

.menu-toggle,
.filter,
.copy-button,
.dialog-head button {
  min-height: 44px;
}

.dialog-head button {
  width: 44px;
  height: 44px;
}

.work-card:focus-visible {
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .site-header nav {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  .site-header nav a {
    padding-block: 11px;
  }
}

@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;
  }
}

/* Keep the photographic wordmark legible at header and footer sizes. */
.brand {
  overflow: hidden;
}

.brand-logo {
  transform: scale(1.25);
}

.social-links a,
footer > div a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
