/* ═══════════════════════════════════════════════
   NOTED PAD PRO v4 — base.css
   Reset, typography, scrollbar global
═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg-deep);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar          { width: 4px; height: 4px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: rgba(255,255,255,.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(240,165,0,.4); }

/* ── Selection ── */
::selection { background: var(--accent-soft); color: var(--accent); }

/* ── Focus ring (keyboard nav) ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Mark (search highlight) ── */
mark {
  background: rgba(240,165,0,.35);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ── Typography scale ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
