/* The night sky, for the pages that live after hours: /thanks and the 404.
   Same tokens, type and pieces as the homepage (home.css), in its night colors. */
:root {
  --ink: #f5efe4; --muted: #c3c9dc; --faint: #9aa2bd; --paper: #fffdf9; --paper-ink: #1d2023; --amber: #c9892e;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased;
  background: #0c1127;
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; overflow-x: hidden;
}
a { color: inherit; }

/* The sky: a fixed layer, so it covers the screen however far the page scrolls */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--sky, linear-gradient(#0c1127, #161d3f 45%, #2b3160 82%, #3a3d69)); }
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
.moon { position: absolute; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset -14px 6px 0 0 #fdf3dc; filter: drop-shadow(0 0 16px #fdf3dc66); }
.cloud { position: absolute; fill: #9aa6d1; opacity: .4; overflow: visible; -webkit-mask-image: linear-gradient(#000 30%, transparent 92%); mask-image: linear-gradient(#000 30%, transparent 92%); animation: drift 120s linear infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .2; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Header and footer */
.bar { display: flex; justify-content: space-between; align-items: center; width: min(1160px, 100% - 32px); margin: 0 auto; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 700 24px/1 'Outfit', var(--sans); letter-spacing: -.035em; }
.bar nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.foot { width: min(1160px, 100% - 32px); margin: 0 auto; padding: 40px 0 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; }
.foot p:first-child { font-family: var(--serif); font-size: 20px; color: var(--ink); }

/* Type */
.stage { width: min(680px, 100% - 32px); margin: 0 auto; padding: clamp(40px, 8vh, 90px) 0 40px; display: grid; justify-items: center; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.kicker b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.kicker::before, .kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.025em; margin-top: 18px; text-wrap: balance; }
h1 em { font-style: italic; }
.lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); max-width: 34em; text-wrap: pretty; }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 34px; }
.gel {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid #b8d6f0; color: #0f2438; font: 600 15px var(--sans); text-decoration: none;
  background: linear-gradient(#d9ecfb, #a9d0f0 55%, #9cc7ea); box-shadow: 0 1px 0 #ffffffb3 inset, 0 6px 18px #5a9fdc40, 0 1px 2px #1d3a5533;
  transition: filter .15s var(--ease), transform .15s var(--ease);
}
.gel:hover { filter: brightness(1.05); }
.gel:active { transform: translateY(1px); }
.link-arrow { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Dollie, and her READY stamp: her face on a white sticker, "ready!" in Outfit (see /brand) */
.buddy { width: 84px; filter: drop-shadow(0 14px 14px #0007); animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.stamp { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; font: 700 15px/1 'Outfit', var(--sans); letter-spacing: -.01em; color: var(--paper-ink); background: #fff; border: 1.5px solid #cfe4f6; border-radius: 999px; padding: .2em .8em .2em .2em; box-shadow: 0 4px 10px #5a9fdc2b; transform: rotate(-4deg); }
.stamp img { width: 1.9em; height: auto; display: block; }
.stamp.lands { opacity: 0; animation: stamp .42s cubic-bezier(.2, 1.4, .4, 1) .7s forwards; }
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.9); } 60% { opacity: 1; } to { opacity: 1; transform: rotate(-4deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .buddy, .cloud, .sky i { animation: none; }
  .stamp.lands { animation: none; opacity: 1; }
}
