/* design tokens: flat white + pure black, sampled off the approved avatar (PIL pixel probe) */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --grey: #6b6b6b;
  --space-1: 6px;
  --space-2: 14px;
  --space-3: 28px;
}

@font-face {
  font-family: 'Permanent Marker';
  src: url('assets/fonts/permanent-marker-400.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-400.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-700.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;
}

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

.wojak {
  display: block;
  width: min(64vh, 82vw, 620px);
  height: auto;
}

.caption {
  margin: 0;
  max-width: 620px;
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(16px, 2.6vw, 24px);
  line-height: 1.3;
  color: var(--ink);
  transform: rotate(-0.6deg);
}

.chrome {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
}

.ticker {
  font-family: 'Permanent Marker', cursive;
  font-size: 18px;
  transform: rotate(-1deg);
}

.sep { color: var(--grey); }

.ca-field { white-space: nowrap; }
.ca-label { color: var(--grey); margin-right: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.ca-value {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
}
.ca-value:hover,
.ca-value:focus-visible { color: var(--grey); }

.canary {
  position: fixed;
  bottom: var(--space-1);
  right: var(--space-1);
  font-size: 9px;
  color: #ccc;
  z-index: 4;
}

@media (max-width: 480px) {
  .stage { padding: var(--space-2) var(--space-2) 76px; }
  .wojak { width: min(58vh, 88vw); }
  .caption { font-size: 15px; }
  .chrome { flex-direction: column; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); }
  .sep { display: none; }
}
