@charset "utf-8";
/* Past Issues: wall of covers grouped by year, year filters and enlarged view. */

.archivo, .archivo .main { background: #fbf9f4; box-shadow: none; }

/* ---------- hero ---------- */
.ar-hero { max-width: var(--max); margin: 0 auto; padding: 56px 48px 26px; text-align: center; }
.ar-kicker {
  display: inline-block; padding: 6px 14px; border: 1px solid currentColor; border-radius: 999px;
  font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #6b665a;
}
.ar-hero h1 { margin: 18px 0 14px; font: 300 clamp(38px, 5.4vw, 76px)/1.02 var(--title); letter-spacing: -.02em; color: #1b1b1b; }
.ar-hero h1 em { font-family: var(--display); font-weight: 300; }
.ar-stats { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 34px; font: 400 15px var(--sans); color: #6b665a; }
.ar-stats b { margin-right: 6px; font: 300 30px var(--title); color: #1b1b1b; vertical-align: -4px; font-variant-numeric: tabular-nums; }

/* ---------- tools: sticky under the menu bar ---------- */
.ar-tools {
  position: sticky; top: 48px; z-index: 40; max-width: var(--max); margin: 0 auto 10px; padding: 12px 48px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: rgba(251,249,244,.92); border-bottom: 1px solid #e7e2d6;
}
@supports (backdrop-filter: blur(8px)) { .ar-tools { background: rgba(251,249,244,.78); backdrop-filter: blur(10px); } }
.ar-filters {
  order: 3; flex: 1 0 100%; min-width: 0; display: flex; gap: 6px; padding: 2px 0 8px;
  overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 40px), transparent);
}
.ar-filters button { flex: 0 0 auto; scroll-snap-align: center; }
.ar-filters button:first-child { margin-left: 12px; }
/* the row's scrollbar: a fine, translucent line */
.ar-filters::-webkit-scrollbar { height: 8px; }
.ar-filters::-webkit-scrollbar-track { background: transparent; }
.ar-filters::-webkit-scrollbar-thumb { background: rgba(27,27,27,.18); border-radius: 8px; border: 1px solid transparent; background-clip: padding-box; }
.ar-filters:hover::-webkit-scrollbar-thumb { background-color: rgba(27,27,27,.32); }
.ar-filters::-webkit-scrollbar-thumb:active { background-color: rgba(27,27,27,.45); }
@supports not selector(::-webkit-scrollbar) { .ar-filters { scrollbar-width: auto; scrollbar-color: rgba(27,27,27,.22) transparent; } }
.ar-filters button {
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #d9d3c4; background: #fff; color: #1b1b1b;
  font: 500 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.ar-filters button:hover { transform: translateY(-2px); border-color: #1b1b1b; }
.ar-filters button.on { background: #1b1b1b; border-color: #1b1b1b; color: #fff; }
.ar-find { flex: 1 1 220px; max-width: 360px; margin-left: auto; }
.ar-find input {
  width: 100%; height: 38px; padding: 0 14px 0 38px; border: 1px solid #d9d3c4; border-radius: 999px; background: #fff;
  font: 400 15px var(--display); color: #1b1b1b; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b665a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 17px; background-position: 13px center;
}
.ar-find input:focus { border-color: #1b1b1b; }
.ar-count { margin: 0; font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6b665a; white-space: nowrap; }
.ar-count b { font: 600 15px var(--sans); color: #1b1b1b; }

/* ---------- wall ---------- */
.ar-wall { max-width: var(--max); margin: 0 auto; padding: 10px 48px 60px; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 22px; }

.ar-cover { display: block; text-decoration: none; color: #1b1b1b; perspective: 900px; }
.ar-cover[hidden] { display: none; }
.ar-img {
  position: relative; display: block; aspect-ratio: 600 / 780; overflow: hidden; border-radius: 2px; background: #ece6d8;
  box-shadow: 0 14px 26px -16px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.05);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(0);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ar-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
/* Mock-up photos (cover in perspective over a watermark): zoom into the cover */
.ar-mock .ar-img img { object-position: 50% 45%; transform: scale(1.16); }
.ar-cover:hover .ar-img { box-shadow: 0 26px 40px -18px rgba(0,0,0,.6); }
.ar-cover:hover .ar-img img { transform: scale(1.05); }
.ar-mock:hover .ar-img img { transform: scale(1.22); }
.ar-img::after {                           /* light sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg);
}
.ar-cover:hover .ar-img::after { animation: sweep .9s var(--ease); }
.ar-caption { display: block; margin-top: 10px; font: 300 italic 13.5px/1.35 var(--display); color: #5e5a50; }
.ar-caption b { display: block; font: 600 11.5px var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #1b1b1b; }
.ar-empty { padding: 40px 0; text-align: center; font: 300 italic 20px var(--display); color: #6b665a; }

/* tiles appear as they enter the screen */
.js .ar-cover { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .ar-cover.in { opacity: 1; transform: none; }

/* ---------- enlarged view ---------- */
.ar-view {
  position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 24px;
  background: rgba(20,18,14,.9);
}
@supports (backdrop-filter: blur(8px)) { .ar-view { background: rgba(20,18,14,.8); backdrop-filter: blur(10px); } }
.ar-view[hidden] { display: none; }
.ar-view figure { margin: 0 auto; display: grid; grid-template-columns: auto minmax(220px, 320px); gap: 40px; align-items: center; animation: zoom-in .4s var(--ease) both; }
.ar-view-img { line-height: 0; perspective: 1200px; }
.ar-view-img img { max-height: 80vh; max-width: 46vw; width: auto; border-radius: 3px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); }
.ar-view figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: #f3eedf; }
.ar-view figcaption .ar-kicker { color: #d9c27a; }
.ar-view figcaption strong { font: 300 clamp(30px, 3.6vw, 52px)/1.05 var(--title); letter-spacing: -.02em; }
.ar-view-open { background: #f3eedf; color: #1b1b1b !important; }
.ar-view-close, .ar-view-nav {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; font: 300 30px/1 var(--title); transition: background .2s, transform .25s var(--ease);
}
.ar-view-close { position: absolute; top: 18px; right: 22px; }
.ar-view-close:hover { transform: rotate(90deg); }
.ar-view-nav:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }
.ar-view .vm-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; text-decoration: none;
  font: 600 12.5px var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.ar-view .vm-btn::after { content: "→"; }
.ar-view.swap figure { animation: none; }
.ar-view.swap .ar-view-img img { animation: ar-swap .45s var(--ease) both; }
@keyframes ar-swap { from { opacity: 0; transform: rotateY(-25deg) translateX(-30px); } }

/* ---------- tablets and phones ---------- */
@media (max-width: 900px) {
  .ar-hero, .ar-wall { padding-left: 20px; padding-right: 20px; }
  .ar-tools { padding: 10px 20px; top: 52px; }
  .ar-find { margin-left: 0; max-width: none; }
  .ar-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 10px; }
  .ar-view { grid-template-columns: 1fr; padding: 70px 18px 24px; }
  .ar-view figure { grid-template-columns: 1fr; gap: 18px; justify-items: center; text-align: center; }
  .ar-view figcaption { align-items: center; }
  .ar-view-img img { max-width: 70vw; max-height: 55vh; }
  .ar-view-nav { position: absolute; bottom: 22px; }
  .ar-view-nav.prev { left: 18px; } .ar-view-nav.next { right: 18px; }
}
@media (max-width: 640px) {
  .ar-filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 100%; }
  .ar-filters::-webkit-scrollbar { display: none; }
  .ar-filters button { flex: 0 0 auto; }
  .ar-count { display: none; }
}
/* replayed when a year is chosen: covers rise and settle, one after another */
.ar-cover.ar-pop { animation: ar-pop .7s var(--ease) var(--pd, 0s) backwards; }
.ar-cover.ar-pop .ar-img { animation: ar-pop-img .9s var(--ease) var(--pd, 0s) backwards; }
@keyframes ar-pop { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ar-pop-img {
  from { transform: rotateY(-14deg) rotateX(6deg) scale(.94); filter: blur(3px); box-shadow: 0 4px 10px -8px rgba(0,0,0,.3); }
  to   { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-cover.ar-pop, .ar-cover.ar-pop .ar-img { animation: none; }
  .js .ar-cover { opacity: 1; transform: none; }
}

/* ---------- printed covers (images/marca/portada_NN.jpg): a magazine on the shelf ---------- */
.ar-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 40px 26px; }
.ar-flat .ar-img {
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 28px -16px rgba(0,0,0,.55), 0 6px 10px -6px rgba(0,0,0,.25);
}
.ar-flat .ar-img::before {                   /* spine and a soft light across the paper */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.08) 2.5%, rgba(255,255,255,.18) 4%, rgba(255,255,255,0) 9%),
    linear-gradient(115deg, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 38%);
}
.ar-flat .ar-img::after { z-index: 2; }
.ar-flat:hover .ar-img { box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 34px 44px -20px rgba(0,0,0,.6), 0 10px 16px -8px rgba(0,0,0,.3); }
.ar-flat .ar-img img { transform-origin: 50% 50%; }
.ar-flat:hover .ar-img img { transform: scale(1.03); }
.ar-cover:hover .ar-caption b { color: var(--artblue); }
.ar-caption b { transition: color .2s; }
@media (max-width: 900px) { .ar-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 26px 14px; } }
/* large screens: six covers per row, so each one is big enough to read */
@media (min-width: 1100px) { .ar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 46px 32px; } }
