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

@font-face {
  font-family: "Automata";
  src: url("./fonts/Automata-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Automata";
  src: url("./fonts/Automata-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --poster-blue: #24309d;
  --poster-blue-soft: rgba(36, 48, 157, 0.98);
  --poster-purple: #6b31cf;
  --poster-yellow: #fff200;
  --discord-blurple: #5865f2;
  --discord-blurple-light: #6874ff;
  --edge-gutter: clamp(86px, 3.1vw, 100px);
  --header-height: 96px;
  --brand-mark-size: 36px;
  --brand-gap: 10px;
  --wordmark-image: url("./assets/Versal-RPG sheen.png");
  --brand-mark-image: url("./assets/versal-icon.png");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--poster-blue);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  padding-top: var(--header-height);
  background: #090909;
  color: #fff;
  font-family: "Exo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, var(--poster-blue) 0 120px, transparent 120px);
  background-size: 52px 52px, 52px 52px, 100% 100%;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1000;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0 1px, rgba(0, 0, 0, 0.2) 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 40, 109, 0.09) 0 1px, rgba(53, 233, 255, 0.08) 1px 2px, rgba(255, 242, 0, 0.04) 2px 3px, transparent 3px 4px);
  mix-blend-mode: overlay;
  opacity: 0.82;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand {
  font-family: "Automata", "Exo", ui-sans-serif, system-ui, sans-serif;
}

.stripe-field {
  --stripe-height: clamp(58px, 5.5vw, 82px);
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: grid;
  width: 360vmax;
  height: 360vmax;
  align-content: center;
  grid-auto-rows: var(--stripe-height);
  background: repeating-linear-gradient(
    to bottom,
    var(--poster-purple) 0 var(--stripe-height),
    #030303 var(--stripe-height) calc(var(--stripe-height) * 2)
  );
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(42deg);
  transform-origin: 50% 50%;
}

.stripe-line {
  display: flex;
  min-width: 360vmax;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), inset 0 -1px rgba(0, 0, 0, 0.3);
}

.stripe-line::before {
  content: "VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG VERSAL-RPG";
  display: block;
  min-width: max-content;
  color: #fff;
  font-family: "Automata", "Exo", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 3.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  word-spacing: 0.16em;
  white-space: nowrap;
  transform: translateX(-14vw);
}

.stripe-line.purple {
  background: var(--poster-purple);
}

.stripe-line.purple::before {
  transform: translateX(calc(-14vw - 5.7ch));
}

.stripe-line.black {
  background: #030303;
}

.stripe-line.black::before {
  color: var(--poster-yellow);
}

.site-header,
.error-page {
  position: relative;
  z-index: 1;
}

main {
  position: relative;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1002;
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--edge-gutter);
  padding-left: max(16px, calc(var(--edge-gutter) - var(--brand-mark-size) - var(--brand-gap)));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--poster-blue-soft);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  z-index: 0;
  height: 100vh;
  content: "";
  background: var(--poster-blue-soft);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.site-header::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0 1px, rgba(0, 0, 0, 0.2) 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 40, 109, 0.09) 0 1px, rgba(53, 233, 255, 0.08) 1px 2px, rgba(255, 242, 0, 0.04) 2px 3px, transparent 3px 4px);
  mix-blend-mode: overlay;
  opacity: 0.82;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--brand-gap);
  font-weight: 700;
}

.brand-effect {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  isolation: isolate;
  line-height: 0;
}

.brand-effect::before,
.brand-effect::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: var(--brand-effect-image);
  -webkit-mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: var(--brand-effect-image);
  mask-position: 0 0;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mix-blend-mode: screen;
}

.brand-effect::before {
  background: #ff286d;
}

.brand-effect::after {
  background: #35e9ff;
}

.brand-effect > img {
  position: relative;
  z-index: 1;
}

.brand-mark-effect {
  --brand-effect-image: var(--brand-mark-image);
}

.brand-wordmark-effect {
  --brand-effect-image: var(--wordmark-image);
}

.brand-mark {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  border-radius: 8px;
}

.brand-wordmark {
  width: auto;
  height: clamp(34px, 3.2vw, 50px);
  max-width: min(46vw, 260px);
  object-fit: contain;
}

.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 24px);
  color: rgba(255, 255, 255, 0.7);
  font-family: "Automata", "Exo", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-link {
  color: inherit;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.header-link,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
}

