/* The app's own fonts and colours, from app/app.css. */
@font-face {
  font-family: "Big Shoulders Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/big-shoulders-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Big Shoulders Stencil Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/big-shoulders-stencil-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --plate-red: #d63a2f;
  --plate-blue: #2456c8;
  --plate-yellow: #e8b31a;
  --plate-green: #2f9e5b;
  --background: #f2f4f6;
  --foreground: #12161c;
  --muted-foreground: #515c6b;
  --border: #d3d9e0;
  --ring: var(--plate-blue);
  --font-heading: "Big Shoulders Variable", "Arial Narrow", sans-serif;
  --font-stencil:
    "Big Shoulders Stencil Variable", "Big Shoulders Variable", "Arial Narrow", sans-serif;
  --font-sans: "Instrument Sans Variable", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-family: var(--font-stencil);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
}

main .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 18rem;
}

.status-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* A bar loaded with the four plates, one still going on. */
.bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  height: 0.5rem;
}
.bar span:nth-child(1) {
  background: var(--plate-red);
}
.bar span:nth-child(2) {
  background: var(--plate-blue);
}
.bar span:nth-child(3) {
  background: var(--plate-yellow);
}
.bar span:nth-child(4) {
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.bar span:nth-child(4)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plate-green);
  transform-origin: left;
  animation: load 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}
@keyframes load {
  from {
    transform: scaleX(0.15);
  }
  to {
    transform: scaleX(0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar span:nth-child(4)::after {
    animation: none;
    transform: scaleX(0.5);
  }
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 11vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.invite {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* On the paragraph, not the column, so the rule ends where the text does. */
.footnote {
  margin: 0;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 48rem) {
  .wrap {
    padding: 0 2rem;
  }
}
