/*
Theme Name: Sitefix CWV Slow Lab
Theme URI: https://sitefix-lab.work
Author: Sitefix Lab
Description: Intentionally slow WordPress theme for Core Web Vitals comparison evidence. Dummy data only.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.3
Text Domain: sitefix-cwv-slow
*/

:root {
	--ink: #14213d;
	--muted: #5d6475;
	--paper: #fffaf2;
	--panel: #ffffff;
	--line: #d9dde7;
	--accent: #0f766e;
	--accent-2: #9f1239;
	--accent-3: #6b8e23;
	--warning: #f59e0b;
	--shadow: 0 18px 42px rgba(20, 33, 61, 0.16);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "SlowFira", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

img {
	max-width: 100%;
	height: auto;
}

.lab-banner {
	align-items: center;
	background: var(--accent-2);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	font-weight: 800;
	justify-content: center;
	padding: 12px 20px;
	text-align: center;
	text-transform: uppercase;
}

.lab-banner-fast {
	background: #fff;
	border-radius: 999px;
	color: var(--accent-2);
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0;
	padding: 5px 10px;
	text-decoration: none;
}

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.header-inner,
.section-inner,
.content-wrap,
.site-footer-inner {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 22px;
}

.header-inner {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 78px;
}

.brand {
	color: var(--ink);
	font-family: "SlowRobotoSlab", Georgia, serif;
	font-size: 22px;
	font-weight: 800;
	text-decoration: none;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: flex-end;
}

.site-nav a {
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	padding: 8px 12px;
	text-decoration: none;
}

.hero {
	background: #eef6f4;
	border-bottom: 1px solid var(--line);
	padding: 42px 0 34px;
}

.hero-grid {
	align-items: center;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.eyebrow {
	color: var(--accent-2);
	font-size: 14px;
	font-weight: 900;
	margin: 0 0 12px;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	font-family: "SlowRobotoSlab", Georgia, serif;
	line-height: 1.12;
	margin: 0 0 16px;
}

h1 {
	font-size: clamp(42px, 7vw, 78px);
	max-width: 820px;
}

h2 {
	font-size: clamp(30px, 4vw, 46px);
}

h3 {
	font-size: 24px;
}

.lead {
	color: var(--muted);
	font-size: 21px;
	max-width: 760px;
}

.hero-image-wrap {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.hero-image-wrap img {
	display: block;
	width: 100%;
}

.lab-note {
	background: #fff;
	border: 1px solid var(--line);
	border-left: 8px solid var(--warning);
	border-radius: 8px;
	margin-top: 22px;
	padding: 18px;
}

.section {
	padding: 54px 0;
}

.section.alt {
	background: #f2f4f7;
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
}

.card-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
	padding: 22px;
}

.metric {
	color: var(--accent-2);
	display: block;
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 10px;
}

.media-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 24px;
}

.media-grid img {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
	display: block;
}

.faq {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq details {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 18px;
}

.faq summary {
	cursor: pointer;
	font-weight: 800;
}

.post-list {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 18px;
}

.content-wrap {
	padding-bottom: 64px;
	padding-top: 42px;
}

.entry-header {
	border-bottom: 1px solid var(--line);
	margin-bottom: 28px;
	padding-bottom: 18px;
}

.entry-content {
	max-width: 860px;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--line);
	padding: 10px;
	text-align: left;
}

.author-box,
.related-posts {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	margin-top: 28px;
	padding: 18px;
}

.site-footer {
	background: #14213d;
	color: #edf2f7;
	padding: 42px 0;
}

.site-footer a {
	color: #a7f3d0;
}

.footer-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-cell {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	padding: 16px;
}

.slow-review-widget,
.slow-chat-widget,
.slow-dom-noise {
	font-size: 14px;
}

@media (max-width: 820px) {
	.header-inner,
	.hero-grid,
	.card-grid,
	.faq,
	.post-list,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.header-inner {
		align-items: flex-start;
		display: grid;
		padding-bottom: 16px;
		padding-top: 16px;
	}

	.site-nav {
		justify-content: flex-start;
	}

	.media-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	body {
		font-size: 16px;
	}

	.media-grid {
		grid-template-columns: 1fr;
	}
}
