/* =========================================================================
   ROMINA ALBANESI — Portafolio poético
   Copia pixel-perfect del sitio Canva. Fuentes reales auto-hosteadas.
   ========================================================================= */

/* ------------------------ FUENTES (auto-hosteadas) ---------------------- */
/* Extraídas del sitio publicado en Canva (woff). Nombres internos:
   ra-logo   = display retro del logo "ROMINA ALBANESI"
   ra-script = cursiva de los poemas y agradecimiento
   ra-label  = brush de las etiquetas de sección y títulos de libros
   ra-serif  = serif de nav, párrafos, citas y descripciones (4 cortes) */
@font-face { font-family:'RA Logo';   src:url('../fonts/ra-logo.woff') format('woff');   font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:'RA Script'; src:url('../fonts/ra-script.woff') format('woff'); font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:'RA Label';  src:url('../fonts/ra-label.woff') format('woff');  font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:'RA Serif';  src:url('../fonts/ra-serif.woff') format('woff');             font-weight:100 600; font-style:normal; font-display:swap; }
@font-face { font-family:'RA Serif';  src:url('../fonts/ra-serif-italic.woff') format('woff');      font-weight:100 600; font-style:italic; font-display:swap; }
@font-face { font-family:'RA Serif';  src:url('../fonts/ra-serif-bold.woff') format('woff');        font-weight:700 900; font-style:normal; font-display:swap; }
@font-face { font-family:'RA Serif';  src:url('../fonts/ra-serif-bolditalic.woff') format('woff');  font-weight:700 900; font-style:italic; font-display:swap; }

/* ----------------------------- TOKENS ----------------------------------- */
:root {
  --cream:        #f3efe6;
  --cream-light:  #f6f2ea;
  --wine:         #820f15;   /* vino real (logo, poemas, acentos) */
  --rose-tape:    #d8b6a8;   /* cinta de las etiquetas */
  --ink:          #242424;   /* texto principal */
  --cite:         #696060;   /* citas de poemas */

  --ff-logo:   'RA Logo', 'Cooper Black', serif;
  --ff-script: 'RA Script', cursive;
  --ff-label:  'RA Label', cursive;
  --ff-serif:  'RA Serif', 'Cormorant Garamond', Georgia, serif;

  --header-h: 96px;
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--ff-serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ------------------------------ HEADER ---------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header--solid {
  background: linear-gradient(rgba(0,0,0,.20), rgba(0,0,0,.20)),
              url('../images/header-grass.webp') center/cover no-repeat;
  box-shadow: 0 2px 18px rgba(0,0,0,.18);
  height: 76px;
}
.site-header__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
/* Logo: retro blanco, tanto sobre el hero como sobre la franja de pasto */
.site-header__logo {
  font-family: var(--ff-logo);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #fff; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); }
.site-nav__link {
  font-family: var(--ff-serif);
  font-size: clamp(.95rem, 1.2vw, 1.12rem);
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.5);
  padding: .3rem 0; position: relative;
}
.site-nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: currentColor; transition: width .3s ease;
}
.site-nav__link:hover::after { width: 100%; }

.site-header__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.site-header__toggle span {
  width: 26px; height: 2px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* ------------------------------- HERO ----------------------------------- */
.hero { position: relative; height: 100vh; min-height: 600px; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.06) 28%, rgba(0,0,0,0) 55%);
}

/* ------------------------------ POEMAS ---------------------------------- */
.poem {
  position: relative; min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem clamp(1.5rem, 6vw, 6rem) 4rem;
  overflow: hidden;
}
.poem__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.poem__text {
  position: relative; z-index: 1;
  font-family: var(--ff-script); color: var(--wine);
  font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1.5; font-weight: 400;
}
.poem__cite {
  position: relative; z-index: 1; margin-top: auto; align-self: flex-end;
  font-family: var(--ff-serif); color: var(--cite);
  font-size: clamp(.85rem, 1.3vw, 1.05rem);
}
.poem__cite em { font-style: italic; }

