/*
Theme Name: La Vieille Catherine
Theme URI: https://musiques-endormies.ch/
Description: Thème enfant de Twenty Twenty-One pour La Vieille Catherine.
Author: La Vieille Catherine
Template: twentytwentyone
Version: 1.1.2
Text Domain: la-vieille-catherine
*/

:root {
	--lvc-ink: #28303d;
	--lvc-muted: #625e59;
	--lvc-paper: #fffaf4;
	--lvc-accent: #985b3e;
	--lvc-line: rgba(40, 48, 61, 0.18);
	--lvc-shadow: 0 3px 12px rgba(40, 48, 61, 0.035);
	--lvc-shadow-hover: 0 12px 30px rgba(40, 48, 61, 0.1);
	--lvc-radius: 6px;
	--global--color-primary: var(--lvc-ink);
	--global--color-secondary: var(--lvc-ink);
	--global--color-primary-hover: var(--lvc-accent);
	--global--color-border: var(--lvc-line);
	--content--color--link: var(--lvc-ink);
	--global--font-size-base: 1.125rem;
	--global--font-size-xs: 0.875rem;
	--global--font-size-sm: 1rem;
	--global--font-size-md: 1.125rem;
	--global--font-size-lg: 1.5rem;
	--global--font-size-xl: clamp(1.8rem, 3vw, 2.25rem);
	--global--font-size-xxl: clamp(3rem, 7vw, 5.75rem);
	--global--font-size-page-title: var(--global--font-size-xxl);
	--global--line-height-body: 1.65;
	--global--line-height-heading: 1.2;
	--global--line-height-page-title: 1;
	--heading--font-size-h1: var(--global--font-size-page-title);
	--heading--font-size-h2: clamp(1.8rem, 3vw, 2.4rem);
	--heading--font-size-h3: clamp(1.5rem, 2.5vw, 1.875rem);
	--heading--font-size-h4: 1.35rem;
	--heading--font-weight: 500;
	--heading--font-weight-page-title: 400;
	--heading--font-weight-strong: 600;
	--heading--letter-spacing-h1: -0.055em;
	--heading--letter-spacing-h2: -0.035em;
	--heading--letter-spacing-h3: -0.025em;
	--heading--letter-spacing-h4: -0.02em;
	--button--border-width: 1px;
	--button--border-radius: 999px;
	--button--font-size: 0.95rem;
	--button--font-weight: 600;
	--button--padding-vertical: 11px;
	--button--padding-horizontal: 22px;
	--form--border-color: var(--lvc-line);
	--form--border-width: 1px;
	--form--border-radius: var(--lvc-radius);
	--form--color-text: var(--lvc-ink);
	--form--font-size: 1rem;
	--primary-nav--font-size: 1rem;
	--primary-nav--font-weight: 500;
	--primary-nav--color-link-hover: var(--lvc-accent);
	--footer--color-link-hover: var(--lvc-accent);
	--separator--border-color: var(--lvc-line);
	--tw-block-border-color: var(--lvc-line);
	--tw-block-rounded: var(--lvc-radius);
	--max--aligndefault-width: 720px;
	--max--alignwide-width: 1240px;
}

body {
	color: var(--lvc-ink);
}

