/* tokens (sampled off assets/avatar.png)
   bg: #f4dfb8 warm wall peach behind the tower, floor #dfb27f tan desk
   ink: #1c1712 near-black linework, matches the art's own outline weight
   tower: #7c8a99 cool blue-grey, bubble: #fbf3e0 cream
   accent: #b5602f warm copper, used only for the CA hover/copy state and the status dot
   type: Comic Neue (the one line of copy + ticker label, honest choice since the
         source art is literally a comic panel, not decoration for its own sake)
         DM Mono (CA + uptime readout only, real case, copyable)
   corner radius: 18px on the panel only (echoes the speech bubble's curve), 0 elsewhere
   motion: the panel breathes, a slow 1.0 -> 1.01 -> 1.0 scale, like something asleep.
           prefers-reduced-motion kills it.
*/

@font-face {
  font-family: "Comic Neue";
  src: url("assets/fonts/comic-neue-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("assets/fonts/comic-neue-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3vh 4vw;
  color: #1c1712;
  font-family: "Comic Neue", sans-serif;
}

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

.panel {
  width: min(72vw, 62vh);
  aspect-ratio: 1 / 1;
  border: 4px solid #1c1712;
  border-radius: 18px;
  overflow: hidden;
  background: #f4dfb8;
  box-shadow: 6px 6px 0 #1c1712;
  animation: breathe 4.2s ease-in-out infinite;
}

.art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}

.caption {
  margin: 22px 0 0;
  font-size: clamp(15px, 2.6vw, 19px);
  font-weight: 700;
  text-align: center;
  max-width: 34ch;
}

.id-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tk {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.dv, .status-dv {
  opacity: 0.5;
}

.ca {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  background: #fbf3e0;
  color: #1c1712;
  border: 2px solid #1c1712;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
}

.ca:hover, .ca:focus-visible {
  background: #b5602f;
  color: #fbf3e0;
  outline: none;
}

.status {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b5602f;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
}

.links a {
  color: #1c1712;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.links a:hover, .links a:focus-visible {
  border-bottom-color: #b5602f;
}

@media (max-width: 480px) {
  .panel { width: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .dot { animation: none; opacity: 1; }
}
