/*
Theme Name: teamliberty
Description: A dynamic classic WordPress theme with a minimal editorial commerce layout.
Version: 1.0.0
Text Domain: teamliberty-theme
*/

:root {
	--teamliberty-bg: #f7f4ee;
	--teamliberty-card: #fffdf8;
	--teamliberty-ink: #343630;
	--teamliberty-muted: #6c6a61;
	--teamliberty-line: #dfdacf;
	--teamliberty-accent: #d8e0d2;
	--teamliberty-accent-strong: #c8d4c2;
	--teamliberty-shadow: 0 24px 70px rgba(44, 46, 39, 0.12);
	--teamliberty-radius: 8px;
	--teamliberty-media-radius: 22px;
	--teamliberty-shell: min(100% - 32px, 1380px);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.teamliberty-site {
	margin: 0;
	background: var(--teamliberty-bg);
	color: var(--teamliberty-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-rendering: geometricPrecision;
}

body.teamliberty-site.admin-bar .teamliberty-site-header {
	top: 32px;
}

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

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

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--teamliberty-ink);
	outline-offset: 3px;
}

.teamliberty-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;
}

.teamliberty-screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	border-radius: var(--teamliberty-radius);
	background: var(--teamliberty-card);
	box-shadow: var(--teamliberty-shadow);
}

.teamliberty-shell {
	width: var(--teamliberty-shell);
	margin-inline: auto;
}

.teamliberty-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 12px 0;
	background: rgba(247, 244, 238, 0.74);
	backdrop-filter: blur(18px);
}

.teamliberty-header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 54px;
	padding: 9px 11px 9px 18px;
	border: 1px solid rgba(52, 54, 48, 0.08);
	border-radius: 18px;
	background: rgba(255, 253, 248, 0.78);
	box-shadow: 0 12px 34px rgba(52, 54, 48, 0.06);
}

.teamliberty-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: max-content;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.teamliberty-brand-logo {
	width: auto;
	max-height: 32px;
}

.teamliberty-nav {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
}

.teamliberty-nav-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.teamliberty-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 9px 12px;
	border-radius: 999px;
	color: var(--teamliberty-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	transition: background-color 180ms ease, transform 180ms ease;
}

.teamliberty-nav-link:hover,
.teamliberty-nav-link--active {
	background: var(--teamliberty-accent);
	transform: translateY(-1px);
}

.teamliberty-header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--teamliberty-accent);
	color: var(--teamliberty-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition: background-color 180ms ease, transform 180ms ease;
}

.teamliberty-header-action:hover {
	background: var(--teamliberty-accent-strong);
	transform: translateY(-1px);
}

.teamliberty-page-main {
	padding: 8px 0 clamp(56px, 8vw, 112px);
}

.teamliberty-hero {
	position: relative;
	margin: 8px auto clamp(26px, 4vw, 56px);
}

.teamliberty-hero--no-media {
	min-height: clamp(420px, 62vh, 680px);
	border-radius: var(--teamliberty-media-radius);
	background: var(--teamliberty-accent);
	box-shadow: var(--teamliberty-shadow);
}

.teamliberty-hero-media {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: clamp(440px, 74vh, 760px);
	border-radius: var(--teamliberty-media-radius);
	background: var(--teamliberty-accent);
	box-shadow: var(--teamliberty-shadow);
	isolation: isolate;
}

.teamliberty-hero-media::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background: linear-gradient(180deg, rgba(36, 38, 32, 0.04), rgba(36, 38, 32, 0.34));
	pointer-events: none;
}

.teamliberty-hero-image {
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
	transform: scale(1.012);
	transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
}

.teamliberty-hero:hover .teamliberty-hero-image {
	filter: saturate(1.04);
	transform: scale(1.045);
}

.teamliberty-hero-content {
	position: relative;
	z-index: 2;
	color: var(--teamliberty-ink);
}

.teamliberty-hero-title {
	max-width: 1050px;
	margin: 0;
	font-size: clamp(48px, 10vw, 142px);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0;
	text-wrap: balance;
}

