:root {
  --paper: #f0ead5;
  --paper-deep: #d9cfad;
  --ink: #10100f;
  --blue: #143aa8;
  --green: #28df48;
  --red: #b5251e;
  --yellow: #f0c84b;
  --shadow: rgba(12, 10, 8, 0.28);
  --mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--mono);
  background:
    radial-gradient(circle at 18% 8%, rgba(40, 223, 72, 0.15), transparent 20rem),
    radial-gradient(circle at 82% 12%, rgba(181, 37, 30, 0.16), transparent 16rem),
    linear-gradient(90deg, rgba(16, 16, 15, 0.04) 1px, transparent 1px),
    linear-gradient(var(--paper), var(--paper-deep));
  background-size: auto, auto, 18px 18px, auto;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

.crt {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.08) 0,
      rgba(0, 0, 0, 0.08) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: multiply;
  opacity: 0.25;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(240, 234, 213, 0.88);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(92vh - 72px);
  padding: clamp(5rem, 16vh, 10rem) clamp(1rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 2px dashed rgba(16, 16, 15, 0.2);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/human-meme-board.png") center / cover no-repeat;
  opacity: 0.08;
  filter: saturate(0.8) contrast(1.15);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(720px, 58vw);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(4.8rem, 13vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 var(--green), -5px 5px 0 var(--red);
}

h2 {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.tagline {
  max-width: 900px;
  margin-bottom: 1.5rem;
  font-size: clamp(1.3rem, 4vw, 3.2rem);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

button,
.copy-button {
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

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

.hero-actions button {
  min-height: 48px;
  padding: 0.8rem 1.1rem;
}

.captcha-window,
.chat-window,
.proof-panel,
.terminal,
.manifesto {
  position: relative;
  max-width: 100%;
  border: 4px solid var(--ink);
  background: rgba(244, 238, 216, 0.95);
  box-shadow: 12px 12px 0 var(--shadow);
}

.captcha-window {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(2rem, 13vh, 8rem);
  width: min(48vw, 640px);
  transform: rotate(1.5deg);
}

.window-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  color: #fff;
  background: var(--blue);
  border-bottom: 4px solid var(--ink);
  font-weight: 900;
}

.window-buttons {
  white-space: nowrap;
}

.captcha-body {
  padding: clamp(1rem, 4vw, 2rem);
}

.captcha-noise {
  display: grid;
  place-items: center;
  min-height: clamp(90px, 18vw, 180px);
  margin-bottom: 1rem;
  color: rgba(16, 16, 15, 0.82);
  background:
    linear-gradient(22deg, transparent 47%, rgba(181, 37, 30, 0.35) 48%, transparent 50%),
    repeating-linear-gradient(5deg, rgba(16, 16, 15, 0.13), rgba(16, 16, 15, 0.13) 2px, transparent 2px, transparent 7px),
    #eee7cc;
  border: 3px solid var(--ink);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  filter: contrast(1.2);
  overflow: hidden;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 70px;
  padding: 0.8rem;
  background: #fff8db;
  text-align: left;
}

.box {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  background: white;
}

.checkbox.verified .box::after {
  content: "✓";
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
}

#verifyStatus {
  margin: 1rem 0 0;
  color: var(--red);
  font-weight: 900;
}

.ticker-strip {
  display: flex;
  width: 100%;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: var(--green);
  background: var(--ink);
  border-block: 4px solid var(--ink);
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
}

.ticker-strip span {
  min-width: max-content;
  animation: crawl 18s linear infinite;
}

@keyframes crawl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-28rem);
  }
}

.identity,
.archive {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.terminal {
  align-self: start;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--green);
  background: #050805;
  min-height: 280px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.terminal-line {
  margin-bottom: 0.8rem;
}

.terminal-line.prompt span,
.human-form input:focus {
  box-shadow: none;
}

.terminal-line.prompt span::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  height: 1.1em;
  margin-left: 0.3em;
  vertical-align: middle;
  background: var(--green);
  animation: blink 900ms steps(2, jump-none) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.manifesto {
  padding: clamp(1.2rem, 4vw, 3rem);
}

.manifesto p:not(.eyebrow) {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  font-weight: 700;
}

.poster-band {
  padding: clamp(1rem, 5vw, 4rem);
  background: var(--ink);
}

.poster-band img {
  display: block;
  width: min(100%, 1160px);
  margin: 0 auto;
  border: 5px solid var(--paper);
  box-shadow: 0 0 0 3px var(--ink), 18px 18px 0 rgba(40, 223, 72, 0.32);
}

.meme-lab {
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  max-width: 950px;
  margin-bottom: 1.4rem;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.meme-card {
  min-height: 190px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  background: #fff8db;
}

.meme-card:nth-child(2) {
  background: #d6ecff;
}

.meme-card:nth-child(3) {
  background: #ffe1d9;
}

.meme-card:nth-child(4) {
  background: #e4f7cd;
}

.meme-card span {
  color: var(--red);
  font-size: 1.8rem;
}

.meme-card strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.05;
}

.archive {
  align-items: start;
  padding-top: 0;
}

.chat-window {
  min-height: 410px;
}

.chat-log {
  height: 280px;
  padding: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
}

.chat-log p {
  margin: 0 0 0.9rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.chat-log b {
  color: var(--blue);
}

.human-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 3px solid var(--ink);
}

.human-form input {
  min-width: 0;
  padding: 0.8rem;
  border: 0;
  background: #fff8db;
  color: var(--ink);
  font-weight: 900;
}

.human-form button {
  min-width: 96px;
  border: 0;
  border-left: 3px solid var(--ink);
  box-shadow: none;
}

.proof-panel {
  min-height: 410px;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(9deg, transparent 48%, rgba(181, 37, 30, 0.14) 49%, transparent 51%),
    #fff8db;
}

.proof-panel h2 {
  color: var(--red);
  transform: rotate(-2deg);
}

.proof-panel button {
  width: max-content;
  max-width: 100%;
  min-height: 50px;
  padding: 0.8rem 1.1rem;
}

footer {
  padding: 1.4rem clamp(1rem, 5vw, 4rem);
  color: var(--green);
  background: var(--ink);
  font-weight: 900;
  text-align: center;
}

footer p {
  margin: 0;
}

.copied {
  background: var(--green) !important;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero,
  .identity,
  .archive {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    display: block;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7.6rem);
    text-shadow: 5px 5px 0 var(--green), -3px 3px 0 var(--red);
  }

  .tagline {
    font-size: clamp(1.45rem, 7vw, 2.5rem);
  }

  .hero::before {
    inset: 0.6rem;
  }

  .captcha-window {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1.5rem;
    transform: none;
  }

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

@media (max-width: 560px) {
  .topbar {
    padding: 0.7rem 0.85rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-inline: 1.5rem;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 4.4rem);
    text-shadow: 4px 4px 0 var(--green), -2px 2px 0 var(--red);
  }

  .tagline {
    font-size: clamp(1.2rem, 6.8vw, 1.75rem);
    max-width: 11em;
  }

  .hero-actions,
  .human-form {
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .meme-card,
  .proof-panel button {
    width: 100%;
  }

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

  .human-form {
    display: grid;
  }

  .human-form button {
    border-left: 0;
    border-top: 3px solid var(--ink);
  }
}
