:root {
  --yellow: #f6c739;
  --yellow-deep: #e3ad1d;
  --ink: #111111;
  --cream: #fff4cf;
  --blue: #7dc7f0;
  --pink: #ff6f91;
  --green: #2fd47f;
  --white: #ffffff;
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.36) 0 10%, transparent 11%),
    radial-gradient(circle at 92% 12%, rgba(125, 199, 240, 0.38) 0 8%, transparent 9%),
    linear-gradient(180deg, var(--yellow), #f3bc28 62%, #efa91e);
  font-family:
    Arial Black, Impact, Haettenschweiler, "Arial Narrow Bold", system-ui,
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 2px, transparent 2px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 75%);
}

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

button {
  color: inherit;
  font: inherit;
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 14px 0;
}

.brand,
.nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 22px;
  text-transform: lowercase;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav {
  gap: 10px;
}

.nav a {
  padding: 12px 16px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  text-transform: lowercase;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: 28px;
  min-height: calc(100vh - 96px);
  padding: 12px 0 36px;
}

.kicker,
.section-title p,
.contract-card span {
  margin: 0;
  font-family: Arial, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 13px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(66px, 11.2vw, 144px);
  line-height: 0.88;
  text-transform: lowercase;
  text-wrap: balance;
}

.tagline {
  display: inline-block;
  min-width: min(100%, 430px);
  margin: 0 0 28px;
  padding: 12px 18px;
  border: 4px solid var(--ink);
  border-radius: 10px;
  background: var(--pink);
  box-shadow: var(--shadow);
  color: var(--white);
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1;
  transform: rotate(-2deg);
}

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

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 4px solid var(--ink);
  border-radius: 12px;
  padding: 0 22px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-transform: lowercase;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.buy {
  background: var(--green);
}

.social,
.copy-button {
  background: var(--cream);
}

.photo-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 610px);
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) rotate(1.5deg);
  transition:
    filter 180ms ease,
    transform 180ms ease;
  will-change: transform;
}

.photo-wrap:hover {
  filter: drop-shadow(0 0 28px rgba(255, 244, 207, 0.92));
}

.photo-wrap::before {
  position: absolute;
  inset: 20px -14px -14px 20px;
  z-index: 0;
  content: "";
  border: 5px solid var(--ink);
  border-radius: 38px;
  background: var(--blue);
}

.photo-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--ink);
  border-radius: 38px;
  box-shadow: 12px 12px 0 var(--ink);
}

.coin-badge {
  position: absolute;
  right: -8px;
  top: -18px;
  z-index: 2;
  display: grid;
  width: clamp(104px, 15vw, 150px);
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--ink);
  font-size: clamp(19px, 3vw, 30px);
  transform: rotate(9deg);
}

.contract-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.contract-card span {
  font-size: 12px;
}

code {
  overflow-wrap: anywhere;
  font-family: "Courier New", monospace;
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 950;
}

.copy-button {
  min-height: 48px;
}

.ticker {
  overflow: hidden;
  margin-bottom: 28px;
  border-block: 5px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 18s linear infinite;
}

.ticker span {
  padding: 15px 24px;
  white-space: nowrap;
  font-size: 24px;
  text-transform: lowercase;
}

.helmet-meter,
.how-to,
.meme-wall,
.helmet-yourself {
  margin-bottom: 28px;
  padding: 22px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.helmet-meter {
  background: var(--blue);
}

.helmet-meter .section-title,
.how-to .section-title,
.meme-wall .section-title,
.helmet-yourself .section-title {
  margin-bottom: 18px;
}

.helmet-yourself {
  background: var(--blue);
}

.helmet-page {
  margin-top: 18px;
}

.helmet-page h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(58px, 10vw, 128px);
}

.generator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 20px;
  align-items: stretch;
}

.generator-stage {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(17, 17, 17, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(17, 17, 17, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(17, 17, 17, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(17, 17, 17, 0.08) 75%),
    var(--cream);
  background-position:
    0 0,
    0 14px,
    14px -14px,
    -14px 0;
  background-size: 28px 28px;
  box-shadow: 6px 6px 0 var(--ink);
}

.helmet-canvas {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  cursor: grab;
  touch-action: none;
}

.helmet-canvas:active {
  cursor: grabbing;
}

.generator-controls {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
}

.generator-controls label {
  display: grid;
  gap: 8px;
  font-size: 18px;
  text-transform: lowercase;
}

.strap-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.strap-toggle input {
  width: 24px;
  height: 24px;
  accent-color: var(--green);
}

.upload-button,
.download-helmet {
  min-height: 54px;
  border: 4px solid var(--ink);
  border-radius: 12px;
  background: var(--green);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
}

.upload-button {
  display: grid;
  place-items: center;
  text-align: center;
}

.upload-button input {
  display: none;
}

.generator-controls input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}

.download-helmet {
  background: var(--pink);
  color: var(--white);
  text-transform: lowercase;
}

.download-helmet:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.generator-note {
  margin: 0;
  color: #5c3e00;
  font-family: Arial, system-ui, sans-serif;
  font-weight: 950;
  text-transform: lowercase;
}

.meter-shell {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}

.meter-fill {
  width: 100%;
  height: 78px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--green) 0 18px,
      #20be70 18px 36px
    );
  animation: meterPulse 1.4s ease-in-out infinite alternate;
}