/* ----------------------- PORTADA DE SECCIÓN ----------------------------- */
.section-intro {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem) clamp(5rem, 10vw, 8rem);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(2rem, 6vw, 5rem);
  scroll-margin-top: var(--header-h);
}
.section-intro__panel {
  aspect-ratio: 57 / 80; max-height: 62vh; width: auto; justify-self: center;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 14px 34px rgba(111,20,26,.18));
}
.section-intro__text {
  font-family: var(--ff-serif); text-align: justify;
  font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.85;
  color: var(--ink); max-width: 30ch; margin: 0 auto;
}
/* etiqueta script sobre cinta */
.section-intro__label {
  position: absolute; bottom: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--ff-label); font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--wine); line-height: 1; padding: .12em .55em .2em;
  background: var(--rose-tape); transform: rotate(-1.5deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.section-intro--label-right .section-intro__label { right: clamp(1.5rem, 7vw, 7rem); }
.section-intro--label-left  .section-intro__label { left:  clamp(1.5rem, 7vw, 7rem); }

/* ------------------------------ ÁLBUM ----------------------------------- */
.album {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(3rem, 7vw, 6rem);
}
.album__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.album__divider {
  flex-basis: 100%; text-align: center; color: var(--wine);
  letter-spacing: .7em; font-size: 1rem; margin: .8rem 0;
}
.polaroid {
  background: #fff; padding: 10px 10px 30px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  width: clamp(150px, 19vw, 230px);
  transition: transform .4s ease, box-shadow .4s ease;
}
.polaroid:nth-child(3n+1) { transform: rotate(-1.8deg); }
.polaroid:nth-child(3n+2) { transform: rotate(1.4deg); }
.polaroid:nth-child(3n)   { transform: rotate(.6deg); }
.polaroid:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 18px 38px rgba(0,0,0,.2); z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ----------------------------- BIOGRAFÍA -------------------------------- */
.bio {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
  display: flex; justify-content: center;
}
.bio__polaroid {
  position: relative; width: min(460px, 84vw);
  background: #fff; padding: 14px 14px 70px;
  box-shadow: 0 14px 36px rgba(0,0,0,.16); transform: rotate(-1.5deg);
}
.bio__polaroid img.bio__photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.bio__caption {
  position: absolute; right: 26px; bottom: 18px;
  width: clamp(150px, 30%, 220px); height: auto;
  box-shadow: none;
}

/* --------------------------- COLABORACIONES ----------------------------- */
.collab {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(4rem, 9vw, 8rem);
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}
.collab__folder { position: relative; width: clamp(190px, 19vw, 250px); height: clamp(150px, 15vw, 200px); }
.collab__folder-tab {
  position: absolute; top: 0; left: 0; width: 46%; height: 24%;
  background: var(--wine); border-radius: 10px 16px 0 0;
}
.collab__folder-body {
  position: absolute; top: 16%; left: 0; width: 100%; height: 84%;
  background: #c97f74; border-radius: 6px 12px 12px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.collab__text {
  font-family: var(--ff-serif); font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  line-height: 1.55; color: var(--wine); max-width: 24ch;
}
.collab__text em { font-style: italic; color: var(--ink); }

/* ------------------------------ CONTACTO -------------------------------- */
.contact {
  position: relative; min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  padding: 5rem clamp(1.5rem, 6vw, 6rem); overflow: hidden;
}
.contact__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.contact__note {
  position: relative; z-index: 1; max-width: 600px; text-align: center;
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(2rem, 5vw, 3.6rem);
  background: #fbfaf7;
  /* nota de papel rasgada arriba y abajo */
  --tear: 8px;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.22));
  clip-path: polygon(0% 6%, 6% 3%, 13% 6%, 21% 2%, 30% 6%, 39% 3%, 48% 6%, 57% 2%, 66% 6%, 75% 3%, 84% 6%, 93% 2%, 100% 6%,
                     100% 94%, 93% 98%, 84% 94%, 75% 97%, 66% 94%, 57% 98%, 48% 94%, 39% 97%, 30% 94%, 21% 98%, 13% 94%, 6% 97%, 0% 94%);
}
.contact__title {
  font-family: var(--ff-script); color: var(--wine);
  font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1.1rem;
}
.contact__body {
  font-family: var(--ff-serif); font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7; color: var(--ink);
}
.contact__body a { color: var(--wine); font-weight: 700; }

