/*
 * PARAVANA shared design tokens (round 10, staging, 2026-11-20). PLAN.md step 1.
 * Source: DESIGN-SYSTEM.md DS07-DS13 (v74/v77 :root values; FONT-SPEC.md type roles).
 *
 * Type roles (FONT-SPEC.md): Nunito Sans = headings and body; Nunito = product names, navigation, buttons;
 * Kalam Light 300 = handwritten Reflection answers only. No Georgia, no Inter.
 * Colors: the dark skin uses the v74 dark tokens (DS12). The light skin keeps its current colors
 * (James, 119254444: light mode is fine as is); the DS13 light tokens are defined here for later steps.
 * The skin marker stays BuddyX's own html[data-bx-mode]; no second mode controller.
 */

html:root {
  /* type */
  --pv-font-text: "Nunito Sans", Arial, sans-serif;
  --pv-font-ui: "Nunito", "Nunito Sans", Arial, sans-serif;
  --pv-font-hand: "Kalam", "Nunito Sans", cursive;

  /* light reference tokens (DS13), not yet mapped onto the theme */
  --pv-l-bg: #f3eee3;
  --pv-l-surface: #faf5ea;
  --pv-l-raised: #ece5d6;
  --pv-l-edge: #a39a87;
  --pv-l-ink: #2e2c25;
  --pv-l-muted: #59554a;
  --pv-l-accent: #424b39;
  --pv-l-accent-ink: #faf6eb;
  --pv-l-paper: #f3eadb;
  --pv-l-paper-ink: #322c22;

  /* dark reference tokens (DS12) */
  --pv-d-bg: #1b1b18;
  --pv-d-surface: #22231f;
  --pv-d-raised: #272923;
  --pv-d-edge: #515348;
  --pv-d-ink: #e3e0d5;
  --pv-d-muted: #b7b7a9;
  --pv-d-accent: #e1cca6;
  --pv-d-accent-ink: #2a251a;
  --pv-d-paper: #e7ddc9;
  --pv-d-paper-ink: #302a21;
  --pv-d-well: #35332a;

  /* theme font variables -> PARAVANA roles (BuddyX global.min.css reads these) */
  --global-font-family: var(--pv-font-text);
  --highlight-font-family: var(--pv-font-ui);
  --wp--preset--font-family--inter: var(--pv-font-text);
  --wp--preset--font-family--newsreader: var(--pv-font-text);
  --wp--preset--font-family--system-ui: var(--pv-font-text);
}

/* Headings and body: Nunito Sans */
html body,
html body :is(h1, h2, h3, h4, h5, h6, .entry-title, .page-title, .product_title, p, li, label, input, select, textarea, td, th) {
  font-family: var(--pv-font-text);
}

/* Product names, navigation, buttons: Nunito */
html body :is(
  .main-navigation a, #primary-menu a, .primary-menu-container a, .mobile-menu a, .menu-item > a,
  .woocommerce-loop-product__title, .wc-block-components-product-name, .wc-block-grid__product-title,
  .woocommerce div.product .product_title, .woocommerce ul.products li.product .woocommerce-loop-product__title,
  button, .button, .btn, input[type="submit"], input[type="button"],
  .wc-block-components-button, .single_add_to_cart_button, .checkout-button, .wp-block-button__link,
  .pv-button, .pv-location-button, .pv-email button
) {
  font-family: var(--pv-font-ui);
}
html body .woocommerce div.product .product_title,
html body .product_title.entry-title {
  font-family: var(--pv-font-ui);
}

/* Handwritten Reflection answer (Fluent Form 4 "answer" field): Kalam Light 300 only here */
html body :is(#ff_4_answer, .fluentform_wrapper_4 textarea[name="answer"], .pv-handwritten, .pv-whats-divine-answer) {
  font-family: var(--pv-font-hand);
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Editor groups that set their own background and text color (About page hero and closing, dark #0A0A0A/#111
 * with #F5F5F5 text): their headings follow the group's color instead of the shell's skin ink, which made
 * them near-black on black in the light skin (1.04:1). */
html body.pv-public-shell .entry-content .has-background.has-text-color :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}
