:root {
	--primaire: Teal;
	--secondaire: #d30;
	--ap-actif: SeaShell;
	--texte: #333;
	--ap: #fff;
	--bordure-simple: solid 1px var(--texte);
	--bordure-double: double 0.5em var(--texte);
	--lezard: "\1f98e";
	--atome: "\269b";
}

@media (prefers-color-scheme: dark) {
	:root{
		--primaire: Cyan;
		--secondaire: SandyBrown;
		--ap-actif: #310;
		--texte: #ddd;
		--ap: #222;
	}
}

:focus, a:hover {
	outline: dashed thin var(--secondaire);
}

html {
	background: var(--ap);
	color: var(--texte);
}

body {
	margin: 1em auto;
	max-width: 65rem;
	line-height: 1.5;
}

header {
	text-align: center;
	font-size: larger;
	border-bottom: var(--bordure-double);

	h1 {
		color: var(--primaire);
	}
}

nav {
	display: flex;
	padding: 1em;
	gap: 1em;
	justify-content: space-evenly;
	flex-flow: row wrap;
	align-items: baseline;
}


article {
	padding: 1em;
	margin: 1em;
	border-radius: 0.5em;
	border: solid 1px var(--texte);

	h1 {
		&::before {
			content: var(--lezard);
		}
		margin-top: 0;
		color: var(--primaire);
	}
}

article:has(details:hover) {
	border-color: var(--secondaire);
	background: var(--ap-actif);
}

details summary::marker {
	content: "+";
	color: var(--secondaire);
	font-size: 2em;
	font-weight: bold;
}

details[open] summary::marker {
	content: "×";
}

footer {
	border-top: var(--bordure-double);
	font-size: smaller;
	padding: 1em;
}

dt {
	display: inline;
	padding: 0 0.2em;
	border-radius: 0.2em;
	color: var(--secondaire);
	font-weight: bold;
	border-right: var(--bordure-simple);
	border-bottom: var(--bordure-simple);
}

nav, h1, h2, h3 {
	font-family: "Sans Serif";
}

h2, h3, h4, h5, h6 {
	font-weight: bold;
	color: var(--secondaire);
}

h1, h2, h3, h4, h5, h6 {
	font-size: 1em;
}

a {
	&:any-link {
		color: var(--primaire);
		text-decoration: underline solid;
	}
	&:visited {
		color: var(--secondaire);
	}
	&[href$="/atom.xml"]::before {
		content: var(--atome) " ";
	}
}

:where(h1, header) a:any-link {
	color: var(--primary);
}

.categorie {
	padding-left: 1em;
}

@media (min-width: 65rem) {
	h1 {
		font-size: 1.5em;
	}
	h2 {
		font-size: 1.25em;
	}
	nav {
		font-size: larger;
	}
}

