:root {
  --paper: #f4efe5;
  --ink: #121212;
  --blue: #1554ff;
  --yellow: #f5df2e;
  --red: #ff5c44;
  --line: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --mono: "DM Mono", "Noto Sans SC", monospace;
  --hand: "Ma Shan Zheng", "Noto Sans SC", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; }
.site-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--yellow);
  border: var(--line);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.topbar {
  min-height: 82px;
  border-bottom: var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.06em;
  text-decoration: none;
}
.wordmark span { color: var(--blue); }
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 .7rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.live-dot {
  width: 9px;
  height: 9px;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
.topbar-index {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--ink);
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: 74px 3vw 84px;
}
.eyebrow {
  margin: 0 0 1rem;
  font: 500 .74rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow::before { content: "↳ "; color: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 1.6rem;
  font-size: clamp(2.8rem, 6.4vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 700;
}
h1 span {
  display: block;
  color: var(--blue);
  -webkit-text-stroke: 1px var(--ink);
}
.hero-dek {
  max-width: 430px;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 50px;
  border: var(--line);
  padding: .75rem 1.1rem;
  font: 700 .9rem var(--display);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.button:focus-visible { outline: 4px solid var(--red); outline-offset: 3px; }
.button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}
.button-ghost { background: transparent; }
.button-hit {
  background: var(--red);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
.button-hit.is-held,
.button-hit:disabled {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
  opacity: 1;
}

.hit-counter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 22px;
  position: relative;
}
.hit-total {
  display: flex;
  flex-direction: column;
  min-width: 7ch;
}
.hit-total span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
}
.hit-total small {
  font: 500 .68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
  color: #4e4c47;
}
.hit-pop {
  position: absolute;
  left: 28px;
  top: -22px;
  background: var(--yellow);
  border: var(--line);
  padding: 4px 9px;
  font: 700 .72rem var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) rotate(-6deg);
}
.hit-pop.is-visible { animation: pop 0.75s ease; }

.microcopy {
  margin-top: 1.35rem;
  color: #4e4c47;
  font: .72rem var(--mono);
  line-height: 1.5;
}

.hero-art {
  position: relative;
  width: min(100%, 500px);
  justify-self: center;
}
.art-stack {
  position: relative;
  transform: rotate(2.2deg);
}
.meme-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px 14px 11px;
  background: white;
  border: var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.meme-frame:active,
