/* The closed page: one card-stock slip on the twill floor, with a blank badge on its clip.
   It names nothing beyond the domain itself until _ca opens the site. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-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;
}

:root {
  --g-deep: #124d2d;
  --card: #f4f1e8;
  --ink: #1b1d1a;
  --ink-2: #464942;
  --live: #1f7a46;
  --laminate: #f6f4ec;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: var(--g-deep);
  background-image: linear-gradient(rgb(6 34 18 / 0.38), rgb(6 34 18 / 0.38)), url("/assets/plates/twill-green.webp");
  background-size: auto, 512px;
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #f2c94c;
  color: var(--ink);
}

.slip {
  width: min(100%, 380px);
  padding: 72px 32px 36px;
  border-radius: 10px;
  background-color: var(--card);
  background-image: url("/assets/plates/cardstock.webp");
  background-size: 512px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.12), 0 14px 32px rgb(4 28 15 / 0.32);
}

/* A blank laminated badge: no ticker until the site opens */
.badge {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 152px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 12px;
  background: linear-gradient(158deg, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0) 42%), var(--laminate);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 10px rgb(0 0 0 / 0.18);
  overflow: visible;
  rotate: -2deg;
}

/* The jacket bar along the badge's foot, as on every badge in the app */
.badge::after {
  content: "";
  height: 12px;
  border-radius: 0 0 12px 12px;
  background: var(--live);
}

.badge__clip {
  position: absolute;
  left: 50%;
  top: -52px;
  height: 66px;
  width: auto;
  translate: -50% 0;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.35));
}

.wordmark {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  font-stretch: 70%;
  line-height: 1;
  text-transform: uppercase;
}

.note {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .badge {
    transform-origin: 50% -40px;
    animation: settle 900ms var(--ease-out) 120ms both;
  }
}

@keyframes settle {
  from {
    rotate: 7deg;
    translate: 0 -8px;
  }
  60% {
    rotate: -4deg;
  }
  to {
    rotate: -2deg;
    translate: 0 0;
  }
}
