:root {
  --ink: #17110c;
  --ink-soft: #2a2118;
  --paper: #f4e7c8;
  --paper-deep: #e8d4a4;
  --cream: #fff6e4;
  --sunset: #ff7a18;
  --amber: #ffc44d;
  --rose: #ff4d6d;
  --cyber: #e13bff;
  --violet: #6d4dff;
  --cyan: #3cefff;
  --frost: #9bfff0;
  --navy: #10162c;
  --navy-deep: #0b1020;
  --line: 4px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--navy-deep);
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 24, 0.22), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(225, 59, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 88%, rgba(60, 239, 255, 0.16), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(255, 196, 77, 0.05), transparent 45%),
    linear-gradient(180deg, #16101a 0%, #10162c 42%, #0c1428 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 246, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 246, 228, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: var(--amber);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: "Bangers", cursive;
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

.lede {
  margin: 14px 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.pixel {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--paper);
  border: var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.nav-shell::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -7px;
  height: 10px;
  background: radial-gradient(circle at 6px 0, transparent 6px, var(--paper) 7px);
  background-size: 16px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #fff;
  border: 3px solid var(--ink);
}

.brand-copy strong {
  display: block;
  font-family: "Bangers", cursive;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
}

.brand-copy span {
  display: block;
  margin-top: -2px;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 8px 12px;
  font-weight: 800;
}

.nav-menu a:not(.btn) {
  border-bottom: 3px solid transparent;
}

.nav-menu a:not(.btn):hover {
  border-bottom-color: var(--sunset);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn i {
  font-size: 1.05rem;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-sunset {
  background: var(--sunset);
  color: #fff;
}

.btn-cyan {
  background: var(--cyan);
  color: var(--ink);
}

.btn-paper {
  background: var(--cream);
}

.btn-pink {
  background: #ff8ad4;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* HERO */
.hero {
  position: relative;
  padding: 42px 0 28px;
}

.perspective-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  perspective: 520px;
}

.perspective-floor {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -38%;
  height: 70%;
  background:
    repeating-linear-gradient(
      to right,
      rgba(255, 196, 77, 0.12) 0 2px,
      transparent 2px 72px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 122, 24, 0.14) 0 2px,
      transparent 2px 72px
    );
  transform: rotateX(68deg);
  transform-origin: center top;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
}

.comic-panel {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 122, 24, 0.18), transparent 28%),
    var(--cream);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 14px;
  position: relative;
  overflow: visible;
}

.comic-panel::after {
  content: "STAMP'D";
  position: absolute;
  right: -10px;
  top: -16px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--amber);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Bangers", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  transform: rotate(8deg);
}

.comic-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  background: #0b0b0b;
}

.panel-caption {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-align: center;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.caption-box,
.speech {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.caption-box {
  padding: 22px 22px 18px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--sunset);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

.symbol {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--amber);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
}

.speech {
  position: relative;
  padding: 18px 20px;
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -16px;
  border-width: 16px 14px 0 0;
  border-style: solid;
  border-color: var(--ink) transparent transparent transparent;
}

.speech p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
}

.postage {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: repeating-linear-gradient(
      90deg,
      var(--cream) 0 10px,
      #efe0b8 10px 12px
    );
  border: 4px dashed var(--ink);
}

.postage code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Special Elite", cursive;
  font-size: 0.92rem;
}

.copy-btn {
  border: 3px solid var(--ink);
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-weight: 800;
}

.copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* SECTIONS */
.section {
  padding: 28px 0 10px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.journal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 18%),
    repeating-linear-gradient(
      180deg,
      transparent 0 46px,
      rgba(23, 17, 12, 0.05) 46px 47px
    ),
    var(--paper);
  border: 5px solid var(--ink);
  box-shadow: 12px 12px 0 #08070d;
  padding: 36px 22px 22px;
  position: relative;
}

.journal::before,
.journal::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 78px;
  height: 22px;
  background: #ff5b7a;
  border: 3px solid var(--ink);
  opacity: 0.9;
}

.journal::before {
  left: 28px;
  transform: rotate(-8deg);
}

.journal::after {
  right: 28px;
  background: #3cefff;
  transform: rotate(7deg);
}

.banner-slot {
  background: #0c0c10;
  border: 4px solid var(--ink);
  padding: 10px;
  margin-bottom: 22px;
}

