/* Base: reset, tipografía y utilidades. Depende de tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-width: 320px;
  background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: var(--fw-semibold);
  line-height: var(--lh-heading); letter-spacing: var(--tracking-heading);
  margin: 0; text-wrap: balance;
}
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: var(--fw-regular); color: var(--color-gold); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--color-gold-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur-fast); }
a:hover { color: var(--color-ink); }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
::selection { background: rgba(182, 130, 53, 0.3); }
strong { font-weight: var(--fw-semibold); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { 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 { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--color-ink); color: var(--color-on-dark); text-decoration: none; }
.skip-link:focus { top: var(--space-2); color: var(--color-on-dark); }
.tnum { font-variant-numeric: tabular-nums; }
.icon { flex: none; }