.header-link {
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.poster-shell {
  width: min(1320px, calc(100% - (var(--edge-gutter) * 2)));
  margin: 0 0 0 var(--edge-gutter);
  padding: var(--edge-gutter) 0 var(--edge-gutter);
}

.poster-grid {
  display: grid;
  grid-template-columns: minmax(560px, 780px) minmax(280px, 340px);
  gap: var(--edge-gutter);
  align-items: start;
}

.single-page-grid {
  display: grid;
  width: min(780px, 100%);
}

.poster-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: var(--poster-blue-soft);
  box-shadow: 18px 22px 34px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.main-card,
.side-card,
.page-card {
  min-height: max(520px, calc(100vh - var(--header-height) - (var(--edge-gutter) * 2)));
  min-height: max(520px, calc(100svh - var(--header-height) - (var(--edge-gutter) * 2)));
  padding: clamp(28px, 3vw, 46px);
}

.main-card-stack {
  --cover-art-size: clamp(126px, 13vw, 168px);
  --cover-art-clearance: calc(var(--cover-art-size) + clamp(18px, 2.4vw, 34px));
  position: relative;
  min-width: 0;
}

.main-card {
  display: flex;
  flex-direction: column;
}

.side-card {
  display: flex;
  flex-direction: column;
  padding-right: clamp(28px, 3vw, 38px);
  padding-left: clamp(28px, 3vw, 38px);
}

.page-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.poster-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 5vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title-row {
  display: block;
}

.poster-card .main-wordmark-title {
  position: relative;
  display: block;
  width: min(clamp(260px, 34vw, 440px), calc(100% - var(--cover-art-clearance)));
  margin-left: clamp(-36px, -3vw, -22px);
  margin-bottom: clamp(-30px, -2vw, -16px);
  margin-top: clamp(-30px, -2vw, -16px);
  isolation: isolate;
  line-height: 0;
}

.main-wordmark-title::before,
.main-wordmark-title::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: var(--wordmark-image);
  -webkit-mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: var(--wordmark-image);
  mask-position: 0 0;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mix-blend-mode: screen;
}

.main-wordmark-title::before {
  background: #ff286d;
}

.main-wordmark-title::after {
  background: #35e9ff;
}

.main-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.cover-art-preview {
  position: absolute;
  top: clamp(20px, 2.2vw, 34px);
  right: clamp(28px, 3vw, 46px);
  z-index: 1001;
  width: var(--cover-art-size);
  height: auto;
  box-shadow: 10px 14px 24px rgba(0, 0, 0, 0.32);
  object-fit: cover;
}

.hero-text,
.hero-text-narrative {
  max-width: min(560px, calc(100% - var(--cover-art-clearance)));
  margin-top: 18px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-text-narrative {
  font-style: italic;
}

.pitch-copy {
  display: grid;
  max-width: 620px;
  gap: 16px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.58;
}

.pitch-copy p {
  margin: 0;
}

.wake-copy {
  color: rgba(255, 255, 255, 0.54);
  font-weight: 700;
  line-height: 1.35;
}

.pitch-points {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(30px, 3vw, 44px);
}

.pitch-point-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.pitch-point-column h2 {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.8rem, 1vw, 0.98rem);
  line-height: 1.16;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pitch-point-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.05em;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  line-height: 1.42;
}

.pitch-point-column li::marker {
  color: rgba(255, 242, 0, 0.78);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.copyright-footer {
  margin: auto 0 0;
  display: grid;
  max-width: 620px;
  gap: 12px;
  padding-top: clamp(30px, 3.2vw, 54px);
}

.side-footer {
  margin: auto 0 0;
  padding-top: clamp(30px, 3.2vw, 54px);
}

.human-made {
  display: flex;
  align-items: center;
  gap: 14px;
}

.side-footer .human-made {
  display: block;
}

.side-footer .human-made::after {
  display: block;
  clear: both;
  content: "";
}

.side-footer .human-made p {
  max-width: none;
}

.side-footer .human-made-badge {
  float: left;
  margin: 0 12px 6px 0;
}

.side-footer .human-made-badge img {
  width: clamp(54px, 5vw, 64px);
}

.human-made p,
.fine-print {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  font-weight: 500;
}

.human-made p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  line-height: 1.45;
}

.human-made-badge {
  display: block;
  flex: 0 0 auto;
}

.human-made-badge img {
  width: clamp(58px, 6vw, 78px);
  height: auto;
}

.fine-print {
  margin: 0;
}

.button {
  min-width: 150px;
  padding: 12px 18px;
}

.button.primary {
  border: 1px solid #fff;
  background: #fff;
  color: var(--poster-blue);
}

.button:hover,
.header-link:hover {
  transform: translateY(-1px);
}

