/* Simón Calle León — documentary photography aesthetic
   Ref: feliperomerobeltran.com / gloriaoyarzabal.com */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #6b6b6b;
  --rule: #e6e6e6;
  --max: 1680px;
  --read: 580px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}
a.u, .u a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

em, i { font-style: italic; }
.italic { font-style: italic; }

/* NAV — minimal top bar */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  font-size: 13px;
}
.site-nav .brand {
  font-weight: 500;
  letter-spacing: 0;
}
.site-nav .brand a { display: inline-block; }
.site-nav nav { display: flex; gap: 22px; justify-self: center; }
.site-nav nav a { color: var(--ink); }
.site-nav nav a.active { color: var(--ink-soft); }
.site-nav .lang { justify-self: end; color: var(--ink-soft); }
.site-nav .lang span { color: var(--ink); }
.site-nav .lang a { color: var(--ink-soft); }

main { padding-top: 60px; }

/* HERO HOME — foto-first, casi sin texto */
.home-cover {
  padding: 24px 24px 0;
  max-width: var(--max);
  margin: 0 auto;
}
.home-cover a { display: block; }
.home-cover img,
.home-cover video {
  width: 100%;
  height: 82vh;
  object-fit: cover;
  display: block;
  background: #111;
}
.home-cover .caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
  padding-bottom: 80px;
}
.home-cover .caption em { color: var(--ink); font-style: italic; }

