/*
Theme Name: Francis Rozange
Theme URI: https://francisrozange.com
Description: Kadence child theme for francisrozange.com, design "La frise": self-hosted fonts, reading typography, light and dark palettes (dark palette set in the Customizer).
Author: LaFactory
Author URI: https://lafactory.com
Template: kadence
Version: 1.0.6
Text Domain: francisrozange
*/

/* Fonts: self-hosted variable fonts (SIL OFL, see assets/fonts/LICENSE-*.txt). */
@font-face {
	font-family: "Literata";
	src: url("assets/fonts/literata-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Literata";
	src: url("assets/fonts/literata-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Big Shoulders Display";
	src: url("assets/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("assets/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

:root {
	--fr-font-text: "Literata", Georgia, "Times New Roman", serif;
	--fr-font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--fr-font-ui: "Atkinson Hyperlegible Next", system-ui, sans-serif;
	--fr-body-weight: 400;
	--fr-body-leading: 1.7;
	/* LaFactory Blocks follow the site palette. */
	--lfb-accent: var(--global-palette1);
	--lfb-accent-strong: var(--global-palette2);
	--lfb-on-accent: var(--global-palette8);
	--lfb-ink: var(--global-palette3);
	--lfb-text: var(--global-palette4);
	--lfb-muted: var(--global-palette5);
	--lfb-border: var(--global-palette7);
	--lfb-surface: var(--global-palette9);
	--lfb-surface-soft: var(--global-palette8);
	--lfb-font: var(--fr-font-ui);
	--lfb-font-display: var(--fr-font-display);
	--lfb-font-ui: var(--fr-font-ui);
}

/* Dark reading: slightly thinner strokes, a little more air between lines. */
html[data-theme="dark"] {
	--fr-body-weight: 370;
	--fr-body-leading: 1.78;
	color-scheme: dark;
}
html[data-theme="dark"] body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
html[data-theme="dark"] .entry-content img,
html[data-theme="dark"] .post-thumbnail img {
	filter: brightness(0.88) contrast(1.04);
}

/* Reading text. */
body {
	font-family: var(--fr-font-ui);
}
.entry-content,
.entry-summary,
.loop-entry .entry-summary {
	font-family: var(--fr-font-text);
	font-weight: var(--fr-body-weight);
	line-height: var(--fr-body-leading);
}
.single-content {
	font-size: 1.1875rem; /* 19 px */
	hyphens: auto;
	-webkit-hyphens: auto;
	hyphenate-limit-chars: 8 4 4;
}
.single-post .single-content p,
.single-post .single-content li,
.single-post .single-content blockquote {
	max-width: 34em;
}
.entry-title,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--fr-font-text);
	letter-spacing: -0.005em;
}
.single .entry-title {
	font-weight: 650;
	line-height: 1.15;
}

/* Site title set in the display face, like the year numbers of the frise. */
.site-branding .site-title {
	font-family: var(--fr-font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Metadata, menus, buttons: the interface face. */
.entry-meta,
.entry-taxonomies,
.main-navigation,
.mobile-navigation,
.site-footer,
button,
.button,
input,
select,
textarea {
	font-family: var(--fr-font-ui);
}

/* Old archive posts: images were floated with inline margins, keep them inside the column on phones. */
@media (max-width: 600px) {
	.single-content img[style*="float"] {
		float: none !important;
		display: block;
		margin: 0 0 1em !important;
		max-width: 100%;
		height: auto;
	}
}

/* Post timeline (LaFactory Blocks): site faces and palette. */
:root {
	--lfb-year-font: var(--fr-font-display);
	--lfb-border-strong: var(--global-palette6);
	--lfb-tl-other: var(--global-palette6);
	--lfb-anchor-offset: 120px;
}

/* Home page: bands keep the site gutters on phones (the page is full width in Kadence). */
.home .entry-content > .alignwide {
	padding-inline: var(--global-content-edge-padding, 1.5rem);
	box-sizing: border-box;
}
.home .fr-home-intro {
	margin-block: 1.5rem 0.5rem;
}
.home .fr-home-title {
	font-family: var(--fr-font-text);
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0;
}
.home .fr-home-lede {
	font-family: var(--fr-font-text);
	font-size: 1.25rem;
	color: var(--global-palette5);
	margin-top: 0.25rem;
}
.home .fr-section-title {
	font-family: var(--fr-font-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-weight: 800;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin-block: 2.5rem 1rem;
}

/* Post teasers read in the reading face. */
.lfb-post__title,
.lfb-post__excerpt {
	font-family: var(--fr-font-text);
}

/* The latest post is put forward: large title, excerpt at reading size. */
.lfb-posts--bento .lfb-post--lead .lfb-post__title {
	font-size: clamp(1.75rem, 3.2vw, 2.75rem);
	line-height: 1.1;
}
.lfb-posts--bento .lfb-post--lead .lfb-post__excerpt {
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	line-height: 1.6;
	color: var(--global-palette4);
	-webkit-line-clamp: 12;
}
.lfb-posts--bento .lfb-post--lead {
	border-top: 3px solid var(--global-palette1);
}

/* Header: the timeline strip takes the row, the light/dark switch sits at its right. */
.site-header-row-container-inner .fr-header-strip,
.site-mobile-header-wrap .fr-header-strip {
	width: 100%;
	gap: 1rem;
	padding-block: 4px 6px;
}
.fr-header-strip > .lfb-tl {
	flex: 1 1 auto;
	min-width: 0;
}
.fr-header-strip > .lfb-theme-switch {
	flex: 0 0 auto;
}
/* Kadence's HTML area shrinks to its content: let it take the whole row. */
.site-header-item .header-html,
.site-header-item .mobile-html,
.site-header-item .header-html-inner,
.site-header-item .mobile-html-inner {
	flex: 1 1 auto;
	width: 100%;
}
.site-bottom-header-wrap .site-header-row-container-inner,
.site-bottom-header-wrap .site-header-bottom-section-center {
	width: 100%;
}
.site-bottom-header-wrap .site-header-item {
	flex: 1 1 auto;
	width: 100%;
	margin: 0;
}
.site-bottom-header-wrap {
	border-top: 1px solid var(--global-palette7);
}

/* Search field of the home page, in the interface face and the site palette. */
.wp-block-search__input {
	font-family: var(--fr-font-ui);
	font-size: 1rem;
	border: 1px solid var(--global-palette6);
	border-radius: 6px;
	background: var(--global-palette9);
	color: var(--global-palette4);
	padding: 0.6em 0.8em;
}
.wp-block-search__button {
	font-family: var(--fr-font-ui);
	font-weight: 700;
	background: var(--global-palette1);
	color: var(--global-palette8);
	border: 0;
	border-radius: 6px;
	padding: 0.6em 1.1em;
	margin-left: 0.5rem;
}
.wp-block-search__button:hover,
.wp-block-search__button:focus-visible {
	background: var(--global-palette2);
}
.home .fr-home-search {
	margin-top: 1.25rem;
	max-width: 640px;
}
