:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-bright: #fffdf8;
  --ink: #171719;
  --muted: #5d5b58;
  --faint: #8b8780;
  --line: #c9c0b2;
  --crimson: #a31332;
  --burgundy: #730c23;
  --latam: #1d7fbd;
  --latam-pale: #bfe1f1;
  --africa: #718044;
  --africa-pale: #dbe3c6;
  --ochre: #9a5b00;
  --teal: #176b63;
  --slate: #46505c;
  --coral: #df7254;
  --gold: #e2a82a;
  --accent: var(--crimson);
  --accent-dark: var(--burgundy);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

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

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

.masthead :focus-visible {
  outline-color: white;
  box-shadow: 0 0 0 2px var(--crimson), 0 0 0 5px white;
}

.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: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--paper-bright);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.loading-state {
  min-height: 70vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.25rem;
}

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

  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 100ms !important;
    transition-property: color, background-color, border-color, opacity !important;
  }
}

.reuse-footer { padding: 1.5rem clamp(1rem, 4vw, 4rem); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.reuse-footer p { margin: 0; }
.reuse-footer a { text-underline-offset: 0.2em; }
