/* =========================================================
   Base: reset and element defaults
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }  /* scripts toggle [hidden]; it must beat component display rules */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: var(--fw-display); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-l); color: var(--ink); }

/* ---------- accessibility ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 12px; left: 12px; z-index: calc(var(--z-loader) + 1);
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--cream); font-size: var(--fs-small);
}

/* ---------- WordPress core classes ---------- */
.alignleft  { float: left; margin: 0 var(--space-3) var(--space-2) 0; }
.alignright { float: right; margin: 0 0 var(--space-2) var(--space-3); }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
