:root {
  --paper: #f1eee5;
  --ink: #121310;
  --accent: #d9ff40;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@property --green-top {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 61%;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
}

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--ink);
  background: var(--accent);
}

.page {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) 0 clamp(72px, 9vw, 112px);
}

.brand-lockup {
  width: fit-content;
  max-width: 100%;
}

h1 {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(4.75rem, 10vw, 6.85rem);
  font-weight: 950;
  letter-spacing: -0.078em;
  line-height: 0.82;
  text-transform: lowercase;
}

.tagline {
  width: fit-content;
  margin: 13px 0 0 0.18em;
  padding: 0.13em 0.32em 0.1em;
  color: var(--ink);
  background: var(--accent);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(44px, 7vw, 74px);
  margin-top: clamp(30px, 4vw, 42px);
}

.visual {
  width: 100%;
}

.pump-cat {
  --green-active: 0;
  --green-top: 61%;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: --green-top 430ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.pump-cat:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 4px;
}

.pump-cat img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.02) saturate(0.94);
}

.pump-cue {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 0.38em 0.52em 0.3em;
  color: var(--ink);
  background: var(--accent);
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  pointer-events: none;
}

.cat-jump,
.green-fill {
  position: absolute;
  inset: 0;
  background: url("assets/pumpcat.jpg") center / 100% 100% no-repeat;
  pointer-events: none;
  -webkit-mask: url("assets/pumpcat-mask.png") center / 100% 100% no-repeat;
  mask: url("assets/pumpcat-mask.png") center / 100% 100% no-repeat;
}

.cat-jump {
  z-index: 1;
  opacity: 0;
}

.green-fill {
  z-index: 2;
  opacity: var(--green-active);
  transition: opacity 180ms ease-out;
}

.green-fill::before {
  position: absolute;
  inset: 0;
  background: url("assets/pumpcat.jpg") center / 100% 100% no-repeat;
  content: "";
  filter: sepia(1) saturate(1.9) hue-rotate(67deg) brightness(0.82) contrast(1.02);
  opacity: 0.68;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent calc(var(--green-top) - 1.5%),
    rgba(0, 0, 0, 0.68) var(--green-top),
    #000 calc(var(--green-top) + 2.5%),
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent calc(var(--green-top) - 1.5%),
    rgba(0, 0, 0, 0.68) var(--green-top),
    #000 calc(var(--green-top) + 2.5%),
    #000 100%
  );
}

.pump-cat.is-pumping .cat-jump {
  animation: cat-inside-hop 360ms cubic-bezier(0.2, 0.82, 0.3, 1);
}

.pump-cat.is-pumping .green-fill {
  animation: green-pulse 360ms ease-out;
}

.utility-row,
.pump-readout,
.launch-actions,
.token-line {
  display: flex;
  align-items: center;
}

.utility-row {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.64rem;
}

.pump-readout {
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: rgba(18, 19, 16, 0.6);
}

.pump-readout strong {
  padding: 0.08em 0.22em;
  color: var(--ink);
  background: var(--accent);
}

.contract-line {
  display: grid;
  grid-template-areas: "label address copy";
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  line-height: 1.2;
}

.contract-label {
  grid-area: label;
  color: rgba(18, 19, 16, 0.52);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contract-address {
  grid-area: address;
  min-width: 0;
  color: rgba(18, 19, 16, 0.72);
  font: inherit;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  user-select: all;
}

.contract-copy {
  grid-area: copy;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.contract-copy:hover,
.contract-copy:focus-visible {
  color: var(--ink);
  background: var(--accent);
  outline: none;
}

.token-line {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker {
  color: rgba(18, 19, 16, 0.52);
  font-weight: 800;
  letter-spacing: 0.035em;
}

.launch-actions {
  gap: 13px;
  flex-wrap: wrap;
  font-weight: 800;
}

.launch-actions a:hover,
.launch-actions a:focus-visible {
  background: var(--accent);
}

[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.4;
}

.lore {
  width: 100%;
  max-width: 510px;
  margin: 0;
  padding-top: 1px;
  font-size: clamp(0.85rem, 1.45vw, 0.98rem);
  line-height: 1.53;
}

.lore p {
  margin: 0 0 1.42em;
}

.lore .opening,
.signoff {
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.plain-list {
  padding-left: 13px;
  border-left: 3px solid var(--accent);
}

.green-word {
  padding: 0.04em 0.14em 0.02em;
  color: var(--ink);
  background: var(--accent);
  font-weight: 800;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@keyframes green-pulse {
  0%,
  100% {
    opacity: var(--green-active);
    transform: translateY(0);
  }

  38% {
    opacity: 1;
    transform: translateY(-6px);
  }

  72% {
    transform: translateY(1px);
  }
}

@keyframes cat-inside-hop {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  5%,
  92% {
    opacity: 1;
  }

  38% {
    opacity: 1;
    transform: translateY(-6px);
  }

  72% {
    opacity: 1;
    transform: translateY(1px);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 32px, 560px);
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(4.2rem, 20vw, 6rem);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 58px;
    margin-top: 28px;
  }

  .visual {
    width: min(350px, 100%);
  }

  .lore {
    max-width: 500px;
  }
}

@media (max-width: 390px) {
  .page {
    width: calc(100% - 24px);
  }

  .content-grid {
    gap: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pump-cat,
  .pump-cat.is-pumping .cat-jump,
  .pump-cat.is-pumping .green-fill {
    animation: none;
    transition: none;
  }
}