.teamliberty-hero-description {
	max-width: 520px;
	margin: 22px 0 0;
	color: var(--teamliberty-muted);
	font-size: clamp(17px, 2vw, 28px);
	font-weight: 600;
	line-height: 1.16;
	text-wrap: balance;
}

.teamliberty-hero--layout-1 .teamliberty-hero-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(28px, 7vw, 96px);
	color: #fffdf8;
	text-align: center;
	text-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.teamliberty-hero--layout-1 .teamliberty-hero-description {
	color: rgba(255, 253, 248, 0.92);
}

.teamliberty-hero--no-media.teamliberty-hero--layout-1 .teamliberty-hero-content {
	position: relative;
	min-height: inherit;
	color: var(--teamliberty-ink);
	text-shadow: none;
	pointer-events: auto;
}

.teamliberty-hero--no-media.teamliberty-hero--layout-1 .teamliberty-hero-description {
	color: var(--teamliberty-muted);
}

.teamliberty-hero--layout-2 {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(14px, 2vw, 24px);
	align-items: stretch;
}

.teamliberty-hero--no-media.teamliberty-hero--layout-2 {
	grid-template-columns: 1fr;
}

.teamliberty-hero--layout-2 .teamliberty-hero-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 6vw, 84px);
	border-radius: var(--teamliberty-media-radius);
	background: var(--teamliberty-accent);
}

.teamliberty-hero--layout-2 .teamliberty-hero-media {
	min-height: clamp(420px, 62vh, 720px);
}

.teamliberty-hero--layout-3 {
	display: grid;
	gap: clamp(18px, 3vw, 34px);
}

.teamliberty-hero--layout-3 .teamliberty-hero-content {
	max-width: 980px;
	padding-top: clamp(30px, 5vw, 74px);
}

.teamliberty-hero--layout-4 .teamliberty-hero-content {
	position: absolute;
	left: clamp(16px, 4vw, 62px);
	bottom: clamp(16px, 4vw, 62px);
	max-width: min(620px, calc(100% - 32px));
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--teamliberty-media-radius);
	background: rgba(255, 253, 248, 0.88);
	box-shadow: var(--teamliberty-shadow);
	backdrop-filter: blur(18px);
}

.teamliberty-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 14px;
}

.teamliberty-section-title {
	margin: 0;
	font-size: clamp(28px, 5vw, 64px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: 0;
	text-wrap: balance;
}

.teamliberty-category-section {
	padding: clamp(22px, 4vw, 54px) 0;
}

.teamliberty-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(10px, 1.5vw, 18px);
}

.teamliberty-category-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-height: 160px;
	padding: clamp(20px, 3vw, 34px);
	border: 1px solid rgba(52, 54, 48, 0.08);
	border-radius: var(--teamliberty-radius);
	background: var(--teamliberty-accent);
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.teamliberty-category-card:hover {
	background: var(--teamliberty-accent-strong);
	box-shadow: 0 18px 42px rgba(52, 54, 48, 0.12);
	transform: translateY(-3px);
}

.teamliberty-category-card-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	overflow: hidden;
	border: 1px solid rgba(52, 54, 48, 0.1);
	border-radius: 999px;
	background: rgba(255, 253, 248, 0.58);
}

.teamliberty-category-card-icon-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teamliberty-category-card-icon-svg {
	width: 28px;
	height: 28px;
	color: var(--teamliberty-ink);
}

.teamliberty-category-card-title {
	margin: 0;
	font-size: clamp(22px, 3vw, 42px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: 0;
	text-wrap: balance;
}

.teamliberty-category-card-meta {
	margin: 9px 0 0;
	color: rgba(52, 54, 48, 0.68);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.teamliberty-feed-section {
	padding: clamp(22px, 4vw, 56px) 0 0;
}

.teamliberty-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 22px);
}

.teamliberty-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(52, 54, 48, 0.08);
	border-radius: var(--teamliberty-radius);
	background: rgba(255, 253, 248, 0.68);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.teamliberty-post-card:hover {
	box-shadow: 0 20px 50px rgba(52, 54, 48, 0.1);
	transform: translateY(-3px);
}

