:root {
  --paper: #f7f6f3; /* bone/ivory, not pure white */
  --ink: #111111;   /* nearly-black */
  --emboss-light: rgba(255, 255, 255, 0.7);
  --emboss-dark:  rgba(0, 0, 0, 0.06);
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  place-items: center;
}

.card {
  display: grid;
  gap: 0.5rem;
  text-align: center;
  padding: 0 2rem;
}

h1 {
  margin: 0;
  font-family: "Didot", "Bodoni 72", "Didot LT STD", "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  user-select: none;
  text-shadow:
    0.6px 0.6px 0 var(--emboss-dark),
   -0.6px -0.6px 0 var(--emboss-light);
}

#tagline {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.01em;
  opacity: 0.85;
  user-select: none;
  text-shadow:
    0.4px 0.4px 0 var(--emboss-dark),
   -0.4px -0.4px 0 var(--emboss-light);
}

/* During scrambling, temporarily use a mono look (terminal vibe) */
#tagline.scrambling {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #tagline { transition: none !important; }
}

@supports (height: 100svh) {
  body { min-height: 100svh; }
}

@page { margin: 25mm; }
@media print {
  body { background: #fff; }
  .card { gap: 0.35rem; }
  #tagline, h1 { text-shadow: none; opacity: 1; }
}