@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #33332f;
  background: #fbfaf8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 18%, rgb(245 224 218 / 52%), transparent 32rem),
    radial-gradient(ellipse at 88% 82%, rgb(220 232 224 / 62%), transparent 34rem),
    #fbfaf8;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 24px 24px;
}

.card {
  position: relative;
  width: min(100%, 760px);
  min-height: 490px;
  overflow: hidden;
  padding: clamp(40px, 8vw, 82px);
  border: 1px solid rgb(85 78 68 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 24px 80px rgb(75 68 59 / 7%);
}

.sparkle {
  position: absolute;
  top: 38px;
  right: 42px;
  color: #b6a48b;
  font-size: 30px;
}

.eyebrow {
  margin: 0 0 28px;
  color: #89847a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(64px, 12vw, 112px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.98;
}

.period {
  color: #c4937f;
}

.divider {
  width: 42px;
  height: 1px;
  margin: 36px 0 22px;
  background: #cdb9a8;
}

.status {
  max-width: 400px;
  margin: 0;
  color: #77746e;
  font-size: 14px;
  line-height: 1.8;
}

.card-index {
  position: absolute;
  right: 42px;
  bottom: 36px;
  color: #a7a198;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.page-note {
  position: absolute;
  bottom: 22px;
  color: #969188;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.error-card h1 {
  font-size: clamp(54px, 10vw, 88px);
}

.home-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: #655e54;
  font-size: 13px;
  font-weight: 600;
  text-decoration-color: #cdb9a8;
  text-underline-offset: 5px;
}

.home-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid #9a7969;
  outline-offset: 5px;
}

@media (max-width: 560px) {
  .page {
    padding: 24px 16px 48px;
  }

  .card {
    min-height: 430px;
    padding: 56px 32px;
  }

  .sparkle {
    top: 24px;
    right: 26px;
    font-size: 24px;
  }

  .status {
    font-size: 13px;
  }

  .card-index {
    right: 28px;
    bottom: 24px;
  }

  .page-note {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: arrive 700ms ease-out both;
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
