:root {
  --ink: #000;
  --paper: #f3f1eb;
  --font-display: "Times New Roman", Times, serif;
  --font-condensed: "Times New Roman", Times, serif;
  --font-black: "Times New Roman", Times, serif;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-condensed);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  text-rendering: geometricPrecision;
}

.filters {
  position: absolute;
  width: 0;
  height: 0;
}

.paper,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.paper {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.012) 3px,
      rgba(0, 0, 0, 0.012) 4px
    );
}

.grain {
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.marks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.mark {
  position: absolute;
  color: var(--ink);
  opacity: 0.55;
}

.mark-plus {
  top: 7vh;
  right: 6vw;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(8deg);
}

.mark-x {
  bottom: 14vh;
  left: 5vw;
  font-size: 16px;
  transform: rotate(-12deg);
}

.mark-o {
  top: 18vh;
  left: 8vw;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  opacity: 0.4;
}

.mark-scratch {
  top: 42%;
  right: 4vw;
  width: 42px;
  height: 1px;
  background: var(--ink);
  transform: rotate(-28deg);
  opacity: 0.35;
}

.mark-scratch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 8px;
  width: 28px;
  height: 1px;
  background: var(--ink);
  transform: rotate(9deg);
}

.mark-cross {
  bottom: 22vh;
  right: 9vw;
  width: 14px;
  height: 14px;
  opacity: 0.35;
}

.mark-cross::before,
.mark-cross::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.mark-cross::before {
  left: 6px;
  top: 0;
  width: 1.5px;
  height: 14px;
}

.mark-cross::after {
  top: 6px;
  left: 0;
  width: 14px;
  height: 1.5px;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8vh 5vw 12vh;
}

.endure,
.ffs {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.06em;
  filter: url(#rough);
  transform: rotate(-1.2deg);
  transition: transform 80ms steps(2), background-color 80ms linear, color 80ms linear,
    box-shadow 80ms linear;
  padding: 0.08em 0.12em;
}

.endure {
  font-size: clamp(3.6rem, 18vw, 12rem);
}

.ffs {
  font-size: clamp(7rem, 38vw, 22rem);
}

.endure:hover,
.endure:focus-visible,
.ffs:hover,
.ffs:focus-visible {
  outline: none;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(1.4deg) scale(1.03);
  box-shadow: 6px 6px 0 var(--ink);
}

.endure:active,
.endure.is-hit,
.ffs:active,
.ffs.is-hit {
  animation: hit 140ms steps(3);
}

.endure.is-out {
  animation: stamp-out 140ms steps(2) forwards;
}

@keyframes stamp-out {
  from {
    opacity: 1;
    transform: rotate(-1.2deg) scale(1);
  }
  to {
    opacity: 0;
    transform: rotate(2deg) scale(1.04);
  }
}

@keyframes hit {
  0% {
    transform: translate(0, 0) rotate(-1.2deg);
  }
  25% {
    transform: translate(-6px, 3px) rotate(-3deg);
  }
  50% {
    transform: translate(7px, -4px) rotate(2deg);
  }
  75% {
    transform: translate(-3px, 2px) rotate(-1deg);
  }
  100% {
    transform: translate(0, 0) rotate(-1.2deg);
  }
}

.line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 92vw;
  filter: url(#rough);
  animation: stamp 120ms steps(2);
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: translate(4px, -3px) scale(1.04);
  }
  to {
    opacity: 1;
  }
}

.line.is-center {
  text-align: center;
}

.line.is-left {
  justify-self: start;
  text-align: left;
  max-width: 86vw;
  transform: translateX(-2vw);
}

.line.is-right {
  justify-self: end;
  text-align: right;
  max-width: 86vw;
}

.line.is-tilt {
  text-align: center;
  transform: rotate(-3.4deg);
}

.line.is-tilt-r {
  text-align: center;
  transform: rotate(2.8deg);
}

.line.is-huge {
  font-size: clamp(3.4rem, 18vw, 12rem);
  max-width: none;
  width: 118vw;
  text-align: left;
  margin-left: -8vw;
  overflow: hidden;
}

.line.is-stack {
  text-align: left;
  max-width: 70vw;
  font-size: clamp(2.6rem, 11vw, 7.2rem);
  line-height: 0.92;
}

.line.is-tight {
  letter-spacing: -0.08em;
  text-align: center;
  font-size: clamp(3rem, 14vw, 9.5rem);
}

.line.is-black {
  font-family: var(--font-black);
  letter-spacing: -0.03em;
}

.line.is-oswald {
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.is-invert {
  background: var(--ink);
  color: var(--paper);
}

body.is-invert .grain {
  mix-blend-mode: screen;
  opacity: 0.12;
}

body.is-invert .paper {
  opacity: 0.15;
}

body.is-invert .mark,
body.is-invert .mark-o,
body.is-invert .mark-scratch,
body.is-invert .mark-scratch::after,
body.is-invert .mark-cross::before,
body.is-invert .mark-cross::after {
  color: var(--paper);
  background: var(--paper);
  border-color: var(--paper);
}

.site-foot {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.wordmark {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  pointer-events: none;
  opacity: 0.55;
}

.ig {
  pointer-events: auto;
  font-family: "Times New Roman", Times, serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.45;
}

/* Full-screen brutal hit layer — no cards, borders, or gallery chrome */
.hit {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: #000;
  overflow: hidden;
  pointer-events: none;
}

.hit-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
  background: #000;
  filter: contrast(1.15) grayscale(1);
}

.hit.is-burst .hit-media {
  filter: contrast(1.35) grayscale(1);
}

.hit.is-hold .hit-media {
  transform: scale(1.08);
}

.line.is-jolt {
  animation: jolt 160ms steps(3);
}

@keyframes jolt {
  0% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(-10px, 4px) scale(1.06) rotate(-2deg);
  }
  60% {
    transform: translate(8px, -5px) scale(0.97) rotate(2deg);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

body.is-shake {
  animation: shake 160ms steps(3);
}

@keyframes shake {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-8px, 3px);
  }
  50% {
    transform: translate(9px, -4px);
  }
  75% {
    transform: translate(-4px, 2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

body.is-glitch .stage {
  filter: url(#rough) contrast(1.4);
  transform: translate(3px, -2px) skewX(-1deg);
}

@media (max-width: 640px) {
  .endure {
    font-size: clamp(3rem, 22vw, 7rem);
  }

  .ffs {
    font-size: clamp(6rem, 48vw, 12rem);
  }

  .line.is-huge {
    font-size: clamp(2.8rem, 16vw, 6rem);
  }

  .line.is-stack {
    max-width: 88vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .endure,
  .ffs,
  .line,
  body.is-shake,
  .line.is-jolt {
    animation: none;
    transition: none;
    filter: none;
  }
}
