:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --ink: #171717;
  --muted: #737373;
  --track: #e5e5e5;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
main { min-height: 100vh; min-height: 100svh; padding: clamp(24px, 5vw, 56px) 20px; }
.clock { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(28px, 5vh, 48px); max-width: 1000px; margin: auto; }
#digital { font-size: clamp(1.125rem, 3vw, 1.5rem); font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--muted); }
h1 { width: 100%; margin: 0; font-size: clamp(2rem, 6.5vw, 5.5rem); font-weight: 500; line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; overflow-wrap: anywhere; }
.hour-word { display: block; }
.dial { position: relative; width: min(80vw, 360px); aspect-ratio: 1; flex-shrink: 0; }
.dial svg { display: block; width: 100%; height: 100%; }
.dial circle { fill: none; stroke-width: 24; }
.track { stroke: var(--track); }
#progress { stroke: var(--ink); stroke-dasharray: 0 60; transform: rotate(-90deg); transform-origin: 200px 200px; }
.tick { stroke: var(--muted); stroke-width: 1; }
.tick.major { stroke: var(--ink); stroke-width: 2; }
.dial-labels { fill: var(--muted); font-size: 16px; text-anchor: middle; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.fraction { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: clamp(1.75rem, 6vw, 3rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.fraction-top { min-width: 1.6em; padding: 0 .15em .12em; border-bottom: 1px solid currentColor; }
.fraction-bottom { padding-top: .12em; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111111; --ink: #ededed; --muted: #999999; --track: #303030; }
}
