/* tokens
   lifted straight off the art: sunset orange #ff7a1a -> plum #6a2a63, tights lime #ccff00
   paper sticker #f7f4e8, ink #201406
   type: Caveat (marker caption, hand-slapped) + JetBrains Mono (CA, real case, copyable)
   corner radius: 0. the sticker is a torn rectangle, not a UI card.
   motion: none idle, only the copy-flash on the CA
*/

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #3a1a34;
}

.wall {
  position: relative;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  /* flipped sunset: plum at both edges, acid orange stacked through the middle */
  background:
    linear-gradient(180deg,
      #7e3d6e 0%, #a8456a 14%, #e06a2e 32%, #ff8a1a 48%,
      #ff7f22 55%, #d85a2a 68%, #8a4568 86%, #5a3a5c 100%);
  filter: saturate(1.5) contrast(1.1) brightness(1.02);
}

.tiles {
  position: absolute;
  inset: -80px;
  background-image: url("assets/tile.png");
  background-repeat: repeat;
  background-size: 260px 260px;
  background-position: -30px -20px;
}

/* cheap jpeg-crunch: a fixed noise texture blended over the tile */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 4px);
}

.sticker {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%) rotate(-4deg);
  background: #f7f4e8;
  padding: 14px 22px 16px;
  box-shadow: 6px 7px 0 rgba(0,0,0,0.55);
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 88vw;
}

.cap {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 34px);
  color: #201406;
  line-height: 1;
  white-space: nowrap;
}

.ca {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: clamp(12px, 2.6vw, 15px);
  color: #4a3410;
  background: #e9e1c6;
  border: 1px dashed #a4894a;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ca:active { transform: translateY(1px); }

.chrome {
  position: absolute;
  right: 14px;
  bottom: 12px;
  background: rgba(10, 4, 2, 0.55);
  color: #f2ffb0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chrome a { color: #f2ffb0; text-decoration: none; border-bottom: 1px solid rgba(242,255,176,0.4); }
.chrome a:hover { border-bottom-color: #f2ffb0; }
.chrome .tick { color: #ccff00; font-weight: 700; }
.chrome .sep { opacity: 0.5; }

@media (max-width: 520px) {
  .tiles { background-size: 190px 190px; }
  .sticker { bottom: 11vh; padding: 11px 16px 13px; }
}
