* {
	box-sizing: border-box;
}

body {
	display: grid;
	place-items: center;
	min-height: 100vh;
	margin: 0;
	padding: 1.5rem;
	background: #f4f4f6;
	font-family: system-ui, sans-serif;
	color: #1c1c22;
}

.countdown {
	width: min(32rem, 100%);
	padding: 2rem;
	border-radius: 1.5rem;
	background: #ffffff;
	text-align: center;
	box-shadow: 0 10px 30px -15px rgb(0 0 0 / 0.25);
}

.countdown-title {
	margin: 0 0 1.5rem;
	font-size: 1.75rem;
}

.target-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	color: #6b6b76;
}

.target-input {
	padding: 0.5rem 0.75rem;
	border: 2px solid #1c1c22;
	border-radius: 0.75rem;
	font: inherit;
}

.target-input:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

/* Four equal boxes that wrap into two rows on narrow screens. */
.units {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
	gap: 0.75rem;
	margin-top: 2rem;
}

.unit {
	padding: 1rem 0.5rem;
	border-radius: 1rem;
	background: #1c1c22;
	color: #ffffff;
}

/* Every digit the same width, so the numbers don't jiggle as they change. */
.unit-value {
	display: block;
	font-size: 2.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.unit-label {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a5a5b0;
}

.status {
	min-height: 1.5rem;
	margin: 1.5rem 0 0;
	font-weight: 600;
}
