/* TITOV EDITION — restrained editorial typography, v4.
   Intentionally scoped: navigation, prices, cart, forms and buttons are untouched.
   Existing theme fonts remain the fallback while web fonts load. */

:root {
  --titov-font-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --titov-font-reading: 'PT Serif', Georgia, 'Times New Roman', serif;
}

/* Book and product titles: refined serif rather than decorative color effects. */
.product__header h1,
.title-container__name,
.pages__rightside > h1.category-name {
  font-family: var(--titov-font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
  text-wrap: balance;
}

/* Long-form book descriptions only. Avoid restyling tabs, toolbars and CTAs. */
.product__tabs-description .product__tabs-text p,
.product__tabs-description .product__tabs-text li,
.product__tabs-description .product__tabs-text blockquote,
.product__tabs-description .product__tabs-text dd,
.product__tabs-description .product__tabs-text dt {
  font-family: var(--titov-font-reading);
  font-size: clamp(18px, 1.08vw, 20px);
  line-height: 1.8;
  letter-spacing: 0;
}

.product__tabs-description .product__tabs-text h2,
.product__tabs-description .product__tabs-text h3,
.product__tabs-description .product__tabs-text h4 {
  font-family: var(--titov-font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.product__tabs-description .product__tabs-text blockquote {
  padding-inline-start: 1.25em;
  border-inline-start: 2px solid #3a0ca3;
}

/* Shop-Script static pages and category introductions. */
.pages__item p,
.pages__item li,
.pages__item blockquote,
.category-desc p,
.category-desc li,
.category-desc blockquote {
  font-family: var(--titov-font-reading);
  font-size: clamp(18px, 1.08vw, 20px);
  line-height: 1.8;
}

/* Editorial HTML sometimes contains inline font sizes. Keep the book-reading
   rhythm consistent without enlarging purchase controls or feature tables. */
@media (min-width: 768px) {
  .product__tabs-description .product__tabs-text p,
  .product__tabs-description .product__tabs-text li,
  .pages__item p,
  .pages__item li,
  .category-desc p,
  .category-desc li {
    font-size: 20px !important;
    line-height: 1.8 !important;
  }
}

.pages__item h2,
.pages__item h3,
.pages__item h4,
.category-desc h2,
.category-desc h3,
.category-desc h4 {
  font-family: var(--titov-font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .product__tabs-description .product__tabs-text p,
  .product__tabs-description .product__tabs-text li,
  .product__tabs-description .product__tabs-text blockquote,
  .pages__item p,
  .pages__item li,
  .category-desc p,
  .category-desc li {
    font-size: 17px !important;
    line-height: 1.75 !important;
  }
}
