/*
Theme Name: Olis Welt
Description: Minimal dark business-card theme for Oliver Haas. Contact card, imprint and privacy policy only. No external resources.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Author: Reichelt Media Design
Text Domain: oliswelt
*/

@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
	src: url("assets/fonts/lato-300.woff2") format("woff2");
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/lato-400.woff2") format("woff2");
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("assets/fonts/lato-700.woff2") format("woff2");
}

:root {
	--bg: #0b0b0c;
	--surface: rgba(18, 18, 20, .72);
	--line: rgba(255, 255, 255, .12);
	--text: #e9e9ea;
	--muted: #9a9a9f;
	--accent: #c9c9cc;
	--radius: 14px;
	--font: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at 50% 45%, rgba(11, 11, 12, .35) 0%, rgba(11, 11, 12, .85) 70%, var(--bg) 100%),
		url("assets/img/brushed.webp") center / cover no-repeat;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Card ---------- */

.site-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px;
}

.card {
	width: 100%;
	max-width: 460px;
	padding: 48px 40px 40px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	text-align: center;
}

.card__logo { margin: 0 auto 28px; }
.card__logo img { display: block; max-width: 200px; max-height: 80px; width: auto; height: auto; margin: 0 auto; }

.card__portrait {
	width: 112px;
	height: 112px;
	margin: 0 auto 28px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--line);
	background: linear-gradient(145deg, #2a2a2d, #141416);
	display: flex;
	align-items: center;
	justify-content: center;
}
.card__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__initials {
	font-size: 34px;
	font-weight: 300;
	letter-spacing: .12em;
	padding-left: .12em;
	color: var(--accent);
}

.card__name {
	margin: 0;
	font-size: clamp(22px, 6vw, 28px);
	font-weight: 700;
	letter-spacing: .18em;
	padding-left: .18em;
	text-transform: uppercase;
	line-height: 1.35;
	text-wrap: balance;
}

.card__owner {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 15px;
	letter-spacing: .16em;
	padding-left: .16em;
	text-transform: uppercase;
}

.card__rule {
	width: 48px;
	height: 1px;
	margin: 32px auto;
	border: 0;
	background: var(--line);
}

.contact { list-style: none; margin: 0; padding: 0; }
.contact li + li { margin-top: 6px; }

.contact a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 4px;
	font-size: 20px;
	font-weight: 400;
	transition: color .2s;
}
.contact a:hover { color: #fff; }
.contact svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; color: var(--muted); transition: color .2s; }
.contact a:hover svg { color: #fff; }

.social {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
.social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	color: var(--muted);
	transition: color .2s, border-color .2s, background-color .2s;
}
.social a:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Footer ---------- */

.site-footer {
	padding: 20px 16px 28px;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	letter-spacing: .04em;
}
.site-footer nav { display: inline-flex; gap: 20px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text); }

/* ---------- Content pages (Impressum, Datenschutz) ---------- */

.page-wrap {
	flex: 1;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 56px 16px 32px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 32px;
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.back-link:hover { color: var(--text); }

.entry {
	padding: 40px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	overflow-wrap: break-word;
}
.entry-title {
	margin: 0 0 28px;
	font-size: clamp(24px, 6vw, 30px);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.25;
}
.entry h2 { margin: 2em 0 .5em; font-size: 20px; font-weight: 700; }
.entry h3 { margin: 1.6em 0 .4em; font-size: 17px; font-weight: 700; }
.entry h4 { margin: 1.2em 0 .3em; font-size: 16px; font-weight: 400; color: var(--accent); }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry p, .entry ul, .entry ol { margin: 0 0 1em; }
.entry a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.entry a:hover { text-decoration-color: currentColor; }
.entry strong { font-weight: 700; }

@media (max-width: 480px) {
	.card { padding: 40px 22px 32px; }
	.entry { padding: 28px 20px; }
	.contact a { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
