/*
 * Home-page type scale.
 *
 * theme-style.css hardcodes 21 distinct font sizes with no token layer, so heading levels that
 * should match do not: .dd-section-title, .dd-cta-banner h2 and .dd-stat__num each resolve
 * differently, and body copy sits at 15, 16, 17, 18 and 19px at once. This sheet declares one
 * 7-step ladder and re-points the home page's components at it.
 *
 * Every rule is prefixed `body.home` for two reasons: it beats the theme's own breakpoint rules
 * on specificity, so the theme's max-width:1024/767/479 font-size overrides cannot re-fragment
 * the ladder; and rolling this out site-wide later means swapping that one prefix, not rewriting
 * the sheet. Loading it is also guarded by is_front_page() in adspro.php.
 *
 * Display sizes stay clamp() rather than a fixed rem because the ladder has to survive the
 * 360px-to-1600px range on its own once the theme's breakpoint steps are outranked.
 */

:root {
	--dd-fs-1: .75rem;                        /* 12px  mono badges, card tags */
	--dd-fs-2: .875rem;                       /* 14px  meta, footer + nav links */
	--dd-fs-3: 1rem;                          /* 16px  body copy, buttons */
	--dd-fs-4: 1.125rem;                      /* 18px  lead paragraphs */
	--dd-fs-5: 1.375rem;                      /* 22px  card titles */
	--dd-fs-6: clamp(2rem, 4vw, 3.25rem);     /* 32-52px  section headings, stat numbers */
	--dd-fs-7: clamp(2.5rem, 7.5vw, 6rem);    /* 40-96px  hero */

	--dd-lh-1: 1.4;
	--dd-lh-2: 1.55;
	--dd-lh-3: 1.65;
	--dd-lh-4: 1.6;
	--dd-lh-5: 1.3;
	--dd-lh-6: 1.12;
	--dd-lh-7: .95;
}

/* Step 7 — hero */
body.home .dd-hero h1 {
	font-size: var(--dd-fs-7);
	line-height: var(--dd-lh-7);
}

/* Step 6 — section headings and the big lime stat numbers share one step */
body.home .dd-section-title,
body.home .dd-cta-banner h2,
body.home .dd-stat__num {
	font-size: var(--dd-fs-6);
	line-height: var(--dd-lh-6);
}

/* Step 5 — card titles, marquee brand names, testimonial avatar initials */
body.home .dd-card h3,
body.home .dd-marquee__item,
body.home .dd-testimonial__avatar {
	font-size: var(--dd-fs-5);
	line-height: var(--dd-lh-5);
}

/* Step 4 — lead copy */
body.home .dd-hero__desc,
body.home .dd-section-sub {
	font-size: var(--dd-fs-4);
	line-height: var(--dd-lh-4);
}

/* Step 3 — the single body size: card copy, blockquotes, buttons, stars */
body.home .dd-card p,
body.home .dd-testimonial blockquote,
body.home .dd-testimonial__stars,
body.home .dd-btn,
body.home .dd-btn--sm,
body.home .dd-tool-cta {
	font-size: var(--dd-fs-3);
	line-height: var(--dd-lh-3);
}

/* Step 2 — meta: stat labels, footer columns and links, testimonial attribution */
body.home .dd-stat__label,
body.home .dd-footer-col h4,
body.home .dd-footer-col a,
body.home .dd-footer-brand p,
body.home .dd-footer-bottom,
body.home .dd-nav__links a,
body.home .dd-testimonial__info strong,
body.home .dd-badge--lg {
	font-size: var(--dd-fs-2);
	line-height: var(--dd-lh-2);
}

/* Step 1 — mono micro-labels only, never running text */
body.home .dd-card__tag,
body.home .dd-tool-badge,
body.home .dd-badge,
body.home .dd-testimonial__info span {
	font-size: var(--dd-fs-1);
	line-height: var(--dd-lh-1);
}

/* The theme grows nav links to 24px inside its mobile drawer; two steps above the
   rest of the nav is what makes the open menu look unbalanced. */
@media (max-width: 1024px) {
	body.home .dd-nav__links a {
		font-size: var(--dd-fs-4);
	}
}