.meme-frame.is-scratching { cursor: pointer; }
.meme-frame img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: grayscale(1) contrast(1.04);
}
.meme-frame figcaption {
  margin-top: 10px;
  font: .62rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.meme-frame.is-scratching {
  animation: rattle .12s linear infinite;
}
.meme-frame.is-climax img {
  filter: grayscale(0) contrast(1.05) saturate(1.05);
}

.itch-hint {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: var(--yellow);
  border: var(--line);
  padding: .45rem .7rem;
  font: 700 .78rem var(--display);
  box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
  white-space: nowrap;
  animation: bob 1.8s ease-in-out infinite;
}
.hero-art.is-scratching .itch-hint,
.hero-art.has-scratched .itch-hint { display: none; }

.scratch-fx {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  font-size: 2.1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 2px 0 #fff);
}
.hero-art.is-scratching .scratch-fx {
  opacity: 1;
  animation: scratch .22s linear infinite;
}

.pips {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  padding-left: 2px;
}
.pips span {
  width: 22px;
  height: 7px;
  border: 2px solid var(--ink);
  background: transparent;
}
.pips span.on { background: var(--yellow); }
.pips span.hot { background: var(--red); }

.sticker-label {
  position: absolute;
  z-index: 4;
  top: -37px;
  right: -30px;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  border: var(--line);
  background: var(--yellow);
  font: 600 .83rem var(--mono);
  line-height: 1.15;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.sticker-label strong {
  font-size: 1.45rem;
  font-family: var(--display);
}
.hero-art.is-climax .sticker-label { background: var(--red); color: #fff; }

.tape {
  position: absolute;
  z-index: 5;
  width: 100px;
  height: 28px;
  background: rgba(236, 197, 102, .72);
  border: 1px solid rgba(18,18,18,.18);
}
.tape-a { top: -12px; left: 28%; transform: rotate(-4deg); }
.tape-b { bottom: 32px; right: -26px; transform: rotate(89deg); }

.scribble {
  position: absolute;
  z-index: 6;
  bottom: 25px;
  left: -53px;
  color: var(--red);
  font: 700 1.7rem var(--hand);
  transform: rotate(-13deg);
}

.ticker {
  overflow: hidden;
  border-top: var(--line);
  border-bottom: var(--line);
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}
.ticker-track {
  width: max-content;
  padding: 12px 0;
  font: 500 .8rem var(--mono);
  letter-spacing: .03em;
  animation: ticker 28s linear infinite;
}

.manifesto { padding: 98px 3vw 106px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.section-kicker {
  font: 500 .74rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #4e4c47;
  max-width: 28ch;
  line-height: 1.5;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
h2 em { color: var(--red); font-style: normal; }
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.note-card {
  min-height: 255px;
  padding: 22px 22px 26px;
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.note-card-blue { background: var(--blue); color: white; }
.note-card-yellow { background: var(--yellow); }
.note-card-white { background: #fffdf8; }
.note-number { font: 500 .75rem var(--mono); }
.note-card h3 {
  margin: 2.2rem 0 .7rem;
  font-size: 1.55rem;
  letter-spacing: -.04em;
}
.note-card p {
  max-width: 28ch;
  margin-bottom: 0;
  font-size: .93rem;
  line-height: 1.5;
}

.share-rail {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: 54px 3vw 70px;
  border-top: var(--line);
  border-bottom: var(--line);
}
.share-rail h2 span { color: var(--blue); }
.share-panel {
  border: var(--line);
  background: #fffdf8;
  padding: 22px;
  box-shadow: var(--shadow);
}
.url-line {
  display: flex;
  align-items: center;
  min-height: 75px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font: 1.15rem var(--mono);
}
.url-line span:first-child { color: #77736d; }
.url-line strong { color: var(--blue); }
.url-caret {
  margin-left: 3px;
  color: var(--red);
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.share-actions { display: flex; gap: 10px; margin-top: 13px; }
.share-button {
  flex: 1;
  min-height: 50px;
  border: var(--line);
  padding: .75rem 1.1rem;
  font: 700 .9rem var(--display);
  cursor: pointer;
  background: var(--yellow);
  text-align: center;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.share-button:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.share-button-dark { background: var(--ink); color: white; }

.footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: .68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-mark { letter-spacing: .35em; color: var(--red); }

@keyframes pulse { 50% { opacity: .35; transform: scale(.65); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}
@keyframes scratch {
  0%   { transform: translate(-70%, -20%) rotate(-18deg); }
  50%  { transform: translate(-10%, 18%) rotate(16deg); }
  100% { transform: translate(-70%, -20%) rotate(-18deg); }
}
@keyframes rattle {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  75% { transform: translate(2px, -1px); }
}
@keyframes pop {
  0% { opacity: 0; transform: translateY(10px) rotate(-6deg) scale(.9); }
  18% { opacity: 1; transform: translateY(-6px) rotate(-8deg) scale(1.05); }
  100% { opacity: 0; transform: translateY(-28px) rotate(-4deg) scale(.96); }
}

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

@media (max-width: 800px) {
  .site-shell { width: min(100% - 28px, 680px); }
  .topbar { min-height: 68px; }
  .topbar-meta span:not(.live-dot):not(.topbar-index) { display: none; }
  .topbar-index { margin-left: 0; padding-left: 0; border-left: 0; }
  .hero {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    padding: 42px 0 70px;
  }
  .hero-art { order: -1; width: min(88vw, 450px); margin-right: 8px; }
  h1 { font-size: clamp(2.6rem, 12vw, 4.6rem); }
  .manifesto, .share-rail { padding-left: 0; padding-right: 0; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 1.5rem; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 14px; }
  .note-card { min-height: 210px; }
  .share-rail { grid-template-columns: 1fr; gap: 2rem; }
  .footer { min-height: 76px; font-size: .58rem; }
  .footer span:nth-child(2) { display: none; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .sticker-label { right: -14px; top: -34px; transform: rotate(8deg) scale(.84); }
  .scribble { left: -11px; bottom: -8px; font-size: 1.25rem; }
  .share-actions { flex-direction: column; }
  .url-line { padding: 0 10px; font-size: .86rem; }
  .tape-b { right: -8px; }
}
