/*
Theme Name: Ascetica Editorial
Theme URI: https://www.okami.de/
Description: Typografisch modernisiertes Child-Theme für Ascetica. Reduziert Bild- und Sidebar-Abhängigkeiten und optimiert lange technische Artikel.
Author: Robert Backhaus
Template: ascetica
Version: 1.1.0
Text Domain: ascetica-editorial
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--okami-background: #fff;
	--okami-text: #242424;
	--okami-muted: #6d6d6d;
	--okami-border: #e6e3df;
	--okami-soft: #f6f4f1;
	--okami-accent: #a31f2a;
	--okami-serif: ui-serif, Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	--okami-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--okami-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html {
	font-size: 18px !important;
	scroll-behavior: smooth;
}

body,
#respond #submit,
.button,
a.button,
.wpcf7-submit,
#loginform .button-primary,
.pagination a.page-numbers,
.comment-navigation a.page-numbers,
input[type="text"],
input[type="password"],
input[type="email"],
.input-text,
textarea,
select {
	font-family: var(--okami-serif) !important;
}

body {
	color: var(--okami-text);
	background: var(--okami-background);
	font-size: 1rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wrap {
	width: calc(100% - 48px);
	max-width: 1120px;
}

#primary {
	width: 73%;
}

#content {
	float: none;
	width: 100%;
	max-width: 760px;
	margin: 0 0 64px;
	min-height: 0;
}

#sidebar-secondary,
#sidebar-subsidiary,
#sidebar-after-singular,
#featured-content {
	display: none;
}

#menu-primary,
#sidebar-primary {
	width: 22%;
	margin-top: 40px;
}

#branding {
	width: 73%;
	margin-top: 48px;
}

#header {
	margin-bottom: 56px;
	border-bottom: 1px solid var(--okami-border);
}

#site-title {
	margin: 0 0 8px;
	font-family: var(--okami-sans);
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 750;
	line-height: 1;
	letter-spacing: -0.045em;
}

#site-title a {
	color: var(--okami-text);
	border: 0;
}

#site-description {
	margin: 0 0 34px;
	color: var(--okami-muted);
	font-family: var(--okami-serif);
	font-size: 1rem;
	font-style: normal;
	line-height: 1.5;
}

#menu-primary {
	font-family: var(--okami-sans);
}

#menu-primary li a {
	margin-bottom: 3px;
	padding: 0.78rem 0.75rem;
	border: 0;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.075em;
	word-spacing: normal;
	transition: color 140ms ease, background-color 140ms ease;
}

#menu-primary li a:hover,
#menu-primary li a:focus-visible,
#menu-primary li.current-menu-item > a,
#menu-primary li.current-menu-ancestor > a {
	color: var(--okami-accent);
	background: #f0ede9;
}

#menu-primary li li a,
#menu-primary li li.current-menu-item li a {
	padding: 0.68rem 0.75rem 0.68rem 1.25rem;
	font-size: 0.78rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.post-title,
.widget-title {
	color: var(--okami-text);
	font-family: var(--okami-sans);
	font-style: normal;
	font-weight: 720;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

h1 {
	font-size: clamp(2.35rem, 5vw, 3.8rem);
}

h2 {
	margin-top: 2.6rem;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h3 {
	margin-top: 2.1rem;
	font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

h4 {
	font-size: 1.15rem;
}

p,
ul,
ol,
dl,
table,
pre,
blockquote {
	margin-bottom: 1.55rem;
}

.entry-content > p,
.entry-summary > p {
	max-width: 72ch;
}

.entry-content > p:first-of-type {
	font-size: 1.08rem;
}

.hentry {
	float: none;
	margin: 0 0 1.5rem;
	padding: 0 0 1.5rem;
	border: 0;
}

.singular .hentry {
	padding-bottom: 0;
}

.entry-title,
.post-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.singular .entry-title,
.singular .post-title {
	font-size: clamp(2.35rem, 5vw, 3.8rem);
}

.entry-title a,
.post-title a {
	color: var(--okami-text);
	border: 0;
}

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

.byline,
.entry-meta {
	margin-bottom: 1.7rem;
	color: var(--okami-muted);
	font-family: var(--okami-sans);
	font-size: 0.75rem;
	font-style: normal;
	line-height: 1.5;
	letter-spacing: 0.035em;
}

.entry-meta {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--okami-border);
}

.home .hentry,
.archive .hentry,
.search .hentry {
	margin-bottom: 1.35rem;
	padding-bottom: 1.35rem;
	border: 0;
}

.home .entry-title,
.home .post-title,
.archive .entry-title,
.archive .post-title,
.search .entry-title,
.search .post-title {
	margin-bottom: 0.4rem;
}

.home .byline,
.archive .byline,
.search .byline {
	margin-bottom: 0.8rem;
	font-size: 0.7rem;
	color: #7b7b7b;
}

.home .hentry p:last-of-type,
.archive .hentry p:last-of-type,
.search .hentry p:last-of-type {
	margin-bottom: 0.75rem;
}

.entry-read-more {
	margin: 0.55rem 0 0;
	font-family: var(--okami-sans);
	font-size: 0.74rem;
	font-weight: 650;
	letter-spacing: 0.025em;
}

.entry-read-more a {
	color: var(--okami-accent);
	text-decoration: none;
}

.entry-read-more a::after {
	content: " →";
}

.entry-read-more a:hover,
.entry-read-more a:focus-visible {
	color: #111;
}

a {
	color: var(--okami-accent);
	text-decoration-thickness: 0.075em;
	text-underline-offset: 0.16em;
}

.hentry a {
	border-bottom: 0;
	text-decoration-line: underline;
}

a:hover,
a:focus {
	color: #111;
}

blockquote {
	margin-left: 0;
	padding: 0.15rem 0 0.15rem 1.45rem;
	border-left: 4px solid var(--okami-accent);
	color: #494949;
	font-size: 1.08rem;
	font-style: normal;
}

blockquote p:last-child {
	margin-bottom: 0;
}

pre,
code,
kbd,
samp {
	font-family: var(--okami-mono);
}

code,
kbd {
	padding: 0.12em 0.35em;
	border: 1px solid #e2dfda;
	border-radius: 3px;
	background: var(--okami-soft);
	font-size: 0.86em;
}

pre {
	overflow-x: auto;
	padding: 1.25rem 1.35rem;
	border: 1px solid #dfdcd7;
	border-radius: 4px;
	background: #242424;
	color: #f7f5f2;
	font-size: 0.82rem;
	line-height: 1.65;
	tab-size: 4;
}

pre code {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--okami-sans);
	font-size: 0.88rem;
}

th,
td {
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--okami-border);
	text-align: left;
	vertical-align: top;
}

th {
	background: var(--okami-soft);
	font-weight: 700;
}

hr {
	height: 1px;
	margin: 3rem 0;
	border: 0;
	background: var(--okami-border);
}

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

.hentry .archive-thumbnail {
	display: none;
}

.alignwide {
	width: min(920px, calc(100vw - 48px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.sidebar .widget {
	margin-bottom: 2rem;
	color: var(--okami-muted);
	font-size: 0.82rem;
	line-height: 1.55;
}

.sidebar .widget-title {
	margin-bottom: 0.8rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sidebar .widget ul {
	margin-left: 0;
	list-style: none;
}

.sidebar .widget ul li {
	margin-bottom: 0.45rem;
}

.sidebar .widget ul li a {
	color: var(--okami-muted);
	border: 0;
}

.sidebar .widget ul li a:hover {
	color: var(--okami-accent);
}

.pagination,
.comment-navigation {
	font-family: var(--okami-sans);
}

#comments-template {
	border-color: var(--okami-border);
}

#footer {
	min-height: 0;
	padding: 32px 0 48px;
	border-top: 1px solid var(--okami-border);
	color: var(--okami-muted);
	font-family: var(--okami-sans);
	font-size: 0.74rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
	max-width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #cbc7c1;
	border-radius: 2px;
	background: #fff;
	color: var(--okami-text);
	font-size: 0.95rem;
}

input:focus,
textarea:focus,
select:focus,
a:focus-visible,
button:focus-visible {
	outline: 3px solid rgba(163, 31, 42, 0.32);
	outline-offset: 2px;
}

@media only screen and (max-width: 960px) {
	.wrap {
		width: calc(100% - 40px);
		max-width: 820px;
	}

	#primary,
	#branding {
		width: 70%;
	}

	#menu-primary,
	#sidebar-primary {
		width: 25%;
	}
}

@media only screen and (max-width: 767px) {
	html {
		font-size: 17px !important;
	}

	.wrap {
		width: calc(100% - 32px);
		max-width: none;
	}

	#header {
		margin-bottom: 36px;
	}

	#branding,
	#primary,
	#content,
	#menu-primary,
	#sidebar-primary {
		float: none;
		width: 100%;
		max-width: none;
		margin-left: 0;
	}

	#branding {
		margin-top: 32px;
	}

	#menu-primary {
		margin-top: 0;
	}

	#menu-primary .menu {
		margin-bottom: 24px;
	}

	#menu-primary li a {
		margin-bottom: 4px;
		padding: 0.9rem 0.85rem;
		background: #f5f3f0;
	}

	#menu-primary li a:hover,
	#menu-primary li a:focus-visible,
	#menu-primary li.current-menu-item > a,
	#menu-primary li.current-menu-ancestor > a {
		color: var(--okami-accent);
		background: #e8e3dd;
	}

	#sidebar-primary {
		margin-top: 16px;
	}

	.entry-title,
	.post-title {
		font-size: 1.65rem;
	}

	.singular .entry-title,
	.singular .post-title {
		font-size: 2.25rem;
	}

	.alignwide,
	.alignfull {
		width: 100%;
		margin-left: 0;
		transform: none;
	}
}
