/* tokens (sampled off assets/avatar.png)
   room: #170f09 -> #241a10, the dim tabletop the flash photo was taken in
   cardboard: #9d651d / #6b4718 shadow, tissue: #efe9dd, ink: #1c1a16
   accent: #b3392c, a rubber-stamp red, used only on the CA hover/copy state
   type: Space Mono only (400/700) - one face, the whole page reads as one
   printed/stamped label, no second display face needed for a single screen
   corner radius: 0 everywhere except the label sticker's slight paper corners (2px)
   motion: the label peels into its crooked resting angle once on load, then still
*/

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-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: radial-gradient(ellipse at 50% 38%, #241a10 0%, #170f09 70%, #100a06 100%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3vh 4vw;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #e7dcc4;
}

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

.frame {
  position: relative;
  width: min(78vw, 62vh);
  background: #f4efe4;
  padding: 10px 10px 14px;
  transform: rotate(-1.3deg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

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

.tape {
  position: absolute;
  width: 74px;
  height: 26px;
  background: rgba(223, 208, 173, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.tape-a { top: -12px; left: 14%; transform: rotate(-7deg); }
.tape-b { top: -10px; right: 12%; transform: rotate(5deg); }

.label {
  position: absolute;
  right: -6%;
  bottom: -10%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f4efe4;
  color: #1c1a16;
  padding: 8px 12px 9px;
  border-radius: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transform: rotate(6deg);
}

.tk {
  font-weight: 700;
  font-size: clamp(13px, 1.9vw, 16px);
  letter-spacing: 0.03em;
}

.ca {
  appearance: none;
  border: 1px dashed #6b4718;
  background: transparent;
  font-family: inherit;
  font-size: clamp(9px, 1.35vw, 11.5px);
  color: #1c1a16;
  padding: 3px 6px;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
}
.ca:hover { border-color: #b3392c; color: #b3392c; }

.stamp {
  position: absolute;
  left: -4%;
  bottom: -8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 5px 8px;
  border: 1px dashed rgba(179, 57, 44, 0.75);
  color: #b3392c;
  background: rgba(244, 239, 228, 0.9);
  transform: rotate(-4deg);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.stamp-line { text-transform: uppercase; }
.stamp-time { font-weight: 700; }

.caption {
  margin: 8vh 0 0;
  max-width: 34rem;
  font-size: clamp(12px, 1.9vw, 14px);
  line-height: 1.5;
  text-align: center;
  color: #cdbf9e;
}

.links {
  margin-top: 2.2vh;
  display: flex;
  gap: 1.8em;
}
.links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a08a5f;
  text-decoration: none;
}
.links a:hover { color: #e7dcc4; }

@keyframes peel {
  0% { transform: rotate(-24deg) translateY(-14px); opacity: 0; }
  70% { transform: rotate(9deg) translateY(1px); opacity: 1; }
  100% { transform: rotate(6deg) translateY(0); }
}
.label.peel-in { animation: peel 0.6s 0.15s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }

@media (prefers-reduced-motion: reduce) {
  .label.peel-in { animation: none; }
}

@media (max-width: 480px) {
  .frame { width: min(84vw, 58vh); }
  .label { right: -3%; bottom: -12%; padding: 6px 9px 7px; }
  .stamp { left: -2%; bottom: -10%; font-size: 8px; }
  .caption { margin-top: 6vh; }
}

@media (max-height: 620px) {
  .caption { margin-top: 3vh; font-size: 11px; }
  .links { margin-top: 1.4vh; }
}
