/* The arrivals: a sky that draws itself as the pointer crosses it, the wordmark
   held at the centre of it, and one line beneath. Two names, one page — the
   outbound link is the only difference between them. */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/of-inter-tight-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #151513;
  --lime: #faff69;
  --grey: #414141;
  --panel: #1c1c19;
  --panel-lift: #242420;
  --paper: #f4f4ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 92% at 50% 40%, #1c1c19 0%, #151513 64%);
}

#sky {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(115% 100% at 50% 42%, rgba(21, 21, 19, 0) 34%, rgba(21, 21, 19, 0.5) 78%, rgba(21, 21, 19, 0.88) 100%);
}

.frame {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--grey);
  opacity: 0.8;
}

.frame::before {
  top: 22px;
  left: 22px;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  right: 22px;
  bottom: 22px;
  border-top: 0;
  border-left: 0;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
  animation: rise 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(94vw, 940px);
  height: min(46vh, 400px);
  transform: translate(-50%, -54%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(21, 21, 19, 0.86), rgba(21, 21, 19, 0.6) 52%, rgba(21, 21, 19, 0) 100%);
}

.wordmark {
  margin: 0;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 13.2vw, 186px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--paper);
  user-select: none;
}

.tagline {
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: none;
  color: var(--paper);
  opacity: 0.62;
  user-select: none;
}

.tagline::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 0 auto clamp(15px, 1.9vw, 22px);
  background: var(--lime);
  opacity: 0.85;
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.bar--top {
  top: 0;
  justify-content: flex-end;
  padding: 18px 24px 0;
}

.bar--bottom {
  bottom: 0;
  padding: 0 24px 20px;
}

.bar a {
  color: rgba(244, 244, 239, 0.55);
  text-decoration: none;
  transition: color 260ms ease, opacity 260ms ease;
}

.bar a:hover,
.bar a:focus-visible {
  color: var(--lime);
}

.bar a:focus-visible,
.clear:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 7px;
}

.clear {
  margin: 0;
  padding: 8px 2px;
  border: 0;
  background: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--paper);
  opacity: 0.52;
  cursor: pointer;
  transition: opacity 260ms ease, color 260ms ease;
}

.clear:hover {
  opacity: 1;
  color: var(--lime);
}

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

@media (max-width: 560px) {
  .frame::before {
    top: 16px;
    left: 16px;
  }

  .frame::after {
    right: 16px;
    bottom: 16px;
  }

  .bar--top {
    padding: 12px 18px 0;
  }

  .bar--bottom {
    padding: 0 18px 16px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .stage {
    padding: 0 20px;
  }
}

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

  .bar a,
  .clear {
    transition: none;
  }
}
