/* OpenSlide Papercut Zine Fest, MIT © 2026 Yiwei Ho.
   RisoText / Scrap / Tape / Badge / RectStamp / RoundStamp.
   Official geometry and ink layers; responsive flow lives in papercut-home.css. */
@font-face {
  font-family: Bricolage;
  src: url("../papercut/fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../papercut/fonts/CourierPrime-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../papercut/fonts/CourierPrime-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Rubik Mono One";
  src: url("../papercut/fonts/RubikMonoOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f3ede0;
  --sheet: #fbf8f1;
  --blue: #0078bf;
  --pink: #ff48b0;
  --text: #075b84;
  --fine: #36657c;
  --pink-text: #a7216d;
  --rule: #a3b4b6;
  --display: Bricolage, "Arial Narrow", sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --stamp: "Rubik Mono One", "Arial Black", sans-serif;
  color-scheme: light;
}
.riso {
  position: relative;
  isolation: isolate;
  color: transparent;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings:
    "wdth" 75,
    "opsz" 96;
  letter-spacing: -0.015em;
  line-height: 1.06;
  --ink-x: 4px;
  --ink-y: -3px;
}
.riso::before,
.riso::after {
  content: attr(data-ink) / "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  mask-image: url("../papercut/textures/type-speckle.svg");
  mask-size: 240px;
}
.riso::before {
  color: var(--pink);
  transform: translate(var(--ink-x), var(--ink-y));
}
.riso::after {
  color: var(--blue);
}
.scrap {
  position: relative;
  isolation: isolate;
  --paper-fill: var(--sheet);
  background: var(--paper-fill);
  rotate: var(--paper-rotation, 0deg);
}
.scrap:has(> .torn-backing) {
  background: transparent;
}
.scrap::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 6px 7.3px;
  background: var(--paper-dots, radial-gradient(circle, var(--blue) 1px, transparent 1.8px) 0 0 / 4px 4px);
  clip-path: var(--torn-outline, inset(0));
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
  z-index: -2;
}
.torn-backing {
  position: absolute;
  inset: 0;
  background: var(--paper-fill);
  clip-path: var(--torn-outline);
  z-index: -1;
  pointer-events: none;
}
.tape {
  position: absolute;
  width: var(--tape-width, 90px);
  height: var(--tape-height, 26px);
  left: var(--tape-left, auto);
  right: var(--tape-right, auto);
  top: var(--tape-top, auto);
  bottom: var(--tape-bottom, auto);
  rotate: var(--tape-rotation, 0deg);
  /* Baked upstream teeth and dots: no JS sizing or CSS blend/clip layer. */
  background: url("../papercut/textures/tape-pink.svg") center / 100% 100% no-repeat;
  z-index: 6;
  pointer-events: none;
}
.tape--blue {
  --tape-color: var(--blue);
  background-image: url("../papercut/textures/tape-blue.svg");
}
.tape--pink {
  --tape-color: var(--pink);
}
/* Placement follows the named official composition, not a universal corner preset. */
.tape--cover-a {
  --tape-left: -7%;
  --tape-top: 3%;
  --tape-width: 28%;
  --tape-rotation: -38deg;
}
.tape--cover-b {
  --tape-right: -8%;
  --tape-bottom: 20%;
  --tape-width: 28%;
  --tape-rotation: -32deg;
}
.tape--numbers-a {
  --tape-right: -8%;
  --tape-top: -8px;
  --tape-width: 29%;
  --tape-rotation: -6deg;
}
.tape--numbers-b {
  --tape-left: -7%;
  --tape-top: -8px;
  --tape-width: 29%;
  --tape-rotation: 8deg;
}
.tape--voices-a {
  --tape-left: 5%;
  --tape-top: -10px;
  --tape-width: 18%;
  --tape-rotation: -28deg;
}
.tape--voices-b {
  --tape-right: 5%;
  --tape-top: -15px;
  --tape-width: 18%;
  --tape-rotation: 24deg;
}
.tape--access {
  --tape-left: -6%;
  --tape-top: 28%;
  --tape-width: 20%;
  --tape-rotation: -50deg;
}
.tape--facts-a {
  --tape-left: 36%;
  --tape-top: -10px;
  --tape-width: 26%;
  --tape-rotation: 4deg;
}
.tape--facts-b {
  --tape-right: -6%;
  --tape-bottom: 23%;
  --tape-width: 24%;
  --tape-rotation: -8deg;
}
.tape--close-a {
  --tape-left: -4.55%;
  --tape-top: 0px;
  --tape-width: 17.05%;
  --tape-rotation: -30deg;
}
.tape--close-b {
  --tape-left: 88.64%;
  --tape-top: -10px;
  --tape-width: 15.91%;
  --tape-rotation: 26deg;
}
.badge-band {
  position: relative;
  height: 52px;
  clip-path: var(--torn-outline, inset(0));
}
.badge-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--badge-ink, var(--blue));
  mix-blend-mode: multiply;
  mask-image: url("../papercut/textures/speckle.svg");
  mask-size: 240px;
}
.badge-band::after {
  content: "";
  position: absolute;
  left: 44%;
  top: 28.125%;
  width: 12%;
  height: 21.875%;
  border-radius: 7px;
  background: var(--paper);
}
.project-stamp {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 3px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: 3px;
  padding: 10px 14px 9px;
  font-family: var(--stamp);
  line-height: 1.15;
  color: var(--pink-text);
  rotate: 3deg;
  mix-blend-mode: multiply;
  mask-image: url("../papercut/textures/worn.svg");
  mask-size: 200px;
}
.project-stamp strong {
  font: 400 35px/1 var(--stamp);
  letter-spacing: -0.06em;
}
.project-stamp > span {
  display: grid;
  gap: 6px;
  font: 700 12px/1.3 var(--mono);
  letter-spacing: 0.08em;
}
.project-stamp small {
  font: inherit;
}
.project-stamp--ranking {
  gap: 22px;
}
.project-stamp--ranking .venue-stack {
  font: 400 24px/1.15 var(--stamp);
  gap: 7px;
  letter-spacing: -0.04em;
}
.project-stamp--ranking .venue-stack small {
  font: 700 15px var(--mono);
  letter-spacing: 0.1em;
}
.project-stamp--ranking strong {
  font-size: 38px;
  border-left: 1px solid currentColor;
  padding-left: 20px;
}
.round-stamp {
  color: var(--blue);
  rotate: -14deg;
  mix-blend-mode: multiply;
  mask-image: url("../papercut/textures/worn.svg");
  mask-size: 200px;
}
.round-stamp svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.round-stamp text {
  font: 400 20px var(--stamp);
}
.round-stamp .stamp-center {
  font-size: 42px;
}
.round-stamp .stamp-sub {
  font-size: 14px;
}
/* Official entrance timing and registration keyframes. */
@keyframes pc-reg-p {
  0% {
    opacity: 0;
    translate: -18px 11px;
  }
  30% {
    opacity: 1;
  }
  55% {
    translate: 5px -3px;
  }
  78% {
    translate: -2px 1px;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes pc-reg-b {
  0% {
    opacity: 0;
    translate: 11px -8px;
  }
  30% {
    opacity: 1;
  }
  58% {
    translate: -3px 2px;
  }
  82% {
    translate: 1px -1px;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes pc-press {
  0% {
    opacity: 0;
    translate: 6px -8px;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes pc-dialog {
  from {
    opacity: 0;
    transform: translate(5px, -4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* User-requested occasional hero beat, not an upstream repeating effect. */
@keyframes pc-heartbeat-blue {
  0%,
  100% {
    translate: 0 0;
  }
  12% {
    translate: var(--beat-x) var(--beat-y);
  }
  28%,
  38% {
    translate: 0 0;
  }
  51% {
    translate: calc(var(--beat-x) * -0.45) calc(var(--beat-y) * -0.45);
  }
  72% {
    translate: 0.4px 0;
  }
}
@keyframes pc-heartbeat-pink {
  0%,
  100% {
    translate: 0 0;
  }
  9% {
    translate: calc(var(--beat-x) * -1.15) calc(var(--beat-y) * -1.15);
  }
  25% {
    translate: calc(var(--beat-x) * 0.3) 0;
  }
  36% {
    translate: 0 0;
  }
  49% {
    translate: calc(var(--beat-x) * 0.7) calc(var(--beat-y) * 0.6);
  }
  70% {
    translate: 0 0;
  }
}
