@font-face {
  font-family: "Archivo";
  src: url("/assets/Archivo-variable-latin-591a8b69.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, svg, picture { display: block; max-width: 100%; }
  img { height: auto; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; }
  input, textarea, select { font: inherit; }
}

@layer base {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    overflow-x: clip;
  }

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

  html.is-menu-open { overflow: hidden; }

  body {
    font-family: var(--font);
    font-size: var(--fs-0);
    font-weight: 400;
    font-stretch: 100%;
    line-height: 1.55;
    color: var(--tinta);
    background: var(--cal);
    overflow-x: clip;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
  }

  h1, h2, h3, h4 {
    font-weight: 690;
    font-stretch: 100%;
    line-height: 1;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  p { max-width: 68ch; text-wrap: pretty; }
  strong { font-weight: 600; }

  main:focus { outline: none; }

  :focus-visible {
    outline: 2px solid var(--senal);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--petroleo-hondo);
  }

  ::selection { background: var(--senal); color: var(--petroleo-hondo); }

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

  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--senal);
    color: var(--petroleo-hondo);
    font-weight: 600;
    text-decoration: none;
    translate: 0 -200%;
  }
  .skip-link:focus { translate: 0 0; }

  /* Movimiento reducido: todo queda en su estado final. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }
}

/* Transiciones de página (View Transitions). */
@view-transition { navigation: auto; }

::view-transition-group(*) {
  animation-duration: var(--t-base);
  animation-timing-function: var(--ease);
}
.site-header { view-transition-name: site-header; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}
