@font-face {
  font-family: Lato;
  src: url("./assets/fonts/lato-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("./assets/fonts/lato-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #383b34;
  --muted: #898679;
  --accent: #8d7345;
  font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f5efde;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(125deg, #fffdf6a8, #fffdf487), url("./assets/marble.jpg") center / cover;
  pointer-events: none;
}

.page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 22px 78px;
}

.page-footer {
  position: absolute;
  inset-inline: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 3px;
}

.visitor-count,
.copyright {
  margin: 0;
  color: #898679;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .04em;
  text-align: center;
}

.visitor-count { font-variant-numeric: tabular-nums; }

.card-shell {
  position: relative;
  width: min(100%, 486px);
}

.redirect-card {
  position: relative;
  width: 100%;
  padding: 71px 36px 31px;
  text-align: center;
  background: #fffef9f5;
  border: 1px solid #b49e7833;
  border-radius: 23px;
  box-shadow: 0 24px 70px -32px #6a592747, 0 3px 15px #7d6c2210, inset 0 1px #fff;
  animation: arrive 850ms cubic-bezier(.2,.7,.2,1) both;
}

.emblem {
  position: absolute;
  top: -109px;
  left: 50%;
  width: 190px;
  transform: translateX(-50%);
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: emblem-arrive 850ms cubic-bezier(.2,.7,.2,1) both;
}

.emblem img {
  display: block;
  width: 100%;
  height: auto;
}

.school-wordmark {
  display: block;
  width: min(100%, 298px);
  height: auto;
  margin: 0 auto 29px;
  mix-blend-mode: multiply;
  opacity: .87;
}

.countdown-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .02em;
}

.countdown {
  min-width: .55em;
  color: var(--accent);
  font-size: 42px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown.tick { animation: number-arrive 350ms ease-out both; }

.destination {
  margin: 16px 0 0;
  color: #787a6e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .025em;
}

.years {
  display: inline-block;
  margin-left: 6px;
  letter-spacing: .025em;
}

.progress-track {
  height: 2px;
  margin: 30px 30px 24px;
  overflow: hidden;
  border-radius: 10px;
  background: #b8ab8a24;
}

.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d9c89c, #ab9161);
  transform-origin: left center;
  transition: transform 120ms linear;
}

.thanks {
  margin: 0 0 22px;
  color: #77766b;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: .025em;
}

.thanks-heading,
.contributors,
.dedication { display: inline; }
.contributors { margin-top: 2px; color: #6f5e3c; }
.dedication { margin-top: 3px; color: #89806c; font-size: 12px; }

.fallback {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .02em;
}

.fallback a {
  display: inline-block;
  margin-left: 5px;
  color: #716344;
  text-decoration: underline;
  text-decoration-color: #a6916560;
  text-underline-offset: 5px;
  transition: color 180ms, text-decoration-color 180ms;
}

.fallback a:hover { color: #423a27; text-decoration-color: currentColor; }
.fallback a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.link-arrow { display: inline-block; margin-left: 4px; font-size: 14px; }
.noscript-note { font-size: 12px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

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

@keyframes number-arrive {
  from { opacity: .35; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes emblem-arrive {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 480px) {
  .page { padding-inline: 20px; }
  .redirect-card { padding: 67px 22px 28px; border-radius: 20px; }
  .emblem { width: 175px; top: -101px; }
  .school-wordmark { width: 260px; margin-bottom: 26px; }
  .countdown-heading { font-size: 20px; gap: 6px; }
  .countdown { font-size: 38px; }
  .destination { font-size: 13px; margin-top: 16px; }
  .years { margin-left: 5px; }
  .progress-track { margin-inline: 12px; }
}

@media (max-width: 350px) {
  .redirect-card { padding-inline: 16px; }
  .countdown-heading { font-size: 18px; }
  .destination { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
