/* Targeted production polish layered over the recovered site stylesheet. */
:root {
  --orange-text: #b84200;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

#main-content:focus {
  outline: none;
}

.wordmark,
.site-header nav a,
.contact-details > a:not(.button) {
  transition: color 160ms ease;
}

.wordmark:hover,
.site-header nav a:hover,
.text-link:hover,
.contact-details > a:not(.button):hover {
  color: var(--orange-text);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button--orange {
  color: #08281f;
}

.skip-link {
  color: #08281f;
}

.system-code,
.state-grid article > span {
  color: #78a092;
}

.text-link {
  transition: color 160ms ease, transform 160ms ease;
}

.text-link:active {
  transform: translateX(2px);
}

/* Branded static 404. */
.not-found-page {
  min-height: 100dvh;
  background: var(--cream);
}

.not-found {
  min-height: calc(100dvh - 218px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  border-bottom: 1px solid var(--line);
}

.not-found__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(5rem, 9vw, 9rem) clamp(2rem, 7vw, 7rem);
}

.not-found__copy h1 {
  max-width: 9ch;
  margin: 1.5rem 0 0;
  color: var(--ink);
  font-family: Barlow Condensed, Arial Narrow, sans-serif;
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.84;
  text-transform: uppercase;
}

.not-found__copy > p:not(.kicker) {
  max-width: 36rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  line-height: 1.45;
}

.not-found__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.not-found__panel::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 48%,
    #ffffff0a 48%,
    #ffffff0a 52%,
    transparent 52%
  );
  background-size: 2.5rem 2.5rem;
  content: "";
  pointer-events: none;
}

.not-found__panel span,
.not-found__panel strong {
  position: relative;
}

.not-found__panel span {
  align-self: flex-end;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.not-found__panel strong {
  font-family: Barlow Condensed, Arial Narrow, sans-serif;
  font-size: clamp(8rem, 20vw, 19rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.72;
}

@media (max-width: 850px) and (min-width: 761px) {
  .manufacturers {
    grid-template-columns: minmax(0, 1fr);
  }

  .manufacturer-intro {
    padding-bottom: 3rem;
  }

  .manufacturer-list {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .not-found {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .not-found__copy {
    min-height: 34rem;
    padding: 5rem 1.25rem 4.5rem;
  }

  .not-found__copy h1 {
    font-size: clamp(4.5rem, 22vw, 7rem);
  }

  .not-found__panel {
    min-height: 18rem;
    padding: 2rem 1.25rem;
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 0.5rem;
  }

  .wordmark {
    font-size: 19px;
  }

  .site-header nav a:last-of-type {
    padding: 7px 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .site-header nav a,
  .contact-details > a:not(.button),
  .text-link {
    transition: none;
  }
}