.entry-content :is(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

.entry-content a,
.widget a,
.post-navigation a {
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.entry-content a:hover,
.widget a:hover,
.post-navigation a:hover {
	color: var(--lvc-accent);
}

.singular:not(.home) .entry-header {
	position: relative;
	max-width: var(--responsive--alignwide-width);
	margin-bottom: 56px;
	padding: 28px 0 64px;
	border: 0;
}

.singular:not(.home) .entry-header::after {
	position: absolute;
	bottom: 24px;
	left: 0;
	display: block;
	width: 72px;
	max-width: none;
	height: 3px;
	border: 0;
	background: var(--lvc-accent);
	content: "";
	transform: none;
}

.page:not(.home) .entry-title {
	font-size: clamp(3rem, 7vw, 5.75rem);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 1;
}

.single .entry-title {
	max-width: 1000px;
	margin-right: 0;
	margin-left: 0;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.entry-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 20px;
	padding: 0;
	color: var(--lvc-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	line-height: 1.5;
	list-style: none;
	text-transform: uppercase;
}

.entry-categories a {
	color: inherit;
	text-decoration: none;
}

.entry-categories a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.entry-footer,
.entry-top-meta,
.post-navigation .meta-nav,
.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author {
	color: var(--lvc-muted);
	font-size: var(--global--font-size-xs);
}

.site-main > article > .entry-footer {
	border-bottom-color: var(--lvc-line);
}

.post-navigation {
	border-top-color: var(--lvc-line);
}

.post-navigation .post-title {
	font-weight: 500;
	letter-spacing: -0.02em;
}

ul.wp-block-latest-posts.is-style-tw-posts-card > li {
	border: 1px solid var(--lvc-line);
	border-radius: var(--lvc-radius);
	background-color: var(--lvc-paper);
	box-shadow: var(--lvc-shadow);
}

.wp-block-latest-posts.is-style-tw-posts-card.tw-stretched-link > li:is(:hover, :focus-within) {
	box-shadow: var(--lvc-shadow-hover);
}

.wp-block-latest-posts > li > a {
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.28;
	text-underline-offset: 4px;
}

.wp-block-latest-posts__post-excerpt {
	color: var(--lvc-muted);
	font-size: 0.95rem;
	line-height: 1.65;
}

.site .button:not(.has-background),
.site input[type="submit"]:not(.has-background),
.site .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
	border-color: var(--lvc-ink);
}

.site .button:not(.has-background):not(.has-text-color):not(:hover):not(:active),
.site input[type="submit"]:not(.has-background):not(.has-text-color):not(:hover):not(:active),
.site .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):not(.has-text-color):not(:hover):not(:active) {
	background-color: var(--lvc-ink);
	color: var(--lvc-paper);
}

.site .button:not(.has-background):not(.has-text-color):hover,
.site input[type="submit"]:not(.has-background):not(.has-text-color):hover,
.site .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):not(.has-text-color):hover {
	border-color: var(--lvc-accent);
	background-color: var(--lvc-accent);
	color: var(--lvc-paper);
}

.site .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color) {
	border-color: var(--lvc-ink);
	background-color: transparent;
	color: var(--lvc-ink);
}

.site .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):hover {
	border-color: var(--lvc-ink);
	background-color: var(--lvc-ink);
	color: var(--lvc-paper);
}

.site input[type="text"],
.site input[type="email"],
.site input[type="url"],
.site input[type="password"],
.site input[type="search"],
.site input[type="number"],
.site input[type="tel"],
.site input[type="date"],
.site input[type="month"],
.site input[type="week"],
.site input[type="time"],
.site input[type="datetime"],
.site input[type="datetime-local"],
.site input[type="color"],
.site textarea,
.site select {
	border-color: var(--lvc-line);
	background-color: var(--lvc-paper);
	color: var(--lvc-ink);
}

.site :is(input, textarea, select):focus-visible {
	border-color: var(--lvc-accent);
	outline: 2px solid var(--lvc-accent);
	outline-offset: 2px;
}

#page a:focus-visible,
.site button:focus-visible,
.site input[type="submit"]:focus-visible {
	outline: 2px solid var(--lvc-accent);
	outline-offset: 4px;
}

.site-header {
	padding-bottom: 48px;
}

.site-footer > .site-info,
.widget-area {
	border-top-color: var(--lvc-line);
}

.site-footer > .site-info {
	border-top-width: 1px;
}

.widget-area {
	padding-top: 48px;
}

.widget-title,
.widget h2 {
	font-weight: 600;
	letter-spacing: -0.02em;
}

@media only screen and (max-width: 600px) {
	:root {
		--global--font-size-base: 1rem;
	}

	.singular:not(.home) .entry-header {
		margin-bottom: 40px;
		padding: 20px 0 52px;
	}

	.singular:not(.home) .entry-header::after {
		bottom: 20px;
	}

	.page:not(.home) .entry-title {
		font-size: clamp(2.8rem, 14vw, 4rem);
	}

	.single .entry-title {
		font-size: clamp(2.35rem, 11vw, 3.4rem);
	}

	.site-header {
		padding-bottom: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-latest-posts.is-style-tw-posts-card > li {
		transition: none;
	}
}
