:root {
  --bg: #f4f4f4;
  --ink: #1c1c1c;
  --ink-soft: #5e5e5e;
  --ink-faint: #8a8a8a;
  --rule: #d8d8d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --ink: #f0f0f0;
    --ink-soft: #b0b0b0;
    --ink-faint: #868686;
    --rule: #333333;
  }
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px);
}

.card {
  width: 100%;
  max-width: 40rem;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.card.is-ready {
  opacity: 1;
  transform: none;
}

.greeting {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.subline {
  margin: clamp(18px, 3.5vw, 28px) 0 0;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
}

.note {
  margin: clamp(22px, 4vw, 34px) auto 0;
  padding-top: clamp(14px, 2.5vw, 20px);
  max-width: 30rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.note[hidden] { display: none; }

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