/* design tokens: ink black + aged-tape parchment, sampled off the approved marker doodle and field light */
:root {
  --ink: #0b0b0a;
  --tape: #ece2c8;
  --tape-edge: #d8c9a0;
  --paper: #faf6ea;
  --field-dim: rgba(20, 22, 10, 0.55);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 28px;
}

@font-face {
  font-family: 'Kalam';
  src: url('assets/fonts/kalam-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalam';
  src: url('assets/fonts/kalam-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('assets/fonts/spline-sans-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('assets/fonts/spline-sans-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: #000;
  font-family: 'Spline Sans Mono', ui-monospace, 'SF Mono', monospace;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  cursor: crosshair;
}

.ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.note {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 3;
  margin: 0;
  max-width: 46vw;
  background: var(--tape);
  border: 1px solid var(--tape-edge);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  padding: 6px 14px 8px;
  transform: rotate(-2.4deg);
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: clamp(14px, 2.4vw, 20px);
  color: var(--ink);
  line-height: 1.1;
}

.chrome {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(to top, var(--field-dim), transparent);
}

.ticker {
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 19px;
  color: var(--paper);
  transform: rotate(-1deg);
}

.sep { color: rgba(250, 246, 234, 0.55); }

.ca-field { white-space: nowrap; }
.ca-label {
  color: rgba(250, 246, 234, 0.7);
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

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

.canary {
  position: fixed;
  bottom: var(--space-1);
  right: var(--space-1);
  z-index: 3;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 234, 0.6);
}

@media (max-width: 480px) {
  .note { max-width: 62vw; font-size: 15px; padding: 5px 11px 7px; }
  .chrome { flex-direction: column; align-items: center; gap: 4px; padding: var(--space-1) var(--space-2) var(--space-2); }
  .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
