@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600&family=League+Spartan:wght@500;700&display=swap");

:root {
  --ink: #071a2c;
  --cream: #f3ddb0;
  --paper: #d9b978;
  --orange: #dd5d32;
  --yellow: #f3c35b;
  --cyan: #83cbd0;
  --line: rgb(243 221 176 / 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--ink);
  font-family: "IBM Plex Mono", monospace;
}

a {
  color: inherit;
}

.poster {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.poster__art,
.poster__wash,
.poster__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster__art {
  z-index: -3;
  object-fit: cover;
  object-position: 52% 48%;
  transform: scale(1.035);
  transition: transform 250ms ease-out;
}

.poster__wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(4 17 31 / 0.93) 0%, rgb(4 17 31 / 0.63) 34%, transparent 68%),
    linear-gradient(0deg, rgb(4 17 31 / 0.83) 0%, transparent 34%),
    linear-gradient(180deg, rgb(4 17 31 / 0.5) 0%, transparent 30%);
}

.poster__grain {
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.masthead,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead {
  border-top: 4px solid var(--cream);
  padding-top: 0.8rem;
}

.wordmark {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.issue,
.footer,
.field-note__label,
.field-note__status,
.eyebrow,
.scroll-cue {
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.13em;
}

.issue {
  margin: 0;
}

.issue span,
.footer span {
  color: var(--orange);
}

.hero {
  position: absolute;
  top: 47%;
  left: clamp(1.25rem, 7vw, 7rem);
  width: min(47rem, 70vw);
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
}

h1,
h2,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(4.25rem, 12vw, 11rem);
  line-height: 0.76;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.hero__world {
  color: var(--yellow);
  margin-left: clamp(0rem, 5vw, 5rem);
  text-shadow: 0.045em 0.045em 0 var(--orange);
}

.hero__lede {
  max-width: 35rem;
  margin: 2rem 0 0 clamp(0rem, 5vw, 5rem);
  border-left: 2px solid var(--orange);
  padding-left: 1rem;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  line-height: 1.45;
}

.field-note {
  position: absolute;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(5.5rem, 13vh, 8rem);
  width: min(19rem, 26vw);
  border: 1px solid var(--line);
  padding: 1.1rem;
  background: rgb(5 22 38 / 0.76);
  backdrop-filter: blur(8px);
}

.field-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.field-note .field-note__label {
  margin-bottom: 0.75rem;
  color: var(--yellow);
}

.field-note__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--cyan);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgb(131 203 208 / 0.6);
  animation: pulse 2.4s infinite;
}

.footer {
  position: absolute;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 3rem);
  left: clamp(1.25rem, 3vw, 3rem);
  border-bottom: 4px solid var(--cream);
  padding-bottom: 0.75rem;
}

.footer p {
  margin: 0;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(5.2rem, 10vh, 7rem);
  left: clamp(1.25rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.scroll-cue__line {
  width: 1px;
  height: 3rem;
  background: var(--cream);
}

.dispatch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6rem, 0.5fr) minmax(18rem, 1.4fr) minmax(10rem, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  min-height: 70vh;
  padding: clamp(4rem, 10vw, 10rem);
  color: var(--ink);
  background: var(--paper);
}

.dispatch__number {
  align-self: start;
  color: var(--orange);
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(5rem, 15vw, 14rem);
  line-height: 0.75;
  opacity: 0.86;
}

.dispatch h2 {
  max-width: 46rem;
  margin: 0 0 1.5rem;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.dispatch__description {
  max-width: 42rem;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.5;
}

.dispatch__game {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.5rem;
  border: 3px solid var(--ink);
  padding: 0.9rem 1.1rem;
  color: var(--ink);
  font-family: "Archivo Black", sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0.45rem 0.45rem 0 var(--orange);
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.dispatch__game span {
  font-family: "League Spartan", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.dispatch__game:hover,
.dispatch__game:focus-visible {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0.25rem 0.25rem 0 var(--orange);
  transform: translate(0.2rem, 0.2rem);
}

.dispatch__stamp {
  border: 3px solid var(--ink);
  padding: 1rem;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.15em;
  text-align: center;
  transform: rotate(-3deg);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 0.5rem rgb(131 203 208 / 0);
  }
}

@media (max-width: 760px) {
  .poster {
    min-height: 100svh;
  }

  .poster__art {
    object-position: 57% center;
  }

  .poster__wash {
    background:
      linear-gradient(90deg, rgb(4 17 31 / 0.84), transparent 120%),
      linear-gradient(0deg, rgb(4 17 31 / 0.93), transparent 55%);
  }

  .issue span,
  .issue {
    font-size: 0.58rem;
  }

  .hero {
    top: 42%;
    left: 1.25rem;
    width: calc(100% - 2.5rem);
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .hero__world {
    margin-left: 0;
  }

  .hero__lede {
    max-width: 85%;
    margin-left: 0;
  }

  .field-note {
    right: 1.25rem;
    bottom: 5.3rem;
    width: calc(100% - 5rem);
  }

  .scroll-cue {
    display: none;
  }

  .footer p:last-child {
    display: none;
  }

  .dispatch {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 1.5rem;
  }

  .dispatch__number {
    font-size: 7rem;
  }

  .dispatch__stamp {
    width: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dot {
    animation: none;
  }
}
