/* tokens (sampled off assets/avatar.png)
   hall wash: #a4a3a3, the flat grey background wash the ink drawing sits on
   ink: #17171a, paper: #f2ede2, tape: rgba(230,224,204,.7)
   accent: #c94b2c, a hazard-tape red, used only on the CA hover/copy state
   type: Patrick Hand for the caption/ticker (reads like a hand-lettered rage-comic
   caption), JetBrains Mono for the CA only (has to stay unambiguous, base58)
   corner radius: 0 everywhere except the placard's clipped paper corners (2px)
   motion: the spotlight cone flickers faintly, like a hall light about to die
*/

@font-face {
  font-family: "Patrick Hand";
  src: url("assets/fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  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: #a4a3a3;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3vh 4vw;
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  color: #17171a;
}

.hall {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 620px;
}

.frame {
  position: relative;
  width: min(80vw, 74vh);
}

.scene {
  display: block;
  width: 100%;
  height: auto;
}

.flicker {
  position: absolute;
  left: 30%;
  top: 4%;
  width: 40%;
  height: 62%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,250,0.55), rgba(255,255,250,0) 70%);
  mix-blend-mode: soft-light;
  opacity: 0.35;
  animation: flicker 5.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flicker {
  0%, 38%, 42%, 78%, 82%, 100% { opacity: 0.35; }
  40% { opacity: 0.12; }
  80% { opacity: 0.55; }
}

.placard {
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translateX(-50%) rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #f2ede2;
  padding: 7px 11px 8px;
  border-radius: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.placard::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 46px;
  height: 16px;
  background: rgba(230, 224, 204, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.tk {
  font-size: clamp(14px, 2.1vw, 18px);
  letter-spacing: 0.02em;
}

.ca {
  appearance: none;
  border: 1px dashed #6b6a63;
  background: transparent;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(9px, 1.3vw, 11px);
  color: #17171a;
  padding: 3px 6px;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
}
.ca:hover { border-color: #c94b2c; color: #c94b2c; }

.stamp {
  position: absolute;
  right: 2%;
  top: 3%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 4px 7px;
  border: 1px dashed rgba(201, 75, 44, 0.7);
  color: #c94b2c;
  background: rgba(242, 237, 226, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}
.stamp-line { text-transform: uppercase; }
.stamp-time { font-weight: 700; }

.caption {
  margin: 4.5vh 0 0;
  max-width: 32rem;
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 1.4;
  text-align: center;
  color: #2c2b28;
}

.links {
  margin-top: 2vh;
  display: flex;
  gap: 1.8em;
}
.links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #55534c;
  text-decoration: none;
}
.links a:hover { color: #17171a; }

@media (prefers-reduced-motion: reduce) {
  .flicker { animation: none; opacity: 0.35; }
}

@media (max-width: 480px) {
  .frame { width: min(88vw, 60vh); }
  .placard { top: 62%; padding: 5px 8px 6px; }
  .caption { margin-top: 3vh; font-size: 14px; }
}

@media (max-height: 620px) {
  .caption { margin-top: 2vh; font-size: 13px; }
  .links { margin-top: 1.2vh; }
}
