@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/jakarta.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}

:root {
  --sky: #6fa8de;
  --paper: 251 251 250;
  --ink: 21 21 21;
  color-scheme: light;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--sky);
}

body {
  position: relative;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  touch-action: none;
  background: linear-gradient(#3a78c4, #9cc4e2 58%, #cfe2ee 66%, #5f8a34 66.2%, #2f4f24);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.tab {
  position: absolute;
  top: 0;
  left: clamp(16px, 5vw, 72px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 1.15em 1em 0.85em;
  color: rgb(var(--ink));
  background: rgb(var(--paper));
  font-size: clamp(13px, min(1.1vw, 2vh), 19px);
}

h1 {
  margin: 0;
  font-size: 1em;
  line-height: 1;
}

.logo {
  display: block;
  width: 8.6em;
  height: auto;
  fill: currentColor;
}

.clock {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  padding-top: 0.6em;
  border-top: 1px solid rgb(var(--ink) / 0.22);
  font-size: 1em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hm {
  font-size: 1.5em;
}

.sec {
  color: rgb(var(--ink) / 0.5);
  font-size: 0.85em;
  font-weight: 500;
}

.zone {
  margin-left: auto;
  padding-left: 0.8em;
  color: rgb(var(--ink) / 0.62);
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html:not(.js) .clock {
  display: none;
}

.logo-v {
  display: none;
}

@media (max-width: 600px) {
  .tab {
    left: 18px;
    align-items: center;
    gap: 14px;
    width: 52px;
    padding: 18px 0 14px;
    font-size: 16px;
  }

  .logo-h {
    display: none;
  }

  .logo-v {
    display: block;
    width: 26px;
  }

  .clock {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 34px;
    padding-top: 12px;
  }

  .hm {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
  }

  .sep {
    display: none;
  }

  .sec {
    font-size: 12px;
  }

  .zone {
    margin: 0;
    padding: 0;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}

::selection {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
}
