:root {
  color-scheme: light;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-synthesis: none;
  --sky: #dff3ff;
  --sky-deep: #c5e9fb;
  --ink: #12304a;
  --muted: #52728c;
  --line: rgba(18, 48, 74, 0.14);
  --accent: #087ea4;
  --signal: #21a179;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--sky);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(223, 243, 255, 0.78);
  pointer-events: none;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 40px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: block;
  border: 2px solid rgba(18, 48, 74, 0.18);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 20px rgba(18, 48, 74, 0.14);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  font-size: 28px;
}

.brand-suffix {
  color: #006f94;
  font-size: 24px;
  font-weight: 800;
}

.clock {
  width: 100%;
  align-self: center;
  text-align: center;
  padding: 36px 0 48px;
}

.clock h1 {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.time {
  display: block;
  min-height: 1.1em;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(72px, 13vw, 176px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 14px 38px rgba(18, 48, 74, 0.09);
}

.date {
  min-height: 1.5em;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.5;
  letter-spacing: 0;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 26px;
  padding: 0 22px;
  border: 1px solid rgba(18, 48, 74, 0.18);
  border-radius: 6px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(18, 48, 74, 0.14);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.download-link:hover {
  background: #087ea4;
  box-shadow: 0 12px 28px rgba(8, 126, 164, 0.2);
  transform: translateY(-1px);
}

.download-link:focus-visible {
  outline: 3px solid rgba(8, 126, 164, 0.28);
  outline-offset: 3px;
}

.status {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(33, 161, 121, 0.12);
}

.status-divider {
  width: 1px;
  height: 13px;
  margin: 0 2px;
  background: var(--line);
}

@media (max-width: 640px) {
  body {
    background-size: 40px 40px;
  }

  .page-shell {
    width: min(100% - 32px, 1180px);
    padding: 24px 0 24px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-suffix {
    font-size: 19px;
  }

  .clock {
    padding-bottom: 24px;
  }

  .clock h1 {
    margin-bottom: 18px;
  }

  .time {
    font-size: clamp(46px, 15vw, 78px);
  }

  .date {
    margin-top: 20px;
  }

  .download-link {
    margin-top: 22px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .page-shell {
    padding: 18px 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .clock {
    padding: 12px 0 18px;
  }

  .clock h1 {
    margin-bottom: 12px;
  }

  .date {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .clock,
  .status {
    animation: enter 620ms ease-out both;
  }

  .clock {
    animation-delay: 90ms;
  }

  .status {
    animation-delay: 180ms;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
