html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(ellipse at 50% 40%, #efe4d2 0%, #e4d5bd 70%, #d9c8ad 100%);
  color: #2a2019;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  transition: color 2s;
}
canvas { display: block; width: 100vw; height: 100vh; }

#card {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80vw; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
#card.show { opacity: 1; pointer-events: auto; transition-delay: .8s; }
#card h1 { font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0; letter-spacing: .01em; }
#card hr { width: 4rem; border: 0; border-top: 1px solid currentColor; margin: 1.1rem auto 1.2rem; opacity: .7; }
#card p { font-size: clamp(1.1rem, 1.9vw, 1.55rem); margin: 0 0 .5em; }
#card a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

#hint {
  position: fixed; top: 1.5rem; width: 100%; text-align: center;
  font-style: italic; font-size: 1.05rem; opacity: .55; transition: opacity .6s;
  pointer-events: none;
}

#quote {
  position: fixed; left: 1.5rem; bottom: 1.2rem; margin: 0;
  max-width: min(36ch, 70vw); font-size: 1.2rem; line-height: 1.35;
}
#quote p { margin: 0; font-style: italic; }
#quote footer { margin-top: .3rem; font-size: 1.05rem; }

#clock {
  position: fixed; top: 1.2rem; right: 1.5rem;
  display: flex; flex-direction: column; align-items: flex-end; gap: .35rem;
  font-size: 1.05rem; opacity: .75; transition: opacity .3s;
}
#clock:hover { opacity: 1; }
#clock label { display: flex; align-items: center; gap: .6rem; }
#clock span { min-width: 7em; text-align: right; font-variant-numeric: tabular-nums; }
#clock input { width: 9rem; accent-color: currentColor; cursor: pointer; }
#clock button {
  font: inherit; font-style: italic; color: inherit; background: none;
  border: 0; border-bottom: 1px solid currentColor; padding: 0; cursor: pointer;
}

/* phones: the sliders take the top of the screen */
@media (max-width: 700px) { #hint { display: none; } }
