:root {
  --ink: #12100c;
  --paper: #f3e4be;
  --dirty: #d8bd78;
  --yellow: #f0b90b;
  --green: #1ed760;
  --red: #e73b2f;
  --cream: #fff4d3;
  --line: rgba(18, 16, 12, 0.24);
  --shadow: 7px 7px 0 rgba(18, 16, 12, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 16, 12, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(18, 16, 12, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

button,
a {
  font: inherit;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: radial-gradient(rgba(18, 16, 12, 0.28) 0.7px, transparent 0.7px);
  background-size: 6px 6px;
  mix-blend-mode: multiply;
}

.topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1180px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 1000;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
  transform: rotate(-5deg);
}

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

nav a {
  padding: 8px 11px;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 950;
}

nav a:hover {
  border-color: var(--ink);
  background: var(--yellow);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1180px, calc(100% - 28px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  padding: 24px 0 64px;
}

.copy {
  max-width: 720px;
}

.stamp {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px 8px;
  color: var(--cream);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

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

h1 {
  margin: 0 0 8px;
  font-size: clamp(96px, 16vw, 184px);
  line-height: 0.86;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 7px 7px 0 var(--yellow), 12px 12px 0 var(--ink);
}

.ticker-name {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.9;
  font-weight: 1000;
  color: var(--red);
  text-shadow: 4px 4px 0 var(--ink);
}

.lead {
  max-width: 650px;
  margin-bottom: 26px;
  font-size: clamp(22px, 2.45vw, 34px);
  line-height: 1.12;
  font-weight: 950;
}

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

.btn {
  min-width: 116px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-weight: 1000;
  transition: transform 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

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

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

.btn.primary {
  background: var(--green);
}

.poster {
  position: relative;
  margin: 0;
  transform: rotate(1.5deg);
}

.poster::before {
  content: "";
  position: absolute;
  inset: 18px -12px -12px 18px;
  z-index: -1;
  background: var(--red);
  border: 3px solid var(--ink);
  transform: rotate(-4deg);
}

.poster img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--cream);
}

.poster figcaption {
  width: fit-content;
  margin: -20px auto 0;
  position: relative;
  padding: 9px 13px;
  border: 3px solid var(--ink);
  background: var(--green);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 1000;
  transform: rotate(-2deg);
}

.crawl {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 14px 0 16px;
  border-block: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(20px, 3vw, 42px);
  font-weight: 1000;
  white-space: nowrap;
  animation: crawl 24s linear infinite;
}

.crawl span {
  padding-inline: 16px;
}

@keyframes crawl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.meme,
.sus-grid,
.poster-strip,
.contract {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.meme {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding: 72px 0 26px;
}

.meme-card {
  min-height: 230px;
  padding: clamp(20px, 3vw, 34px);
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.meme-card.big {
  grid-row: span 2;
  min-height: 476px;
  background: var(--ink);
  color: var(--cream);
}

.card-number {
  display: block;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 1000;
  color: var(--red);
}

.meme-card.big .card-number {
  color: var(--yellow);
}

.meme-card h2,
.poster-strip h2,
.contract h2 {
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: 0;
}

.meme-card h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 0.95;
}

.meme-card p,
.poster-strip p,
.contract p {
  margin-bottom: 0;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.18;
  font-weight: 800;
}

.sus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 42px 0 70px;
}

.sus-grid article {
  min-height: 190px;
  padding: 18px;
  border: 3px solid var(--ink);
  background: var(--dirty);
  transform: rotate(var(--tilt, -1deg));
}

.sus-grid article:nth-child(2) {
  --tilt: 1.4deg;
  background: var(--green);
}

.sus-grid article:nth-child(3) {
  --tilt: -1.8deg;
  background: var(--red);
  color: var(--cream);
}

.sus-grid article:nth-child(4) {
  --tilt: 1deg;
  background: var(--cream);
}

.sus-grid span {
  display: block;
  margin-bottom: 20px;
  font-size: clamp(26px, 4vw, 54px);
  line-height: 0.9;
  font-weight: 1000;
}

.sus-grid p {
  margin: 0;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 900;
}

.poster-strip {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 18px;
  padding: 42px 0 76px;
}

.strip-copy {
  padding: clamp(24px, 4vw, 46px);
  border-block: 4px solid var(--ink);
}

.mini-poster {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow);
  font-size: 96px;
  font-weight: 1000;
}

.mini-poster.left {
  transform: rotate(-7deg);
}

.mini-poster.right {
  color: var(--cream);
  background: var(--ink);
  transform: rotate(6deg);
}

.contract {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 24px;
  padding: 0 0 78px;
}

.ca-box {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
}

code {
  flex: 1;
  min-width: 0;
  padding: 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px dashed var(--ink);
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.copy {
  min-width: 92px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  cursor: pointer;
  font-weight: 1000;
}

footer {
  width: min(1180px, calc(100% - 28px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 3px solid var(--ink);
  font-size: 15px;
  font-weight: 950;
}

@media (max-width: 880px) {
  .topbar {
    min-height: 66px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .poster {
    width: min(100%, 520px);
    justify-self: center;
  }

  .meme,
  .contract {
    grid-template-columns: 1fr;
  }

  .meme-card.big {
    min-height: 360px;
  }

  .sus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .mini-poster {
    width: 150px;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .lead {
    font-size: 22px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .actions .btn:first-child {
    grid-column: 1 / -1;
  }

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

  .sus-grid article {
    min-height: 150px;
  }

  .ca-box {
    flex-direction: column;
  }

  .copy {
    min-height: 46px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
