/* base — tipografía y defaults */

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: var(--text-base);
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  font-feature-settings: "ss01", "ss02", "cv11", "tnum";
  letter-spacing: -0.005em;
  line-height: 1.45;
  background: var(--paper);
  color: var(--ink);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: var(--rule-width) solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 240ms ease, color 240ms ease;
}

a:hover {
  border-bottom-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* type roles */

.t-statement {
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.t-display {
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.t-lede {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.t-body {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
}

.t-label {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.t-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.t-muted {
  color: var(--muted);
}

/* visually hidden — visible para screen readers, oculto en pantalla */
.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;
}

/* respect motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
