/* =========================================================
   BASE — reset, tipografía y utilidades
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, iframe, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--color-accent); color: var(--color-black); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

[data-theme] { background: var(--surface); color: var(--ink); }
section[id] { scroll-margin-top: 0; }

.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent); color: var(--color-black);
  font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

.noscript { padding: 40vh var(--gutter); text-align: center; }

/* ---------- Tipografía ---------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.t-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 0.94;
  text-transform: uppercase;
}

.t-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-sub);
  line-height: 1.2;
}

.t-label {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.4;
}

.t-body { max-width: 42ch; color: var(--ink-muted); }
.t-body + .t-body { margin-top: 1em; }

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

em { font-style: italic; }
