/* ARTIUM VII 3D — Base: reinicio, tipografía, enlaces y foco */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scroll-padding-top: calc(var(--alto-encabezado) + 1rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(60rem 32rem at 85% -8rem, rgb(212 160 23 / 0.10), transparent 70%),
    radial-gradient(40rem 24rem at -10% 20rem, rgb(212 160 23 / 0.05), transparent 70%);
  background-repeat: no-repeat;
  color: var(--c-text-2);
  font-family: var(--f-text);
  font-size: var(--t-base);
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (min-width: 64em) {
  body {
    font-size: 1.0625rem;
  }
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-text);
  font-family: var(--f-display);
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: var(--s-4);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

dl,
dd,
figure {
  margin: 0;
}

strong {
  color: var(--c-text);
  font-weight: 600;
}

code {
  font-family: var(--f-mono);
  font-size: 0.875em;
  color: var(--c-text);
}

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--m-rapido) ease;
}

a:hover {
  color: var(--c-text);
}

/* Foco visible en ambos fondos (WCAG 2.4.7, 2.4.11, 2.4.13). */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

main:focus {
  outline: none;
}

::selection {
  background: var(--c-btn);
  color: var(--c-on-btn);
}

button {
  font: inherit;
  color: inherit;
}

summary {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Utilidades */
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icono {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.salto {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--c-btn);
  color: var(--c-on-btn);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.salto:focus {
  transform: none;
  color: var(--c-on-btn);
}

.antetitulo {
  margin-bottom: var(--s-3);
  color: var(--c-link);
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nota {
  margin-top: var(--s-4);
  color: var(--c-text-3);
  font-size: var(--t-sm);
}