.meter-shell span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 18px;
  font-size: clamp(20px, 3vw, 42px);
  text-align: center;
  text-transform: lowercase;
}

@keyframes meterPulse {
  from {
    filter: saturate(1);
  }

  to {
    filter: saturate(1.45) brightness(1.08);
  }
}

.steps,
.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article,
.wall-grid figure {
  margin: 0;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}

.steps article {
  min-height: 210px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.steps b {
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 24px;
}

.steps strong {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.9;
  text-transform: lowercase;
}

.steps span,
.wall-grid figcaption,
.sticky-buy button,
.sticky-buy a {
  font-family: Arial, system-ui, sans-serif;
  font-weight: 950;
  text-transform: lowercase;
}

.steps span {
  color: #563a00;
  line-height: 1.35;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.split {
  display: block;
  margin-bottom: 28px;
}

.tweet-card,
.meme-grid div {
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.tweet-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
}

.tweet-card .section-title {
  grid-column: 1 / -1;
}

.section-title p {
  margin-bottom: 8px;
  color: #7a5300;
  font-size: 12px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.82;
  text-transform: lowercase;
}

.tweet-frame {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
}

.tweet-frame .twitter-tweet {
  width: min(100%, 560px) !important;
  margin: 0 auto !important;
}

.hover-photo {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--ink);
  cursor: pointer;
}

.hover-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.hover-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  text-transform: lowercase;
}

.wave {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 30px;
  height: 30px;
  border: 4px solid var(--yellow);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.45);
}

.hover-photo:hover .wave {
  animation: wavePop 980ms ease-out infinite;
}

.hover-photo:hover .wave.two {
  animation-delay: 160ms;
}

.hover-photo:hover .wave.three {
  animation-delay: 320ms;
}

@keyframes wavePop {
  0% {
    opacity: 0.88;
    transform: scale(0.35);
  }

  100% {
    opacity: 0;
    transform: scale(3.1);
  }
}

.hover-photo:hover img {
  filter: saturate(1.28) contrast(1.06);
  transform: scale(1.04) rotate(-1deg);
}

.wall-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wall-grid figure {
  min-height: 330px;
  overflow: hidden;
  background: var(--pink);
}

.wall-grid img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.wall-grid figcaption {
  padding: 12px;
  border-top: 4px solid var(--ink);
  background: var(--cream);
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.meme-grid div {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 20px;
}

.meme-grid strong {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.92;
  text-transform: lowercase;
}

.meme-grid span,
footer {
  font-family: Arial, system-ui, sans-serif;
  font-weight: 950;
  text-transform: lowercase;
}

.meme-grid span {
  margin-top: 18px;
  color: #6d4a00;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 104px;
}

.sticky-buy {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 10px;
  align-items: center;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.sticky-buy strong {
  padding: 0 12px;
  font-size: 28px;
  text-transform: lowercase;
}

.sticky-buy button,
.sticky-buy a {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  cursor: pointer;
}

.sticky-buy a {
  background: var(--green);
}

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

  .nav {
    width: 100%;
    align-items: stretch;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .hero,
  .generator-grid,
  .meme-grid,
  .steps,
  .wall-grid {
    grid-template-columns: 1fr;
  }

  .tweet-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .photo-wrap {
    width: min(100%, 560px);
  }

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

  .copy-button {
    width: 100%;
  }

  .wall-grid img {
    height: 310px;
  }

  .generator-stage {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .topbar,
  main,
  footer {
    width: min(100% - 18px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav a {
    min-width: calc(50% - 5px);
    padding-inline: 10px;
  }

  h1 {
    font-size: 64px;
  }

  .tagline {
    font-size: 26px;
  }

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

  .photo-wrap,
  .photo-wrap img {
    border-radius: 24px;
  }

  .coin-badge {
    right: 4px;
  }

  .tweet-card {
    padding: 14px;
  }

  .tweet-frame {
    min-height: 340px;
  }

  .hover-photo,
  .hover-photo img {
    min-height: 340px;
  }

  footer {
    flex-direction: column;
  }

  .sticky-buy {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-buy strong {
    grid-column: 1 / -1;
    text-align: center;
  }
}
