/*
 * Nemrud visual modernization
 *
 * Presentation only: this stylesheet does not insert, remove, or replace
 * visible text or media. It intentionally works with the legacy theme markup.
 */

:root {
	--nemrud-paper: #fffdf8;
	--nemrud-canvas: #eee7da;
	--nemrud-canvas-deep: #ddd0bc;
	--nemrud-ink: #292621;
	--nemrud-muted: #6f685e;
	--nemrud-line: #ded4c5;
	--nemrud-accent: #9b5c2e;
	--nemrud-accent-dark: #75411f;
	--nemrud-gold: #c79b4a;
	--nemrud-nav: #2f2923;
	--nemrud-nav-hover: #473a30;
	--nemrud-focus: #0b6e99;
	--nemrud-radius: 18px;
	--nemrud-shadow: 0 24px 70px rgba(58, 43, 28, 0.16);
}

html {
	min-width: 0;
	background: var(--nemrud-canvas);
	scroll-behavior: smooth;
}

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

body {
	min-width: 0;
	margin: 0;
	padding: clamp(12px, 2.6vw, 38px);
	background:
		radial-gradient(circle at 12% 8%, rgba(199, 155, 74, 0.18), transparent 28rem),
		linear-gradient(145deg, var(--nemrud-canvas) 0%, #f7f3eb 52%, var(--nemrud-canvas-deep) 100%);
	background-attachment: fixed;
	color: var(--nemrud-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	color: var(--nemrud-accent-dark);
	text-decoration-color: rgba(117, 65, 31, 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--nemrud-accent);
	text-decoration-thickness: 2px;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
	outline: 3px solid rgba(11, 110, 153, 0.38);
	outline-offset: 3px;
}

p {
	margin: 0 0 1.15em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1.45em 0 0.55em;
	padding: 0;
	color: var(--nemrud-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-style: normal;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
	font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
}

h4,
h5,
h6 {
	font-size: 1.05rem;
}

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

iframe {
	max-width: 100%;
}

iframe[src*="youtube.com/embed"],
#videoframe {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
}

iframe[src*="player.vimeo.com"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

hr {
	border: 0;
	border-top: 1px solid var(--nemrud-line);
}

blockquote {
	margin: 1.5rem 0;
	padding: 0.2rem 0 0.2rem 1.25rem;
	border-left: 4px solid var(--nemrud-gold);
	color: #514a41;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
}

#mainWrapper {
	width: min(1120px, 100%);
	margin: 0 auto;
	overflow: visible;
}

#wrapper {
	position: relative;
	width: 100%;
	margin: 0;
	padding: clamp(22px, 3.2vw, 40px);
	overflow: visible;
	border: 1px solid rgba(130, 105, 73, 0.18);
	border-radius: var(--nemrud-radius);
	background: var(--nemrud-paper);
	box-shadow: var(--nemrud-shadow);
}

#header {
	position: relative !important;
	margin: 0;
	padding: 0;
}

#header > br {
	display: none;
}

.site-title {
	display: block;
	margin: 0;
	padding: 0 118px 0 0;
	color: #653c21;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4.3vw, 3.35rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.site-description {
	display: block;
	max-width: 72ch;
	margin: 0.55rem 0 1.35rem;
	padding: 0 118px 0 0;
	color: var(--nemrud-muted);
	font-size: 0.92rem;
	font-style: normal;
	line-height: 1.45;
}

#anbi {
	left: auto !important;
	right: 0;
	top: 0 !important;
}

#anbi img {
	display: block;
	width: auto;
	height: 54px;
	border: 0;
	border-radius: 5px;
}

#header > img {
	display: block;
	width: 100%;
	height: clamp(150px, 19vw, 210px);
	margin: 0;
	border: 0;
	border-radius: 14px 14px 0 0;
	object-fit: cover;
	object-position: center;
}

#searchBoxHeader {
	position: absolute;
	z-index: 1000;
	top: clamp(108px, 12vw, 132px);
	right: clamp(34px, 4.2vw, 52px);
	float: none;
	margin: 0;
	padding: 6px;
	overflow: visible;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: rgba(255, 253, 248, 0.92);
	box-shadow: 0 8px 24px rgba(27, 20, 14, 0.22);
	backdrop-filter: blur(8px);
}

#searchform {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 6px;
	margin: 0;
}

#searchform input {
	float: none;
	width: clamp(110px, 15vw, 190px);
	min-height: 34px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--nemrud-line);
	border-radius: 999px;
	background: #fff;
	color: var(--nemrud-ink);
	font: inherit;
	font-size: 0.88rem;
}

#searchform input[type="submit"] {
	width: auto;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid var(--nemrud-accent-dark);
	background: var(--nemrud-accent-dark);
	color: #fff;
	cursor: pointer;
	text-align: center;
}

