/* ==========================================================================
 * Block 1 of 1 — Minimal reset
 * Description: Box model and base element normalization for L∙I∙B∙R∙U∙S
 * Version: 1.a
 * Revised: 10Jul26
 * ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: calc(1rem * var(--font-scale));
  line-height: var(--line-height);
  background: var(--bg);
  color: var(--text);
}

/* Reader overrides min-height via 02-layout (fixed viewport, per-pane scroll) */

img.toolbar-icon {
  /* Lucide SVGs use currentColor stroke — inherit from button */
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}