/* ------------------------------- LIBROS --------------------------------- */
.books { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 6rem) 3rem; }
.books__showcase {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(3rem, 7vw, 6rem);
}
.book-card { text-align: center; }
.book-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.book-card figcaption {
  margin-top: 1rem; font-family: var(--ff-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink);
}
.book-detail {
  display: grid; grid-template-columns: minmax(0,340px) 1fr;
  align-items: center; gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.book-detail--reverse { direction: rtl; }
.book-detail--reverse > * { direction: ltr; }
.book-detail img { width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.book-detail__text { font-family: var(--ff-serif); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.8; }
.book-detail__text p { margin-bottom: 1rem; }
.book-detail__text em { font-style: italic; color: var(--wine); }
.book-detail__title {
  font-family: var(--ff-label); color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1.2rem; line-height: 1.1;
}

/* ------------------------------- REDES ---------------------------------- */
.social { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 6rem) 3rem; }
.social-grid { margin-bottom: clamp(3rem, 6vw, 5rem); }
.social-grid__title {
  display: inline-block; font-weight: 400; margin-bottom: 1.4rem;
  padding: .35rem 1.4rem; background: var(--rose-tape);
  transform: rotate(-1deg); box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.social-grid__title-pre { font-family: var(--ff-serif); color: var(--ink); font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.social-grid__title-script { font-family: var(--ff-label); color: var(--wine); font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.social-grid__items {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
}
.social-grid__cell {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  text-align: center; text-decoration: none; padding: 1rem;
  border: 1px solid var(--ink); margin: -1px 0 0 -1px;
  font-family: var(--ff-serif); color: var(--wine);
  font-size: clamp(.85rem, 1.15vw, 1rem); line-height: 1.4;
  overflow-wrap: anywhere; min-width: 0;
  transition: background .3s ease;
}
.social-grid__cell small { color: var(--cite); font-size: .8em; }
.social-grid__cell:hover { background: rgba(216,182,168,.18); }

/* ------------------------------- CIERRE --------------------------------- */
.closing {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 6vw, 6rem);
  background:
    repeating-linear-gradient(to bottom, transparent 0 70px, rgba(130,15,21,.22) 70px 71px),
    var(--cream-light);
}
.closing__text { font-family: var(--ff-script); color: var(--wine); font-size: clamp(1.7rem, 3.4vw, 3rem); }

/* ------------------------------- FOOTER --------------------------------- */
.site-footer {
  position: relative; color: #f3efe6; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 0; background: #1a1410;
}
.site-footer__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.site-footer__bg::after { content: ''; position: absolute; inset: 0; background: rgba(20,12,8,.5); }
.site-footer__inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
}
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__logo { font-family: var(--ff-logo); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--wine); text-decoration: none; }
.site-footer__social { text-align: right; font-family: var(--ff-serif); }
.site-footer__social > span { font-style: italic; letter-spacing: .04em; }
.site-footer__icons { display: flex; gap: .7rem; justify-content: flex-end; margin-top: .6rem; }
.site-footer__icon { color: #f3efe6; opacity: .85; transition: opacity .3s ease, transform .3s ease; }
.site-footer__icon:hover { opacity: 1; transform: translateY(-2px); }
.site-footer__mail { margin-top: 1.1rem; font-family: var(--ff-serif); font-size: .98rem; }
.site-footer__mail a { color: var(--wine); text-decoration: none; }
.site-footer__copy { margin-top: 1.4rem; font-family: var(--ff-serif); font-size: .85rem; opacity: .88; text-align: right; }
.site-footer__copy a { color: var(--wine); text-decoration: none; }
.site-footer__copy a:hover { text-decoration: underline; }

/* ============================ RESPONSIVE ================================= */
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .site-header__inner { padding: 0 1.4rem; gap: 1rem; }
  .site-header__toggle { display: flex; margin-right: -2px; }
  .site-header__search { display: none !important; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0;
    width: min(80vw, 320px); height: calc(100vh - var(--header-h));
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    padding: 2.5rem 2rem; background: var(--cream-light);
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .35s ease;
  }
  .site-nav--open { transform: translateX(0); }
  .site-nav__link { color: var(--ink); text-shadow: none; }

  .section-intro { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 7rem; }
  .section-intro--label-left .section-intro__text,
  .section-intro--label-right .section-intro__text { order: 2; }
  .section-intro--label-left .section-intro__panel,
  .section-intro--label-right .section-intro__panel { order: 1; }
  .section-intro__panel { max-height: 44vh; }
  .section-intro__text { max-width: 100%; }
  .section-intro--label-left .section-intro__label,
  .section-intro--label-right .section-intro__label { left: 50%; right: auto; transform: translateX(-50%) rotate(-1.5deg); }

  .collab { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2rem; }
  .collab__text { text-align: center; }

  .books__showcase { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail--reverse { direction: ltr; }
  .book-detail img { max-width: 300px; margin-inline: auto; }

  .social-grid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__top { flex-direction: column; }
  .site-footer__social { text-align: left; }
  .site-footer__icons { justify-content: flex-start; }
  .site-footer__copy { text-align: left; }

  .polaroid { width: clamp(140px, 40vw, 200px); }
}
@media (max-width: 480px) {
  .poem { min-height: 76vh; }
  .polaroid { width: min(70vw, 240px); }
}

/* ----------------------- ANIMACIONES DE SCROLL -------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
