/*!
Theme Name: Andrzej Raszyk Private Portfolio
Theme URI: https://andrzejraszyk.net/
Author: Andrzej Raszyk
Description: Lightweight, full-width WordPress host theme for the Andrzej Raszyk CrocoBuilder portfolio.
Version: 1.1.7
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: andrzej-raszyk-private-portfolio
Tags: full-width-template, custom-logo, custom-menu, accessibility-ready
*/

:root {
	--background: #f2f0e4;
	--surface: #e6e4d2;
	--surface-light: #f8f6ec;
	--border: #9ea182;
	--text: #2e2c22;
	--text-secondary: #58533d;
	--accent: #f0642b;
	--gold: #d6bd83;
	--green: #4b5d36;
	--green-deep: #263210;
	--dark: #483f2e;
	--on-dark: #f2f0e4;
	--radius: 18px;
	--shell: min(1280px, calc(100% - 48px));
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	min-width: 320px;
	background: var(--background);
	color: var(--text);
	font-family: Roboto, Arial, Helvetica, sans-serif;
	line-height: 1.5;
	overflow-x: clip;
}

button,
input,
select,
textarea {
	font: inherit;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

.crocoblocks-theme-builder-skip-link {
	display: none !important;
}

.wordmark-dot {
	display: block;
	width: 7px;
	height: 7px;
	margin: -13px 0 0 2px;
	border-radius: 50%;
	background: var(--accent);
	font-size: 0;
}

.footer-links {
	display: flex;
	justify-self: end;
	align-items: center;
	gap: 24px;
}

.footer-links a {
	border-bottom: 1px solid transparent;
}

.footer-links a:hover {
	border-color: var(--accent);
}

.desktop-nav a > span {
	margin-right: 0;
}

.desktop-nav a > .nav-label {
	margin-right: 0;
	color: inherit !important;
	font-size: 13px !important;
	letter-spacing: normal !important;
}

.desktop-nav a {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 12px;
	border-radius: 999px;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	transition: color 0.18s, background 0.18s;
}

.desktop-nav a > span:not(.nav-label) {
	color: var(--green);
	font-size: 9px;
	letter-spacing: 0.08em;
}

.desktop-nav a:hover {
	background: var(--surface);
	color: var(--text);
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--green);
	outline-offset: 4px;
}

.site,
.site-main,
.entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

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

.screen-reader-text:focus {
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip: auto;
	background: var(--dark);
	color: var(--on-dark);
}

/* Fallback menu for exported CrocoBuilder markup with an empty mobile nav. */
.mobile-menu.portfolio-menu {
	display: none !important;
}

.portfolio-menu__toggle {
	display: inline-flex;
	width: 106px;
	height: 48px;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 0 15px;
	border: 1px solid rgba(46, 44, 34, 0.14);
	border-radius: 999px;
	background: rgba(242, 240, 228, 0.94);
	box-shadow: 0 12px 32px rgba(46, 44, 34, 0.12);
	color: var(--text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	backdrop-filter: blur(16px);
}

.portfolio-menu__icon {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.portfolio-menu__icon::before,
.portfolio-menu__icon::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	content: "";
	transform: translate(-50%, -50%);
}

.portfolio-menu__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.portfolio-menu.is-open .portfolio-menu__icon {
	transform: rotate(45deg);
}

.portfolio-menu__panel {
	position: fixed;
	top: 72px;
	right: 14px;
	z-index: 60;
	width: min(310px, calc(100vw - 28px));
	max-height: calc(100svh - 86px);
	padding: 8px;
	overflow-y: auto;
	border: 1px solid rgba(46, 44, 34, 0.14);
	border-radius: 16px;
	background: rgba(242, 240, 228, 0.97);
	box-shadow: 0 18px 50px rgba(46, 44, 34, 0.16);
	backdrop-filter: blur(18px);
}

.portfolio-menu__panel[hidden] {
	display: none;
}

.portfolio-menu__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portfolio-menu__link {
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 12px;
	min-height: 44px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.portfolio-menu__number {
	color: var(--green);
	font-size: 10px;
	letter-spacing: 0.08em;
}

.portfolio-menu__link:hover {
	background: var(--surface);
}

@media (max-width: 820px) {
	.desktop-nav {
		display: none !important;
	}

	.mobile-menu.portfolio-menu {
		display: block !important;
		width: 106px;
		height: 48px;
		margin-left: auto;
	}
}

@media (min-width: 821px) and (max-width: 1120px) {
	.desktop-nav a {
		padding-inline: 9px;
	}

	.desktop-nav a > span:not(.nav-label) {
		display: none;
	}

	.desktop-nav .nav-label {
		display: inline !important;
	}
}

@media (max-width: 620px) {
	.footer-links {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

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

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