/*
Theme Name: HOCHFORMAT_v2024
Description: Fotos und Gedanken von Oli Lou Kramer. Schlank, ohne jQuery, mit lokalen Schriften.
Version: 2.0
Author: Oli Lou Kramer
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hochformat
*/

/* =Variablen
-------------------------------------------------------------- */

:root {
	--text: #585858;
	--accent: #eea000;
	--border: #ddd;
	--muted: #999;
	--panel: #fafafa;
	--panel-active: #f5f5f5;
	--quote: #8f99a3;

	--font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
	--font-mono: 'Overpass Mono', ui-monospace, Menlo, Consolas, monospace;

	--gutter: 25px;
}

@media (min-width: 1220px) {
	:root {
		--gutter: 35px;
	}
}

/* =Grundlagen
-------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--font-serif);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.6;
}

img,
video,
iframe,
svg {
	max-width: 100%;
}

img,
video {
	height: auto;
}

iframe {
	border: 0;
}

p,
ul,
ol,
dl,
blockquote,
figure,
pre,
address {
	margin: 0 0 15px;
}

* + p,
* + ul,
* + ol,
* + dl,
* + blockquote,
* + figure,
* + pre,
* + address {
	margin-top: 15px;
}

ul,
ol {
	padding-left: 30px;
}

li > ul,
li > ol {
	margin: 0;
}

hr {
	height: 0;
	margin: 15px 0;
	border: 0;
	border-top: 1px solid var(--border);
}

strong,
b {
	font-weight: 700;
}

small,
.small {
	display: block;
	margin-top: 10px;
	font-size: 0.875rem;
}

sup,
sub {
	position: relative;
	font-size: 75%;
	line-height: 0;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

blockquote {
	padding-left: 15px;
	border-left: 5px solid var(--border);
	color: var(--quote);
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.6;
}

pre {
	padding: 10px;
	overflow: auto;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: var(--panel);
	font: 0.75rem/1.5 var(--font-mono);
	tab-size: 4;
}

label {
	display: block;
}

/* =Überschriften
-------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 15px;
	color: var(--text);
	font-family: var(--font-serif);
	font-weight: 400;
}

* + h1,
* + h2,
* + h3,
* + h4,
* + h5,
* + h6 {
	margin-top: 25px;
}

h1,
h2 {
	margin-top: 0.5em;
	line-height: 1.35;
}

h1 {
	margin-bottom: 20px;
	font-size: 1.75rem;
	font-weight: 900;
	font-style: italic;
}

h2 {
	font-size: 1.375rem;
	font-weight: 700;
}

h3 {
	font-size: 1.375rem;
	line-height: 1.6;
}

h4 {
	margin-top: 20px;
	font-size: 1.125rem;
}

/* =Links
-------------------------------------------------------------- */

a {
	border-bottom: 2px solid var(--accent);
	color: var(--text);
	text-decoration: none;
}

a:hover {
	border-bottom-width: 4px;
	color: var(--text);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* =Barrierefreiheit
-------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	z-index: 100;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 10px 15px;
	clip: auto;
	background: #fff;
	box-shadow: 0 0 0 2px var(--accent);
}

/* =Layout
-------------------------------------------------------------- */

