@font-face {
  font-family: "BerkeleyMono";
  src: url("fonts/BerkeleyMono-Regular.woff2");
}

body {
  --text-color: #171717;
  --bkg-color: #d4d4d4;
}
body.dark-theme {
  --text-color: #e5e5e5;
  --bkg-color: #0a0a0a;
}

@media (prefers-color-scheme: dark) {
  body {
    --text-color: #e5e5e5;
    --bkg-color: #0a0a0a;
  }
  body.light-theme {
    --text-color: #171717;
    --bkg-color: #d4d4d4;
  }
}

body {
  background: var(--bkg-color);
  margin: 0;
  padding: 0;
}

nav {
  display: flex;
  justify-content: flex-end;
}

button.theme-toggle {
  margin: 1em;
  cursor: pointer;
}

main {
  position: absolute;
  top: 0;
  pointer-events: none;
  font-family: "BerkeleyMono", monospace, serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

#clock {
  color: var(--text-color);
  font-size: min(95vh, 34vw);
  letter-spacing: -0.075em;
}

main .details {
  color: rgba(102,102,102,0.40);
  font-size: 3.5vmin;
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin: -1.25em auto;
}

#timer {
  width: 9ch;
  text-align: center;
}

@media (min-aspect-ratio: 16/10) {
  main .details {
    display: none;
  }
}
