@charset "utf-8";
/* "Portada viva" home page. Colors come from the current issue (--t-* variables on <html>);
   typography follows the printed magazine: Fira Sans Light (~ Aller) for titles,
   Bitter (~ Caecilia) for text, letter-spaced small caps for authors, blue for Art and Culture. */

.viva {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --rule: #1b1b1b;
  background: var(--t-paper);
}
.viva .main { background: var(--t-paper); box-shadow: none; }
.vm-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;
}
.vm-kicker-dark { color: #6b665a; }

/* ---------- hero: the issue as a magazine spread ---------- */
.vm-hero { position: relative; display: grid; background: var(--t-bg); color: var(--t-ink); overflow: hidden; }
.vm-slide {
  grid-area: 1 / 1; position: relative; overflow: hidden; isolation: isolate;
  background: var(--t-bg); color: var(--t-ink);
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s;
}
.vm-slide.on { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.vm-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .35; mix-blend-mode: multiply; }
.vm-slide::after {                   /* hazard stripes, as on the cover */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: repeating-linear-gradient(-45deg, var(--t-accent) 0 18px, var(--t-accent2) 18px 36px);
}
.vm-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.vm-lines path {
  fill: none; stroke: var(--t-line); stroke-width: 9; stroke-linecap: round; opacity: .22;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
}
.vm-slide.on .vm-lines path { animation: vm-draw 3.2s .2s cubic-bezier(.4,.1,.2,1) forwards; }
.vm-slide.on .vm-lines path:nth-child(2n) { animation-delay: .5s; }
.vm-slide.on .vm-lines path:nth-child(3n) { animation-delay: .9s; }
@keyframes vm-draw { to { stroke-dashoffset: 0; } }

.vm-hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 48px 70px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; min-height: 560px;
  padding-bottom: 120px;
}
.vm-hero .vm-kicker { color: var(--t-accent); }
.vm-hero .vm-title {
  margin: 20px 0 12px; font: 300 clamp(48px, 6.8vw, 108px)/.98 var(--title);
  letter-spacing: -.02em; color: var(--t-ink);
}
/* The cover of 128 sets its title in a heavy grotesque: the home page does the same */
/* Each issue sets its title like its own cover */
.vm-slide.theme-cancha .vm-title { font-weight: 800; letter-spacing: -.01em; line-height: .95; }
.vm-slide.theme-cancha .vm-title .w:nth-child(n+3) > span { color: var(--t-accent); }
.vm-slide.theme-rascacielos .vm-title { font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.vm-slide.theme-semillas .vm-title { font-weight: 400; text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.vm-slide.theme-trazos .vm-title { font: 500 clamp(42px, 5.6vw, 88px)/1.02 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.vm-slide.theme-mostaza .vm-title { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.vm-slide.theme-mostaza .vm-title .w:first-child > span { color: var(--t-accent); }
.vm-slide.theme-mosaico .vm-title { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.vm-slide.theme-mosaico .vm-sub { display: inline-block; padding: 6px 14px; background: var(--t-ink); color: var(--t-num, var(--t-bg)); font-style: normal; font-weight: 600; }
.vm-sub { margin: 0 0 32px; font: 300 italic clamp(20px, 2vw, 28px)/1.3 var(--display); color: var(--t-ink); opacity: .9; }
.vm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.vm-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: var(--t-accent); color: var(--t-accent2) !important; text-decoration: none;
  font: 600 12.5px var(--sans); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); transition: transform .25s var(--ease), box-shadow .25s;
}
.vm-btn::after { content: "→"; letter-spacing: 0; transition: transform .25s var(--ease); }
.vm-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(0,0,0,.7); }
.vm-btn:hover::after { transform: translateX(4px); }
.vm-btn-line { background: transparent; color: var(--t-ink) !important; border: 1.5px solid var(--t-ink); box-shadow: none; }

.vm-hero-cover { position: relative; display: grid; place-items: center; perspective: 1200px; }
/* issue number between the title and the cover: outlined, upright along the cover's left edge */
.vm-bignum {
  position: absolute; z-index: 0; left: 0; top: 50%; transform: translate(-30%, -50%) rotate(180deg);
  writing-mode: vertical-rl; white-space: nowrap; pointer-events: none;
  font: 200 clamp(96px, 9vw, 150px)/.8 var(--title); color: transparent;
  -webkit-text-stroke: 1.5px var(--t-line); opacity: .55; letter-spacing: -.02em;
}
.vm-hero-cover .vm-cover { position: relative; z-index: 1; }
.vm-cover {
  display: block; width: min(340px, 78%); transform-style: preserve-3d;
  transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)) rotateZ(2deg);
  transition: transform .4s var(--ease);
}
.vm-slide.on .vm-cover { animation: vm-cover-in 1.1s .15s var(--ease) both; }
.vm-cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 24px 30px 60px -18px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.08); }
@keyframes vm-cover-in { from { opacity: 0; transform: translateY(60px) rotateY(-30deg) rotateZ(8deg); } }

