@charset "UTF-8";

/**
 * styles fonts.css
 * Author: hybrid.
 */



/* ================================================================================================== */
/* ============================================= FONTS ============================================== */
/* ================================================================================================== */

/* From fonts.css (font faces, families, breakpoints, project selectors). Suggested destination: styles.css or styles-fonts.css. */

/* ============================== FONT FACE ============================== */

/* Self-hosted, no external request. font-display: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display */

@font-face {
	font-family: 'Quadrant Text';
	src: url('../fonts/QuadrantText-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}
@font-face {
	font-family: 'Quadrant Text';
	src: url('../fonts/QuadrantText-RegularItalic.woff2') format('woff2');
	font-weight: normal;
	font-style: italic;
	font-display: block;
}
@font-face {
	font-display: swap;
	font-family: 'Platform Web';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/Platform-Regular-Web.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Platform Web';
	font-style: italic;
	font-weight: 400;
	src: url('../fonts/Platform-RegularItalic-Web.woff2') format('woff2');
}


/* ============================== FAMILIES ============================== */

:root {
	--font-family: 'Quadrant Text', serif;
	--font-family-sans: 'Platform Web', sans-serif;
	--font-features-sans: "ss01" 1; /* single-storey "a" */
	--letter-spacing-sans: .0625rem;
}


/* ============================== ROLES ============================== */

:root {
	--title-font-family: var(--font-family-sans);
	--title-font-features: var(--font-features-sans);
	--title-font-weight: var(--font-weight-medium);
	--title-letter-spacing: var(--letter-spacing-sans);
	--title-line-height: 1;
	--title-transform: none; /*lowercase;*/

	--ui-font-family: var(--font-family-sans);
	--ui-font-features: var(--font-features-sans);
	--ui-font-weight: var(--font-weight-medium);
	--ui-letter-spacing: var(--letter-spacing-sans);
	--ui-transform: none; /*lowercase;*/

	--button-letter-spacing: var(--letter-spacing-sans);
}


/* ============================== SIZES ============================== */

:root {
	--h1-font-size: 1.5em;
	--h2-font-size: 1.25em;
	--h3-font-size: 1.75em;
	--h4-font-size: 1.5em;
	--h5-font-size: 1.25em;
	--h6-font-size: 1.125em;
	--large-font-size: 1.125em;
}

@media (min-width: 760px) {
	:root {
		--h1-font-size: 2em;
		--h2-font-size: 1.5em;
		--large-font-size: 1.25em;
	}
}
@media (min-width: 1200px) {
	:root {
		--main-font-size: 1.25em;
		--h1-font-size: 3em;
		--h2-font-size: 2em;
		--large-font-size: 1.5em;
	}
}


/* ============================== SELECTORS ============================== */

/* Project selectors joining a role (same tokens as the core rules) */

:where(
	.page-title, .site-title
) {
	font-family: var(--title-font-family);
	font-feature-settings: var(--title-font-features);
	font-weight: var(--title-font-weight);
	letter-spacing: var(--title-letter-spacing);
	line-height: var(--title-line-height);
	text-transform: var(--title-transform);
}

:where(
	.go-back, .distribution,
	.post-title, .post-special, .post-meta, .post-day, .post-date, .post-time, .post-location,
	.post-country, .post-price, .post-production, .post-tag
) {
	font-family: var(--ui-font-family);
	font-feature-settings: var(--ui-font-features);
	font-weight: var(--ui-font-weight);
	letter-spacing: var(--ui-letter-spacing);
	text-transform: var(--ui-transform);
}


/* ============================== CLASSES ============================== */

.manuscript {
	font-family: var(--font-family);
	letter-spacing: normal;
}
.sans {
	font-family: var(--font-family-sans);
	font-feature-settings: var(--font-features-sans);
	letter-spacing: var(--letter-spacing-sans);
}


/* ============================== PAGE TITLE ============================== */

.page-title {
	--small-font-size: .5em;
	font-size: var(--h1-font-size);
	margin-bottom: calc(var(--content-spacing) * 2);
}
.page-title small,
.page-title .small { display: block; }