/* praisey.me teaser. Colors from the brand mark (BRAND.md) and the Midnight Rose theme for dark mode. */

@font-face {
  font-family: "Prata";
  src: url("/fonts/prata.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #FFF4F6;
  --ink: #4A1D33;
  --ink-2: #7A4A60;
  --spark: #F7A3BE;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150F17;
    --ink: #F6EAE6;
    --ink-2: #B9A3AE;
    --spark: #C2386C;
  }
}

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

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
}

.mark {
  width: clamp(64px, 13vw, 104px);
  height: auto;
  overflow: visible;
}

.mark-p {
  fill: var(--ink);
}

.mark-spark {
  fill: var(--spark);
  transform-box: fill-box;
  transform-origin: center;
}

h1 {
  margin: 0.28em 0 0;
  font-family: "Prata", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 13vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.line {
  margin: 0.9rem 0 0;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(1.2rem, 3.4vw, 1.65rem);
  line-height: 1.35;
  max-width: 24ch;
}

.soon {
  margin: 2.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

footer {
  padding: 0 16px max(24px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* The one moment of motion: the sparkle arrives once, then stays still. */
@media (prefers-reduced-motion: no-preference) {
  .mark-spark {
    animation: twinkle 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 250ms backwards;
  }
}

@keyframes twinkle {
  from {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
