:root {
  --bg: #f5f4f0;
  --ink: #1f2933;
  --muted: #5f6b76;
  --accent: #2a6f97;
  --done: #2d6a4f;
  --card: #ffffff;
  --border: #d7d2c6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #faf8f2 0%, var(--bg) 65%);
}

main {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 20px 48px;
}

h1 {
  font-family: "IBM Plex Serif", "Georgia", serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.timer {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(31, 41, 51, 0.06);
  transition: transform 160ms ease, border-color 160ms ease;
  width: 100%;
}

.timer:hover {
  transform: translateY(-2px);
  border-color: #c2bcae;
}

.label {
  font-weight: 600;
  margin-bottom: 8px;
}

.mode {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.time {
  font-size: clamp(16px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.timer.countup .time {
  color: var(--done);
}

.timer.done .time {
  color: var(--done);
}

.timer.done .meta::after {
  content: " • reached";
  color: var(--done);
  font-weight: 600;
}
