/* ==========================================================================
   VAULT — hoja de estilo única
   Paleta de papel de museo, tipografía de catálogo, sin dependencias externas.
   ========================================================================== */

:root {
  --paper: #f3f0ea;
  --paper-2: #e8e2d7;
  --ink: #15130f;
  --ink-soft: #3b362d;
  --muted: #7b7466;
  --line: #d5cec0;
  --accent: #7c2d22;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;

  --max: 1320px;
  --pad: clamp(20px, 5vw, 72px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Accesibilidad: salto al contenido -------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

/* Cabecera --------------------------------------------------------------- */
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--pad) 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  transition: opacity .3s ease;
}
a.brand:hover { opacity: .55; }

.site-head__right {
  display: flex;
  gap: 22px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero ------------------------------------------------------------------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 9vw, 118px) var(--pad) clamp(30px, 4vw, 46px);
}

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 8.6vw, 130px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.035em;
}

.hero__lede {
  margin: 30px 0 0;
  max-width: 46ch;
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Filtros ---------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}

.filter {
  position: relative;
  padding: 0 0 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease;
}
.filter span { margin-left: 7px; opacity: .55; }
.filter:hover { color: var(--ink-soft); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
}

/* Rejilla de sesiones ---------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.5vw, 76px) clamp(24px, 4vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) var(--pad) clamp(80px, 10vw, 150px);
}

.card { display: block; }
.card:nth-child(even) { margin-top: clamp(28px, 5vw, 78px); }
.card[hidden] { display: none; }

.card__fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.card:hover .card__img { transform: scale(1.035); }

.card__num {
  position: absolute;
  top: 13px;
  left: 15px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: #fff;
  mix-blend-mode: difference;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta__sep {
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.card__title {
  display: inline;
  margin: 0;
  font-size: clamp(21px, 2.5vw, 29px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.012em;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .5s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card__title { background-size: 100% 1px; }

.empty {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 120px;
  font-style: italic;
  color: var(--muted);
}

/* Entrada ---------------------------------------------------------------- */
.entry {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 8vw, 110px);
}

.entry__back {
  display: inline-block;
  margin: 34px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease;
}
.entry__back:hover { color: var(--ink); }

.entry__head {
  display: grid;
  grid-template-columns: 1.5fr .85fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding: clamp(26px, 5vw, 62px) 0 clamp(22px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}

.entry__title {
  margin: 0;
  font-size: clamp(38px, 6.6vw, 84px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.032em;
}

.entry__specs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 4px;
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.spec__k { color: var(--muted); }
.spec__v { text-align: right; }

.entry__lede {
  margin: clamp(26px, 4vw, 44px) 0 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
}
.entry__lede p { margin: 0 0 1em; }

/* Láminas ---------------------------------------------------------------- */
.plates {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  margin: clamp(38px, 6vw, 84px) 0 0;
}
.plates--single { grid-template-columns: 1fr; }
.plates--pair { grid-template-columns: 1fr 1fr; align-items: start; }
.plates--pair .plate:nth-child(2) { margin-top: clamp(34px, 6vw, 96px); }

.plate { margin: 0; }

.plate__img {
  width: 100%;
  background: var(--paper-2);
  cursor: zoom-in;
}

.plate__cap {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Navegación entre sesiones ---------------------------------------------- */
.entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(64px, 9vw, 128px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.nav-link { display: block; }
.nav-link--next { text-align: right; }

.nav-link__k {
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-link__t {
  display: inline;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.15;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .45s ease;
}
.nav-link:hover .nav-link__t { background-size: 100% 1px; }

/* Pie -------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--pad);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot__mid { display: flex; gap: 20px; }
.foot__mid a { transition: color .25s ease; }
.foot__mid a:hover { color: var(--ink); }

/* 404 -------------------------------------------------------------------- */
.e404 { padding-bottom: clamp(120px, 18vw, 240px); }
.e404 .entry__title { font-size: clamp(38px, 6vw, 76px); }

.link {
  border-bottom: 1px solid currentColor;
  transition: color .25s ease;
}
.link:hover { color: var(--accent); }

/* Lightbox --------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 44px);
  background: rgba(12, 11, 9, .97);
  animation: lb-in .25s ease both;
}
.lb[hidden] { display: none; }

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  max-width: 100%;
}

.lb__img {
  max-width: min(92vw, 1500px);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb__cap {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b6afa2;
  text-align: center;
}

.lb__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: #8d867a;
}

.lb__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 240, 234, .28);
  border-radius: 50%;
  color: #f3f0ea;
  font-size: 18px;
  line-height: 1;
  transition: background-color .25s ease, border-color .25s ease;
}
.lb__btn:hover { background: rgba(243, 240, 234, .1); border-color: rgba(243, 240, 234, .6); }

.lb__btn--close { top: 18px; right: 18px; }
.lb__btn--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__btn--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; gap: 34px; }
  .card:nth-child(even) { margin-top: 0; }
  .entry__head { grid-template-columns: 1fr; align-items: start; }
  .entry__specs { max-width: 420px; }
  .plates--pair { grid-template-columns: 1fr; }
  .plates--pair .plate:nth-child(2) { margin-top: 16px; }
  .entry-nav { grid-template-columns: 1fr; }
  .nav-link--next { text-align: left; }
  .nav-link__k { margin-bottom: 6px; }
}

@media (max-width: 520px) {
  .site-head { padding: 22px var(--pad) 18px; }
  .site-head__domain { display: none; }
  .hero { padding-top: 44px; }
  .lb__btn { width: 40px; height: 40px; }
  .lb__img { max-height: 72vh; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-head__right,
  .filters,
  .entry-nav,
  .foot__mid,
  .lb { display: none !important; }
  body { background: #fff; }
}