.site {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

@media (min-width: 1220px) {
	.site {
		max-width: 1200px;
	}
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"main"
		"sidebar"
		"footer";
	column-gap: var(--gutter);
}

.site-main {
	grid-area: main;
}

.site-sidebar {
	grid-area: sidebar;
}

.site-footer {
	grid-area: footer;
}

@media (min-width: 768px) {
	.layout {
		grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
		grid-template-areas:
			"main sidebar"
			"footer .";
	}
}

/* =Kopfbereich (nur Smartphone)
-------------------------------------------------------------- */

.site-header {
	margin: 15px 0 50px;
}

@media (min-width: 768px) {
	.site-header {
		display: none;
	}
}

.site-logo,
.site-logo:hover {
	display: inline-block;
	border-bottom: 0;
}

.logo {
	display: block;
	border-radius: 50%;
}

.site-byline {
	margin: 10px 0 0 5px;
	font-size: 0.6875rem;
	font-weight: 900;
	font-style: italic;
	line-height: 14px;
}

.site-byline span {
	color: var(--accent);
}

.site-byline a,
.site-byline a:hover {
	border-bottom: 0;
}

/* =Seitenleiste
-------------------------------------------------------------- */

.sidebar-panel {
	margin-top: 15px;
	padding: 15px 10px 15px 25px;
	border-left: 1px solid var(--border);
}

.sidebar-panel .site-logo {
	display: none;
}

@media (min-width: 768px) {
	.sidebar-panel .site-logo {
		display: inline-block;
	}
}

.sidebar-intro {
	margin: 0;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	font-weight: 300;
	letter-spacing: -0.05em;
	line-height: 1.6;
}

.sidebar-intro + .sidebar-intro {
	margin-top: 1.6em;
}

/* Auf dem Smartphone folgt direkt der Ko-fi-Button im Fußbereich. */
@media (max-width: 767px) {
	.sidebar-kofi {
		display: none;
	}
}

@media (min-width: 768px) {
	.site-logo + .sidebar-intro {
		margin-top: 25px;
	}
}

/* =Beiträge
-------------------------------------------------------------- */

.entry {
	margin-bottom: 25px;
}

.entry + .entry {
	margin-top: 25px;
	padding-top: 25px;
}

.entry::after {
	content: "";
	display: table;
	clear: both;
}

.entry-title {
	margin: 0.5em 0 20px;
	font-size: 1.75rem;
	font-weight: 900;
	font-style: italic;
	line-height: 1.35;
}

.entry-title a,
.entry-title a:hover {
	border-bottom: 0;
}

.entry-title a:hover {
	color: var(--accent);
}

.entry-title sup,
.entry-title sup a {
	color: var(--accent);
}

.entry-dash {
	display: block;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content img {
	margin: 0 auto;
	border-radius: 0.25em;
}

.entry-content a:has(> img),
.wp-block-image a {
	border-bottom: 0;
}

.mono {
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	font-weight: 300;
	letter-spacing: -0.05em;
}

.entry-meta {
	margin-top: 15px;
}

.post-page-numbers {
	margin-right: 5px;
}

img.alignright { float: right; margin: 0 0 1em 1em; }
img.alignleft { float: left; margin: 0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; }
.alignleft { float: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.button-left {
	text-align: left !important;
}

span.antispam { display: none; }
span.nospam { display: inline; }

/* =Akkordeon (bisheriges Markup und Details-Block)
-------------------------------------------------------------- */

.uk-accordion-title {
	margin: 0 0 15px;
	padding: 5px 0;
	color: var(--text);
	font-size: 1.375rem;
	line-height: 1.6;
}

.uk-accordion-toggle {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 15px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.uk-accordion-toggle::after,
.wp-block-details summary::after {
	content: "+";
	flex: none;
	color: var(--accent);
	font-weight: 700;
	font-style: normal;
}

.uk-accordion-title.uk-active .uk-accordion-toggle::after,
.wp-block-details[open] summary::after {
	content: "\2212";
}

.uk-accordion-content {
	margin-bottom: 15px;
	padding: 5px 0 5px 15px;
	border-left: 3px solid var(--accent);
}

.uk-accordion-content::after {
	content: "";
	display: table;
	clear: both;
}

.uk-accordion-content > :last-child {
	margin-bottom: 0;
}

.wp-block-details {
	margin-bottom: 15px;
}

.wp-block-details summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 15px;
	padding: 5px 0;
	font-size: 1.375rem;
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > :not(summary) {
	margin-left: 0;
	padding-left: 15px;
	border-left: 3px solid var(--accent);
}

/* =Seitennavigation
-------------------------------------------------------------- */

.pagination {
	padding: 20px 0;
	text-align: center;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
}

.nav-links .page-numbers {
	display: block;
	padding: 4px 9px;
	border: 1px solid var(--border);
	border-radius: 0.25em;
	font-size: 1.125rem;
}

.nav-links a.page-numbers:hover {
	border: 1px solid var(--accent);
}

.nav-links .current {
	background: var(--panel-active);
}

.nav-links .dots {
	border-color: transparent;
}

/* =Fußbereich
-------------------------------------------------------------- */

.site-footer {
	padding: 20px 0;
}

.footer-dash {
	margin: 0.5em 0 20px;
	font-size: 1.75rem;
	font-weight: 900;
	font-style: italic;
	line-height: 1.35;
}

/* Ko-fi-Button, ohne das externe Ko-fi-Skript */
.support-button,
.support-button:hover {
	display: inline-block;
	padding: 6px 16px;
	border: 0;
	border-radius: 7px;
	background: var(--accent);
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.8;
}

.support-button:hover {
	color: #fff;
	opacity: 0.85;
}
