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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
  color: var(--c-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-xl); }

p {
  margin: 0 0 var(--sp-3);
  max-width: 65ch;
}

a {
  color: var(--c-tierra-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease-out);
}

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

:focus-visible {
  outline: 2px solid var(--c-acento);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--c-acento-soft);
  color: var(--c-text);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  padding-inline-start: 1.25rem;
}

li {
  margin-bottom: var(--sp-1);
}

hr {
  border: 0;
  border-top: var(--border-thin);
  margin: var(--sp-5) 0;
}

blockquote {
  border-inline-start: 2px solid var(--c-acento);
  margin: var(--sp-3) 0;
  padding-inline-start: var(--sp-3);
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--c-text-muted);
}

.sr-only {
  position: absolute;
  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;
  top: -100px;
  left: var(--sp-2);
  background: var(--c-text);
  color: var(--c-bg);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  z-index: var(--z-modal);
  text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-2);
  color: var(--c-bg);
}
