@font-face {
  font-family: Gabarito;
  src: url("assets/gabarito.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff9f4;
  --ink: #5a1633;
  --raspberry: #ef4d62;
  --wash: #fae5e9;
  --line: #5a163344;
  --display: Gabarito, sans-serif;
  --body: "DM Sans", sans-serif;
  scroll-padding-top: 6rem;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
::selection { background: var(--ink); color: var(--paper); }

.skip { position: fixed; left: 1rem; z-index: 10; transform: translateY(-150%); padding: .75rem; background: var(--paper); }
.skip:focus { transform: translateY(0); }
.wrap, .header-inner { width: min(100% - 8vw, 1240px); margin-inline: auto; }
.site-header { position: sticky; z-index: 2; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 1rem; }
.logo { width: max-content; padding-block: .35rem; }
.logo img { width: clamp(146px, 16vw, 176px); height: auto; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.7rem); }
nav a, .contact-link { text-decoration: none; font-weight: 650; }
nav a:hover, .contact-link:hover { text-decoration: underline; }
.primary-nav [aria-current] { text-decoration: underline; text-decoration-color: var(--raspberry); text-decoration-thickness: 2px; }
#contenido:focus { outline: none; }
.contact-link { justify-self: end; }
.contact-link span { margin-left: .25em; }

.hero { min-height: min(740px, calc(100svh - 76px)); padding-block: clamp(3.5rem, 8vw, 7rem); display: grid; grid-template-columns: 1fr .95fr; gap: clamp(1.5rem, 4.5vw, 4.5rem); align-items: center; }
.eyebrow { font-size: .72rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .14em; font-weight: 760; }
.dot { display: inline-block; width: .56rem; height: .56rem; margin-right: .4rem; background: var(--raspberry); border-radius: 50%; }
h1 { margin-block: .2em .25em; font: 750 clamp(3.35rem, 7vw, 6.9rem)/.9 var(--display); letter-spacing: -.067em; }
h1 em { color: var(--raspberry); font-style: normal; }
.dek { max-width: 24rem; font-size: clamp(1.02rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.65rem; margin-top: 1.75rem; }
.action { position: relative; display: inline-flex; align-items: center; gap: 1.2rem; margin-top: 1.75rem; padding: .85rem 1.1rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 700; }
.hero-actions .action { margin-top: 0; }
.hero-actions .action-primary {
  background-color: var(--ink); color: var(--paper); font-size: max(19px, 1.1875rem);
  transition: background-color 240ms ease, border-color 240ms ease;
}
.hero-explore {
  display: inline-flex; align-items: center; min-block-size: 44px;
  padding-block: .65rem; font-weight: 700; text-decoration: none;
}
.hero-explore span { position: relative; }
.hero-explore span::after {
  content: ""; position: absolute; inset: auto 0 -.25em; height: 2px;
  background-color: var(--raspberry); opacity: 0;
  transition: opacity 220ms ease; pointer-events: none;
}
.hero-explore:focus-visible span::after { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .hero-explore span::after { opacity: 1; }
}
.action:focus-visible { background: var(--ink); color: var(--paper); outline-color: var(--ink); }
.hero-actions .action-primary:focus-visible { background-color: var(--raspberry); border-color: var(--raspberry); }
.action::before, .action::after,
:is(.card-link .cover-title, .feature-title, .explore-feature a)::before,
:is(.card-link .cover-title, .feature-title, .explore-feature a)::after {
  content: ""; position: absolute; background: var(--raspberry); pointer-events: none;
  aspect-ratio: 1; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
}
.action::before { right: -13px; top: -12px; width: 1.15rem; }
.action::after { right: -24px; top: 5px; width: .65rem; --spark-delay: 70ms; }

.card-link .cover-title::before { width: .85rem; top: -.8rem; left: 0; }
.card-link .cover-title::after { width: .5rem; top: -.95rem; left: 1rem; --spark-delay: 70ms; }
#inicio, #seleccion { scroll-margin-top: 9rem; }
:is(#inicio, #seleccion, .explore-section > h2):target:focus { outline: none; }

:is(.feature-title, .explore-feature a) { position: relative; padding-inline-end: 1.75rem; }
:is(.feature-title, .explore-feature a)::before { width: .75rem; top: -.15rem; right: .7rem; }
:is(.feature-title, .explore-feature a)::after { width: .45rem; top: .45rem; right: .18rem; --spark-delay: 70ms; }

@keyframes sparkle-in {
  0% { opacity: 0; transform: translateY(5px) scale(.4); }
  52% { opacity: 1; }
  68% { transform: translateY(-2px) scale(1.13); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.action:focus-visible::before, .action:focus-visible::after,
:is(.card-link:focus-visible .cover-title, .feature-photo:focus-visible .feature-title, .explore-feature a:focus-visible)::before,
:is(.card-link:focus-visible .cover-title, .feature-photo:focus-visible .feature-title, .explore-feature a:focus-visible)::after {
  animation: sparkle-in 600ms ease-out var(--spark-delay, 0ms) both;
}

.feature-photo {
  position: relative; isolation: isolate; display: block;
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.feature-photo img { width: 100%; height: auto; aspect-ratio: 1.19; object-fit: cover; object-position: center 30%; }
.feature-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #48132914 0%, #48132908 40%, #48132979 67%, #381021fa 100%);
}
.feature-photo:focus-visible { outline-color: var(--ink); }
.stamp {
  position: absolute; right: -13px; top: -20px; display: grid; place-items: center;
  width: 56px; aspect-ratio: 1; border-radius: 50%; background: var(--raspberry);
  color: var(--ink); z-index: 2; pointer-events: none;
}
.stamp svg { width: 48%; display: block; }
.feature-caption {
  position: absolute; inset: auto 0 0; z-index: 1; display: flex;
  justify-content: space-between; align-items: end; gap: .65rem;
  padding: clamp(.9rem, 3vw, 2rem);
}
.feature-title { font: 760 clamp(1.52rem, 3.25vw, 3.2rem)/.98 var(--display); margin-top: .35rem; }
.feature-photo:is(:hover, :focus-visible) .feature-title { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.round { display: grid; place-items: center; flex: 0 0 44px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; text-decoration: none; font-size: 1.4rem; }

.selection { padding-block: 2rem 6rem; border-top: 1px solid var(--line); }
.explore { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem); }
.explore-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.explore-section + .explore-section { margin-top: clamp(2.75rem, 6vw, 5rem); }
.explore-section > h2 { margin-bottom: 1.2rem; scroll-margin-top: 9rem; }
.explore-feature { display: grid; justify-items: start; gap: .25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.explore-feature a { font-weight: 730; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.7rem; }
h2 { font: 760 clamp(2.5rem, 5vw, 4.7rem)/.97 var(--display); letter-spacing: -.055em; }
.asterisk { color: var(--raspberry); flex: 0 0 auto; }
.asterisk svg { display: block; width: clamp(1.45rem, 3vw, 2.2rem); }
.shelves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.8vw, 2rem); }
.story-card { min-width: 0; border-top: 1px solid var(--line); display: grid; grid-template-rows: 1fr auto; }
.card-link { display: grid; grid-template-rows: auto 1fr; gap: 1rem; padding-top: .65rem; text-decoration: none; }
.card-copy { display: flex; flex-direction: column; gap: .45rem; }
.card-link:is(:hover, :focus-visible) h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .13em; }
.card-cta, .section-link { font-weight: 730; font-size: .9rem; }
.card-cta { margin-top: auto; padding-block: .45rem .8rem; }
.section-link { padding-block: .85rem; border-block: 1px solid var(--line); }
.section-link span, footer nav span { margin-left: .17em; }

.story-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.62; background: var(--wash); }
.story-art > img { width: 100%; height: 100%; object-fit: cover; }
.graphic { background: var(--art-bg); }
.story-cover {
  display: grid; align-content: space-between; gap: .65rem;
  inline-size: 100%; min-block-size: min-content; padding: clamp(.8rem, 1.7vw, 1.4rem);
}
.story-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--art-bg) 4%, color-mix(in srgb, var(--art-bg) 90%, transparent) 58%, transparent 91%);
  pointer-events: none;
}
.story-cover > .cover-signature {
  position: relative; z-index: 1; justify-self: end;
  width: clamp(3.6rem, 6vw, 5rem); height: auto; object-fit: contain;
}
.cover-title {
  position: relative; z-index: 1;
  color: var(--cover-title, var(--ink)); overflow-wrap: anywhere;
  font: 790 clamp(1.33rem, 2.55vw, 2.45rem)/1.02 var(--display);
  letter-spacing: -.035em; text-wrap: balance; margin: 0;
}
.art-motif { position: absolute; inset: 0; background: var(--art-pattern); pointer-events: none; }
[data-art="noviembre"] {
  --art-bg: #efacbd;
  --art-pattern: repeating-radial-gradient(ellipse at -5% 8%, transparent 0 20px, #8d284970 21px 22px, transparent 23px 34px);
}
[data-art="malagradecida"] {
  --art-bg: #e08ca7;
  --art-pattern: linear-gradient(130deg, transparent 26%, #fff9f494 26% 40%, #62133865 40% 42%, #fff9f443 42% 58%, transparent 58%);
}
[data-art="scl"] {
  --art-bg: #67203d; --cover-title: var(--paper);
  --art-pattern: repeating-radial-gradient(circle at 92% 12%, transparent 0 15px, #ecb2c683 16px 17px, transparent 18px 27px);
}
[data-art="insika"] {
  --art-bg: #67203d; --cover-title: var(--paper);
  --art-pattern: linear-gradient(153deg, transparent 37%, #ef4d62 37% 39%, #ef4d6245 39% 46%, transparent 46%);
}
[data-art="marineros"] {
  --art-bg: #f4d2bb;
  --art-pattern: radial-gradient(ellipse at 24% 0%, transparent 45%, #a22d5685 46% 47%, transparent 48%),
    radial-gradient(ellipse at 76% 0%, transparent 45%, #a22d5685 46% 47%, transparent 48%);
}
[data-art="roce"] {
  --art-bg: #5a1633; --cover-title: var(--paper);
}
[data-art="roce"] .art-motif {
  background: #ef4d62;
  clip-path: polygon(49% 63%, 9% 12%, 11% 11%, 49% 59%, 45% 0, 47% 0, 51% 59%, 83% 8%, 85% 9%, 51% 64%);
}
[data-art="estrenos"] {
  --art-bg: #efacbd;
  --art-pattern: linear-gradient(#942f53a0 0 0) 14% 34% / 22% 18% no-repeat,
    linear-gradient(#bb3e63a0 0 0) 42% 21% / 22% 18% no-repeat,
    linear-gradient(#ef4d62bd 0 0) 70% 8% / 22% 18% no-repeat;
}
[data-art="octubre"] {
  --art-bg: #f3d9ce;
  --art-pattern: linear-gradient(180deg, #a22d56 0 8%, transparent 8% 15%, #e08ca7 15% 24%, transparent 24% 31%, #fff9f4a0 31% 36%, transparent 36%);
}
[data-art="mercado"] {
  --art-bg: #f3d9ce;
  --art-pattern: linear-gradient(123deg, transparent 13%, #fff9f4 38%, #fff9f478 48%, transparent 68%);
}
[data-art="kalkutun"] {
  --art-bg: #3e2534; --cover-title: var(--paper);
  --art-pattern: radial-gradient(ellipse at 65% -20%, #b66e75 0 24%, #5a293e 41%, transparent 65%);
}
[data-art="pantera"] {
  --art-bg: #efacbd;
}
[data-art="pantera"] .art-motif::before,
[data-art="pantera"] .art-motif::after {
  content: ""; position: absolute; border: 2px solid #8d284983; inset: 12% 32% 35% 10%; transform: rotate(-8deg);
}
[data-art="pantera"] .art-motif::after { transform: translate(18%, -11%) rotate(7deg); }
[data-art="arirang"] {
  --art-bg: #e2ccdf;
  --art-pattern: conic-gradient(from 126deg at 54% -35%, transparent 0 8deg, #fff9f4dd 8deg 17deg,
    transparent 17deg 23deg, #fff9f4b0 23deg 32deg, transparent 32deg 38deg, #fff9f4dd 38deg 47deg, transparent 47deg);
}
[data-art="teorema"] {
  --art-bg: #57213a; --cover-title: var(--paper);
  --art-pattern: linear-gradient(114deg, transparent 24%, #d3866770 40%, #f3d9ceae 52%, #c9655a46 64%, transparent 72%);
}
[data-art="aborto"] {
  --art-bg: #482036; --cover-title: var(--paper);
  --art-pattern: linear-gradient(143deg, #9d5367 0 35%, transparent 35%),
    linear-gradient(38deg, transparent 55%, #d28f9aa1 55% 75%, transparent 75%);
}
[data-art="disidencias"] {
  --art-bg: #f4d2bb;
  --art-pattern: linear-gradient(#882f50 0 0) 12% 15% / 24% 2px no-repeat,
    linear-gradient(#a22d56 0 0) 20% 24% / 41% 3px no-repeat,
    linear-gradient(#c84d6d 0 0) 36% 34% / 64% 4px no-repeat;
}
[data-art="halloween"] {
  --art-bg: #482036; --cover-title: var(--paper);
  --art-pattern: repeating-radial-gradient(ellipse at 32% 105%, #2a1221 0 15px, #67374d 16px 20px, transparent 21px 31px);
}
[data-art="roses"] {
  --art-bg: #f4d2bb;
  --art-pattern: radial-gradient(ellipse at -15% -50%, transparent 60%, #a22d5690 61% 62%, transparent 63%),
    radial-gradient(ellipse at 118% -25%, transparent 56%, #c84d6d9c 57% 58%, transparent 59%);
}
[data-art="clean-look"] {
  --art-bg: #f8e6da;
  --art-pattern: linear-gradient(121deg, transparent 0 35%, #dd92ac 35% 49%, #a33256 49% 53%, #dd92ac 53% 59%, transparent 59% 63%, #a3325690 63% 68%, transparent 68%);
}
[data-art="lanzamiento"] {
  --art-bg: #fae5e9;
  --art-pattern: linear-gradient(#ef4d6277 0 0) 20% 20% / 32% 5px no-repeat,
    linear-gradient(#a3325680 0 0) 20% 20% / 5px 73% no-repeat,
    linear-gradient(118deg, transparent 17%, #fff9f4 17% 48%, transparent 48%);
}

.archive { padding-bottom: clamp(3rem, 8vw, 7rem); }
.page-intro { padding-block: clamp(2.8rem, 6vw, 6rem) clamp(2rem, 5vw, 4rem); }
.page-intro h1 { margin-top: 0; }
.page-intro .dek { max-width: 35rem; }
.story { max-width: 61rem; padding-block: clamp(2rem, 5vw, 4.25rem) clamp(3rem, 8vw, 7rem); }
.story-back { margin-bottom: clamp(1.2rem, 3vw, 2.8rem); font-weight: 700; }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  grid-template-rows: auto 1fr;
  gap: 1.25rem clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.story-copy h1, .prose h1 { line-height: .95; overflow-wrap: anywhere; }
.story-copy h1 { margin-block: .4em .32em; font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.prose h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); }
.story-copy .dek { max-width: 32rem; font-weight: 650; }
.story-body { max-width: 34rem; margin-top: 1rem; }
.story-related { margin-top: 1.75rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.story-related a { display: inline-block; margin-top: .25rem; font-weight: 700; }
.story-embed { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.story-embed:has(iframe) {
  background: var(--art-pattern), var(--art-bg);
  padding: clamp(.125rem, 1vw, .5rem);
  border-radius: .35rem;
}
.story-embed .instagram-media {
  display: block; width: 100% !important; min-width: 0 !important; margin: 0 !important;
}
.story-embed-links .action { margin-top: 0; }
.prose { padding-bottom: clamp(3rem, 8vw, 7rem); }
.prose p { max-width: 44rem; margin-top: 1rem; }
.privacy-page { max-width: 46rem; }
.privacy-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.privacy-page h2 {
  margin-top: 1.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 23%, transparent);
  font: 740 clamp(1.3rem, 3vw, 1.65rem)/1.2 var(--display);
  letter-spacing: -.02em;
}
.privacy-page h2 + p { margin-top: .6rem; }
.privacy-page p { line-height: 1.65; overflow-wrap: anywhere; }
.privacy-page p:last-child { margin-top: 2rem; }

.letter { background: var(--wash); border-top: 1px solid var(--line); }
.letter-inner { display: grid; grid-template-columns: 1fr .75fr; gap: 2.5rem; align-items: center; padding-block: clamp(2.75rem, 6vw, 5rem); }
.letter h2 + p { margin-top: 1rem; max-width: 27rem; }
.letter-status { font-weight: 650; max-width: 24rem; }
.letter-note { margin-top: .55rem; font-size: .85rem; }
.letter-signup { min-width: 0; }
.letter-signup iframe { display: block; max-width: 100%; border: 0; }

footer { background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 1.8rem; padding-block: 3rem; }
.footer-credit { border-top: 1px solid #fff9f459; padding-block: 1rem; font-size: .875rem; }
.email { display: inline-block; margin-top: .75rem; }

@media (hover: hover) and (pointer: fine) {
  .action:hover { background: var(--ink); color: var(--paper); }
  .hero-actions .action-primary:hover { background-color: var(--raspberry); border-color: var(--raspberry); }
  .hero-explore:hover span::after { opacity: 1; }
  html, a {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='26' viewBox='0 0 24 26'%3E%3Cpath d='M2 1.5 3.1 21l5.1-4.4 4 7.7 3.5-1.9-4-7.5L19 13z' fill='%23ef4d62' stroke='%235a1633' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  .action:hover::before, .action:hover::after,
  :is(.card-link:hover .cover-title, .feature-photo:hover .feature-title, .explore-feature a:hover)::before,
  :is(.card-link:hover .cover-title, .feature-photo:hover .feature-title, .explore-feature a:hover)::after {
    animation: sparkle-in 600ms ease-out var(--spark-delay, 0ms) both;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap, .header-inner { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: auto 1fr; row-gap: .35rem; padding-block: .65rem .45rem; }
  .header-inner nav { grid-row: 2; grid-column: 1/-1; gap: clamp(.75rem, 5vw, 1.4rem); flex-wrap: wrap; }
  .header-inner nav a { padding-block: .35rem; }
  .logo img { width: 130px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 2.5rem; padding-block: 3rem; }
  h1 { font-size: clamp(2.9rem, 11vw, 5.25rem); }
  .stamp { right: -6px; width: 46px; }
  .selection { padding-block: 1.5rem 3rem; }
  .shelves { grid-template-columns: 1fr; }
  .story-card .cover-title { max-width: none; font-size: clamp(1.75rem, 7.5vw, 2.25rem); }
  .story-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .story-embed { grid-area: auto; width: 100%; max-width: 22rem; }
  .story-embed:not(:has(iframe)) { margin-block-end: -1.25rem; }
  .letter-inner { grid-template-columns: 1fr; gap: 1.3rem; }
  .footer-inner { flex-direction: column; align-items: start; }
  .footer-inner nav { flex-wrap: wrap; }
}