#searchform input[type="submit"]:hover {
	background: var(--nemrud-accent);
}

#branding {
	position: relative;
	z-index: 20;
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
}

#access {
	display: block;
	float: none;
	width: 100%;
	margin: 0;
	border-radius: 0 0 14px 14px;
	background: var(--nemrud-nav);
	box-shadow: 0 8px 20px rgba(38, 29, 21, 0.18);
}

#access::after,
#access > div::after,
#access > ul::after {
	display: table;
	clear: both;
	content: "";
}

#access > div {
	margin: 0;
}

#access > .menu {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

#access > .menu > ul {
	display: contents;
}

#access ul {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	font-size: 0.88rem;
	list-style: none;
}

#access li {
	position: relative;
	float: none;
}

#access > div > ul > li,
#access > ul > li {
	min-width: 0;
}

#access a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0.65rem 1.15rem;
	border: 0;
	color: #f8f3eb;
	font-weight: 650;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

#access li:hover > a,
#access li:focus-within > a,
#access a:focus {
	background: var(--nemrud-nav-hover);
	color: #fff;
}

#access .current_page_item > a,
#access .current_page_ancestor > a,
#access .current_blue > a {
	color: #fff;
	font-weight: 700;
	box-shadow: inset 0 -3px 0 var(--nemrud-gold);
}

#access ul ul {
	top: 100%;
	left: 0;
	width: min(280px, 84vw);
	max-height: min(68vh, 520px);
	margin: 0;
	padding: 0.45rem;
	overflow-x: hidden;
	overflow-y: auto;
	border: 1px solid var(--nemrud-line);
	border-radius: 0 0 12px 12px;
	background: var(--nemrud-paper);
	box-shadow: 0 18px 42px rgba(38, 29, 21, 0.22);
}

#access ul ul ul {
	position: static;
	display: block;
	width: 100%;
	max-height: none;
	margin: 0;
	padding: 0 0 0 0.7rem;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

#access ul ul a {
	width: 100%;
	min-height: 0;
	padding: 0.72rem 0.8rem;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--nemrud-ink);
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
}

#access ul ul ul a {
	padding-left: 1rem;
	font-size: 0.82rem;
}

#access ul ul li:hover > a,
#access ul ul li:focus-within > a,
#access ul ul a:focus {
	background: #f1e8da;
	color: var(--nemrud-accent-dark);
}

#access li:hover > ul,
#access li:focus-within > ul {
	display: block;
}

#content,
#content.twocols,
#content.threecols {
	margin: 0;
	padding: 0;
	overflow: visible;
	background: none;
}

#contentColumn,
#colRight {
	position: relative;
	float: none;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: visible;
}

#flags {
	display: flex;
	float: right;
	align-items: center;
	gap: 8px;
	top: 0;
	margin: 0 0 0.75rem 1rem;
}

#flags a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
	border: 1px solid var(--nemrud-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(64, 49, 34, 0.08);
}

#flags a:hover {
	border-color: var(--nemrud-gold);
	box-shadow: 0 6px 16px rgba(64, 49, 34, 0.14);
}

#flags img {
	display: block;
	width: 28px;
	height: auto;
	border: 0;
}

#pageTitle,
.postItem .categs {
	display: inline-block;
	float: none;
	margin: 0 0 1.4rem;
	padding: 0.42rem 0.75rem;
	border-left: 4px solid var(--nemrud-gold);
	border-radius: 0 6px 6px 0;
	background: #f1e8da;
	color: #6a3e20;
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
}

.postItem {
	margin: 0;
	padding: 0 0 1.5rem;
	background: none;
}

.postItem .categs a {
	display: inline;
	float: none;
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-transform: uppercase;
}

.postItem h1 {
	max-width: 24ch;
	margin-top: 0;
}

.postItem h1 a,
.postItem h1 a:hover {
	color: var(--nemrud-ink);
	text-decoration: none;
}

.postItem .meta {
	padding: 0;
	color: var(--nemrud-muted);
	font-size: 0.78rem;
}

#contentColumn > p,
.postItem > p,
.postItem > address,
.postItem > blockquote,
.postItem > ul,
.postItem > ol {
	max-width: 78ch;
}

#contentColumn ul,
#contentColumn ol,
.postItem ul,
.postItem ol {
	padding-left: 1.35rem;
}

#contentColumn li,
.postItem li {
	margin: 0.25rem 0;
}

#contentColumn table,
#colRight table {
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.92rem;
}

#contentColumn td,
#contentColumn th,
#colRight td,
#colRight th {
	padding: 0.55rem;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.home #contentColumn table {
	width: 100%;
	table-layout: fixed;
	background: transparent !important;
}

