:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09151c;
  color: #f5f8f9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #17323a 0%, #09151c 65%);
}

main {
  width: min(100vw, 177.78vh);
  height: min(100vh, 56.25vw);
  margin: auto;
  padding: 5.5vh 7vw;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  justify-items: center;
  align-items: center;
  gap: 1.5vh;
  text-align: center;
}

.eyebrow {
  color: #80d9cc;
  font-size: clamp(16px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.timer {
  align-self: center;
  color: white;
  font-size: min(23vh, 18vw);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
}

.exercise-block, .next-block { max-width: 86vw; }

h1, h2, p { margin: 0; }
h1 { font-size: clamp(32px, 5vw, 72px); line-height: 1.06; }
h2 { margin-top: .35vh; font-size: clamp(23px, 3.3vw, 46px); }
p { margin-top: .5vh; color: #b3c2c6; font-size: clamp(17px, 2.1vw, 30px); }

.progress-track {
  width: min(72vw, 1200px);
  height: 1.2vh;
  min-height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #21343b;
}

#progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #80d9cc;
  transition: width .2s linear;
}

.preview main { grid-template-rows: auto minmax(0, .8fr) auto auto auto; }
.preview .timer { position: fixed; top: 5vh; right: 6vw; font-size: clamp(32px, 5.8vw, 78px); }
.preview #exercise { color: #80d9cc; }
.idle .timer, .idle .progress-track, .idle .next-block { display: none; }
