/* As It Happens — design tokens */
:root {
  --navy: #0A1B2E;
  --navy-90: rgba(10, 27, 46, 0.92);
  --navy-70: rgba(10, 27, 46, 0.70);
  --navy-50: rgba(10, 27, 46, 0.50);
  --navy-25: rgba(10, 27, 46, 0.25);
  --navy-12: rgba(10, 27, 46, 0.12);
  --navy-06: rgba(10, 27, 46, 0.06);

  --slate: #44556A;
  --slate-70: rgba(68, 85, 106, 0.70);
  --slate-50: rgba(68, 85, 106, 0.50);

  --teal: #2AA39A;
  --teal-90: rgba(42, 163, 154, 0.92);
  --teal-12: rgba(42, 163, 154, 0.12);
  --teal-08: rgba(42, 163, 154, 0.08);

  --paper: #F5F1E8;
  --surface: #F4EDE1;
  --surface-2: #EDE5D2;

  --hairline: rgba(10, 27, 46, 0.10);
  --hairline-strong: rgba(10, 27, 46, 0.18);

  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

.app-bg {
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  min-height: 0;
  background-image:
    radial-gradient(ellipse at top right, rgba(42,163,154,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(10,27,46,0.025) 0%, transparent 55%);
}
/* paper grain — extremely subtle */
.app-bg::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(10,27,46,0.012) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(10,27,46,0.012) 2px 3px);
  z-index: 0;
}
.app-bg > * { position: relative; z-index: 1; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.tabnums { font-variant-numeric: tabular-nums; }

/* fine hairline (avoids 1px on retina looking heavy) */
.hairline { background: var(--hairline); height: 1px; }

/* annotation pin */
.anno-pin {
  position: absolute;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  padding: 4px 7px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(10,27,46,0.25);
}
.anno-pin::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--navy);
}
.anno-pin.tl::before { left: -3px; top: 8px; transform: rotate(45deg); }
.anno-pin.tr::before { right: -3px; top: 8px; transform: rotate(45deg); }
.anno-pin.bl::before { left: -3px; bottom: 8px; transform: rotate(45deg); }

/* keep waveform animation */
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes soft-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* refined card — looks like a card on cream paper */
.paper-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 1px 2px rgba(10,27,46,0.04),
    0 4px 14px rgba(10,27,46,0.04);
}
.paper-card-flat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

/* eyebrow label */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--slate);
  text-transform: uppercase;
  font-weight: 500;
}

/* subtle button press */
.press { transition: transform 80ms ease, background 120ms ease, opacity 120ms ease; }
.press:active { transform: scale(0.97); opacity: 0.9; }

/* hide scrollbars on inner scroll regions for screen-cleanliness */
.no-sb::-webkit-scrollbar { width: 0; height: 0; }
.no-sb { scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