.home-about {
  padding: 80px 24px 60px;
  max-width: 720px;
}
.home-about p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 580px;
  margin-bottom: 1em;
}
.home-about .eyebrow {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* WORK INDEX — list-like, photo-book index */
.work-index {
  padding: 80px 24px 120px;
  max-width: var(--max);
}
.work-index .label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
.work-index ol {
  list-style: none;
  counter-reset: w;
}
.work-index li {
  counter-increment: w;
  border-bottom: 1px solid var(--rule);
}
.work-index li a {
  display: grid;
  grid-template-columns: 32px 1.4fr 1fr 60px;
  gap: 24px;
  padding: 22px 0;
  align-items: baseline;
  font-size: 14px;
}
.work-index li a::before {
  content: counter(w, decimal-leading-zero);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.work-index li a .t { font-size: 15px; font-weight: 400; }
.work-index li a .t em { font-style: italic; }
.work-index li a .m { color: var(--ink-soft); }
.work-index li a .y { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.work-index li:hover { background: #fafafa; }

/* HOME WORK PREVIEWS (below index) */
.work-previews {
  padding: 0 24px 120px;
  max-width: var(--max);
}
.work-previews .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.work-previews .pair img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.work-previews .single img { width: 100%; max-height: 80vh; object-fit: cover; margin-bottom: 24px; }

/* PROJECT PAGES — photobook scroll */
.project-header {
  padding: 60px 24px 40px;
  max-width: 920px;
}
.project-header .crumb {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 60px;
}
.project-header .crumb a { color: var(--ink-soft); }
.project-header h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 40px;
  max-width: 760px;
}
.project-header h1 em { font-style: italic; }
.project-header .ficha {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 320px));
  gap: 24px 48px;
  font-size: 13px;
}
.project-header .ficha dt {
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.project-header .ficha dd { color: var(--ink); }

.project-statement {
  padding: 40px 24px 80px;
  max-width: var(--read);
}
.project-statement p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.2em;
}
.project-statement p.first { /* no drop cap */ }

/* GALLERY — photo-book vertical scroll */
.gallery {
  padding: 0 0 80px;
}
.gallery .full {
  margin: 0 0 8px;
}
.gallery .full img {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: block;
}
.gallery .full figcaption {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  padding: 0 24px;
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
}
.gallery .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 auto 8px;
  max-width: var(--max);
}
.gallery .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto 8px;
  max-width: var(--max);
}
.gallery img { background: #f4f4f4; }

.gallery blockquote {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 24px;
  font-size: 18px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
}

/* VIDEO */
.gallery .video {
  margin: 16px 0 24px;
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
}
.gallery .video video {
  width: 100%;
  display: block;
  background: #000;
}
.gallery .video figcaption {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  padding: 0 24px;
}

/* EPIGRAPH at top of project */
.epigraph {
  padding: 0 24px 60px;
  max-width: var(--read);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* REFERENTES / BIBLIOGRAFIA / AUDIOS */
.refs, .biblio, .audios {
  padding: 60px 24px;
  max-width: 760px;
}
.refs h3, .biblio h3, .audios h3 {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-bottom: 24px;
}
.refs .ref {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.refs .ref strong { font-weight: 500; }
.refs .ref em { font-style: italic; }
.biblio ul {
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.biblio li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
}
.biblio li em { color: var(--ink); }
.audios .item {
  margin-bottom: 16px;
}
.audios iframe {
  width: 100%;
  height: 120px;
  border: none;
  background: #fafafa;
}
.audios .name {
  font-size: 13px;
  margin-bottom: 6px;
}

.section-label {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: left;
  margin: 60px 24px 16px;
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  padding: 0 24px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

/* NEXT WORK */
.next-work {
  padding: 80px 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  max-width: var(--max);
  margin: 0 auto;
}
.next-work .label { color: var(--ink-soft); font-size: 12px; }
.next-work h3 { font-size: 14px; font-weight: 400; }
.next-work h3 em { font-style: italic; }
.next-work a { text-decoration: underline; text-underline-offset: 3px; }

/* BIO / CV */
.bio-hero {
  padding: 60px 24px 40px;
  max-width: 760px;
}
.bio-hero h1 { font-size: 18px; font-weight: 400; margin-bottom: 32px; color: var(--ink-soft); }
.bio-text p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1.2em;
  max-width: 580px;
}
.cv { margin-top: 80px; }
.cv h2 {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-bottom: 20px;
  margin-top: 56px;
}
.cv ul { list-style: none; }
.cv li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.cv li:last-child { border-bottom: none; }
.cv li .y { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cv li em { font-style: italic; }

/* CONTACT */
.contact-hero {
  padding: 60px 24px 120px;
  max-width: 760px;
}
.contact-hero h1 { font-size: 16px; font-weight: 400; margin-bottom: 60px; color: var(--ink-soft); }
.contact-hero .lines {
  font-size: 14px;
  line-height: 2.2;
}
.contact-hero .lines p { display: grid; grid-template-columns: 100px 1fr; gap: 24px; align-items: baseline; border-bottom: 1px solid var(--rule); padding: 8px 0; }
.contact-hero .lines a { text-decoration: underline; text-underline-offset: 3px; }
.contact-hero .label { color: var(--ink-soft); font-size: 12px; }
.contact-hero .note { margin-top: 40px; font-size: 12px; color: var(--ink-soft); max-width: 480px; line-height: 1.5; }

/* FOOTER */
footer {
  border-top: 1px solid var(--rule);
  padding: 24px;
  margin-top: 80px;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
}
footer a { color: var(--ink-soft); }
footer .social a { margin-right: 16px; }
footer .social a:hover { color: var(--ink); }

/* RESPONSIVE — TABLET */
@media (max-width: 1024px) {
  .home-cover img, .home-cover video { height: 70vh; }
  .work-index li a { grid-template-columns: 28px 1.4fr 1fr 50px; gap: 16px; }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 760px) {
  body { font-size: 13px; }

  /* NAV compacto: brand + lang en fila 1, nav en fila 2 */
  .site-nav {
    grid-template-columns: 1fr auto;
    padding: 12px 16px 10px;
    font-size: 11px;
  }
  .site-nav .brand { font-size: 13px; }
  .site-nav nav {
    grid-column: 1 / -1;
    gap: 14px;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }
  .site-nav .lang {
    grid-column: 2;
    grid-row: 1;
    font-size: 11px;
  }
  main { padding-top: 76px; }

  /* PADDINGS reducidos */
  .home-cover, .hero, .work-index, .work-previews, .project-header,
  .project-statement, .bio-hero, .contact-hero, .home-about,
  .refs, .biblio, .audios, .epigraph {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-cover { padding-top: 16px; }
  .home-cover img, .home-cover video { height: 60vh; }
  .home-cover .caption {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    padding-bottom: 40px;
  }

  /* WORK INDEX en mobile */
  .work-index { padding-top: 40px; padding-bottom: 60px; }
  .work-index .label { font-size: 11px; }
  .work-index li a {
    grid-template-columns: 24px 1fr 56px;
    gap: 12px;
    padding: 18px 0;
    font-size: 13px;
  }
  .work-index li a .t { font-size: 13px; }
  .work-index li a .m { display: none; }

  /* HOME ABOUT */
  .home-about { padding-top: 40px; padding-bottom: 60px; }
  .home-about p { font-size: 13px; }

  /* PROJECT PAGES */
  .project-header { padding-top: 40px; padding-bottom: 24px; }
  .project-header .crumb { margin-bottom: 32px; font-size: 11px; }
  .project-header h1 { font-size: 22px; line-height: 1.25; }
  .project-header .ficha {
    grid-template-columns: 1fr;
    gap: 16px;
    font-size: 12px;
  }
  .project-statement { padding-top: 32px; padding-bottom: 32px; }
  .project-statement p { font-size: 13px; line-height: 1.65; }
  .epigraph { font-size: 14px; padding-bottom: 32px; }

  /* GALLERY: imágenes pegadas en mobile */
  .gallery .full { margin: 0 0 4px; }
  .gallery .full figcaption { font-size: 11px; padding: 6px 16px 0; }
  .gallery .grid-2, .gallery .grid-3 {
    grid-template-columns: 1fr;
    gap: 4px;
    max-width: 100%;
    padding: 0;
  }
  .gallery blockquote { font-size: 15px; margin: 40px auto; padding: 0 16px; }
  .section-label { margin: 32px 16px 12px; padding-top: 12px; font-size: 11px; }

  /* BLOQUES DE TEXTO largos */
  .refs h3, .biblio h3, .audios h3 { font-size: 11px; }
  .refs .ref { font-size: 13px; margin-bottom: 20px; }
  .biblio li { font-size: 12px; }
  .audios iframe { height: 110px; }

  /* BIO / CV */
  .bio-hero h1 { font-size: 15px; }
  .bio-text p { font-size: 13px; }
  .cv li {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    font-size: 12px;
  }
  .cv h2 { font-size: 11px; }

  /* CONTACT */
  .contact-hero { padding-top: 32px; padding-bottom: 60px; }
  .contact-hero h1 { font-size: 18px; line-height: 1.35; margin-bottom: 32px; color: var(--ink); }
  .contact-hero .lines { font-size: 13px; line-height: 1.6; }
  .contact-hero .lines p {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 6px 0;
  }

  /* WORK PREVIEWS */
  .work-previews .pair { grid-template-columns: 1fr; gap: 4px; }

  /* NEXT WORK */
  .next-work { padding: 40px 16px; }
  .next-work h3 { font-size: 13px; }

  /* FOOTER */
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px;
    font-size: 11px;
  }
  footer .social a { margin-right: 12px; }
}

/* RESPONSIVE — XS phones */
@media (max-width: 380px) {
  .site-nav nav { gap: 10px; }
  .home-cover img, .home-cover video { height: 56vh; }
}
