:root {
  --bg: #070707;
  --fg: #f3efe6;
  --muted: rgba(243, 239, 230, 0.52);
  --line: rgba(243, 239, 230, 0.14);
  --glow: rgba(232, 214, 176, 0.16);
  --font-sans: "Satoshi", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: #081018;
  color: var(--fg);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  overflow: hidden;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lake {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  cursor: crosshair;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 16, 24, 0.08) 0%,
    rgba(8, 16, 24, 0) 38%,
    rgba(8, 16, 24, 0.04) 100%
  );
}

.top,
main,
footer {
  position: relative;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.6rem 1.8rem;
}

.mark {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  color: var(--fg);
}

.mark svg {
  width: 100%;
  height: 100%;
}

.brand {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem 3rem;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  animation: rise 1.1s ease both;
}

h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: nowrap;
  animation: rise 1.2s ease 0.08s both;
}

.tm {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.28em;
  letter-spacing: 0.06em;
  vertical-align: super;
  margin-left: 0.18em;
  position: relative;
  top: -0.35em;
}

h1 .tm {
  font-size: 0.18em;
  top: -1.15em;
}

.brand .tm,
footer .tm {
  font-size: 0.55em;
  top: -0.55em;
  margin-left: 0.12em;
}

::selection {
  background: rgba(243, 239, 230, 0.16);
}

.rule {
  width: min(12rem, 40vw);
  height: 1px;
  margin: 1.8rem 0 1.5rem;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  animation: rise 1.2s ease 0.16s both;
}

.lede {
  max-width: 22rem;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  animation: rise 1.2s ease 0.22s both;
}

.chrome {
  position: fixed;
  left: 1.8rem;
  bottom: 4.2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  pointer-events: none;
}

.clock,
.sound,
.now {
  pointer-events: auto;
  appearance: none;
  background: none;
  border: 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.clock {
  font-variant-numeric: tabular-nums;
}

.sound[aria-pressed="true"] {
  color: var(--fg);
}

.sound[aria-pressed="false"] {
  color: var(--muted);
}

.time-panel {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: min(18rem, 70vw);
}

.time-panel[hidden] {
  display: none;
}

.time-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.time-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 11rem;
  height: 2px;
  background: rgba(243, 239, 230, 0.35);
  border-radius: 99px;
  cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fg);
  border: 0;
}

.time-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fg);
  border: 0;
}

.now {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

footer {
  padding: 1.4rem 1.8rem 1.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

@media (prefers-reduced-motion: reduce) {
  .kicker,
  h1,
  .rule,
  .lede {
    animation: none;
  }
}

@media (max-width: 640px) {
  .chrome {
    left: 1.2rem;
    bottom: 3.6rem;
  }
}