.banner-slot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
}

.about-copy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin-bottom: 26px;
}

.about-copy h3 {
  margin: 0 0 8px;
  font-family: "Bangers", cursive;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.about-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.stamp-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.stamp-rack::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 46%;
  height: 0;
  border-top: 4px dashed var(--ink);
  opacity: 0.28;
  pointer-events: none;
}

.stamp-card {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 12px;
  position: relative;
  z-index: 1;
}

.stamp-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  background:
    radial-gradient(circle at 8px 8px, var(--ink) 2.5px, transparent 2.7px) 0 0 / 16px 16px,
    radial-gradient(circle at 8px calc(100% - 8px), var(--ink) 2.5px, transparent 2.7px) 0 100% / 16px 16px;
  background-repeat: repeat-x;
  opacity: 0.18;
}

.stamp-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
}

.stamp-card figcaption {
  margin-top: 10px;
  padding: 8px;
  background: var(--ink);
  color: var(--paper);
}

.stamp-card strong {
  display: block;
  font-family: "Bangers", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.stamp-card span {
  display: block;
  font-size: 0.88rem;
}

/* HOW TO BUY */
.buy {
  padding-top: 36px;
}

.ticket-board {
  display: grid;
  gap: 16px;
}

.ticket {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 170px;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.ticket-num {
  display: grid;
  place-items: center;
  background: var(--sunset);
  color: #fff;
  font-family: "Bangers", cursive;
  font-size: 3rem;
  border-right: 4px dashed var(--ink);
}

.ticket:nth-child(2) .ticket-num {
  background: var(--cyber);
}

.ticket:nth-child(3) .ticket-num {
  background: var(--violet);
}

.ticket:nth-child(4) .ticket-num {
  background: #1bb8c9;
}

.ticket-body {
  padding: 16px 18px;
}

.ticket-body h3 {
  margin: 0 0 6px;
  font-family: "Bangers", cursive;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

.ticket-body p {
  margin: 0;
  line-height: 1.45;
}

.ticket-stub {
  display: grid;
  place-items: center;
  padding: 12px;
  background: repeating-linear-gradient(
    135deg,
    var(--paper) 0 10px,
    var(--paper-deep) 10px 20px
  );
  border-left: 4px dashed var(--ink);
  text-align: center;
}

.ticket-stub i {
  font-size: 1.8rem;
}

.buy-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* COMMUNITY */
.community {
  padding: 42px 0 48px;
}

.club {
  background:
    radial-gradient(circle at 80% 20%, rgba(155, 255, 240, 0.28), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(225, 59, 255, 0.18), transparent 26%),
    var(--navy);
  color: var(--cream);
  border: 5px solid var(--paper);
  box-shadow: 12px 12px 0 #05060c;
  padding: 28px 24px;
}

.club .eyebrow {
  background: var(--frost);
  color: var(--ink);
}

.club h2 {
  color: #fff;
}

.club .lede {
  color: #dce7ff;
  max-width: 58ch;
}

.club-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.club-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid #fff;
  box-shadow: 6px 6px 0 #05060c;
  text-align: center;
  font-weight: 800;
}

.club-link i {
  font-size: 1.8rem;
}

.club-link:nth-child(1) {
  background: #fff;
}

.club-link:nth-child(2) {
  background: var(--sunset);
  color: #fff;
}

.club-link:nth-child(3) {
  background: var(--cyan);
}

.club-link:hover {
  transform: translate(-2px, -2px);
}

/* FOOTER */
.footer {
  padding: 8px 0 28px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: var(--paper);
  border: 4px solid var(--ink);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 3px solid var(--ink);
  background: #fff;
}

.footer small {
  display: block;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-copy,
  .stamp-rack,
  .club-actions {
    grid-template-columns: 1fr;
  }

  .stamp-rack::before,
  .comic-panel::after,
  .journal::before,
  .journal::after {
    display: none;
  }

  .ticket {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ticket-stub {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 4px solid var(--ink);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-shell {
    position: relative;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1180px, calc(100% - 20px));
  }

  .caption-box,
  .journal,
  .club {
    padding: 16px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero .btn,
  .buy-cta .btn {
    width: 100%;
  }

  .postage {
    grid-template-columns: 1fr;
  }
}
