/* ============================================================
   AlexMindset brand v1 — base (page, typography, links, focus, motion)
   ============================================================ */

html { background: var(--page); }

body {
  background: var(--page-bg) !important;
  background-attachment: fixed !important;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
}

/* GeneratePress containers sit transparently on the page background */
.site, .site-content, .content-area, .site-main, .inside-article,
.separate-containers .inside-article, .one-container .container,
.separate-containers .comments-area, .separate-containers .page-header,
.separate-containers .paging-navigation, .inside-page-header,
.sidebar .widget, .site-footer .footer-widgets, .container.grid-container {
  background-color: transparent;
}

body, button, input, select, textarea, .main-navigation a {
  font-family: var(--font-body);
}

h1, h2, h3,
.entry-title, .page-title, .woocommerce-products-header__title,
.product_title {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  color: var(--text);
  letter-spacing: -0.005em;
}
h1, .entry-title, .page-title, .product_title { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; color: var(--text); line-height: 1.3; }

p, li, dd, td, th, label { color: inherit; }
small, .small, figcaption { font-size: var(--fs-small); line-height: 1.45; }

/* Prices and numbers */
.price, .amount, .woocommerce-Price-amount, .nsp-stat-num, .nsp-pp-step__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Quotes / testimonials */
blockquote, .wp-block-quote, .wp-block-pullquote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  border-left: 1px solid var(--gold-line);
  color: var(--text);
}
blockquote cite, .wp-block-quote cite { font-family: var(--font-body); font-style: normal; font-weight: 600; color: var(--hint); }

/* Links */
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:not([class]) { text-decoration: underline; text-decoration-color: var(--primary-mid); text-underline-offset: 3px; }
.entry-content a:not([class]):hover { text-decoration-color: currentColor; }

/* Focus: gold ring, everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px !important;
  box-shadow: none;
}

::selection { background: var(--primary-mid); color: var(--text); }

hr, .wp-block-separator { border: 0; height: 1px; background: var(--divider); }

/* Overline + hair (§5–§6) */
.am-overline, .nsp-overline, .nsp-section-label, .nsp-badge-label {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  line-height: 1.3;
  color: var(--gold);
}
.am-hair, .hair { height: 1px; border: 0; background: var(--hair); }

/* Section subtitles: hint colour, comfortable measure */
.nsp-section-subtitle, .nsp-pp-intro-text, .nsp-section-desc { color: var(--hint); max-width: 60ch; margin-left: auto; margin-right: auto; }
/* Intro block: the final width in px (= 60ch of Manrope 16px). In ch it depends on the font — 555px on the fallback, 586px on Manrope —
   so the block re-wrapped when the web font arrived (layout shift on /health-topics/, /body-systems/; 24.11.2026). */
.nsp-pp-intro-text { max-width: 585.6px; }

/* Glass material */
.am-glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--r-md);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .am-glass { background: var(--glass-solid); }
}

/* No horizontal page scroll on narrow screens */
html, body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }

/* Reduced motion: switch everything off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
