/*
Theme Name: Pep Pilot
Theme URI: https://www.peptidepilot.co.uk/
Author: She
Author URI: https://www.peptidepilot.co.uk/
Description: A clean, responsive presentation theme for Pep Pilot, built to work smoothly with Elementor.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pep-pilot
Tags: custom-logo, custom-menu, featured-images, full-width-template, accessibility-ready, translation-ready
*/

:root {
	--pep-ink: #10213b;
	--pep-muted: #5d6b82;
	--pep-brand: #2864ff;
	--pep-brand-dark: #1745bd;
	--pep-accent: #31c7a5;
	--pep-surface: #ffffff;
	--pep-soft: #f3f7ff;
	--pep-border: #dfe7f5;
	--pep-radius: 18px;
	--pep-shadow: 0 16px 42px rgba(16, 33, 59, 0.08);
	--pep-content: 1200px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--pep-surface);
	color: var(--pep-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--pep-brand);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--pep-brand-dark);
}

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

.pep-container {
	width: min(calc(100% - 40px), var(--pep-content));
	margin-inline: auto;
}

.pep-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--pep-border);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
}

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

.pep-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--pep-ink);
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.pep-brand img {
	max-height: 48px;
	width: auto;
}

.pep-brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--pep-brand), var(--pep-accent));
	color: #fff;
	font-size: 0.95rem;
	font-weight: 900;
}

.pep-nav ul {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pep-nav a {
	color: var(--pep-ink);
	font-size: 0.95rem;
	font-weight: 650;
	text-decoration: none;
}

.pep-nav a:hover,
.pep-nav .current-menu-item > a {
	color: var(--pep-brand);
}

.pep-main {
	min-height: 60vh;
}

.pep-content {
	padding-block: 72px;
}

.pep-entry-header {
	margin-bottom: 28px;
}

.pep-entry-title {
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 4.6rem);
	line-height: 1.08;
	letter-spacing: -0.055em;
}

.pep-entry-content > * {
	max-width: 780px;
}

.pep-entry-content .alignwide {
	max-width: var(--pep-content);
}

.pep-entry-content .alignfull {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

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

.pep-card {
	padding: 24px;
	border: 1px solid var(--pep-border);
	border-radius: var(--pep-radius);
	background: var(--pep-surface);
	box-shadow: var(--pep-shadow);
}

.pep-card h2,
.pep-card h3 {
	margin-top: 0;
	line-height: 1.2;
}

.pep-site-footer {
	margin-top: 72px;
	padding-block: 36px;
	border-top: 1px solid var(--pep-border);
	background: var(--pep-soft);
}

.pep-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.pep-footer-inner p {
	margin: 0;
	color: var(--pep-muted);
	font-size: 0.9rem;
}

.pep-footer-nav ul {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pep-footer-nav a {
	color: var(--pep-muted);
	font-size: 0.9rem;
	text-decoration: none;
}

.screen-reader-text {
	position: absolute !important;
	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 {
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	overflow: visible;
	clip: auto;
	background: #fff;
	color: var(--pep-ink);
	font-weight: 700;
}

@media (max-width: 760px) {
	.pep-container {
		width: min(calc(100% - 28px), var(--pep-content));
	}

	.pep-header-inner,
	.pep-footer-inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 18px;
	}

	.pep-nav ul,
	.pep-footer-nav ul {
		flex-wrap: wrap;
		gap: 12px 18px;
	}

	.pep-content {
		padding-block: 48px;
	}

	.pep-post-grid {
		grid-template-columns: 1fr;
	}
}
