/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

/* ── Tokens (override these for your brand) ── */
:root {
  --font-sans: system-ui, sans-serif;
  --bg: #fff;
  --accent-bg: #f7f7f5;
  --text: #212121;
  --text-light: #525252;
  --border: #d4d4d4;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-text: #fff;
  --positive: #27ae60;
  --negative: #c0392b;
  --highlight: #ffdd33;
  --brand-yellow: #ffea00;
  --radius: 5px;
  --shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 0.4em 1.2em rgba(0,0,0,0.1);
  --content-width: 65rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --checklist-badge: "SÍ!";
  --marquee-divider: " ★★★★★";
  --highlight-icon: "★ ";
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; padding: 0; }
img { max-inline-size: 100%; display: block; }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5em 1.5em;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Utilities ── */
.txt-center { text-align: center; }
.txt-accent { color: var(--accent-hover); }
.txt-light { color: var(--text-light); }
.txt-highlight { color: var(--highlight); }
.txt-negative { color: var(--negative); }
.center { margin-inline: auto; }

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