.teamliberty-post-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--teamliberty-accent);
}

.teamliberty-post-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.teamliberty-post-card:hover .teamliberty-post-card-image {
	transform: scale(1.045);
}

.teamliberty-post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(18px, 2.6vw, 28px);
}

.teamliberty-post-card-date,
.teamliberty-single-date,
.teamliberty-archive-description {
	color: var(--teamliberty-muted);
}

.teamliberty-post-card-date,
.teamliberty-single-date {
	display: inline-flex;
	width: max-content;
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.teamliberty-post-card-title {
	margin: 0;
	font-size: clamp(22px, 2.7vw, 34px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-wrap: balance;
}

.teamliberty-post-card-title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: background-size 180ms ease;
}

.teamliberty-post-card-title a:hover {
	background-size: 100% 1px;
}

.teamliberty-post-card-excerpt {
	margin: 16px 0 0;
	color: var(--teamliberty-muted);
	font-size: 15px;
	line-height: 1.55;
}

.teamliberty-empty-state {
	padding: clamp(30px, 5vw, 72px);
	border: 1px solid rgba(52, 54, 48, 0.08);
	border-radius: var(--teamliberty-radius);
	background: var(--teamliberty-card);
	color: var(--teamliberty-muted);
}

.teamliberty-archive-header {
	padding: clamp(40px, 8vw, 96px) 0 clamp(22px, 4vw, 48px);
}

.teamliberty-archive-title,
.teamliberty-single-title {
	max-width: 1100px;
	margin: 0;
	font-size: clamp(46px, 9vw, 126px);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: 0;
	text-wrap: balance;
}

.teamliberty-archive-description {
	max-width: 680px;
	margin: 20px 0 0;
	font-size: clamp(17px, 2vw, 24px);
	font-weight: 600;
	line-height: 1.24;
}

.teamliberty-pagination {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
}

.teamliberty-pagination a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 11px 15px;
	border-radius: 999px;
	background: var(--teamliberty-accent);
	font-size: 13px;
	font-weight: 700;
}

.teamliberty-single-article {
	padding-top: clamp(36px, 7vw, 92px);
}

.teamliberty-single-header {
	display: grid;
	gap: 20px;
	max-width: 1120px;
	margin: 0 auto clamp(24px, 5vw, 64px);
	text-align: center;
}

.teamliberty-single-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 9px;
}

.teamliberty-single-category {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 8px 11px;
	border-radius: 999px;
	background: var(--teamliberty-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.teamliberty-single-media {
	overflow: hidden;
	margin-bottom: clamp(26px, 5vw, 68px);
	border-radius: var(--teamliberty-media-radius);
	background: var(--teamliberty-accent);
	box-shadow: var(--teamliberty-shadow);
}

.teamliberty-single-image {
	width: 100%;
	max-height: 720px;
	object-fit: cover;
}

.teamliberty-single-content {
	max-width: 820px;
	margin-inline: auto;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.72;
}

.teamliberty-single-content > *:first-child {
	margin-top: 0;
}

.teamliberty-single-content h2,
.teamliberty-single-content h3,
.teamliberty-single-content h4 {
	margin: 1.8em 0 0.6em;
	line-height: 1.05;
	letter-spacing: 0;
}

.teamliberty-single-content h2 {
	font-size: clamp(34px, 4vw, 58px);
}

.teamliberty-single-content h3 {
	font-size: clamp(28px, 3vw, 42px);
}

.teamliberty-single-content p {
	margin: 0 0 1.15em;
}

.teamliberty-single-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.teamliberty-single-content blockquote {
	margin: 1.6em 0;
	padding: clamp(20px, 4vw, 34px);
	border-radius: var(--teamliberty-radius);
	background: var(--teamliberty-accent);
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.1;
}

.teamliberty-single-content img {
	height: auto;
	border-radius: var(--teamliberty-radius);
}

.teamliberty-single-footer {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	max-width: 820px;
	margin: clamp(32px, 5vw, 64px) auto 0;
}

.teamliberty-single-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 11px 15px;
	border-radius: 999px;
	background: var(--teamliberty-accent);
	font-size: 13px;
	font-weight: 700;
}

.teamliberty-site-footer {
	padding: clamp(42px, 7vw, 86px) 0 24px;
	border-top: 1px solid rgba(52, 54, 48, 0.1);
}

.teamliberty-footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(24px, 5vw, 72px);
	align-items: start;
}

