/* Base, tipografía y layout. Mobile-first. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 var(--fs-base)/var(--lh) var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--rosa-400); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; margin: 0 0 var(--s-2); letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 var(--s-2); }
code { font-size: .9em; background: var(--rosa-100); padding: .1em .35em; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-soft); }
.small { font-size: var(--fs-sm); }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); }

.section { padding-block: var(--s-6); }
.section--tint { background: linear-gradient(180deg, var(--rosa-50), var(--crema)); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-4); }
.section__head .section__title { margin: 0; }
.section__title { margin-bottom: var(--s-4); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s-5); font-size: 1.75rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface); padding: var(--s-1) var(--s-2); z-index: 100; }
.skip-link:focus { left: var(--s-2); top: var(--s-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 960px) {
  .section { padding-block: var(--s-7); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