.home #contentColumn table td {
	padding: clamp(3px, 0.7vw, 8px);
	font-size: clamp(0.7rem, 1.35vw, 0.86rem);
	line-height: 1.35;
}

.home #contentColumn table img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border: 0 !important;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(45, 35, 25, 0.12);
}

.wp-caption {
	max-width: 100% !important;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	padding: 0.5rem;
	border: 1px solid var(--nemrud-line);
	border-radius: 10px;
	background: #f7f2e9;
}

.wp-caption img {
	display: block;
	width: 100%;
	height: auto;
	border: 0 !important;
	border-radius: 7px;
}

.wp-caption-text {
	margin: 0.55rem 0 0;
	color: var(--nemrud-muted);
	font-size: 0.8rem;
	font-style: normal;
	line-height: 1.45;
	text-align: center;
}

.alignleft {
	float: left;
	margin: 0.3rem 1.25rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.25rem;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

input,
textarea,
select,
button {
	max-width: 100%;
	font: inherit;
}

#commentform input,
#commentform textarea,
#contact input,
#contact textarea {
	width: min(100%, 620px);
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--nemrud-line);
	border-radius: 8px;
	background: #fff;
	color: var(--nemrud-ink);
}

#commentform input[type="submit"],
#contact input[type="submit"] {
	width: auto;
	height: auto;
	padding: 0.72rem 1.1rem;
	border: 0;
	border-radius: 8px;
	background: var(--nemrud-accent-dark);
	color: #fff;
}

#copyright {
	position: static;
	width: min(1120px, 100%);
	margin: 0 auto;
	padding: 1.25rem 1rem 0;
	color: #645b51;
	font-size: 0.78rem;
	line-height: 1.5;
	text-align: center;
}

#copyright a {
	color: #50463d;
}

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

@media (max-width: 760px) {
	body {
		padding: 10px;
		background-attachment: scroll;
		font-size: 15px;
	}

	#wrapper {
		display: flex;
		flex-direction: column;
		padding: 20px 16px 26px;
		border-radius: 14px;
	}

	#wrapper > br {
		display: none;
	}

	#header {
		order: 1;
	}

	.site-title {
		padding-right: 76px;
		font-size: clamp(1.85rem, 9vw, 2.65rem);
	}

	.site-description {
		margin-top: 0.45rem;
		padding-right: 0;
		font-size: 0.84rem;
	}

	#anbi img {
		height: 44px;
	}

	#header > img {
		height: 150px;
		border-radius: 10px 10px 0 0;
	}

	#searchBoxHeader {
		position: relative;
		order: 2;
		align-self: flex-end;
		top: auto;
		right: auto;
		margin: -52px 10px 10px 0;
		padding: 5px;
	}

	#searchform input {
		width: min(34vw, 145px);
		min-height: 32px;
		font-size: 0.78rem;
	}

	#searchform input[type="submit"] {
		width: auto;
		padding: 5px 9px;
	}

	#branding,
	#access {
		border-radius: 0 0 10px 10px;
	}

	#branding {
		order: 3;
	}

	#content {
		order: 4;
	}

	#access > .menu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#access > div > ul > li,
	#access > ul > li {
		min-width: 0;
	}

	#access a {
		justify-content: center;
		min-height: 48px;
		padding: 0.65rem 0.55rem;
		font-size: 0.76rem;
	}

	#access ul ul {
		position: absolute;
		top: 100%;
		left: 0;
		width: min(82vw, 310px);
	}

	#access > .menu > ul:first-child > li:nth-child(even) > ul {
		right: 0;
		left: auto;
	}

	#access ul ul ul {
		position: static;
		display: block;
		width: 100%;
		max-height: none;
		margin: 0;
	}

	#access ul ul a {
		justify-content: flex-start;
		font-size: 0.84rem;
	}

	#flags {
		gap: 6px;
		margin-left: 0.65rem;
	}

	#flags a {
		width: 38px;
		height: 34px;
	}

	#pageTitle,
	.postItem .categs {
		max-width: calc(100% - 92px);
		margin-bottom: 1.1rem;
	}

	.postItem h1 {
		max-width: 100%;
		font-size: clamp(1.75rem, 9vw, 2.4rem);
	}

	.home #contentColumn table td {
		padding: 3px;
		font-size: 0.66rem;
	}

	body:not(.home) #contentColumn table,
	#colRight table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.alignleft,
	.alignright {
		float: none;
		margin-right: auto;
		margin-left: auto;
	}
}

@media (max-width: 430px) {
	.site-title {
		padding-right: 62px;
		font-size: 1.85rem;
	}

	.site-description {
		max-width: 34ch;
	}

	#anbi img {
		height: 38px;
	}

	#searchBoxHeader {
		margin-right: 8px;
	}

	#searchform input {
		width: 112px;
	}

	#access a {
		font-size: 0.7rem;
	}

}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
