/* ============================================================================
   UTILITIES.CSS · Helpers carried over from base.css
   ----------------------------------------------------------------------------
   Element defaults (body, h1–h4, links, buttons) are intentionally GONE —
   theme.json owns those now, so Styles-panel changes always win.
   Only utilities that WordPress cannot express in theme.json live here.
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Reusable "eyebrow" label — the mono kicker above headings.
   (Also available as a Paragraph block style: "Eyebrow Label".) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--space-3);
}

/* Section heading block (eyebrow + title + optional intro) */
.section-head { max-width: 62ch; margin-bottom: var(--space-6); }
.section-head .lead { color: var(--text-muted); font-size: var(--fs-lg); margin-top: var(--space-3); }

/* --- Accessibility helpers ------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--space-3); top: -100px;
  background: var(--brand); color: #fff;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-btn);
  z-index: 1000; transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-3); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Scroll-reveal utility ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Never animate inside the block editor — authors need to see content. */
.editor-styles-wrapper .reveal { opacity: 1; transform: none; }
