@font-face { font-family: "Geist"; src: url("fonts/geist-sans.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
/*
 * R.I.P. Meow: one screen, no scrolling. The same plain black Meow wears when it is not wearing a season (no Halloween
 * orange), the same Geist, the same tight tracking, the same pale-to-grey headline and the same light spring. Everything
 * rises in one after another, the way Meow's pages do.
 */

:root {
  --bg: #070708;
  --ink: #f4f4f6;
  --ink-2: rgba(244, 244, 246, 0.66);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  /* A light spring: it overshoots a hair and settles. */
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.2 3.5%, 0.52 8.5%, 0.8 14%, 0.97 20%, 1.04 27%, 1.045 33%, 1.02 42%, 1.004 52%, 0.998 66%, 1); }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { position: relative; min-height: 100%; overflow: hidden; }
::selection { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ------------------------------------------------------------------------- */
/* The sky: a quiet light at the top, and the grain over everything          */
/* ------------------------------------------------------------------------- */

.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; animation: sky-in 2.2s ease both; }
.sky::before { content: ""; position: absolute; left: 50%; top: -34%; width: 120vmax; height: 80vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent 70%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: sky-in 2.2s ease both; }
@keyframes sky-in { from { opacity: 0; } }

/* ------------------------------------------------------------------------- */
/* The page                                                                  */
/* ------------------------------------------------------------------------- */

.stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; padding: 24px clamp(18px, 4vw, 64px); text-align: center; }

/* the stone: as big as the screen allows */
.stone { margin: 0 0 clamp(6px, 1.6vmin, 18px); font: 400 clamp(120px, min(46vw, 38vh), 360px)/1 var(--emoji); user-select: none; -webkit-user-select: none; }

/* the name: Meow's headline (light, tight, white fading to grey) */
.name { margin: 0; padding: 0.04em 0.06em 0.12em; font-weight: 400; font-size: clamp(52px, min(12.5vw, 10.5vh), 120px); line-height: 0.98; letter-spacing: -0.058em; text-wrap: balance; background: linear-gradient(180deg, #ffffff 34%, #9d9d9d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the years: the same, a step down and quieter */
.dates { margin: clamp(2px, 0.6vmin, 8px) 0 0; font-weight: 400; font-size: clamp(26px, min(5.6vw, 5.6vh), 64px); line-height: 1.05; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* the last line: Meow's subtitle */
.missed { margin: clamp(14px, 3.2vmin, 32px) 0 0; color: #8f8f8f; font-size: clamp(17px, min(2.6vw, 2.6vh), 26px); line-height: 1.55; letter-spacing: -0.01em; text-wrap: balance; }

/* ------------------------------------------------------------------------- */
/* Coming in: each piece rises, clears and settles on the spring, one after another */
/* ------------------------------------------------------------------------- */

/* (the move rides the spring, the fade and the blur an ease: a spring overshoots, and a blur cannot go below nothing) */
.rise { animation: rise-move var(--t, 1.25s) var(--spring) var(--d, 0s) both, rise-clear 0.9s ease var(--d, 0s) both; }
@keyframes rise-move { from { transform: translateY(var(--dy, 16px)) scale(var(--s, 1)); } to { transform: none; } }
@keyframes rise-clear { from { opacity: 0; filter: blur(var(--blur, 10px)); } to { opacity: 1; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .sky, .grain { animation: none; }
}
@media (max-height: 420px) {
  .stone { font-size: clamp(64px, 26vh, 112px); }
}
