/*
Theme Name: LAB108
Description: Tema institucional da LAB108 baseado na referência V12.
Version: 0.4.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: lab108
*/

:root {
	color-scheme: dark;
	--lab108-background: #090909;
	--lab108-panel: #101010;
	--lab108-text: #f2f0eb;
	--lab108-muted: #b2b0ac;
	--lab108-line: #3a3937;
	--lab108-focus: #d8c49e;
	--lab108-gutter: clamp(24px, 8vw, 120px);
	--lab108-width: 1320px;
}

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

body {
	margin: 0;
	background: var(--lab108-background);
	color: var(--lab108-text);
	font: 1rem/1.55 Arial, Helvetica, sans-serif;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font: inherit; }

:focus-visible {
	outline: 3px solid var(--lab108-focus);
	outline-offset: 5px;
}

[hidden] { display: none !important; }

.skip-link {
	position: fixed;
	z-index: 100000;
	inset: 12px auto auto 12px;
	padding: 10px 16px;
	background: var(--lab108-text);
	color: var(--lab108-background);
}

.skip-link:not(:focus) {
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.site-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.admin-bar .site-shell { min-height: calc(100dvh - 32px); }

.site-header, .site-main, .site-footer {
	width: 100%;
	max-width: var(--lab108-width);
	margin-inline: auto;
}

.site-header, .menu-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--lab108-line);
}

.site-header { padding: 24px clamp(24px, 5.5vw, 82px); }
.site-main { flex: 1; padding-inline: var(--lab108-gutter); }

.brand {
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: .045em;
	text-decoration: none;
}

.menu-button {
	padding: 4px 10px;
	border: 0;
	background: transparent;
	color: var(--lab108-text);
	cursor: pointer;
	font-size: 1.65rem;
}

.menu-dialog[open] {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 26px clamp(24px, 7vw, 100px) 60px;
	border: 0;
	background: #080808;
	color: var(--lab108-text);
	overflow: auto;
}

.menu-dialog-header { padding-bottom: 24px; }
body.menu-open { overflow: hidden; }

.menu-list, .social-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu-list a { text-decoration: none; }
.menu-list a:hover { color: var(--lab108-focus); }
.menu-list .current-menu-item > a, .menu-list .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

.menu-dialog .menu-list {
	max-width: 900px;
	margin: clamp(28px, 6vw, 50px) auto 0;
}

.menu-dialog .menu-list a {
	display: block;
	width: fit-content;
	padding-block: 8px;
	font-size: clamp(2rem, 5vw, 4.3rem);
	line-height: 1.2;
	letter-spacing: -.04em;
}

.menu-caption {
	display: block;
	color: var(--lab108-muted);
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: normal;
}

.site-footer {
	padding: 50px var(--lab108-gutter) 35px;
	color: var(--lab108-muted);
}

.site-footer h2 {
	margin: 0 0 20px;
	color: var(--lab108-text);
	font-size: 1.12rem;
	font-weight: 500;
}

.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

.social-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-inline: 15px;
	border: 1px solid var(--lab108-line);
	border-radius: 99px;
	text-decoration: none;
}

.social-list a:hover { border-color: var(--lab108-text); }
.footer-bottom { font-size: .875rem; }

@media (max-width: 782px) {
	.admin-bar .site-shell { min-height: calc(100dvh - 46px); }
}

@media (max-width: 640px) {
	.site-header { padding-block: 17px; }
	.menu-dialog[open] { padding-top: 18px; }
	.menu-dialog .menu-list a { font-size: clamp(2rem, 8vw, 3.4rem); }
}
