/* Olga Gipich 404: turn a dead end into useful product discovery. */

.og-not-found {
  width: 100%;
  padding: 0 0 96px;
  background: var(--og-paper);
}

.og-not-found-hero {
  width: var(--og-container);
  min-height: min(720px, calc(100vh - 92px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(54px, 8vw, 128px);
  align-items: center;
}

.og-not-found-copy {
  max-width: 720px;
}

.og-not-found-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(52px, 5.6vw, 82px);
  line-height: .98;
}

.og-not-found-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--og-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

.og-not-found-search {
  max-width: 680px;
  margin-top: 36px;
}

.og-not-found-search > label {
  display: block;
  margin-bottom: 10px;
  color: var(--og-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.og-not-found-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(36, 31, 28, .28);
  background: var(--og-white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.og-not-found-search > div:focus-within {
  border-color: var(--og-berry);
  box-shadow: 0 0 0 3px rgba(107, 38, 63, .09);
}

.og-not-found-search input {
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--og-ink);
  font: 15px/1.2 "Manrope", Arial, sans-serif;
}

.og-not-found-search input::placeholder {
  color: #9a918a;
  opacity: 1;
}

.og-not-found-search button {
  min-width: 126px;
  padding: 0 20px;
  border: 0;
  background: var(--og-ink);
  color: #fff;
  font: 600 12px/1 "Manrope", Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}

.og-not-found-search button:hover,
.og-not-found-search button:focus-visible {
  background: var(--og-berry);
  outline: 0;
}

.og-not-found-search button span {
  margin-left: 8px;
  font-size: 16px;
}

.og-not-found-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  align-items: center;
}

.og-not-found-mark {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 38, 63, .12);
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 253, 249, .72) 0 2px, transparent 3px),
    linear-gradient(145deg, #eadfd5, #d9c1c0);
}

.og-not-found-mark::before,
.og-not-found-mark::after {
  position: absolute;
  border: 1px solid rgba(107, 38, 63, .22);
  border-radius: 50%;
  content: "";
}

.og-not-found-mark::before {
  width: 310px;
  height: 310px;
  transform: rotate(-11deg) scaleY(.58);
}

.og-not-found-mark::after {
  width: 255px;
  height: 255px;
  transform: rotate(22deg) scaleY(.72);
}

.og-not-found-code {
  position: relative;
  z-index: 2;
  color: var(--og-berry-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(94px, 11vw, 164px);
  font-weight: 400;
  letter-spacing: -.09em;
  line-height: 1;
}

.og-not-found-thread {
  position: absolute;
  z-index: 3;
  right: -42px;
  bottom: 72px;
  width: 74%;
  height: 92px;
  border-top: 2px solid var(--og-berry);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.og-not-found-thread::before {
  position: absolute;
  top: -9px;
  left: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--og-berry);
  border-radius: 50%;
  content: "";
}

.og-not-found-mark small {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  color: var(--og-berry-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.og-not-found-routes,
.og-not-found-products {
  width: var(--og-container);
  margin: 0 auto;
  padding: 96px 0 0;
  border-top: 1px solid var(--og-line);
}

.og-not-found-section-heading,
.og-not-found-products-heading {
  margin-bottom: 40px;
}

.og-not-found-section-heading h2,
.og-not-found-products-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
}

.og-not-found-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.og-not-found-route {
  min-height: 310px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--og-line);
  background: var(--og-cream);
  color: var(--og-ink);
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.og-not-found-route:hover,
.og-not-found-route:focus-visible {
  border-color: rgba(107, 38, 63, .55);
  box-shadow: 0 18px 42px rgba(44, 30, 25, .08);
  outline: 0;
  transform: translateY(-4px);
}

.og-not-found-route > span {
  color: var(--og-berry);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}

.og-not-found-route strong {
  margin-top: 48px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}

.og-not-found-route p {
  max-width: 360px;
  margin: 18px 0 28px;
  color: var(--og-muted);
  font-size: 14px;
  line-height: 1.65;
}

.og-not-found-route em {
  margin-top: auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.og-not-found-route--berry {
  border-color: var(--og-berry);
  background: var(--og-berry);
  color: #fff;
}

.og-not-found-route--berry > span,
.og-not-found-route--berry p {
  color: rgba(255, 255, 255, .74);
}

.og-not-found-route--berry:hover,
.og-not-found-route--berry:focus-visible {
  border-color: var(--og-berry-dark);
  background: var(--og-berry-dark);
}

.og-not-found-products {
  margin-top: 104px;
  padding-top: 96px;
}

.og-not-found-products-heading {
  display: flex;
  gap: 36px;
  align-items: end;
  justify-content: space-between;
}

.og-not-found-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.og-not-found-help {
  width: var(--og-container);
  margin: 112px auto 0;
  padding: clamp(42px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 52px;
  align-items: center;
  background: var(--og-berry-dark);
  color: #fff;
}

.og-not-found-help .og-eyebrow,
.og-not-found-help h2 {
  color: #fff;
}

.og-not-found-help h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
}

.og-not-found-help p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 980px) {
  .og-not-found-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .68fr);
    gap: 44px;
  }

  .og-not-found-mark {
    min-height: 400px;
  }

  .og-not-found-route-grid {
    grid-template-columns: 1fr;
  }

  .og-not-found-route {
    min-height: 0;
  }

  .og-not-found-route strong {
    margin-top: 32px;
  }
}

@media (max-width: 760px) {
  .og-not-found {
    padding-bottom: 64px;
  }

  .og-not-found-hero {
    width: min(100% - 32px, 680px);
    padding: 44px 0 72px;
    display: flex;
    flex-direction: column;
    gap: 42px;
    align-items: stretch;
  }

  .og-not-found-copy h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .og-not-found-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .og-not-found-search {
    margin-top: 30px;
  }

  .og-not-found-search > div {
    grid-template-columns: minmax(0, 1fr) 94px;
  }

  .og-not-found-search input {
    height: 56px;
    padding: 0 14px;
    font-size: 14px;
  }

  .og-not-found-search button {
    min-width: 0;
    padding: 0 12px;
    font-size: 10px;
  }

  .og-not-found-search button span {
    display: none;
  }

  .og-not-found-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .og-not-found-mark {
    min-height: 290px;
  }

  .og-not-found-mark::before {
    width: 240px;
    height: 240px;
  }

  .og-not-found-mark::after {
    width: 200px;
    height: 200px;
  }

  .og-not-found-code {
    font-size: clamp(92px, 30vw, 132px);
  }

  .og-not-found-routes,
  .og-not-found-products,
  .og-not-found-help {
    width: min(100% - 32px, 680px);
  }

  .og-not-found-routes,
  .og-not-found-products {
    padding-top: 68px;
  }

  .og-not-found-products {
    margin-top: 76px;
  }

  .og-not-found-products-heading {
    display: block;
  }

  .og-not-found-products-heading .og-text-link {
    margin-top: 24px;
  }

  .og-not-found-product-grid {
    grid-template-columns: 1fr;
  }

  .og-not-found-help {
    margin-top: 76px;
    padding: 38px 24px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .og-not-found-help .og-button {
    width: 100%;
  }
}

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