/* ==========================================================================
   Caspian Monarque type system
   Display: Bodoni Moda 500, optical sizes on. Text, labels, menu, prices, buttons: Jost.
   Pull quotes and taglines: Bodoni Moda Italic. No Bodoni below 18px except taglines.

   Sizes (desktop / phone)
     Hero 64 / 40 . H1 48 / 34 . H2 40 / 30 . H3 26 / 22 . Pull quote 40 / 28 . Tagline 18 / 17
     Body 16 . Small 14 . Label 11 caps +.2em . Button 12 caps +.18em . Price 18 tabular
   Line height: 1.0-1.06 at 48px and above; 1.1-1.2 from 22 to 40px; 1.6 for text; 1.2 for labels.

   The names "Rosarivo" and "Lora" in earlier layers are aliases (inc/typeset.php):
   Rosarivo = Jost 500, Lora = Jost at 107%. So a rule that says "Lora" .9375rem renders 16px Jost.
   ========================================================================== */

html:root {
  --cm-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --cm-text: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--cm-display);
  --font-body: "Lora", var(--cm-text);
  --font-h5: "Rosarivo", var(--cm-text);
  --fs-p-default: .9375rem;     /* 16px Jost through the Lora alias */
  --fs-text-default: .9375rem;
}

/* ---- Text ---- */
html body[class] { font-size: .9375rem; letter-spacing: .01em; font-kerning: normal; }
html body[class] :is(.cm-pillar p, .cm-note p, .cm-match .cm-match-lead, .cm-edit p, .cm-trust li):not(#cm):not(#cm) { letter-spacing: .01em; }

/* ---- Display ---- */
html body[class] :is(h1, h2, h3, h4) {
  font-family: var(--cm-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: 0;
}

/* Hero: 64 / 40. On phones the theme shows span.mob.title in place of the h1. */
html body.home .slider-block .slide .content h1:not(#cm):not(#cm):not(#cm),
html body.home .slider-block .slide .content span.mob.title:not(#cm):not(#cm):not(#cm) {
  font-family: var(--cm-display) !important;
  font-size: clamp(2.5rem, 4.4vw, 4rem) !important;
  font-weight: 500 !important;
  line-height: 1.04 !important;
  letter-spacing: -.01em !important;
}

/* H1, page titles: 48 / 34 */
html body[class] .product-hero .heading h1:not(#cm):not(#cm),
html body[class] .product-hero h1.product_title:not(#cm):not(#cm),
html body[class].woocommerce-shop .shop-content .woocommerce-products-header h1:not(#cm):not(#cm):not(#cm) {
  font-size: clamp(2.125rem, 3.4vw, 3rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.005em !important;
}

/* H2, section titles: 40 / 30 */
html body[class] :is(.video-block h2, .image-with-list .text h2, .cm-notes h2, .best-selling .wp-block-heading, #caviar-slider .caviar-slider--top h2):not(#cm):not(#cm),
html body.single-product :is(.cm-notes h2, main > section.image-with-list .text h2, .best-selling .wp-block-heading):not(#cm):not(#cm):not(#cm),
html body.single-product .product-parameters :is(h2, h3):not(#cm):not(#cm),
html body[class] [data-eggs_radar] h2:not(#cm) {
  font-family: var(--cm-display) !important;
  font-size: clamp(1.875rem, 2.8vw, 2.5rem) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
}
/* "More caviar": the h5 above the title is a kicker, so it takes the label style */
html body[class] .best-selling h5.wp-block-heading:not(#cm):not(#cm):not(#cm):not(#cm) {
  font: 500 .6875rem/1.4 var(--cm-text) !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  margin-bottom: .75rem !important;
}
/* The taste matcher plugin sets its own face (Poynter) on its titles */
html body[class] [data-eggs_radar] :is(h1, h2, h3, h4, .\!font-heading):not(#cm):not(#cm) {
  font-family: var(--cm-display) !important;
  font-weight: 500 !important;
  font-optical-sizing: auto;
}

/* Tin cards: keep "Serves 16-32" on one line */
html body[class] .variation-radio .inner .text:not(#cm):not(#cm) { white-space: nowrap; letter-spacing: 0; }

/* H3: 26 / 22 */
html body[class] .cm-pillar h3:not(#cm):not(#cm),
html body[class] .cm-match-name:not(#cm):not(#cm),
html body.single-product .cm-note .cm-label:not(#cm):not(#cm):not(#cm),
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text h2:not(#cm):not(#cm):not(#cm) {
  font: 500 clamp(1.375rem, 1.9vw, 1.625rem)/1.15 var(--cm-display) !important;
  font-optical-sizing: auto;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* The edit tile on the shop page sits between H2 and H3 */
html body[class] .cm-edit h3:not(#cm):not(#cm) {
  font: 500 clamp(1.625rem, 2.2vw, 2rem)/1.12 var(--cm-display);
  letter-spacing: 0;
}

/* Pull quote: Bodoni Moda Italic 40 / 28 */
html body[class] .cm-quote p:not(#cm):not(#cm) {
  font: italic 400 clamp(1.75rem, 2.8vw, 2.5rem)/1.2 var(--cm-display);
  letter-spacing: 0;
}
/* Press quote marks */
html body[class] .logos-slider .swiper-quotes h3:not(#cm):not(#cm)::before,
html body[class] .logos-slider .swiper-quotes h3:not(#cm):not(#cm)::after {
  font-family: var(--cm-display);
  font-weight: 400;
}

/* Taglines: Bodoni Moda Italic 18 / 17 */
html body[class] .product-hero .under-title:not(#cm):not(#cm),
html body[class].woocommerce-shop .shop-content ul.products li.product h3:not(#cm):not(#cm) {
  font-family: var(--cm-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
@media (max-width: 768px) {
  html body[class] .product-hero .under-title:not(#cm):not(#cm),
  html body[class].woocommerce-shop .shop-content ul.products li.product h3:not(#cm):not(#cm) { font-size: 1.0625rem !important; }
}

/* Product name in the bag panel */
html body[class] .xoo-cp-modal td.xoo-cp-ptitle a:not(#cm):not(#cm) {
  font: 500 1.125rem/1.2 var(--cm-display);
  letter-spacing: 0;
}

/* ---- Prices and figures: Jost, tabular ---- */
html body[class] .product-hero .price-wrapper :is(.price-element, .price-element bdi):not(#cm):not(#cm),
html body[class] :is(.cm-match-price, .cm-serve-n, .price, .price bdi, .woocommerce-Price-amount):not(#cm):not(#cm) {
  font-family: var(--cm-text);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .01em;
}
html body[class] .product-hero .price-wrapper :is(.price-element, .price-element bdi):not(#cm):not(#cm) { font-size: 1.125rem !important; }
html body[class].woocommerce-shop .shop-content ul.products li.product .price:not(#cm):not(#cm) { font-size: 1rem; }

/* ---- Buttons and text links: Jost 500 12px, caps +.18em ---- */
html body[class] :is(.btn, .single_add_to_cart_button, a.checkout-button, button[id="place_order"], .radar-caviar-cta, .xoo-cp-modal .xcp-btn, .cm-pillar a.cm-link, .cm-match-link, .cm-edit a):not(#cm):not(#cm):not(#cm) {
  font-family: var(--cm-text) !important;
  font-weight: 500 !important;
  font-size: .75rem !important;
  letter-spacing: .18em !important;
}

/* ---- Menu: Jost 500 12px caps ---- */
html body[class] header .header-menu > li > a:not(#cm):not(#cm) {
  font-size: .75rem !important;
  letter-spacing: .16em !important;
}
@media (max-width: 992px) {
  html body[class] header .header-menu > li > a:not(#cm):not(#cm) { font-size: .8125rem !important; letter-spacing: .14em !important; }
}
