.header-clock{
  display:inline-flex;
  align-items:center;
  gap:3px;
  min-width:154px;
  color:#253a30;
  font-variant-numeric:tabular-nums;
  font-size:20px;
  font-weight:800;
  letter-spacing:0;
  text-align:center;
  perspective:500px;
}

.header-clock span{
  position:relative;
  display:grid;
  place-items:center;
  width:19px;
  height:29px;
  border-radius:3px;
  background:linear-gradient(to bottom,#fff 0 48%,#edf1ee 49% 51%,#fafcfb 52% 100%);
  box-shadow:0 3px 7px #17251e22;
  transform-style:preserve-3d;
  backface-visibility:hidden;
}

.header-clock span.flip{
  transform-origin:50% 0;
  animation:calendar-flip .62s cubic-bezier(.22,.72,.28,1);
}

.header-clock i{
  margin:0 1px;
  color:#a68125;
  font-style:normal;
  animation:clock-colon 1s steps(1,end) infinite;
}

@keyframes calendar-flip{
  0%{transform:rotateX(-92deg);filter:brightness(.72);opacity:.25}
  58%{transform:rotateX(12deg);filter:brightness(1.05);opacity:1}
  78%{transform:rotateX(-5deg)}
  100%{transform:rotateX(0);filter:brightness(1)}
}

@keyframes clock-colon{
  0%,49%{opacity:1}
  50%,100%{opacity:.35}
}

@media(max-width:760px){
  .header-clock{min-width:128px;gap:2px;font-size:17px}
  .header-clock span{width:16px;height:25px}
}

@media(max-width:520px){
  .header-clock{display:none}
}

@media(prefers-reduced-motion:reduce){
  .header-clock span.flip,.header-clock i{animation:none}
}
