:root {
  color-scheme: light;
  --paper: #f8f5eb;
  --paper-2: #efe5cb;
  --ink: #080806;
  --muted: #3c3a32;
  --green: #33b25b;
  --dark-green: #092d18;
  --blue: #175bb8;
  --yellow: #f3ca4d;
  --red: #e64c38;
  --line: #080806;
  --shadow: rgba(8, 8, 6, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 8, 6, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Patrick Hand SC", "Comic Sans MS", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.25;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(51, 178, 91, 0.2), transparent 23%),
    radial-gradient(circle at 94% 12%, rgba(23, 91, 184, 0.18), transparent 22%),
    radial-gradient(circle at 80% 82%, rgba(243, 202, 77, 0.2), transparent 26%);
}

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

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

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

.hero,
.game-section,
.meta-section,
.dollars-section,
.terminal-section,
.contract-section {
  border-bottom: 4px solid var(--line);
  overflow: clip;
}

.hero {
  min-height: 100svh;
  padding: clamp(18px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(239, 229, 203, 0.82)),
    var(--paper);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(30px, 6vw, 72px);
}

.brand,
h1,
h2,
.tagline,
.contract-box strong {
  font-family: "Rubik Mono One", Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 7px 14px 8px;
  border: 4px solid var(--line);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  transform: rotate(-1deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 3px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Patrick Hand SC", "Comic Sans MS", system-ui, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.nav-links a:hover,
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 13px;
  border: 3px solid var(--line);
  background: var(--green);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-transform: uppercase;
}

.label.crooked {
  transform: rotate(2deg);
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: 0.76;
  text-shadow: 8px 8px 0 var(--yellow);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 6.4rem);
  line-height: 0.9;
}

.tagline {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 4px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: clamp(1.05rem, 2.6vw, 2.3rem);
  line-height: 1.08;
  box-shadow: 7px 7px 0 var(--green);
}

.thesis {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.05;
}

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

.button.primary {
  background: var(--blue);
  color: #fff;
}

.stamp-frame,
.scene-card,
.wide-scene,
.terminal-art {
  position: relative;
  margin: 0;
  border: 5px solid var(--line);
  background: #fff;
  box-shadow: 12px 12px 0 var(--ink);
}

.stamp-frame {
  justify-self: center;
  width: min(510px, 100%);
  padding: 10px;
  transform: rotate(1.3deg);
}

.stamp-frame::after {
  content: "main token";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border: 3px solid var(--line);
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.stamp-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid var(--line);
}

.ticker-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 4px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.ticker-strip span {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 3px solid #fff;
  font-size: clamp(1.1rem, 2.1vw, 1.65rem);
  text-align: center;
  text-transform: uppercase;
}

.ticker-strip span:last-child {
  border-right: 0;
  color: var(--yellow);
}

.game-section,
.meta-section,
.dollars-section,
.terminal-section,
.contract-section {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.game-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: rgba(255, 255, 255, 0.44);
}

.section-copy p,
.terminal-copy p,
.contract-section p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.14;
}

.punch {
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 10px 14px;
  border: 4px solid var(--line);
  background: var(--yellow);
  color: var(--ink) !important;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1deg);
}

.wide-scene {
  overflow: hidden;
}

.wide-scene img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  padding: 10px 14px;
  border-top: 3px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.meta-section {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(23, 91, 184, 0.12), rgba(243, 202, 77, 0.2)),
    var(--paper-2);
}

.scene-card {
  overflow: hidden;
}

.scene-card.blue {
  transform: rotate(-1.2deg);
}

.scene-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dollars-section {
  background: #fff;
}

.section-heading {
  width: min(980px, 100%);
  margin: 0 auto clamp(26px, 5vw, 54px);
  text-align: center;
}

.dollar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.dollar-grid .scene-card:first-child {
  transform: rotate(1deg);
}

.dollar-grid .scene-card:last-child {
  transform: rotate(-1deg);
}

.terminal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(5, 31, 16, 0.96), rgba(8, 8, 6, 0.94)),
    var(--dark-green);
  color: #f2fff4;
}

.terminal-section .label {
  background: #1bd963;
  color: var(--ink);
}

.terminal-section p {
  color: rgba(242, 255, 244, 0.78);
}

.terminal-art {
  border-color: #b5ffc9;
  background: #06150d;
  box-shadow: 12px 12px 0 #1bd963;
}

.terminal-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contract-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--yellow);
}

.contract-box {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
  border: 5px solid var(--line);
  background: #fff;
  box-shadow: 10px 10px 0 var(--ink);
}

.contract-box span {
  color: var(--muted);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.contract-box strong {
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.copy-button {
  color: rgba(8, 8, 6, 0.56);
  cursor: not-allowed;
  box-shadow: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
}

footer a {
  color: var(--yellow);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-grid,
  .game-section,
  .meta-section,
  .terminal-section,
  .contract-section {
    grid-template-columns: 1fr;
  }

  .meta-section .scene-card {
    order: 2;
  }

  .ticker-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticker-strip span:nth-child(2) {
    border-right: 0;
  }

  .ticker-strip span:nth-child(-n + 2) {
    border-bottom: 3px solid #fff;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.8rem, 21vw, 5.2rem);
    text-shadow: 5px 5px 0 var(--yellow);
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  .tagline {
    font-size: 1rem;
  }

  .thesis,
  .section-copy p,
  .terminal-copy p,
  .contract-section p {
    overflow-wrap: break-word;
  }

  .button,
  .nav-links a {
    width: 100%;
  }

  .nav-links,
  .hero-actions {
    width: 100%;
  }

  .ticker-strip {
    grid-template-columns: 1fr;
  }

  .ticker-strip span,
  .ticker-strip span:nth-child(2) {
    border-right: 0;
    border-bottom: 3px solid #fff;
  }

  .ticker-strip span:last-child {
    border-bottom: 0;
  }

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

  .game-section,
  .meta-section,
  .dollars-section,
  .terminal-section,
  .contract-section {
    padding-inline: 16px;
  }

  .stamp-frame,
  .scene-card,
  .wide-scene,
  .terminal-art,
  .contract-box {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .terminal-art {
    box-shadow: 6px 6px 0 #1bd963;
  }
}
