/* ─────────────────────────────────────────────
   Adam Mikkelsen — Collected Wisdom
   Clean, quiet, Apple-like.
   ───────────────────────────────────────────── */

:root {
  --bg: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #86868b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --ink: #f5f5f7;
    --muted: #86868b;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.5rem, 8vw, 6rem);
}

.quote {
  max-width: min(92vw, 1000px);
  text-align: center;
  user-select: none;
  /* enter: long, decelerating, Apple-sheet feel */
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote.is-leaving {
  /* leave: shorter, accelerating out */
  transition-duration: 0.4s, 0.4s, 0.4s;
  transition-timing-function: cubic-bezier(0.55, 0.06, 0.68, 0.19);
  opacity: 0;
  transform: translateY(-12px) scale(0.99);
  filter: blur(8px);
}

.quote.is-entering {
  opacity: 0;
  transform: translateY(16px) scale(1.005);
  filter: blur(8px);
  transition: none;
}

.quote blockquote {
  font-size: clamp(1.9rem, 5.4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin: 0 auto;
}

.quote figcaption {
  margin-top: 1.6rem;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: var(--muted);
}

.quote figcaption::before { content: "— "; }

.colophon {
  padding: 1.6rem;
  text-align: center;
}

.colophon p {
  font-size: 0.75rem;
  color: var(--muted);
}

.colophon .hint {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: opacity 0.6s ease;
}

.colophon .hint.is-hidden { opacity: 0; }

.colophon .game-link a {
  color: var(--muted);
  text-decoration: none;
}

.colophon .game-link a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .quote { transition: none; }
}
