:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #17233f;
  background: #edf4ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  isolation: isolate;
  background:
    linear-gradient(rgba(31, 78, 168, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 78, 168, 0.045) 1px, transparent 1px),
    #edf4ff;
  background-size: 42px 42px;
}

.page-shell::before {
  position: absolute;
  z-index: -1;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  content: "";
  filter: blur(2px);
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
}

.orb--one {
  top: -90px;
  right: -70px;
  width: 300px;
  height: 300px;
  background: rgba(77, 147, 255, 0.2);
}

.orb--two {
  bottom: -110px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: rgba(37, 89, 190, 0.13);
}

.card {
  width: min(100%, 760px);
  padding: clamp(38px, 7vw, 72px);
  text-align: center;
  border: 1px solid rgba(31, 78, 168, 0.1);
  border-radius: 32px;
  background: rgba(250, 252, 255, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 80px rgba(31, 66, 130, 0.13);
  backdrop-filter: blur(18px);
  animation: arrive 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(42px, 8vw, 68px);
  color: #65738f;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #367bf5;
  box-shadow: 0 0 0 4px rgba(54, 123, 245, 0.14);
}

.copy h1 {
  min-height: 1.2em;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.7rem, 11vw, 7.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.copy h1 em {
  color: #367bf5;
  font-weight: inherit;
}

.copy h1.is-changing {
  animation: change 420ms ease;
}

.copy p {
  max-width: 440px;
  margin: 26px auto 0;
  color: #68748b;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.7;
}

#greeting-toggle {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  padding: 9px 10px 9px 22px;
  color: #fffdf8;
  border: 0;
  border-radius: 999px;
  background: #174ea6;
  box-shadow: 0 10px 24px rgba(23, 78, 166, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

#greeting-toggle:hover {
  background: #2468cf;
  box-shadow: 0 13px 30px rgba(23, 78, 166, 0.27);
  transform: translateY(-2px);
}

#greeting-toggle:active {
  transform: translateY(0);
}

#greeting-toggle:focus-visible {
  outline: 3px solid rgba(54, 123, 245, 0.42);
  outline-offset: 4px;
}

.button__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.button__icon {
  display: grid;
  width: 36px;
  height: 36px;
  color: #174ea6;
  border-radius: 50%;
  background: #bcd5ff;
  font-size: 1.1rem;
  place-items: center;
  transition: transform 250ms ease;
}

#greeting-toggle:hover .button__icon {
  transform: rotate(45deg);
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 48px;
  color: #8290a9;
  font-size: 0.75rem;
}

.status span {
  color: #367bf5;
}

.footer {
  position: absolute;
  bottom: 22px;
  margin: 0;
  color: #8491a8;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}

@keyframes change {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  45% {
    opacity: 0;
    transform: translateY(-8px);
  }
  55% {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

  .card {
    padding: 42px 22px;
    border-radius: 24px;
  }

  .eyebrow {
    margin-bottom: 44px;
  }

  .status {
    margin-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
