/* cruzgio.com
   Paleta: cielo de Bogotá + la tinta roja y la noche de la portada de Mi Fuego.
   Tipos: Anton (la portada) y Spectral (el texto). Todo servido desde el propio dominio. */

@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --cielo: #d3d5d2;      /* gris de tarde bogotana */
  --cielo-2: #c6c9c5;
  --tinta: #17181a;
  --grafito: #4f5255;
  --rojo: #b3232b;       /* el rojo de la portada */
  --noche: #121315;
  --luna: #e9e8e3;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --texto: "Spectral", Georgia, serif;
  --margen: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cielo);
  color: var(--tinta);
  font: 400 1.1875rem/1.6 var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rojo); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }
::selection { background: var(--rojo); color: var(--luna); }

.skip { position: absolute; left: -999px; top: 0; background: var(--tinta); color: var(--luna); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Cabecera ---------- */
.cabecera {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem;
  padding: 1.25rem var(--margen);
  font-size: 1rem;
}
.cabecera .firma { text-decoration: none; font-weight: 600; }
.cabecera nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.cabecera nav a { text-decoration: none; }
.cabecera nav a:hover { text-decoration: underline; }
.cabecera .idioma { font-style: italic; }

/* ---------- Portada (hero) ---------- */
.portada {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem) var(--margen) clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.nombre {
  position: relative; z-index: 2;
  margin: 0;
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(4.2rem, 17vw, 15.5rem);
  line-height: .86;
  letter-spacing: -.005em;
  color: var(--tinta);
}
.nombre span { display: block; }
.nombre .r { color: var(--rojo); }
.retrato { margin: 0; position: relative; z-index: 1; }
.retrato img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: contrast(1.05); }
.presentacion { max-width: 34ch; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; }
.presentacion p:last-child { margin: 0; }

@media (min-width: 900px) {
  .portada { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .nombre { grid-column: 1 / -1; grid-row: 1; }
  .retrato { grid-column: 8 / 13; grid-row: 1 / 3; align-self: start; margin-top: 6vw; }
  .presentacion { grid-column: 1 / 7; grid-row: 2; }
}

@media (prefers-reduced-motion: no-preference) {
  .nombre span { animation: sube .9s cubic-bezier(.2, .7, .1, 1) both; }
  .nombre span:nth-child(2) { animation-delay: .08s; }
  .nombre span:nth-child(3) { animation-delay: .16s; }
  @keyframes sube { from { transform: translateY(.35em); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Bloques ---------- */
.bloque { padding: clamp(3.5rem, 9vw, 7rem) var(--margen); }
.titulo {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: .9; margin: 0 0 2.5rem;
}
.columna { max-width: 38em; }

/* Sobre mí */
.sobre { display: grid; gap: 2rem; border-top: 3px solid var(--tinta); }
@media (min-width: 900px) { .sobre { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.sobre .titulo { margin-bottom: 0; }
.formacion { color: var(--grafito); font-size: 1rem; margin-top: 1.5rem; }

/* ---------- El libro: la noche de la portada ---------- */
.libro { background: var(--noche); color: var(--luna); }
.libro a:hover { color: #ff6b6b; }
.libro-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .libro-grid { grid-template-columns: 4fr 7fr; gap: 5rem; } }
.libro .portada-libro img { width: min(100%, 380px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.libro .titulo { color: var(--rojo); margin-bottom: .2em; }
.libro .subtitulo { font-style: italic; color: #b9b7b0; margin-bottom: 2.5rem; }
.verso {
  margin: 0 0 2.75rem;
  font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.4;
  color: var(--luna);
}
.verso p { margin: 0; }
.libro .columna p { color: #cfcdc6; }
.partes { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.partes li { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; color: #8d8b86; }
.partes li:first-child, .partes li:last-child { color: var(--rojo); }
.boton {
  display: inline-block; text-decoration: none;
  background: var(--rojo); color: var(--luna);
  font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em;
  padding: .55em 1.1em .5em;
}
.boton:hover { background: var(--luna); color: var(--noche) !important; }
.nota { font-size: 1rem; color: #9a9891 !important; margin-top: 1.25rem; }

/* ---------- Trabajo: un índice ---------- */
.indice { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--tinta); }
.indice li { border-bottom: 1px solid var(--tinta); }
.indice a {
  display: grid; gap: .25rem 2rem; padding: 1.5rem 0; text-decoration: none;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .indice a { grid-template-columns: 5fr 6fr 2fr; align-items: baseline; } }
.indice .n { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1; }
.indice .d { color: var(--grafito); max-width: 40ch; }
.indice .rol { font-style: italic; color: var(--grafito); font-size: 1rem; }
@media (min-width: 900px) { .indice .rol { text-align: right; } }
.indice a:hover .n { color: var(--rojo); }

/* ---------- Música ---------- */
.musica { background: var(--cielo-2); }
.musica-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .musica-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.musica figure { margin: 0; }
.musica img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: grayscale(1) contrast(1.1); }
.musica .titulo { margin-bottom: 1.25rem; }

/* ---------- Contacto ---------- */
.contacto { border-top: 3px solid var(--tinta); }
.correo {
  display: inline-block; font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 8vw, 5.5rem); line-height: 1; text-decoration: none;
  word-break: break-word;
}
.correo:hover { color: var(--rojo); }
.redes { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

/* ---------- Pie ---------- */
.pie { padding: 1.5rem var(--margen) 2.5rem; font-size: .95rem; color: var(--grafito); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--margen); }
.nf .nombre { font-size: clamp(6rem, 30vw, 18rem); color: var(--rojo); }
.portada-libro { margin: 0; }
@media (max-width: 899px) { .nombre { line-height: .93; } }
.nf p { max-width: 30ch; }
