/* PJB · Playfair para encabezados editoriales y Manrope para lectura e interfaz. */
@font-face {
  font-family: "Playfair Display PJB";
  src: url("assets/fonts/eventos-figo-parson/PlayfairDisplay.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display PJB";
  src: url("assets/fonts/eventos-figo-parson/PlayfairDisplay-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/eventos-figo-parson/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --pjb-editorial: "Playfair Display PJB", Georgia, serif;
  --pjb-reading: "Manrope", Arial, sans-serif;
}

/* Los títulos y las marcas que tienen una identidad propia se conservan. */
.site-header :is(.nav-link, .menu-toggle),
.site-footer :is(.footer-statement, .footer-label, .footer-bottom),
.privacy-dialog :is(p, h3, button, .privacy-dialog__eyebrow),
.skip-link { font-family: var(--pjb-reading); }
.site-header .nav-link { font-weight: 600; }
.site-footer .footer-statement {
  max-width: 39ch;
  font: 500 clamp(15px, 1.3vw, 18px)/1.4 var(--pjb-reading);
}
.site-footer .footer-conversation-title {
  font-family: var(--pjb-editorial);
  line-height: 1.06;
}
.site-footer .footer-label { font-size: 11px; }
.site-footer .footer-bottom { font-size: 11px; line-height: 1.45; }
.privacy-dialog h2 { font-family: var(--pjb-editorial); line-height: 1.12; }
.privacy-dialog .privacy-dialog__body p { font-size: 16px; line-height: 1.54; }

#view-inicio :is(.bench-note, .arch-words, .notebook-entry h3, .notebook-inscribed-answer, .clue-reset-dialog h2) {
  font-family: var(--pjb-editorial);
}
#view-inicio :is(.notebook-toggle, .clue-discovery-notice, .notebook-close, .notebook-answer-form input,
  .notebook-answer-form button, .notebook-answer-feedback, .notebook-progress, .notebook-vault-link,
  .clue-reset-dialog p, .clue-reset-dialog button) { font-family: var(--pjb-reading); }
#view-inicio .notebook-entry h3 { line-height: 1.18; }

#view-about .about-heading h1 {
  font-family: var(--pjb-editorial);
  font-weight: 500;
  line-height: 1.12;
  white-space: normal;
  text-wrap: balance;
}
#view-about .about-letter p {
  font-family: var(--pjb-reading);
  font-size: clamp(16px, 1.24vw, 18px);
  line-height: 1.43;
}
@media (min-width: 721px) {
  #view-about .about-letter-body {
    width: min(100%, 86ch);
    justify-self: center;
    font-family: var(--pjb-reading);
  }
}

#view-substack :is(.substack-feature-heading h1, .substack-series-heading h2, .substack-deck) {
  font-family: var(--pjb-editorial);
}
#view-substack .substack-feature-heading h1 { line-height: 1.03; text-wrap: balance; }
#view-substack .substack-deck { line-height: 1.32; }
#view-substack :is(.substack-summary, .substack-actions a, .substack-read-more,
  .substack-story-card strong, .substack-meta, .substack-eyebrow) { font-family: var(--pjb-reading); }
#view-substack .substack-summary { line-height: 1.52; }
#view-substack .substack-story-card strong { font-weight: 650; line-height: 1.25; }

#view-podcast .dc-episode-name {
  font-family: var(--pjb-editorial);
  font-weight: 500;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
#view-podcast :is(.dc-description, .dc-listen, .dc-play, .dc-episode-eyebrow,
  .dc-episode-meta, .dc-replay) { font-family: var(--pjb-reading); }
#view-podcast .dc-description { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.48; }

#view-proyectos :is(.projects-gallery-title, .projects-viewer-copy h2) {
  font-family: var(--pjb-editorial);
  font-weight: 500;
  line-height: 1.08;
}
#view-proyectos :is(.projects-current-open, .projects-gallery-label h2) {
  font-family: var(--pjb-reading);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.2;
}
#view-proyectos :is(.projects-gallery-index, .projects-view-return, .projects-current-category,
  .projects-route p, .projects-gallery-toolbar > p, .projects-gallery-label > span, .projects-gallery-label p,
  .projects-viewer-header > p, .projects-viewer-position, .projects-viewer-kicker,
  .projects-viewer-story p, .projects-viewer-story small, .projects-viewer-story a,
  .projects-viewer-original, .projects-overview-hint, .projects-overview-hotspot span) {
  font-family: var(--pjb-reading);
}
#view-proyectos .projects-viewer-story p { font-size: 16px; line-height: 1.5; }

#view-shop :is(.shop-deal-label, .shop-redeal) { font-family: var(--pjb-reading); }
#view-shop .shop-reading:not([data-product="libro"]) :is(
  .shop-reading-arcana, .shop-reading-category, .shop-reading-description, .shop-reading-detail,
  .shop-reading-action, .shop-book-actions a, .shop-reading-unavailable, .shop-product-position,
  .shop-donation-amount input, .shop-donate-submit, .shop-donation-message,
  .shop-booking legend, .shop-modality label > span, .shop-modality em,
  .shop-booking-policy, .shop-booking-consent, .shop-pay, .shop-float-label, .shop-field-help,
  .shop-weekday-calendar, .shop-calendar-choice, .shop-contact-fields .shop-float-field > input) {
    font-family: var(--pjb-reading);
}
#view-shop .shop-reading:not([data-product="libro"]) #shop-reading-title {
  font-family: var(--pjb-editorial);
  font-weight: 500;
  font-size: clamp(31px, 3.4vw, 44px);
  line-height: 1.08;
  text-wrap: balance;
}
#view-shop .shop-reading:not([data-product="libro"]) .shop-reading-description {
  font-size: 16px;
  line-height: 1.45;
}
#view-shop .shop-reading:not([data-product="libro"]) .shop-reading-detail {
  font-size: 14px;
  line-height: 1.5;
}
#view-shop .shop-reading .shop-contact-fields .shop-float-field > input { font-size: 16px; }

/* Archivo reservado. El texto de las firmas y de la ilustración queda en su soporte original. */
body[data-vault-state] :is(.gate-copy h1, .vault-content h1, .vault-carving h2,
  .reader-paper h2, .coupon-paper h2, .golden-ticket h2, .vault-ticket-name, .vault-seal-text,
  .arch-words) { font-family: var(--pjb-editorial); }
body[data-vault-state] :is(.vault-top-note, .portal-caption, .vault-kicker, .vault-intro, .vault-progress,
  .vault-welcome, .vault-submit, .vault-feedback, .vault-back, .vault-replay, .story-teaser,
  .vault-manuscript-body, .reader-kicker, .reader-end p, .reward-close, .reader-other,
  .coupon-intro, .coupon-how, .coupon-copy, .coupon-choices a, .coupon-choices small, .coupon-shop,
  .coupon-status, .vault-ticket-shop, .vault-seal-actions button) {
  font-family: var(--pjb-reading);
}
body[data-vault-state] :is(.vault-intro, .reader-paper .vault-manuscript-body p, .coupon-intro) {
  font-size: 16px;
  line-height: 1.55;
}
body[data-vault-state] #vault-reader-title { text-wrap: balance; line-height: 1.12; white-space: normal; }

@media (max-width: 720px) {
  #view-about .about-heading h1 { line-height: 1.08; }
  #view-about .about-letter p { font-size: 16px; line-height: 1.5; }
}
