/* Estilo inspirado en armond.me: blanco, una columna de 576 px, todo a 14 px, Open Runde. */

@font-face { font-family: "Open Runde"; src: url("fonts/open-runde-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("fonts/open-runde-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("fonts/open-runde-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --title: #2f2f2f;      /* nombre */
  --text: #525252;       /* párrafos (neutral-600) */
  --chip: #f5f5f5;       /* neutral-100 */
  --accent: #2f5bff;
  --font: "Open Runde", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --title: #ededed;
    --text: #a3a3a3;
    --chip: #171717;
    --accent: #5b7cff;
  }
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 64px 24px 32px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { width: 100%; max-width: 576px; margin-inline: auto; }

a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--title); }
a:focus-visible { outline: 2px solid var(--title); outline-offset: 3px; border-radius: 2px; }

/* Cabecera */
.avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--chip);
  object-fit: cover;
  transition: transform .3s ease-out;
}
.avatar:hover { transform: scale(1.06) rotate(-4deg); }

h1 {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--title);
}

.intro p { margin: 12px 0 0; max-width: 42rem; }

/* Aviso de portfolio */
.notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0 0;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--title);
  font-size: 12px;
  font-weight: 500;
  cursor: default;
}
.pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }


/* Cursor magnético (cursor.js). Solo en dispositivos con ratón. */
.magnetic-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: exclusion;
  -webkit-backdrop-filter: contrast(1.5);
  backdrop-filter: contrast(1.5);
  pointer-events: none;
  will-change: transform, width, height, border-radius;
}

/* Entrada suave */
main > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
main > :nth-child(2) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  main > * { animation: none; }
  .pulse::after { animation: none; }
  .avatar { transition: none; }
}
