@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/tenor-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  background: #ffffff;
  color: #000000;
  font-family: "Tenor Sans", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #ffffff;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #ffffff;
  color: #000000;
  cursor: default;
}

a {
  color: inherit;
  cursor: pointer;
}

::selection {
  background: #000000;
  color: #ffffff;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: 64px clamp(24px, 5vw, 64px) 96px;
  flex-direction: column;
}

.identity {
  display: grid;
  place-items: center;
}

.identity-heading {
  display: grid;
  margin: 0;
  place-items: center;
  gap: 24px;
  font: inherit;
  font-weight: 400;
}

.five-bays-wordmark {
  display: block;
  width: min(76vw, 710px);
  max-width: 100%;
  height: auto;
}

.identity-descriptor {
  display: block;
  margin: 0;
  padding-inline-start: 0.42em;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio {
  width: min(100%, 710px);
  margin: 96px auto 0;
}

.company-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-entry {
  display: grid;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
}

.company-name {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  align-items: center;
  cursor: default;
  font: inherit;
  font-weight: 400;
  white-space: nowrap;
}

.company-socials {
  display: flex;
  align-items: center;
}

.site-footer {
  display: flex;
  width: min(100%, 710px);
  margin: auto auto 0;
  padding-top: 64px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  font-size: 14px;
  line-height: 20px;
}

.site-footer .social-link {
  place-items: center start;
}

.contact-link {
  display: flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.social-link svg {
  display: block;
  flex: none;
}

.social-link:focus-visible,
.contact-link:focus-visible,
.home-link:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 24px;
  place-items: center;
}

.error-content {
  display: grid;
  width: min(100%, 480px);
  justify-items: center;
  gap: 48px;
  text-align: center;
}

.error-identity,
.error-message {
  display: grid;
  justify-items: center;
}

.error-identity {
  gap: 16px;
}

.error-message {
  gap: 8px;
}

.error-wordmark {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.error-descriptor,
.error-code,
.error-title,
.error-description {
  margin: 0;
}

.error-descriptor,
.error-code {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.error-descriptor {
  padding-inline-start: 0.42em;
}

.error-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  text-wrap: balance;
}

.error-description {
  max-width: 30ch;
  font-size: 14px;
  line-height: 20px;
  text-wrap: balance;
}

.home-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  font-size: 16px;
  line-height: 24px;
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .social-link,
  .contact-link,
  .home-link {
    transition: opacity 700ms cubic-bezier(0.32, 0.72, 0, 1),
      transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .social-link:hover,
  .contact-link:hover,
  .home-link:hover {
    opacity: 0.56;
  }

  .social-link:hover {
    transform: scale(1.08);
  }

  .social-link:active,
  .contact-link:active,
  .home-link:active {
    transform: scale(0.98);
  }
}

@media (max-width: 40rem) {
  .site-shell {
    padding: 48px 24px 80px;
  }

  .identity-heading {
    gap: 16px;
  }

  .portfolio {
    margin-top: 80px;
  }

  .site-footer {
    padding-top: 48px;
  }

  .five-bays-wordmark {
    width: min(88vw, 480px);
  }

  .company-entry {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .company-socials {
    grid-column: 2;
    grid-row: 1;
  }

  .error-content {
    gap: 32px;
  }
}

@media (max-width: 22rem) {
  .site-shell {
    padding-inline: 16px;
  }

  .five-bays-wordmark {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .five-bays-wordmark,
  .error-wordmark {
    forced-color-adjust: none;
  }
}
