:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0d;
  color: #f2f0eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 72px);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

h1 {
  z-index: 1;
  margin: 0;
  font-size: clamp(32px, 7vw, 100px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.pendulum {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.counter {
  /* Counter text updates should not invalidate the pendulum's layout. */
  contain: layout paint;
  margin: 0;
  padding-top: 65svh;
  font-size: clamp(24px, 8vw, 120px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1.15;
}
