:root {
  --verde: #3F7D4A;
  --verde-deep: #2F5C39;
  --salvia: #9DBA8B;
  --salvia-soft: #E6EDDA;
  --arcilla: #C86F4A;
  --arcilla-deep: #9E4D28;
  --lino: #F3EEDC;
  --lino-deep: #E9E1C6;
  --surface: #FFFDF7;
  --tierra: #34372B;
  --tierra-soft: #4E5241;
  --border: #D8CDA9;
  --border-strong: #8B7F57;
  --focus: #9E4D28;
  --danger: #8F2F1D;
  --danger-soft: #F7E3DC;

  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --fs-display: clamp(2.6rem, 2rem + 2.8vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.65rem + 1.5vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  --fs-h3: clamp(1.2rem, 1.12rem + 0.35vw, 1.5rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;
  --fs-tiny: 0.75rem;

  --lh-body: 1.65;
  --lh-head: 1.15;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-s: 0.5rem;
  --radius-m: 0.875rem;
  --radius-l: 1.25rem;

  --shadow-1: 0 1px 2px rgba(52, 55, 43, 0.08);
  --shadow-2: 0 12px 32px -14px rgba(52, 55, 43, 0.25);

  --bp-sm: 40rem;
  --bp-md: 48rem;
  --bp-lg: 75rem;

  --container: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--tierra);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote {
  margin-top: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-head);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

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

a {
  color: var(--arcilla-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: #7E3B1E;
}

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

button {
  cursor: pointer;
}

ul, ol {
  padding-left: 1.4rem;
}

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

::selection {
  background: var(--salvia);
  color: var(--tierra);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--wide {
  max-width: 80rem;
}

.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;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--verde);
  color: #fff;
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

section {
  scroll-margin-top: 6rem;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}