:root {
  --blue: #024771;
  --light-blue: #86b1cb;
  --green: #2f6b25;
  --light-green: #6ab35e;
  --dark-green: #205217;
  --ink: #0f2430;
  --muted: #4a6572;
  --paper: #f7faf8;
  --paper-deep: #e8f0ec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 70% 15%, rgba(134, 177, 203, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 20% 85%, rgba(106, 179, 94, 0.18), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, var(--paper) 45%, var(--paper-deep) 100%);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

html.pending .page {
  visibility: hidden;
}

.page {
  width: min(100%, 36rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  margin: 0 0 2.5rem;
  width: min(100%, 28rem);
  animation: rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  /* Knock out the baked-in black logo plate on the light page */
  mix-blend-mode: lighten;
}

.message {
  max-width: 24rem;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.message h2 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.5vw, 1.65rem);
  letter-spacing: -0.015em;
  color: var(--dark-green);
}

.message p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .message {
    animation: none;
  }
}