/* Words of a title slide up one by one (spans added by portada.js) */
.vm-split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.vm-split .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--k) * 70ms); }
.vm-split.in .w > span { transform: none; }

/* ---------- ticker with the article titles ---------- */
.vm-ticker { overflow: hidden; background: var(--t-accent2); color: var(--t-ink); }
.vm-ticker-track { display: flex; width: max-content; animation: vm-ticker 110s linear infinite; }
.vm-ticker span { padding: 15px 0; font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.vm-ticker span::after { content: "✦"; margin: 0 24px; color: var(--t-accent); }
.vm-ticker:hover .vm-ticker-track { animation-play-state: paused; }
@keyframes vm-ticker { to { transform: translateX(-50%); } }

/* ---------- contents: like the printed table of contents and article openers ---------- */
.vm-contents { position: relative; padding: 0 0 30px; background: #fffdf8; }
.vm-contents-head {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 40px 48px 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.vm-contents-head h2 { margin: 0; font: 300 clamp(22px, 2.2vw, 30px)/1.1 var(--title); letter-spacing: -.02em; color: #1b1b1b; }
.vm-contents-head .vm-kicker { order: 2; }

.vm-chapter { position: relative; max-width: var(--max); margin: 0 auto; padding: 28px 48px 30px; }
.vm-opener {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: end;
  padding: 0 0 16px; margin-bottom: 4px; border-bottom: 1px solid var(--rule);
  position: relative;
}
.vm-opener::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--rule); }
.vm-opener-num { font: 200 clamp(64px, 6.5vw, 100px)/.8 var(--title); letter-spacing: -.05em; color: var(--t-num, var(--t-bg)); }
.vm-opener h2 { margin: 0; font: 300 clamp(28px, 3vw, 42px)/1.05 var(--title); letter-spacing: -.02em; color: #1b1b1b; }
.vm-opener p { margin: 8px 0 0; font: 300 italic 21px var(--display); color: #5e5a50; }

.vm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 18px; }
.vm-art { position: relative; padding: 26px 28px 28px 0; border-bottom: 1px solid #e2ddd0; }
.vm-art + .vm-art { padding-left: 28px; border-left: 1px solid #e2ddd0; }
.vm-grid .vm-art:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.vm-art-num {
  display: block; margin-bottom: 14px; font: 600 13px var(--sans); letter-spacing: .14em; color: var(--t-num, var(--t-bg));
  transition: letter-spacing .4s var(--ease);
}
.vm-art-num::after { content: ""; display: inline-block; width: 26px; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; transition: width .4s var(--ease); }
.vm-art:hover .vm-art-num::after { width: 60px; }
.vm-author { margin: 0 0 8px; font: 500 11.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #6b665a; }
.vm-art h3 { margin: 0 0 8px; font: 300 24px/1.18 var(--title); letter-spacing: -.01em; color: #1b1b1b; transition: color .25s; }
.vm-art:hover h3 { color: var(--t-bg2); }
.vm-deck { margin: 0 0 12px; font: 300 italic 16px/1.45 var(--display); color: #4a463d; }
.vm-summary {
  margin: 0; font: 300 15.5px/1.7 var(--display); color: #2b2a26; text-align: justify; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.vm-art.open .vm-summary { -webkit-line-clamp: unset; }
.vm-art .vm-read {
  margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 11.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--t-bg2);
}
/* The first article of each chapter opens like a printed article: large light title and a drop cap */
.vm-grid .vm-feature { grid-column: span 2; grid-row: auto; padding-right: 36px; border-right: 1px solid #e2ddd0; }
.vm-grid .vm-feature + .vm-art { border-left: 0; }
.vm-feature h3 { font-size: clamp(24px, 2.3vw, 31px); line-height: 1.12; letter-spacing: -.015em; }
.vm-feature .vm-deck { font-size: 16px; }
.vm-feature .vm-summary { -webkit-line-clamp: 10; font-size: 15.5px; line-height: 1.7; column-count: 2; column-gap: 28px; display: block; max-height: 13.6em; }
.vm-feature.open .vm-summary { max-height: none; }
.vm-feature .vm-summary::first-letter {
  float: left; margin: 5px 8px 0 0; font: 600 52px/.8 var(--display); color: var(--t-num, var(--t-bg));
}

/* Art and Culture: blue titles, pull-quote rules, as in the printed section */
.vm-chapter-b .vm-opener-num { color: var(--artblue); }
.vm-chapter-b .vm-opener h2 { font: 400 clamp(28px, 3vw, 42px)/1.05 var(--display); color: var(--artblue); letter-spacing: -.01em; }
.vm-chapter-b .vm-art-num, .vm-chapter-b .vm-read { color: var(--artblue); }
.vm-chapter-b .vm-art h3 { font: 400 22px/1.25 var(--display); color: var(--artblue); }
.vm-chapter-b .vm-art:hover h3 { color: #1b1b1b; }
.vm-chapter-b .vm-feature h3 { font: 400 clamp(22px, 2.1vw, 29px)/1.18 var(--display); }
.vm-chapter-b .vm-feature .vm-summary {
  column-count: 1; padding: 14px 0; border-top: 2px solid var(--sky); border-bottom: 2px solid var(--sky);
  font: 300 italic 17px/1.6 var(--display); color: var(--artblue); text-align: left; max-height: 11.5em;
}
.vm-chapter-b .vm-feature .vm-summary::first-letter { float: none; margin: 0; font: inherit; color: inherit; }

/* Optional picture of an article (inc/numero_actual.php: image, image_alt, credit) */
.vm-art-fig { margin: 4px 0 16px; }
.vm-art-fig img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e2ddd0; filter: saturate(.92); transition: filter .4s var(--ease); }
.vm-art:hover .vm-art-fig img { filter: none; }
.vm-art-fig figcaption { margin-top: 7px; font: 12px/1.45 var(--sans); color: #6b6b6b; }
.vm-feature .vm-art-fig img { aspect-ratio: 16 / 9; }
.vm-extra { display: none; }
.vm-chapter.all .vm-extra { display: block; animation: rise .5s var(--ease) both; }
.vm-more {
  display: block; margin: 28px auto 0; padding: 13px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid #1b1b1b; background: transparent; color: #1b1b1b;
  font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; transition: background .2s, color .2s;
}
.vm-more:hover { background: #1b1b1b; color: #fff; }

/* ---------- fanzine band ---------- */
.vm-fanzine { background: var(--t-bg2); padding: 50px 48px; }
.vm-fanzine a {
  max-width: calc(var(--max) - 96px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  background: #fff; border-radius: 4px; overflow: hidden; text-decoration: none; color: #1b1b1b;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transition: transform .4s var(--ease);
}
.vm-fanzine a:hover { transform: rotate(-.6deg) scale(1.01); }
.vm-fanzine-img { line-height: 0; overflow: hidden; }
.vm-fanzine-img img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.vm-fanzine a:hover .vm-fanzine-img img { transform: scale(1.06) translateX(10px); }
.vm-fanzine-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 44px 30px 0; }
.vm-fanzine-text strong { font: 300 clamp(40px, 4.6vw, 66px)/1 var(--title); letter-spacing: -.02em; color: #1b1b1b; }
.vm-fanzine-text > span:not([class]) { font: 300 italic 21px var(--display); color: #5e5a50; }
.vm-fanzine .vm-btn { margin-top: 8px; background: #1b1b1b; color: #fff !important; }

/* ---------- recent issues ---------- */
.vm-recent { position: relative; background: var(--navy); }
.vm-recent-title {
  position: absolute; z-index: 3; left: 50%; top: 20px; transform: translateX(-50%); margin: 0;
  font: 500 12px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #f3dd94;
}
.vm-recent .showcase-inner { padding-top: 52px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 900px) {
  .vm-hero-inner { grid-template-columns: 1fr; padding: 36px 24px 56px; min-height: 0; gap: 26px; }
  .vm-hero-cover { order: -1; }
  .vm-cover { width: min(250px, 62%); }
  .vm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-grid .vm-art:nth-child(3n+1) { border-left: 1px solid #e2ddd0; padding-left: 28px; }
  .vm-grid .vm-art:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .vm-grid .vm-feature { grid-column: 1 / -1; grid-row: auto; padding-right: 0; border-right: 0; }
  .vm-grid .vm-feature ~ .vm-art:nth-child(2n) { border-left: 0; padding-left: 0; }
  .vm-grid .vm-feature ~ .vm-art:nth-child(2n+1) { border-left: 1px solid #e2ddd0; padding-left: 28px; }
  .vm-feature .vm-summary { column-count: 1; }
  .vm-chapter, .vm-contents-head { padding-left: 24px; padding-right: 24px; }
  .vm-fanzine { padding: 30px 20px; }
  .vm-fanzine a { grid-template-columns: 1fr; gap: 0; }
  .vm-fanzine-text { padding: 24px; }
}
@media (max-width: 640px) {
  .vm-hero .vm-title { font-size: 44px; }
  .vm-grid { grid-template-columns: 1fr; }
  .vm-grid .vm-art, .vm-grid .vm-feature ~ .vm-art:nth-child(n) { border-left: 0 !important; padding-left: 0 !important; padding-right: 0; }
  .vm-feature h3 { font-size: 25px; }
  .vm-feature .vm-summary { font-size: 15.5px; }
  .vm-opener { gap: 14px; }
  .vm-bignum { display: none; }
  .vm-ticker span { font-size: 12px; padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vm-lines path { stroke-dashoffset: 0; }
  .vm-split .w > span { transform: none; }
  .vm-ticker-track { animation: none; }
}

.vm-chapter-b .vm-feature.open .vm-summary { max-height: none; }
