/* ============================================================
   eazy.day — BASE / RESET
   Quiet element defaults so specimens & kits inherit the voice.
   Scoped lightly: sets sensible html/body defaults + a few
   opt-in utility helpers. Components should not depend on these.
   ============================================================ */

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

html {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

/* Editorial headings default to the serif; UI surfaces opt into sans. */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: var(--weight-normal);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}

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

a {
  color: var(--accent-ink);
  text-underline-offset: 0.15em;
  text-decoration-thickness: from-font;
  transition: color var(--dur-fast) var(--ease-dawn);
}
a:hover { color: var(--dawn-gold-deep); }

::selection {
  background: oklch(0.74 0.12 70 / 0.22);
  color: var(--ink);
}

/* ---- The wordmark treatment (reusable) ---- */
.eazy-wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  background: var(--dawn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.05em;
}

/* ---- UI surface helper: switch a subtree to the sans voice ---- */
.eazy-ui {
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  letter-spacing: var(--tracking-normal);
}

/* Focus visibility, applied consistently */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
