/* design tokens, sampled off the approved avatar (PIL pixel probe) */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --gold: #f9ce23;
  --gray: #8a8a8a;
  --space-1: 6px;
  --space-2: 14px;
  --space-3: 24px;
}

@font-face {
  font-family: 'Permanent Marker';
  src: url('assets/fonts/permanent-marker-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/ibm-plex-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: var(--space-3) var(--space-2);
  gap: var(--space-2);
}

.stage {
  display: block;
  position: relative;
  line-height: 0;
}

.hero {
  display: block;
  width: min(64vh, 78vw, 620px);
  height: auto;
  animation: jitter 2.6s ease-in-out infinite;
}

@keyframes jitter {
  0%   { transform: translate(0, 0); }
  15%  { transform: translate(1px, -1px); }
  30%  { transform: translate(-1px, 1px); }
  45%  { transform: translate(1px, 1px); }
  60%  { transform: translate(-1px, -1px); }
  75%  { transform: translate(1px, 0); }
  90%  { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}

.ca-tag {
  appearance: none;
  position: absolute;
  left: 33%;
  top: 55%;
  width: 32%;
  border: 2px solid var(--ink);
  border-radius: 3px 7px 4px 8px / 8px 4px 9px 3px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 6px;
  transform: rotate(-4deg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}

.ca-tag:hover,
.ca-tag:focus-visible {
  background: #fff;
}

.ca-label {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(9px, 1.6vw, 13px);
  color: var(--ink);
}

.ca-value {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(7px, 1.35vw, 11px);
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.caption {
  margin: 0;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(14px, 2.6vw, 20px);
  text-align: center;
  color: var(--ink);
  max-width: 34ch;
  transform: rotate(-0.6deg);
}

.canary {
  position: fixed;
  right: var(--space-2);
  bottom: var(--space-1);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

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

@media (max-width: 480px) {
  .hero { width: min(58vh, 86vw); }
  .ca-value { font-size: 6.5px; }
  .canary { font-size: 9px; }
}

@media (min-width: 920px) {
  .caption { font-size: 22px; }
}
