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

:root {
  --paper: #f3ede3;
  --paper-ink: #fcf8f1;
  --ink: #121212;
  --muted: rgba(18, 18, 18, 0.68);
  --line: rgba(18, 18, 18, 0.12);
  --red: #d94a38;
  --blue: #0f5dff;
  --yellow: #f1c94b;
  --shadow: rgba(18, 18, 18, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  background:
    radial-gradient(circle at 14% 20%, rgba(217, 74, 56, 0.18), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(15, 93, 255, 0.16), transparent 19%),
    radial-gradient(circle at 78% 82%, rgba(241, 201, 75, 0.2), transparent 16%),
    linear-gradient(180deg, #f8f3ea 0%, #f2ebdd 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(rgba(18, 18, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 82%);
}

body::after {
  content: '';
  position: fixed;
  inset: auto -10vw -12vh auto;
  width: min(42vw, 460px);
  aspect-ratio: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 32%, rgba(15, 93, 255, 0.18), transparent 48%),
    radial-gradient(circle at 68% 62%, rgba(217, 74, 56, 0.14), transparent 46%),
    radial-gradient(circle at 52% 52%, rgba(255, 255, 255, 0.5), transparent 62%);
  filter: blur(24px);
  opacity: 0.8;
  animation: drift 16s ease-in-out infinite alternate;
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.poster {
  position: relative;
  width: min(100%, 1120px);
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 2px solid var(--ink);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(248, 239, 227, 0.94));
  box-shadow: 16px 16px 0 var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.poster::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(18, 18, 18, 0.08) calc(50% - 1px), rgba(18, 18, 18, 0.08) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(rgba(18, 18, 18, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 40px, 40px 100%;
  opacity: 0.6;
}

.poster__bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.poster__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1rem;
  letter-spacing: 0.1em;
  transform: rotate(-8deg);
}

.poster__label {
  max-width: 18ch;
  color: var(--muted);
  text-align: right;
}

.poster__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.eyebrow {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  color: var(--muted);
}

h1 {
  margin: 0;
  display: grid;
  gap: 0.02em;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.lede {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.portal-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 0.95rem;
  color: var(--paper-ink);
  text-decoration: none;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
  overflow: hidden;
}

.portal-button::before {
  content: '';
  position: absolute;
  inset: 0.35rem;
  border: 1px dashed rgba(252, 248, 241, 0.42);
  border-radius: inherit;
  pointer-events: none;
}

.portal-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 45%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.portal-button__label,
.portal-button__arrow {
  position: relative;
  z-index: 1;
}

.portal-button__label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-button__arrow {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--paper-ink);
  color: var(--ink);
  font-size: 1rem;
  transform: rotate(-12deg);
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.meta {
  margin: 0;
  max-width: 22ch;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.portal-button:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 12px 12px 0 var(--ink);
  background: var(--red);
}

.portal-button:hover .portal-button__arrow {
  transform: translateX(2px) rotate(0deg);
  background: var(--paper);
}

.portal-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.portal-button:active {
  transform: translate(1px, 1px) rotate(0deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.poster__art {
  position: relative;
  z-index: 1;
  min-height: 100%;
  background: linear-gradient(160deg, rgba(15, 93, 255, 0.03), rgba(217, 74, 56, 0.04));
}

.poster__art::before {
  content: '';
  position: absolute;
  inset: 0.75rem 0.15rem 0.35rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 2rem 3rem 2rem 3rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 237, 224, 0.94));
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-1.4deg);
}

.doodle {
  position: absolute;
  display: block;
  pointer-events: none;
}

.doodle--ring {
  top: 8%;
  right: 8%;
  width: min(55vw, 360px);
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 58% 42% 49% 51% / 47% 53% 47% 53%;
  transform: rotate(18deg);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.14);
}

.doodle--ring::before {
  content: '';
  position: absolute;
  inset: 10%;
  border: 2px dashed rgba(18, 18, 18, 0.46);
  border-radius: inherit;
  transform: rotate(-10deg);
}

.doodle--star {
  top: 13%;
  right: 18%;
  width: 4rem;
  height: 4rem;
  transform: rotate(12deg);
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 71%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  box-shadow: 4px 4px 0 var(--ink);
}

.doodle--scribble {
  left: 10%;
  bottom: 30%;
  width: 48%;
  height: 6rem;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-7deg);
  opacity: 0.86;
}

.doodle--scribble::before {
  content: '';
  position: absolute;
  inset: 0.85rem 1.1rem;
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--blue);
  border-radius: inherit;
  transform: rotate(4deg);
}

.doodle--scribble::after {
  content: '';
  position: absolute;
  inset: 1.6rem 2rem;
  border-top: 2px solid rgba(18, 18, 18, 0.7);
  border-radius: inherit;
  transform: rotate(-6deg);
}

.doodle--arrow {
  right: 10%;
  bottom: 18%;
  width: 10rem;
  height: 10rem;
  border-left: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 0 28px;
  transform: rotate(-35deg);
}

.doodle--arrow::before {
  content: '';
  position: absolute;
  right: -0.2rem;
  top: -0.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-top: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
  transform: rotate(45deg);
}

.doodle--label {
  left: 4%;
  top: 45%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-9deg);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}

.doodle--line {
  right: 20%;
  top: 50%;
  width: 34%;
  height: 1.1rem;
  border-top: 4px solid var(--ink);
  border-radius: 999px;
  transform: rotate(8deg);
  opacity: 0.7;
}

@keyframes drift {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }

  100% {
    transform: translate3d(3%, 2%, 0) scale(1.04);
  }
}

@media (max-width: 900px) {
  .poster {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .poster__art {
    min-height: 340px;
    border-top: 1px solid var(--line);
  }

  .doodle--ring {
    top: 4%;
    right: -8%;
    width: min(72vw, 320px);
  }

  .doodle--scribble {
    left: 4%;
    bottom: 18%;
    width: 72%;
  }

  .doodle--arrow {
    right: 6%;
    bottom: 12%;
  }

  .doodle--label {
    top: 26%;
  }

  .doodle--line {
    top: 58%;
    width: 50%;
  }
}

@media (max-width: 640px) {
  .stage {
    padding: 0.75rem;
  }

  .poster {
    padding: 1rem;
    box-shadow: 10px 10px 0 var(--ink);
  }

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

  .poster__label {
    max-width: none;
    text-align: left;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.5rem);
  }

  .actions {
    align-items: flex-start;
  }

  .portal-button {
    width: 100%;
    justify-content: space-between;
  }

  .meta {
    max-width: none;
  }

  .poster__art {
    min-height: 280px;
  }

  .doodle--ring {
    width: 78vw;
    right: -14%;
  }

  .doodle--star {
    top: 8%;
    right: 8%;
  }

  .doodle--label {
    top: 28%;
    left: 6%;
  }

  .doodle--arrow {
    width: 7rem;
    height: 7rem;
    right: 10%;
    bottom: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}