:root {
  --bg: #ffe600;
  --ink: #0a0a0a;
  --muted: #1a1a1a;
  --font-display: "Anton", Impact, "Arial Black", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
}

.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  justify-items: center;
  gap: clamp(0.4rem, 1.2vh, 0.9rem);
  padding: clamp(0.75rem, 2.5vh, 1.5rem) clamp(0.75rem, 3vw, 1.5rem)
    clamp(1rem, 3vh, 1.75rem);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  letter-spacing: 0.01em;
  line-height: 0.9;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--ink);
  animation: slam 0.5s cubic-bezier(0.2, 1.45, 0.3, 1) both;
}

.meme-wrap {
  margin: 0;
  width: min(94vw, 78dvh, 640px);
  animation: slam 0.65s cubic-bezier(0.2, 1.3, 0.3, 1) 0.06s both;
}

.meme {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid #0a0a0a;
}

.tagline {
  margin: 0;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  animation: fade-up 0.55s ease 0.25s both;
}

.copy {
  appearance: none;
  border: 2px solid #0a0a0a;
  background: #0a0a0a;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  animation: fade-up 0.55s ease 0.35s both;
}

.copy:hover,
.copy:focus-visible {
  background: transparent;
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.copy.copied {
  background: transparent;
  color: var(--ink);
}

@keyframes slam {
  from {
    opacity: 0;
    transform: scale(1.18) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .meme-wrap,
  .tagline,
  .copy {
    animation: none;
  }
}
