:root {
  --bg: #1a1a1a;
  --fg: #f4f4f4;
  --accent: #ffb347;
  --muted: #888;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --fg: #222;
    --accent: #c87000;
    --muted: #666;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.5rem env(safe-area-inset-bottom, 1.5rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

h1 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
}

#when {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.ago {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
  transition: transform 0.05s ease, opacity 0.2s ease;
}

button:active   { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: default; }

.source {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
  min-height: 1.4em;
}