.discord-button {
  display: inline-flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: var(--discord-blurple);
  background-color: var(--discord-blurple);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.discord-button:hover {
  background: var(--discord-blurple-light);
  background-color: var(--discord-blurple-light);
  transform: translateY(-1px);
}

.discord-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.side-list {
  display: grid;
  gap: 22px;
}

.side-list article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.side-kicker {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.side-list h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.side-list p,
.error-page p {
  color: rgba(255, 255, 255, 0.74);
}

.side-list p {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.signup-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.signup-input,
.signup-submit {
  min-height: 44px;
  width: 100%;
  border-radius: 8px;
  font-family: "Exo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.signup-input {
  border: 1px solid rgba(255, 255, 255, 0.52);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.signup-input:focus-visible {
  border-color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.signup-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 16px;
  background: rgba(22, 89, 190, 0.78);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.signup-submit:hover {
  background: rgba(34, 111, 224, 0.88);
  transform: translateY(-1px);
}

.signup-submit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  width: min(620px, calc(100% - 32px));
  margin: 0 auto;
  align-content: center;
  gap: 18px;
}

.error-page h1 {
  margin: 24px 0 0;
  font-size: clamp(3rem, 8vw, 6rem);
}

.error-page .button {
  justify-self: start;
}

@keyframes wordmark-red-shift {
  0%,
  78%,
  84%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }

  79% {
    opacity: 0.54;
    clip-path: inset(10% 0 58% 0);
    transform: translate3d(-5px, 0, 0);
  }

  80% {
    opacity: 0.34;
    clip-path: inset(60% 0 17% 0);
    transform: translate3d(4px, 0, 0);
  }
}

@keyframes wordmark-cyan-shift {
  0%,
  40%,
  46%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }

  41% {
    opacity: 0.5;
    clip-path: inset(39% 0 34% 0);
    transform: translate3d(5px, 0, 0);
  }

  42% {
    opacity: 0.28;
    clip-path: inset(6% 0 70% 0);
    transform: translate3d(-4px, 0, 0);
  }
}

@keyframes wordmark-core-flicker {
  0%,
  78%,
  82%,
  100% {
    filter: none;
  }

  79% {
    filter: brightness(1.14);
  }
}

@keyframes header-red-shift {
  0%,
  72%,
  78%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }

  73% {
    opacity: 0.32;
    clip-path: inset(12% 0 55% 0);
    transform: translate3d(-2px, 0, 0);
  }

  74% {
    opacity: 0.18;
    clip-path: inset(58% 0 18% 0);
    transform: translate3d(2px, 0, 0);
  }
}

@keyframes header-cyan-shift {
  0%,
  36%,
  42%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }

  37% {
    opacity: 0.3;
    clip-path: inset(40% 0 32% 0);
    transform: translate3d(2px, 0, 0);
  }

  38% {
    opacity: 0.16;
    clip-path: inset(8% 0 70% 0);
    transform: translate3d(-2px, 0, 0);
  }
}

@keyframes header-core-flicker {
  0%,
  76%,
  80%,
  100% {
    filter: none;
  }

  77% {
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .header-link {
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
  }

  .brand-effect > img {
    animation: header-core-flicker 7.4s steps(1, end) infinite;
  }

  .brand-effect::before {
    animation: header-red-shift 6.2s steps(1, end) infinite;
  }

  .brand-effect::after {
    animation: header-cyan-shift 7.1s steps(1, end) infinite;
  }

  .brand-mark-effect::before {
    animation-duration: 5.6s;
  }

  .brand-mark-effect::after {
    animation-duration: 6.5s;
  }

  .main-wordmark {
    animation: wordmark-core-flicker 6.8s steps(1, end) infinite;
  }

  .main-wordmark-title::before {
    animation: wordmark-red-shift 4.8s steps(1, end) infinite;
  }

  .main-wordmark-title::after {
    animation: wordmark-cyan-shift 5.4s steps(1, end) infinite;
  }
}

@media (max-width: 920px) {
  :root {
    --edge-gutter: 14px;
    --header-height: 112px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-content: start;
    padding: 14px var(--edge-gutter);
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .poster-shell {
    width: min(calc(100% - (var(--edge-gutter) * 2)), 1180px);
    margin-left: var(--edge-gutter);
    padding: var(--edge-gutter) 0;
  }

  .poster-grid {
    grid-template-columns: 1fr;
    gap: var(--edge-gutter);
  }

  .main-card,
  .side-card,
  .page-card {
    min-height: 420px;
  }

  .pitch-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .header-link {
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .poster-card h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .cover-art-preview {
    width: clamp(76px, 22vw, 96px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .human-made {
    align-items: flex-start;
    flex-direction: column;
  }
}
