:root {
  --ink: #0b0f0a;
  --paper: #ffffff;
  --white: #ffffff;
  --frog: #98b96a;
  --frog-dark: #5f7f39;
  --acid: #dfff43;
  --sun: #ffc83d;
  --hot: #ff5a4c;
  --blue: #7fd6ff;
  --muted: #d7d1b4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "Space Mono", monospace;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

main,
.site-header,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 18px;
  padding: 10px;
  color: var(--ink);
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--frog);
}

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

.brand-mark {
  width: 54px;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.brand-lockup span {
  font-family: "Chewy", "Patrick Hand", cursive;
  font-size: 36px;
  line-height: 1;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--sun);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.icon-button img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.icon-button span[aria-hidden="true"] {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  min-height: min(720px, calc(100svh - 168px));
  align-items: center;
  overflow: hidden;
  margin-bottom: 42px;
  padding: 68px 42px 122px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--frog);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 2px dashed rgba(11, 15, 10, 0.25);
  pointer-events: none;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: end;
  min-width: 0;
  transform: translate(28px, 50px);
}

.hero-frog {
  position: relative;
  z-index: 1;
  width: min(470px, 108%);
  opacity: 1;
  filter: drop-shadow(12px 12px 0 var(--ink));
  pointer-events: none;
  transform: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 18px;
  width: min(590px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 12px;
  color: var(--ink);
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Chewy", "Patrick Hand", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  display: inline-flex;
  align-items: baseline;
  gap: 0.035em;
  font-size: 136px;
  line-height: 1.08;
  max-width: 100%;
  margin-bottom: 18px;
  color: var(--white);
  -webkit-text-stroke: 1.6px var(--ink);
  text-shadow: 4px 5px 0 var(--blue), 8px 9px 0 rgba(11, 15, 10, 0.18);
  white-space: nowrap;
}

h1 span {
  display: block;
}

.hero-line {
  max-width: 720px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: 8px;
  font-family: "Patrick Hand", cursive;
  font-size: 32px;
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 58px;
  gap: 10px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  background: var(--sun);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(4px, 4px);
}

.action-button--primary {
  background: var(--acid);
}

.action-button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.contract-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--frog);
  border-top: 4px solid var(--ink);
}

.contract-label {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 38px;
  color: var(--ink);
  background: var(--hot);
  border: 3px solid var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.contract-strip code {
  min-width: 0;
  max-width: min(520px, 58vw);
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 700;
}

.copy-button {
  min-width: 86px;
  min-height: 40px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--sun);
}

.meme-wall {
  padding: 26px 0 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading p {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--hot);
  border: 3px solid var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--ink);
  font-size: 64px;
  line-height: 0.95;
  text-align: right;
  text-shadow: 4px 4px 0 var(--frog-dark);
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.meme-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--frog);
  transform: rotate(-1deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.meme-card:nth-child(2n) {
  box-shadow: 8px 8px 0 var(--sun);
  transform: rotate(1deg);
}

.meme-card:nth-child(3n) {
  box-shadow: 8px 8px 0 var(--hot);
  transform: rotate(-0.6deg);
}

.meme-card:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(4px, 4px) rotate(0deg);
}

.meme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--white);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 30px;
  color: var(--frog-dark);
  font-size: 13px;
  text-transform: uppercase;
}

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

@media (max-width: 940px) {
  .site-header {
    position: static;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: min(680px, calc(100svh - 150px));
    gap: 18px;
    padding-top: 64px;
    text-align: center;
    justify-items: center;
  }

  h1 {
    font-size: 106px;
  }

  .hero-line {
    font-size: 28px;
  }

  .hero-copy {
    display: contents;
    justify-items: center;
    width: 100%;
  }

  .eyebrow {
    order: 1;
  }

  h1 {
    order: 2;
    margin-bottom: 24px;
    transform: translateY(-16px);
  }

  .hero-line {
    order: 4;
  }

  .hero-actions {
    order: 5;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: 3;
    transform: translateX(18px);
    margin-bottom: -18px;
  }

  .hero-frog {
    width: min(310px, 70vw);
  }

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

  .section-heading h2 {
    font-size: 54px;
    text-align: left;
  }

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

@media (max-width: 640px) {
  main,
  .site-header,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    margin-top: 10px;
    box-shadow: 5px 5px 0 var(--frog);
  }

  .brand-lockup {
    justify-content: center;
  }

  .brand-mark {
    width: 46px;
  }

  .brand-lockup span {
    font-size: 31px;
  }

  .nav-actions {
    justify-content: center;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: min(610px, calc(100svh - 150px));
    margin-bottom: 30px;
    padding: 54px 14px 118px;
    box-shadow: 7px 7px 0 var(--frog-dark);
  }

  .hero-visual {
    transform: translateX(8px);
    margin-bottom: -22px;
  }

  .hero-frog {
    width: min(255px, 68vw);
  }

  .hero-line {
    position: relative;
    z-index: 2;
  }

  .eyebrow {
    font-size: 12px;
  }

  h1 {
    font-size: 64px;
    margin-bottom: 30px;
    -webkit-text-stroke: 1.2px var(--ink);
    text-shadow: 3px 4px 0 var(--blue), 6px 7px 0 rgba(11, 15, 10, 0.18);
    transform: translateY(-20px);
  }

  .hero-line {
    max-width: 330px;
    font-size: 24px;
  }

  .hero-actions {
    gap: 10px;
    max-width: 340px;
  }

  .action-button {
    flex: 1 1 150px;
    min-width: 0;
    width: auto;
    min-height: 54px;
  }

  .contract-strip {
    flex-wrap: wrap;
    min-height: 104px;
  }

  .contract-strip code {
    max-width: calc(100% - 126px);
    font-size: 14px;
  }

  .meme-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .meme-card,
  .meme-card:nth-child(2n),
  .meme-card:nth-child(3n) {
    transform: none;
  }

  .section-heading h2 {
    font-size: 44px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 22px;
  }
}

@media (max-width: 380px) {
  .brand-lockup span {
    font-size: 27px;
  }

  h1 {
    font-size: 56px;
  }

  .hero-line {
    font-size: 22px;
  }

  .contract-strip {
    justify-content: flex-start;
  }

  .contract-strip code {
    max-width: 100%;
  }
}