.teamliberty-footer-brand {
	display: grid;
	gap: 14px;
	max-width: 600px;
}

.teamliberty-footer-title {
	margin: 0;
	font-size: clamp(44px, 11vw, 160px);
	font-weight: 700;
	line-height: 0.88;
	letter-spacing: 0;
}

.teamliberty-footer-description,
.teamliberty-footer-credit {
	margin: 0;
	color: var(--teamliberty-muted);
}

.teamliberty-footer-description {
	max-width: 520px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.teamliberty-footer-credit {
	margin-top: clamp(30px, 5vw, 64px);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.teamliberty-nav--footer {
	margin-left: 0;
}

.teamliberty-nav--footer .teamliberty-nav-list {
	display: grid;
	justify-items: end;
	gap: 8px;
}

.teamliberty-nav--footer .teamliberty-nav-link {
	padding-inline: 0;
	background: transparent;
}

@media (prefers-reduced-motion: no-preference) {
	.teamliberty-hero,
	.teamliberty-category-card,
	.teamliberty-post-card,
	.teamliberty-archive-header,
	.teamliberty-single-header {
		animation: teamliberty-fade-up 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.teamliberty-category-card:nth-child(2),
	.teamliberty-post-card:nth-child(2) {
		animation-delay: 90ms;
	}

	.teamliberty-category-card:nth-child(3),
	.teamliberty-post-card:nth-child(3) {
		animation-delay: 160ms;
	}
}

@keyframes teamliberty-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 900px) {
	body.teamliberty-site.admin-bar .teamliberty-site-header {
		top: 46px;
	}

	.teamliberty-header-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.teamliberty-nav {
		width: 100%;
		margin-left: 0;
		overflow-x: auto;
	}

	.teamliberty-nav-list {
		flex-wrap: nowrap;
		min-width: max-content;
	}

	.teamliberty-header-action {
		width: 100%;
	}

	.teamliberty-hero--layout-2 {
		grid-template-columns: 1fr;
	}

	.teamliberty-hero--layout-4 .teamliberty-hero-content {
		position: relative;
		left: auto;
		bottom: auto;
		max-width: none;
		margin-top: -72px;
	}

	.teamliberty-category-grid,
	.teamliberty-post-grid {
		grid-template-columns: 1fr;
	}

	.teamliberty-footer-inner {
		grid-template-columns: 1fr;
	}

	.teamliberty-nav--footer .teamliberty-nav-list {
		justify-items: start;
	}
}

@media (max-width: 600px) {
	:root {
		--teamliberty-shell: min(100% - 20px, 1380px);
		--teamliberty-media-radius: 16px;
	}

	body.teamliberty-site {
		font-size: 15px;
	}

	.teamliberty-site-header {
		padding: 8px 0;
	}

	.teamliberty-header-inner {
		padding: 10px;
		border-radius: 14px;
	}

	.teamliberty-nav-link {
		min-height: 36px;
		padding: 10px 12px;
	}

	.teamliberty-hero-media {
		min-height: 520px;
	}

	.teamliberty-hero-title,
	.teamliberty-archive-title,
	.teamliberty-single-title {
		font-size: clamp(42px, 16vw, 72px);
	}

	.teamliberty-hero--layout-1 .teamliberty-hero-content {
		padding: 24px;
	}

	.teamliberty-category-card {
		min-height: 134px;
	}

	.teamliberty-single-footer,
	.teamliberty-pagination {
		flex-direction: column;
	}
}
