/*
Theme Name: radikales-nlp
Description: Schlankes Theme für ein persönliches Buchprojekt. Öffentlich sind die Startseite sowie Impressum und Datenschutz.
Version: 1.0.1
Update URI: https://github.com/eversthomas/radikales-nlp
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: radikales-nlp
*/

/*
 * Nunito liegt lokal unter assets/fonts/ (SIL Open Font License, siehe OFL.txt).
 * Kein Abruf von einem Schrift-CDN.
 */
@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/nunito-latin-400-normal.woff2") format("woff2");
	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: "Nunito";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/nunito-latin-400-italic.woff2") format("woff2");
	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: "Nunito";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2");
	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;
}

:root {
	--color-bg: #f7f5f2;
	--color-text: #221f1c;
	--color-muted: #5c564e;
	--color-rule: #d9d3c9;
	/* 58ch, weil das Zeichen „0“ in Nunito breiter ist als ein durchschnittlicher Buchstabe. Ergibt etwa 70 Zeichen pro Zeile. */
	--measure: 58ch;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: "Nunito", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 10;
	padding: 0.4rem 0.7rem;
	background: #fff;
	color: var(--color-text);
}

.site-header {
	padding: 1.15rem 1.5rem 0;
	text-align: center;
}

.site-title {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.site-title a {
	color: var(--color-muted);
	text-decoration: none;
}

.site-title a:hover,
.site-title a:focus-visible {
	color: var(--color-text);
}

.site-main {
	padding-bottom: 1rem;
}

.front-figure {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0 2.75rem;
}

.front-figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	object-position: center;
}

.prose {
	max-width: var(--measure);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.entry-title {
	margin: 0 0 1.1rem;
	font-size: clamp(1.75rem, 2.6vw, 2.35rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin: 0 0 1.15em;
}

.entry-content h2,
.entry-content h3 {
	margin: 1.8em 0 0.55em;
	font-weight: 700;
	line-height: 1.3;
}

.entry-content h2 {
	font-size: 1.4rem;
}

.entry-content h3 {
	font-size: 1.15rem;
}

.entry-content a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content blockquote {
	padding-left: 1em;
	border-left: 2px solid var(--color-rule);
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.edit-link {
	margin-top: 2.5rem;
	font-size: 0.75rem;
}

.edit-link a {
	color: var(--color-muted);
}

.site-footer {
	margin-top: 5.5rem;
	padding: 0 1.5rem 2.75rem;
}

.site-footer nav {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	font-size: 0.75rem;
}

.site-footer a {
	color: var(--color-muted);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

a:focus-visible {
	outline: 2px solid var(--color-text);
	outline-offset: 3px;
}
