/* =========================================================================
   DigiAI theme - the type system (2026-11-12). Loaded LAST on every page.

   Two faces:
     display  Bricolage Grotesque (variable, self-hosted, SIL OFL): h1, h2, h3, card and row
              titles, the big lines of the home page. It has optical sizes: large sizes draw
              tighter and sharper by themselves.
     reading  Inter: body, lesson and post text, labels, buttons, data.

   One scale (root 16px). The sizes are the tokens of main.css:
     display   --fs-3xl   44 to 84px   the home page headline only
     h1        --fs-2xl   34 to 52px   one per page
     h2        --fs-xl    26 to 34px   sections
     h3        --fs-h3    22px         sub-sections
     h4, card  --fs-lg    19px         card titles, small headings
     lead      --fs-lg    19px         the sentence under a title (Inter, regular)
     body      --fs-base  17px         everything you read, line height 1.65
     small     --fs-sm    15px
     caption   --fs-xs    13px         dates, counts, hints
     eyebrow   --fs-eyebrow 12px       caps, tracked 0.12em, weight 600: ONE style everywhere

   Colour: navy and teal stay the brand. Teal = links, focus, the current place, small marks.
   The warm accent (--accent, amber) = the main button of a page, Pro and paid marks, highlights.
   ========================================================================= */

/* a system font shaped like the display face, so nothing jumps while the file loads */
@font-face {
	font-family: "Bricolage Fallback";
	src: local("Arial Narrow"), local("Arial");
	size-adjust: 96%;
	ascent-override: 93%;
	descent-override: 24%;
	line-gap-override: 0%;
}

/* 1. The display face -------------------------------------------------- */
h1,
h2,
h3,
.card__title,
.news-row__title,
.creator-box__name,
.creator-box__more,
.dash__name,
.item-row__title,
.dg-chapters .dg-h1,
.digiai-world.is-v2 .sw-copy__title,
.plan__name,
.price__amount {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-synthesis: none;
	font-feature-settings: "ss01" 0;
}

/* 2. The scale ---------------------------------------------------------- */
h1,
.entry-title,
.page-header__title {
	font-size: var(--fs-2xl);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.01em;
}
h2,
.section__title {
	font-size: var(--fs-xl);
	font-weight: 650;
	line-height: 1.12;
	letter-spacing: -0.014em;
}
h3 {
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.008em;
}
h4,
.card__title {
	font-size: var(--fs-lg);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.004em;
}
h4 {
	font-family: var(--font-sans);
	letter-spacing: -0.005em;
}
.page-header__desc,
.entry-summary {
	font-size: var(--fs-lg);
	line-height: 1.55;
	letter-spacing: -0.003em;
	max-width: 62ch;
}

/* one eyebrow, everywhere */
.page-header__eyebrow,
.member-eyebrow,
.card__eyebrow,
.toc__title,
.new-item__label,
.profile-facts__title,
.company-hero__tools-label,
.dg-chapters .eyebrow,
.paywall__eyebrow {
	font-family: var(--font-sans);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
/* one caption */
.card__meta,
.news-row__meta,
.entry-meta,
.company-hero__facts,
.creator-box__note,
.report-link {
	font-size: var(--fs-xs);
	line-height: 1.45;
}
.entry-meta,
.company-hero__facts {
	font-size: var(--fs-sm);
}

/* 3. Reading: lessons, posts, profiles -------------------------------- */
.prose {
	font-size: var(--fs-base);     /* 17px on every screen */
	line-height: 1.7;
	max-width: 68ch;
}
.prose h2 {
	font-size: clamp(1.5rem, 1.28rem + 0.95vw, 1.9375rem);   /* 24 to 31px */
	font-weight: 650;
	line-height: 1.14;
	letter-spacing: -0.014em;
}
.prose h3 {
	margin-top: 2.1em;
	margin-bottom: 0.5em;
	font-size: 1.3125rem;          /* 21px */
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.006em;
}
.prose h4,
.prose h5 {
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	font-weight: 650;
	letter-spacing: -0.005em;
}
.company-about {
	font-size: var(--fs-base);
	line-height: 1.7;
}

/* 4. Cards and rows ---------------------------------------------------- */
.card__text,
.news-row__text {
	font-size: var(--fs-sm);
	line-height: 1.55;
}
.news-row__title {
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.16;
}
.news-row--lead .news-row__title {
	font-weight: 650;
	letter-spacing: -0.006em;
	line-height: 1.08;
}
.company-hero__title {
	letter-spacing: -0.01em;
}
.creator-box__name {
	font-weight: 650;
	letter-spacing: -0.015em;
}

/* 5. Account, dashboard, editor --------------------------------------- */
.auth h1,
.member-title {
	font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);   /* 30 to 40px */
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.01em;
}
.mcard h2 {
	font-size: var(--fs-lg);
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.014em;
}
.dash__name {
	font-size: var(--fs-lg);
	font-weight: 650;
	letter-spacing: -0.012em;
}
.item-row__title {
	font-size: var(--fs-base);
	font-weight: 600;
	letter-spacing: -0.008em;
	line-height: 1.28;
}
.mcard p,
.mcard li {
	font-size: var(--fs-sm);
	line-height: 1.6;
}
.new-item__kind strong {
	font-size: var(--fs-sm);
	font-weight: 650;
}

/* 6. The home page: the same face on the big lines -------------------- */
.dg-chapters .dg-h1,
.digiai-world.is-v2 .dg-copy--hero .sw-copy__title {
	font-weight: 650;
	line-height: 1;
	letter-spacing: -0.01em;
}
.dg-chapters h2,
.digiai-world.is-v2 .sw-copy__title {
	font-weight: 620;
	line-height: 1.05;
	letter-spacing: -0.008em;
}
.dg-chapter--membership h2,
.digiai-world.is-v2 .dg-copy--membership .sw-copy__title,
.digiai-world.is-v2 .sw-copy.dg-copy--membership:not(:first-child) .sw-copy__title {
	letter-spacing: -0.01em;
}
.dg-chapters .card h3,
.dg-chapters .course-info h3 {
	font-size: 1.125rem;           /* 18px */
	font-weight: 600;
	line-height: 1.24;
	letter-spacing: -0.012em;
}
.dg-chapters .intro {
	line-height: 1.65;
}

/* 7. The warm accent: the main button, and the marks that say "this matters" */
.button:not(.button--ghost):hover,
.dg-chapters .button.primary:hover,
.btn--primary:hover,
.checkout button[type="submit"]:hover {
	background: var(--cta-hover);
	border-color: var(--cta-hover);
	color: var(--on-cta);
}
.page-header__title span,
mark {
	color: var(--accent);
	background: none;
}
.prose a,
.entry-content a {
	text-decoration-color: rgba(34, 211, 238, 0.45);
	text-decoration-thickness: 1px;
}
::selection {
	background: var(--accent);
	color: var(--on-cta);
}

/* 8. Small screens: one step down for the largest sizes, nothing else moves */
@media (max-width: 640px) {
	h1,
	.entry-title,
	.page-header__title {
		line-height: 1.06;
		letter-spacing: -0.014em;
	}
	.page-header__desc,
	.entry-summary {
		font-size: var(--fs-base);
	}
}

/* 8. Tracking left over from the old face: the display face is tight by itself */
.plan__price,
.price__amount {
	font-family: var(--font-display);
	letter-spacing: -0.008em;
	font-variant-numeric: tabular-nums;
}
.faq h2,
.paywall__title,
.prompt__locked > h2,
.item-preview .entry-title {
	letter-spacing: -0.01em;
}
