/*
 * Radio Canada and Source Serif 4, both SIL Open Font License (fonts/OFL-*.txt).
 * The files are Google Fonts' Latin and Latin Extended cuts, unmodified: Source Serif's
 * license reserves the name "Source", so a re-subset copy would need a new family name.
 */

@font-face {
	font-family: "Radio Canada";
	src: url("fonts/radio-canada-ext.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Radio Canada";
	src: url("fonts/radio-canada.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4-ext.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4-italic-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Fallbacks sized to the web fonts' widths and line boxes, so text holds its place while
 * Radio Canada and Source Serif download. Android has Roboto instead of Arial.
 */
@font-face {
	font-family: "Radio Canada Fallback";
	src: local("Arial"), local("ArialMT");
	font-weight: 100 500;
	size-adjust: 103.89%;
	ascent-override: 90.96%;
	descent-override: 24.55%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Radio Canada Fallback";
	src: local("Arial Bold"), local("Arial-BoldMT");
	font-weight: 600 900;
	size-adjust: 99.71%;
	ascent-override: 94.77%;
	descent-override: 25.57%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Radio Canada Fallback Android";
	src: local("Roboto"), local("Roboto-Regular");
	font-weight: 100 500;
	size-adjust: 104.56%;
	ascent-override: 90.37%;
	descent-override: 24.39%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Radio Canada Fallback Android";
	src: local("Roboto Bold"), local("Roboto-Bold");
	font-weight: 600 900;
	size-adjust: 105.79%;
	ascent-override: 89.33%;
	descent-override: 24.11%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Source Serif Fallback";
	src: local("Georgia");
	font-weight: 100 500;
	size-adjust: 107.33%;
	ascent-override: 96.52%;
	descent-override: 31.21%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Source Serif Fallback";
	src: local("Georgia Bold"), local("Georgia-Bold");
	font-weight: 600 900;
	size-adjust: 95.53%;
	ascent-override: 108.45%;
	descent-override: 35.07%;
	line-gap-override: 0%;
}

:root {
	--tribune-font-sans: "Radio Canada", "Radio Canada Fallback", "Radio Canada Fallback Android", Arial, Helvetica, sans-serif;
	--tribune-font-serif: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;
	--tribune-ink: #111;
	--tribune-text: #222;
	--tribune-muted: #555;

	/* Newspaper reads these for menus, dates, titles, and block titles. */
	--td_default_google_font_1: var(--tribune-font-sans);
	--td_default_google_font_2: var(--tribune-font-sans);
}

body {
	font-family: var(--tribune-font-sans);
}

/* Story headline */
.single .post .td-post-header header .entry-title {
	font-weight: 600;
	font-size: clamp(28px, 19px + 2.6vw, 44px);
	line-height: 1.12;
	letter-spacing: -0.005em;
}

/* Byline and date under the headline */
.td-post-header header.td-post-title {
	font-size: 15px;
	line-height: 1.5;
	color: var(--tribune-muted);
}

.td-post-header header.td-post-title > a {
	font-weight: 600;
	color: var(--tribune-ink);
}

.td-post-header header .td-post-author-name,
.td-post-header header .td-post-date {
	font-size: 14px;
	color: var(--tribune-muted);
}

/* Story text */
.tagdiv-type {
	font-family: var(--tribune-font-serif);
	font-size: 18px;
	line-height: 1.6;
	color: var(--tribune-text);
}

@media (min-width: 768px) {
	.tagdiv-type {
		font-size: 19px;
	}
}

/* About 68 characters a line. Photos and embeds keep the full column. */
.tagdiv-type > :is(p, ul, ol, h2, h3, h4, h5, h6):not(:has(img, iframe, video, embed, object)) {
	max-width: 33em;
}

.tagdiv-type :is(h2, h3, h4, h5, h6) {
	font-weight: 600;
}

/* Text pasted from Word or email carries an inline font-family (Aptos, Calibri, Helvetica). */
.tagdiv-type :is(p, span, div, li, a)[style*="font-family"] {
	font-family: inherit !important;
}

.tagdiv-type blockquote p {
	font-family: var(--tribune-font-serif);
	font-size: clamp(22px, 18px + 1.2vw, 28px);
	line-height: 1.35;
	font-weight: 400;
	text-transform: none;
}

.tagdiv-type .wp-block-button__link {
	font-family: var(--tribune-font-sans);
}

/* Captions. Gallery captions that sit on the photo keep the core block's white text. */
.wp-caption-text,
.wp-caption-dd,
.wp-block-image figcaption,
.wp-element-caption {
	font-family: var(--tribune-font-sans);
	font-size: 15px;
	line-height: 1.45;
	font-style: normal;
	color: var(--tribune-text);
	margin-top: 8px;
}

.td-excerpt {
	font-family: var(--tribune-font-serif);
}
