/* base.css — Reset + tipografía base. Depende de tokens.css. Sin layout ni componentes. */

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

/* Global focus-visible — WCAG 2.4.7 */
:focus {
  outline: none;
}

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

/* Respect motion preferences — WCAG 2.3.3 */
@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--surface-default);
  color: var(--text-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  margin: 0;
  color: var(--text-default);
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ------------------------------------------------------------------ */
/*  Layout util                                                         */
/* ------------------------------------------------------------------ */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad-mobile);
}

/* ------------------------------------------------------------------ */
/*  Typography utils                                                    */
/* ------------------------------------------------------------------ */

/* Eyebrow label — monospaced, caps, accent color */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* Screen-reader only */
.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link — visible on focus */
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  margin: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-primary);
  color: var(--text-on-accent);
  z-index: 200;
}

/* ------------------------------------------------------------------ */
/*  Image placeholder                                                   */
/* ------------------------------------------------------------------ */

.thumb-placeholder {
  background: var(--surface-raised);
  width: 100%;
}

.percales-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
