/* YAX K'UK' EDITORIAL — Lectura premium V4.3. Cargado en el sitio y vistas privadas. */
:root {
  --yax-editorial-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Baskerville', Georgia, serif;
  --yax-editorial-sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --yax-ink:#25332c;
  --yax-rule:#d9d3c4;
}
.reader, .prose, .preview-article, .story-body, .editorial-body, .yax-bloque-editorial {
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  font-kerning:normal;
}
.reader, .preview-article .prose, .story-body, .editorial-body {
  width:min(100% - 36px, 72ch);
  max-width:72ch;
  margin-inline:auto;
  color:var(--yax-ink);
  font-family:var(--yax-editorial-serif);
  font-size:clamp(17.5px,1.05rem + .35vw,20px);
  line-height:1.77;
  letter-spacing:0;
  overflow-wrap:break-word;
}
.reader p, .preview-article .prose p, .story-body p, .editorial-body p {
  margin-block:0 1.2em;
  max-width:68ch;
  text-wrap:pretty;
  orphans:2;
  widows:2;
}
.reader h1,.reader h2,.reader h3,.preview-article h1,.preview-article h2,.preview-article h3,
.story-body h2,.story-body h3,.editorial-body h2,.editorial-body h3 {
  font-family:var(--yax-editorial-serif);
  color:#203f32;
  text-wrap:balance;
  letter-spacing:-.018em;
  font-weight:500;
}
.reader h2,.preview-article .prose h2,.story-body h2,.editorial-body h2 {
  font-size:clamp(27px,3.6vw,38px);
  line-height:1.23;
  margin:2em 0 .65em;
}
.reader h3,.preview-article .prose h3,.story-body h3,.editorial-body h3 {
  font-size:clamp(22px,2.7vw,28px);
  line-height:1.32;
  margin:1.65em 0 .55em;
}
.reader blockquote,.preview-article .prose blockquote,.story-body blockquote,.editorial-body blockquote {
  border-left:3px solid #a88c5c;
  padding:.3em 1.2em;
  margin:2em auto;
  font-style:italic;
  line-height:1.55;
  background:transparent;
}
.reader img,.preview-article .prose img,.story-body img,.editorial-body img{max-width:100%;height:auto}
.reader figcaption,.preview-article figcaption,.story-body figcaption,.editorial-body figcaption {
  max-width:70ch;
  font:12px/1.6 var(--yax-editorial-sans);
  color:#627167;
  margin:.65rem auto 2rem;
}
.preview-article {max-width:960px;margin-inline:auto}
.preview-article > h1 {font:500 clamp(36px,5.7vw,68px)/1.12 var(--yax-editorial-serif);letter-spacing:-.035em;max-width:18ch;margin:22px auto 18px;text-wrap:balance}
.preview-article .summary{font:400 clamp(19px,2.2vw,25px)/1.55 var(--yax-editorial-serif);max-width:64ch;color:#586c5e;margin:22px auto}
.preview-article .credits{font:12px/1.7 var(--yax-editorial-sans);letter-spacing:.02em;color:#687468;border-bottom:1px solid var(--yax-rule);padding-bottom:22px;margin-bottom:32px}
.preview-article .photo{max-width:100%;border:0;padding:0;background:transparent}
.preview-article figure{margin:38px auto;max-width:900px}
.preview-article figure img{max-width:100%;height:auto;display:block;margin-inline:auto}
@media(max-width:640px){
  .reader,.preview-article .prose,.story-body,.editorial-body{width:calc(100% - 36px);font-size:18px;line-height:1.7}
  .reader p,.preview-article .prose p,.story-body p,.editorial-body p{margin-bottom:1.15em}
  .preview-article{padding:0 16px}
  .preview-article > h1{font-size:clamp(33px,9vw,45px);margin-top:18px}
  .preview-article figure{margin-inline:-8px}
}
@media(prefers-reduced-motion:reduce){.reader *,.preview-article *{scroll-behavior:auto!important}}


/* YAXKUK_V4_4_TIPOGRAFIA_INICIO */
/* YAX K'UK' EDITORIAL · V4.4 · Ajuste exclusivamente tipográfico.
   Alcance: jerarquía editorial, medida de lectura, ritmo, puntuación visual.
   No modifica rejillas, navegación, fotografías, posiciones ni componentes funcionales.
   Las reglas de gramática/ortografía se aplican en redacción, no mediante CSS. */

:root {
  --yax-type-display: 'Iowan Old Style', 'Baskerville', 'Palatino Linotype', Palatino, Georgia, serif;
  --yax-type-reading: 'Iowan Old Style', Charter, Georgia, 'Times New Roman', serif;
  --yax-type-detail: -apple-system, BlinkMacSystemFont, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --yax-type-ink: #26352c;
  --yax-type-soft: #526157;
  --yax-type-accent: #755936;
  --yax-type-measure: 72ch; /* aproximación tipográfica a una columna de ~75–79 caracteres */
}

/* Jerarquía general de títulos dentro del contenido; se excluyen menús y botones. */
main h1, main h2, main h3, .preview-article > h1 {
  font-family: var(--yax-type-display);
  font-weight: 400;
  font-kerning: normal;
  letter-spacing: .006em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Títulos de apertura: autoridad sin condensación ni mayúsculas artificiales. */
.hero h1,
.heading h1,
.profile h1,
.identity-band h1,
.society-hero h1,
.preview-article > h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
  line-height: 1.13;
  letter-spacing: .004em;
}
.hero h1 {font-size: clamp(2.4rem, 5.1vw, 4.25rem);}
.society-hero h1 {font-size: clamp(2.55rem, 5.8vw, 5.2rem);}
.preview-article > h1 {
  max-width: 23ch;
  margin-block: .4em .35em;
}

/* Títulos de colección y artículos secundarios. */
.section-heading h2,
.edition h2, .dark h2, .society-home h2,
.society-footer-promo h2,
.reader h2, .story-body h2, .editorial-body h2,
.preview-article .prose h2 {
  font-family: var(--yax-type-display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: .005em;
  font-weight: 400;
}
.reader h2, .story-body h2, .editorial-body h2, .preview-article .prose h2 {
  margin-block: 1.8em .65em;
}
.card h3, .society-feature h3, .founder-card h3,
.institution-grid h3,
.reader h3, .story-body h3, .editorial-body h3,
.preview-article .prose h3 {
  font-family: var(--yax-type-display);
  font-size: clamp(1.38rem, 2.15vw, 1.8rem);
  line-height: 1.33;
  letter-spacing: .004em;
  font-weight: 400;
}
.reader h3, .story-body h3, .editorial-body h3, .preview-article .prose h3 {
  margin-block: 1.6em .6em;
}

/* Columna de lectura prolongada, sin alterar los contenedores de maquetación. */
.reader, .story-body, .editorial-body,
.preview-article .prose {
  box-sizing: border-box;
  max-width: var(--yax-type-measure);
  color: var(--yax-type-ink);
  font-family: var(--yax-type-reading);
  font-size: clamp(1.075rem, 1.01rem + .22vw, 1.21rem);
  line-height: 1.78;
  letter-spacing: .002em;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  overflow-wrap: break-word;
}
.reader, .story-body, .editorial-body {
  width: min(100%, var(--yax-type-measure));
  margin-inline: auto;
}
.preview-article .prose {
  width: min(100%, var(--yax-type-measure));
  margin-inline: auto;
}
.reader p, .story-body p, .editorial-body p,
.preview-article .prose p {
  max-width: none;
  margin-block: 0 1.35em;
  line-height: 1.78;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 2;
  widows: 2;
}
.reader ul, .reader ol, .story-body ul, .story-body ol,
.editorial-body ul, .editorial-body ol,
.preview-article .prose ul, .preview-article .prose ol {
  line-height: 1.75;
  margin-block: .6em 1.4em;
}
.reader li, .story-body li, .editorial-body li, .preview-article .prose li {
  margin-block: .35em;
}

/* Entradillas: puente visual entre el titular y el cuerpo del artículo. */
.heading .lede, .hero p, .society-lead, .society-story-lead,
.profile p, .preview-article .summary {
  font-family: var(--yax-type-reading);
  font-size: clamp(1.12rem, 1.035rem + .45vw, 1.43rem);
  line-height: 1.67;
  letter-spacing: .003em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.preview-article .summary {max-width: 60ch;}

/* Citas y datos de apoyo. */
.reader blockquote, .story-body blockquote,
.editorial-body blockquote, .preview-article .prose blockquote {
  font-family: var(--yax-type-display);
  font-size: clamp(1.22rem, 1.6vw, 1.6rem);
  line-height: 1.58;
  letter-spacing: .004em;
  text-wrap: pretty;
}
.reader figcaption, .story-body figcaption, .editorial-body figcaption,
.preview-article figcaption, .caption {
  font-family: var(--yax-type-detail);
  font-size: .79rem;
  line-height: 1.65;
  letter-spacing: .005em;
  color: var(--yax-type-soft);
}
.byline, .preview-article .credits, .card .meta {
  font-family: var(--yax-type-detail);
  font-size: .78rem;
  line-height: 1.55;
  letter-spacing: .012em;
}

/* Breves y tarjetas: líneas amplias sin convertir cada tarjeta en una columna de artículo. */
.card p, .society-feature p, .society-list p, .edition p,
.founder-card p, .institution-grid p {
  line-height: 1.72;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.card p, .society-feature p, .society-list p {font-size: .94rem;}

/* Contraste legible para pequeñas etiquetas sobre fondos claros.
   Las etiquetas dentro de héroes oscuros conservan su color institucional. */
main .tag, main .society-overline {color: var(--yax-type-accent);}
.hero .tag, .society-hero .tag {color: #dfca9e;}

@media (max-width: 640px) {
  .reader, .story-body, .editorial-body, .preview-article .prose {
    width: 100%;
    font-size: 1.095rem;
    line-height: 1.76;
  }
  .reader p, .story-body p, .editorial-body p,
  .preview-article .prose p {
    line-height: 1.76;
    margin-bottom: 1.3em;
  }
  .hero h1, .heading h1, .profile h1,
  .identity-band h1, .preview-article > h1 {
    font-size: clamp(2.13rem, 8vw, 2.92rem);
    line-height: 1.16;
  }
  .society-hero h1 {font-size: clamp(2.25rem, 8.4vw, 3.4rem);}
  .reader h2, .story-body h2, .editorial-body h2,
  .preview-article .prose h2 {
    font-size: clamp(1.65rem, 6vw, 2rem);
    line-height: 1.28;
    margin-top: 1.75em;
  }
  .reader h3, .story-body h3, .editorial-body h3,
  .preview-article .prose h3 {
    font-size: clamp(1.35rem, 4.8vw, 1.58rem);
    line-height: 1.33;
  }
  .heading .lede, .hero p, .society-lead, .society-story-lead,
  .profile p, .preview-article .summary {
    font-size: clamp(1.09rem, 4.7vw, 1.23rem);
    line-height: 1.66;
  }
  .reader blockquote, .story-body blockquote,
  .editorial-body blockquote, .preview-article .prose blockquote {
    font-size: 1.26rem;
    line-height: 1.58;
  }
}
/* YAXKUK_V4_4_TIPOGRAFIA_FIN */

/* YAX’ K’UK’ · Composición documental. Conserva jerarquía de lectura original. */
.yax-publication-reader { padding-top: 0; }
.yax-publication-reader > .yax-reader-photo { margin: 2rem auto 2.4rem; }
.yax-reader-photo {max-width: 100%; margin: 2.2rem auto; break-inside:avoid;}
.yax-reader-photo img { display:block;width:100%;max-width:100%;height:auto;object-fit:contain; border-radius:2px; }
.yax-reader-photo figcaption {text-align:left;padding:0 2px;}
.yax-reader-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:2.2rem auto;max-width:1050px;align-items:start;}
.yax-reader-gallery .yax-reader-photo {margin:0;min-width:0;}
.yax-reader-gallery .yax-reader-photo img {width:100%;height:auto;}
.yax-private-notice {text-align:center;font:600 12px/1.8 -apple-system,BlinkMacSystemFont,Arial,sans-serif;letter-spacing:.12em;color:#714e2b;background:#f2ebdc;padding:10px 12px;margin:8px auto 22px;max-width:850px;}
@media(max-width:640px){.yax-reader-gallery{grid-template-columns:1fr;gap:12px}.yax-publication-reader>.yax-reader-photo{margin:1.6rem auto 2rem}}

.yax-reader-zoom{border:0;padding:0;margin:0;display:block;width:100%;background:transparent;text-align:inherit;cursor:zoom-in;color:inherit;}
.yax-reader-zoom:focus-visible{outline:3px solid #927444;outline-offset:4px;}
