.not-found-page {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: min(100%, 900px);
  margin: auto;
  padding: clamp(52px, 9vw, 110px) 0;
}

.not-found-eyebrow {
  margin: 0;
  color: #b44032;
  font: 700 11px/1.2 "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.not-found-page h1 {
  margin: 0;
  max-width: 15ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 72px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

.not-found-intro {
  margin: 0;
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.78;
}

.not-found-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #102e29;
  border-radius: 18px;
  background: #102e29;
}

.not-found-card {
  display: grid;
  min-width: 0;
  min-height: 150px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-content: start;
  padding: 22px;
  background: #f3efdf;
  transition: color 180ms ease, background 180ms ease;
}

.not-found-number {
  grid-column: 1 / -1;
  color: #b44032;
  font: 700 11px/1 "Courier New", monospace;
  letter-spacing: 0.14em;
}

.not-found-card > span:nth-child(2) {
  display: grid;
  gap: 7px;
}

.not-found-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 400;
}

.not-found-card small {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.72;
}

.not-found-action {
  align-self: center;
  color: #b44032;
  font-size: 21px;
}

.not-found-card:hover,
.not-found-card:focus-visible {
  background: #102e29;
  color: #f3efdf;
}

.not-found-card:hover .not-found-number,
.not-found-card:hover .not-found-action,
.not-found-card:focus-visible .not-found-number,
.not-found-card:focus-visible .not-found-action {
  color: #e0a93f;
}

.not-found-card:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #e0a93f;
  outline-offset: -4px;
}

@media (max-width: 720px) {
  .not-found-options {
    grid-template-columns: 1fr;
  }

  .not-found-card {
    min-height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-card {
    transition: none;
  }
}
