/* ============================================================
   Hola Books — base element styles & helpers
   Copied verbatim from the Hola Books design system.
   Lightweight resets and brand defaults so plain HTML picks up
   the right look automatically.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }

button, input, select, textarea { font-family: inherit; }
code, kbd, .hb-mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Brand helpers ---- */

/* Eyebrow: small regular-case label with • separators, used all over the site */
.hb-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  color: var(--hb-chalkboard);
}

/* The five kid-dots from the logo (Agave · Sol · Pétalo · Agua · Adobe) */
.hb-dots { display: inline-flex; gap: 6px; align-items: center; }
.hb-dots > i {
  width: 10px; height: 10px; border-radius: 999px; display: block;
}
.hb-dots--sm { gap: 3px; }
.hb-dots--sm > i { width: 8px; height: 8px; }
.hb-dots > i:nth-child(1) { background: var(--hb-agave); }
.hb-dots > i:nth-child(2) { background: var(--hb-sol); }
.hb-dots > i:nth-child(3) { background: var(--hb-petalo); }
.hb-dots > i:nth-child(4) { background: var(--hb-agua); }
.hb-dots > i:nth-child(5) { background: var(--hb-adobe); }

.hb-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* One reduced-motion rule for every tool: animations and transitions collapse
   to a frame. Tools must not add their own. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
