/* The waiting screen every page ships with until the launch records exist in DNS.
   Scoped to .waiting so the live page's own stylesheet is untouched once it swaps in. */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body:has(> .waiting) {
  margin: 0;
  background: #f9f9f6;
}

.waiting {
  --w-ground: #f9f9f6;
  --w-green: #0b2f2d;
  --w-brass: #c9a23f;
  --w-muted: #4b5a5b;

  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 48px 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0;
  text-align: center;
  background: var(--w-ground) url("plates/ground-paper.png") repeat;
  background-size: 270px 200px;
  color: var(--w-green);
  font-family: "Rubik", system-ui, sans-serif;
}

.waiting ::selection {
  background: var(--w-brass);
  color: var(--w-green);
}

.waiting-mark {
  width: clamp(72px, 9vw, 104px);
  height: auto;
  transform-origin: 50% 6%;
  animation: waiting-settle 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.waiting-name {
  margin: 28px 0 0;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.waiting-rule {
  width: 56px;
  height: 3px;
  margin: 28px 0 22px;
  border: 0;
  border-radius: 2px;
  background: var(--w-brass);
}

.waiting-line {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--w-muted);
}

/* A hanging sign that settles once on load. */
@keyframes waiting-settle {
  0% { transform: rotate(-2deg); }
  40% { transform: rotate(1deg); }
  70% { transform: rotate(-0.3deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .waiting-mark { animation: none; }
}
