/* Fayette waiting page. Colours from the engine's tokens (canvas #0a0a0a, the five symbol colours); type is Inter Variable, self-hosted (latin subset, SIL Open Font License 1.1, see inter-license.txt). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("inter-latin-wght-normal.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 {
  --canvas: #0a0a0a;
  --ink: #ffffff;
  --ink-secondary: #b8b8b8;
  --ink-tertiary: #8f8f8f;
  --line: #2a2a2a;
  --line-dot: #4a4a4a;
  --lime: #abff44;
  --pink: #d5558b;
  --orange: #f79133;
  --blue: #188ceb;
  --lilac: #d7b6ff;
  --type: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --settle: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--type);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lime);
  color: var(--canvas);
}

a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.intro {
  max-width: 44rem;
  min-width: 0;
}

.brand {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 0;
  animation: rise 640ms var(--settle) both;
}

.brand img {
  display: block;
  width: clamp(11rem, 26vw, 20rem);
  max-width: 100%;
  height: auto;
}

.brand a {
  display: inline-block;
}

.lede {
  margin: 0;
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
  animation: rise 640ms var(--settle) 140ms both;
}

.aside {
  margin: 1.5rem 0 0;
  color: var(--ink-secondary);
  font-size: 1.0625rem;
}

/* The logo's entrance: a short fade and rise, settled in under a second; afterwards the text never moves. */
@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*
  The symbol drawn at scale: five bars on a 16-unit grid, as in the logo (widths 14, 5, 10, 5, 5; height 2; gap 1).
  Each bar rests at the logo's length and drifts slowly to another and back, on its own period, so the mark never repeats in step.
*/
.mark {
  --u: clamp(0.9rem, 1.6vw, 1.5rem);
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  grid-template-columns: calc(14 * var(--u));
  gap: var(--u);
  animation: appear 700ms ease-out 240ms both;
}

/* A soft light of the brand colours behind the mark, breathing over fourteen seconds. */
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -55% -45%;
  background:
    radial-gradient(closest-side at 32% 30%, rgb(171 255 68 / 0.13), transparent),
    radial-gradient(closest-side at 68% 50%, rgb(24 140 235 / 0.12), transparent),
    radial-gradient(closest-side at 40% 72%, rgb(213 85 139 / 0.11), transparent),
    radial-gradient(closest-side at 60% 30%, rgb(215 182 255 / 0.08), transparent);
  filter: blur(1.5rem);
  opacity: 0.7;
  pointer-events: none;
  animation: breathe 14s ease-in-out 1s infinite;
}

.mark span {
  display: block;
  width: calc(var(--rest) * var(--u));
  height: calc(2 * var(--u));
  border-radius: var(--u);
  animation: drift var(--period) ease-in-out var(--wait) infinite;
}

.mark span:nth-child(1) { --rest: 14; --reach: 11.5; --period: 11s; --wait: 1.2s; background: var(--lime); }
.mark span:nth-child(2) { --rest: 5; --reach: 8; --period: 13s; --wait: 1.9s; background: var(--pink); }
.mark span:nth-child(3) { --rest: 10; --reach: 7.5; --period: 12s; --wait: 2.6s; background: var(--orange); }
.mark span:nth-child(4) { --rest: 5; --reach: 9.5; --period: 14s; --wait: 3.3s; background: var(--blue); }
.mark span:nth-child(5) { --rest: 5; --reach: 3.5; --period: 10s; --wait: 4s; background: var(--lilac); }

@keyframes drift {
  0%, 100% { width: calc(var(--rest) * var(--u)); }
  50% { width: calc(var(--reach) * var(--u)); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .lede,
  .mark,
  .mark::before,
  .mark span,
  .colophon {
    animation: none;
  }
}

/* A quiet footer: the brand's five colours as one hairline, as in the e-mail signature, then one small line of fine print. */
.colophon {
  padding-top: 0.5rem;
  animation: appear 700ms ease-out 600ms both;
}

.rule {
  display: flex;
  height: 2px;
  margin-bottom: 1rem;
  border-radius: 1px;
  overflow: hidden;
  opacity: 0.85;
}

.rule span:nth-child(1) { flex: 36; background: var(--lime); }
.rule span:nth-child(2) { flex: 13; background: var(--pink); }
.rule span:nth-child(3) { flex: 25; background: var(--orange); }
.rule span:nth-child(4) { flex: 13; background: var(--blue); }
.rule span:nth-child(5) { flex: 13; background: var(--lilac); }

.fine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0;
  color: var(--ink-tertiary);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.fine > * + *::before {
  content: "\00B7";
  display: inline-block;
  margin: 0 0.6rem;
  color: var(--line-dot);
}

.fine a {
  color: inherit;
  text-decoration-color: rgb(143 143 143 / 0.4);
}

.fine a:hover {
  color: var(--ink);
  text-decoration-color: var(--lime);
}

/* Narrow screens: one column, the mark smaller under the line. */
@media (max-width: 52rem) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(3rem, 12vw, 4.5rem);
  }

  .mark {
    --u: clamp(0.5rem, 2.4vw, 0.75rem);
  }
}

@media (forced-colors: active) {
  .mark::before {
    display: none;
  }
}
