/* design tokens: pure white, straight off the approved portrait's own background.
   one font, one weight of restraint, because the whole joke is that nothing here
   was designed on purpose. */
:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --grey: #9a9a9a;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 28px;
}

@font-face {
  font-family: 'Commit Mono';
  src: url('assets/fonts/commitmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commit Mono';
  src: url('assets/fonts/commitmono-600.woff2') format('woff2');
  font-weight: 600;
  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: 'Commit Mono', ui-monospace, 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) 90px;
}

.cat {
  display: block;
  width: min(56vh, 78vw, 560px);
  height: auto;
}

.caption {
  margin: 0;
  max-width: 480px;
  text-align: center;
  font-weight: 400;
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.5;
  color: var(--grey);
  letter-spacing: 0.01em;
}

.tag {
  position: fixed;
  left: var(--space-2);
  bottom: var(--space-2);
  width: calc(100vw - 2 * var(--space-2));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tag-ticker {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.tag-ca {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  font-family: 'Commit Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--grey);
  cursor: pointer;
  white-space: normal;
  word-break: break-all;
  text-align: right;
}
.tag-ca:hover,
.tag-ca:focus-visible { color: var(--ink); }

.canary {
  position: fixed;
  bottom: 4px;
  left: 6px;
  font-size: 9px;
  color: #dcdcdc;
  z-index: 4;
}

.x-link {
  position: fixed;
  bottom: 20px;
  left: 6px;
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.02em;
  z-index: 4;
}
.x-link:hover { color: var(--ink); }

@media (max-width: 480px) {
  .stage { padding: var(--space-2) var(--space-2) 100px; }
  .cat { width: min(50vh, 84vw); }
  .caption { font-size: 12px; }
  .tag { left: var(--space-1); bottom: var(--space-1); width: calc(100vw - 2 * var(--space-1)); }
}
