/* ============================================================
   EACBL · BASE — light reset + element defaults.
   Sets the warm cream canvas and humanist body type.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  background-color: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}
/* Headings — Crave Fine display serif. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
}
/* Subheadings — Telegraf. */
h3, h4, h5, h6 {
  font-family: var(--font-sans);
}

p { margin: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--primary-hover); }

button { font-family: inherit; }

::selection {
  background: var(--amber-tint);
  color: var(--bark-900);
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Reduced-motion respect for any animated brand surfaces. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
