:root {
  --bg: #0d1014;
  --text: #e6edf3;
  --text-dim: #6b7783;
  --text-dimmer: #3d4651;
  --border: #1f252d;
  --accent: #f37426;
  --accent-glow: rgba(243, 116, 38, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

header {
  text-align: center;
  margin-bottom: 36px;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

h2 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.clock-frame {
  display: inline-block;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 14px 28px;
  min-width: 220px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.clock {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px var(--accent-glow);
}

.phase {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.timeline {
  position: relative;
  height: 720px;
  overflow: hidden;
}

/* padding-top sets where row 0 begins. Combined with row height (60px), row 0's
   vertical center sits at padding-top + 30, which is where we anchor the marker
   so "the top of the hour" lines up with the middle of the hour number. */
#timeline-rows {
  position: relative;
  padding-top: 30px;
  transition: transform 0.5s linear;
  will-change: transform;
}

.timeline-fade {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.timeline-fade-top {
  top: 0;
  height: 30px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

.timeline-fade-bottom {
  bottom: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 50%, transparent 100%);
}

.timeline-marker {
  position: absolute;
  left: -1px;
  width: 22px;
  height: 2px;
  top: 60px;
  margin-top: -1px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent), 0 0 18px var(--accent-glow);
  z-index: 3;
  pointer-events: none;
}

.timeline-row {
  height: 60px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  gap: 12px;
  padding-right: 4px;
}

.timeline-tick {
  width: 10px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.timeline-hour {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.timeline-row.current .timeline-hour {
  color: var(--text);
  font-weight: 600;
}

.timeline-meta {
  font-size: 12px;
  color: var(--text-dimmer);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.timeline-row.current .timeline-meta {
  color: var(--text-dim);
}

footer {
  margin-top: 48px;
  text-align: center;
  color: var(--text-dimmer);
  font-size: 11px;
  line-height: 1.7;
}

footer p { margin: 4px 0; }

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}
