/* Base: tipografías, colores, reset y estilos comunes a toda la página. */
@font-face {
  font-family: 'Gustavo';
  src: url('../assets/fonts/Gustavo.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  /* paleta: texto, fondo y separador de proyectos */
  --bg: #f5f1f4;
  --ink: #24161c;
  --sep: #8b677d;
  --muted: color-mix(in srgb, var(--ink) 68%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 20%, var(--bg));
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Poppins', system-ui, sans-serif;
  --hand: 'Gaegu', cursive;
  --pad: clamp(16px, 3vw, 40px);
  /* ancho de la columna fija de la derecha (índice y regla) */
  --rail: 120px;
  --title-gap: clamp(24px, 3vw, 36px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a {
  color: inherit;
}
a, button, label, summary, select {
  cursor: pointer;
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.link-quiet {
  text-decoration: none;
}

/* Cursor propio (js/cursor.js): contorno por defecto; se rellena sobre lo que se puede pulsar. */
html.has-cur, html.has-cur * {
  cursor: none !important;
}
.cur {
  position: fixed;
  left: 0;
  top: 0;
  width: 25px;
  height: 32px;
  background-image: url("../puntero.svg");
  background-repeat: no-repeat;
  background-size: 94.5px 57.4px;
  background-position: -16px -12px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity .12s;
}
.cur.on {
  opacity: 1;
}
.cur::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../puntero.svg");
  background-repeat: no-repeat;
  background-size: 94.5px 57.4px;
  background-position: -57px -12px;
  clip-path: circle(0 at 50% 50%);
  transition: clip-path .28s cubic-bezier(.16, 1, .3, 1);
}
.cur.hov::after {
  clip-path: circle(150% at 50% 50%);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
