/**
 * TicketBox Typography
 * Per VISUAL-SPEC.md sections 1.1–1.6
 * Single font: Montserrat (geometric sans-serif, Cyrillic supported).
 * Scale capped at --tb-text-3xl (2.5rem / 40px).
 * Exception: .tb-hero__title uses --tb-text-hero (3.25rem / 52px).
 */

/* Visually hidden but available to screen readers (standard WP utility class) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

html {
  font-family: var(--tb-font);
  font-size: 16px;
  line-height: var(--tb-leading-normal);
  color: var(--tb-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body {
  font-family: var(--tb-font);
  font-weight: 400;
  background: var(--tb-cream-50);
  color: var(--tb-text);
  letter-spacing: 0.01em;
  line-height: 1.75;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Headings — Montserrat, geometric sans */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tb-font);
  font-weight: 600;
  line-height: var(--tb-leading-tight);
  letter-spacing: 0.02em;
  margin: 0 0 var(--tb-space-4) 0;
  color: var(--tb-black);
}

h1 { font-size: var(--tb-text-3xl); }
h2 { font-size: var(--tb-text-2xl); }
h3 { font-size: var(--tb-text-xl); }
h4 { font-size: var(--tb-text-lg); }
h5 { font-size: var(--tb-text-base); font-weight: 700; }
h6 { font-size: var(--tb-text-sm);   font-weight: 700; }

/* Body */
p {
  margin: 0 0 var(--tb-space-4) 0;
  line-height: var(--tb-leading-relaxed);
}

p.tb-lead { font-size: var(--tb-text-md); }

/* Eyebrow labels */
.tb-eyebrow {
  font-family: var(--tb-font);
  font-size: var(--tb-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tb-red-500);
  font-style: normal;
}

/* Meta / caption text */
.tb-meta {
  font-size: var(--tb-text-sm);
  color: var(--tb-text-muted);
  line-height: 1.5;
}

/* Numbers */
.tb-number,
.tb-price,
time,
.tb-date {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Form elements */
input, textarea, select, button {
  font-family: var(--tb-font);
}

/* Mobile sizes */
@media (max-width: 768px) {
  h1 { font-size: var(--tb-text-3xl-mobile); }
  h2 { font-size: var(--tb-text-2xl-mobile); }
  h3 { font-size: var(--tb-text-xl); }
}

/* WP block editor compatibility */
.wp-block-heading {
  font-family: var(--tb-font);
  font-weight: 600;
}

.wp-block-paragraph,
.wp-block-list,
.wp-block-quote {
  font-family: inherit;
}

/* Override ALL WP preset font-family utility classes → Montserrat */
.has-display-font-family,
.has-body-font-family,
.has-mono-font-family,
.has-serif-font-family {
  font-family: var(--tb-font) !important;
}
