@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --ink: #0f172a;
  --muted: #475569;
  --brand: #1d4ed8;
  --brand-soft: #eff6ff;
  --surface: #ffffff;
  --bg: #f8fafc;
}

* { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

.reading-prose {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.85;
  color: #1e293b;
}

/* Highlighter marks: zero horizontal padding so letters never split visually */
mark.hl-yellow {
  background: #fef08a;
  color: inherit;
  padding: 0;
  border-radius: 2px;
}
mark.hl-green {
  background: #bbf7d0;
  color: inherit;
  padding: 0;
  border-radius: 2px;
}
mark.hl-note {
  background: #fde68a;
  border-bottom: 2px solid #d97706;
  cursor: pointer;
  padding: 0;
}

body.hl-pen-active .hl-zone { cursor: text; user-select: text; }
body.hl-eraser-active .hl-zone { cursor: crosshair; user-select: none; }
body.hl-eraser-active mark.hl-yellow:hover,
body.hl-eraser-active mark.hl-green:hover,
body.hl-eraser-active mark.hl-note:hover {
  outline: 2px dashed #ef4444;
  background: #fee2e2;
}

/* Writing visual diff */
.diff-del {
  background: #fee2e2;
  color: #991b1b;
  text-decoration: line-through;
  padding: 1px 4px;
  border-radius: 4px;
}
.diff-add {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Custom subtle scrollbars for split-pane Reading */
.thin-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.thin-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.thin-scroll::-webkit-scrollbar-track { background: transparent; }

/* Audio strict mode lock */
audio.strict-locked::-webkit-media-controls-timeline { pointer-events: none; opacity: 0.45; }
