/*
Theme Name: Quiet Meridian
Author: Rowan Vale
Description: A light, portfolio-inspired classic WordPress theme with editable content, responsive navigation, and flexible publishing templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: w3t-theme
*/

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap");

:root {
	--w3t-color-background: #fbfbfb;
	--w3t-color-surface: #eef0f3;
	--w3t-color-primary: #002bba;
	--w3t-color-ink: #050505;
	--w3t-color-muted: rgba(5, 5, 5, 0.62);
	--w3t-color-line: rgba(0, 43, 186, 0.18);
	--w3t-font-serif: "Instrument Serif", Georgia, serif;
	--w3t-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body.w3t-body {
	margin: 0;
	background: var(--w3t-color-background);
	color: var(--w3t-color-ink);
	font-family: var(--w3t-font-sans);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
}

body.w3t-body a {
	color: inherit;
	text-decoration: none;
}

body.w3t-body img {
	display: block;
	max-width: 100%;
	height: auto;
}

.w3t-site {
	min-height: 100vh;
	background:
		linear-gradient(180deg, rgba(238, 240, 243, 0.55), rgba(251, 251, 251, 0) 28rem),
		var(--w3t-color-background);
}

.w3t-skip-link {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 999;
	padding: 0.72rem 1rem;
	border-radius: 999px;
	background: var(--w3t-color-primary);
	color: #ffffff;
	transform: translateY(-160%);
}

.w3t-skip-link:focus {
	transform: translateY(0);
}

.w3t-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 1rem 0;
	background: rgba(251, 251, 251, 0.82);
	backdrop-filter: blur(14px);
}

.w3t-header-inner,
.w3t-intro-inner,
.w3t-posts-section,
.w3t-about,
.w3t-footer-inner {
	width: min(1800px, calc(100% - 1.5rem));
	margin-inline: auto;
}

.w3t-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.w3t-brand,
.w3t-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.w3t-logo-mark {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--w3t-color-primary);
	color: #ffffff;
	font-family: var(--w3t-font-serif);
	font-size: 1.05rem;
	line-height: 1;
}

.w3t-logo-image {
	width: auto;
	max-width: 10rem;
	max-height: 3rem;
	object-fit: contain;
}

.w3t-primary-nav {
	position: absolute;
	inset: 4.6rem 0.75rem auto;
	display: none;
	padding: 0.6rem;
	border: 1px solid var(--w3t-color-line);
	border-radius: 22px;
	background: var(--w3t-color-background);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.w3t-primary-nav.w3t-nav-open {
	display: block;
}

.w3t-menu-list,
.w3t-footer-menu {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.w3t-menu-item a,
.w3t-footer-menu a {
	display: block;
	padding: 0.76rem 1.05rem;
	border-radius: 999px;
	background: var(--w3t-color-surface);
	color: var(--w3t-color-ink);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
}

.w3t-menu-item a:hover,
.w3t-menu-item a:focus,
.w3t-footer-menu a:hover,
.w3t-footer-menu a:focus {
	background: var(--w3t-color-primary);
	color: #ffffff;
	outline: none;
}

.w3t-current-menu-item > a {
	background: var(--w3t-color-primary);
	color: #ffffff;
}

.w3t-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	min-height: 3rem;
	padding: 0 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--w3t-color-surface);
	color: var(--w3t-color-ink);
	font: inherit;
	cursor: pointer;
}

.w3t-menu-dot {
	width: 0.34rem;
	height: 0.34rem;
	border-radius: 50%;
	background: currentColor;
}

.w3t-menu-toggle-text {
	margin-right: 0.25rem;
}

.w3t-main {
	min-height: 64vh;
}

.w3t-intro {
	padding: clamp(4rem, 11vw, 9rem) 0 clamp(2rem, 6vw, 5rem);
}

.w3t-intro-inner {
	display: grid;
	gap: clamp(2rem, 7vw, 5rem);
}

.w3t-hero-copy {
	display: grid;
	gap: 1.25rem;
}

.w3t-hero-title {
	max-width: 16ch;
	margin: 0;
	color: var(--w3t-color-ink);
	font-family: var(--w3t-font-sans);
	font-size: clamp(2.7rem, 9vw, 6.9rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
}

.w3t-hero-summary {
	max-width: 42rem;
	margin: 0;
	color: var(--w3t-color-muted);
	font-size: clamp(1rem, 2.6vw, 1.22rem);
}

.w3t-hero-button,
.w3t-footer-email,
.w3t-back-link,
.w3t-post-nav-item a {
	color: var(--w3t-color-primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.24em;
}

.w3t-service-cloud {
	position: relative;
	min-height: 16rem;
	border-radius: 24px;
	background: var(--w3t-color-surface);
}

.w3t-service-cloud span,
.w3t-service-cloud strong {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.8rem 1.1rem;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.w3t-service-cloud span:nth-child(1) {
	top: 16%;
	left: 7%;
}

.w3t-service-cloud span:nth-child(2) {
	top: 34%;
	right: 8%;
}

.w3t-service-cloud span:nth-child(3) {
	bottom: 23%;
	left: 12%;
}

.w3t-service-cloud span:nth-child(4) {
	bottom: 10%;
	right: 16%;
}

.w3t-service-cloud span:nth-child(5) {
	top: 7%;
	right: 28%;
}

.w3t-service-cloud strong {
	left: 50%;
	top: 50%;
	background: var(--w3t-color-primary);
	color: #ffffff;
	transform: translate(-50%, -50%);
}

.w3t-home-blocks {
	padding: 1rem;
	border-radius: 24px;
	background: var(--w3t-color-surface);
}

.w3t-large-signature {
	width: min(1800px, calc(100% - 1.5rem));
	margin: clamp(3rem, 8vw, 5rem) auto 0;
	overflow: hidden;
	color: var(--w3t-color-primary);
	font-family: var(--w3t-font-serif);
	font-size: clamp(4rem, 19vw, 20rem);
	line-height: 0.82;
	white-space: nowrap;
}

.w3t-posts-section,
.w3t-about {
	padding: clamp(2.5rem, 7vw, 5rem) 0;
	border-top: 1px solid var(--w3t-color-primary);
}

.w3t-section-heading {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
	color: var(--w3t-color-primary);
}

.w3t-section-mark {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1;
}

.w3t-section-heading h2 {
	margin: 0;
	font-size: clamp(1.4rem, 5vw, 2.6rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
}

.w3t-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.w3t-post-card {
	display: grid;
	gap: 0.85rem;
}

.w3t-card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 6 / 5;
	border-radius: 5px;
	background: var(--w3t-color-surface);
}

.w3t-card-image,
.w3t-card-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.w3t-card-placeholder {
	display: grid;
	place-items: center;
	background:
		linear-gradient(135deg, rgba(0, 43, 186, 0.18), transparent 50%),
		var(--w3t-color-surface);
	color: var(--w3t-color-primary);
	font-family: var(--w3t-font-serif);
	font-size: clamp(1.6rem, 7vw, 4rem);
}

.w3t-post-card:hover .w3t-card-image {
	transform: scale(1.035);
}

.w3t-card-bottom {
	display: grid;
	gap: 0.7rem;
}

.w3t-card-title {
	margin: 0;
	font-size: clamp(1.35rem, 4.5vw, 2.7rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
}

.w3t-card-excerpt {
	margin: 0.45rem 0 0;
	color: var(--w3t-color-muted);
}

.w3t-card-date,
.w3t-single-date {
	color: var(--w3t-color-muted);
	font-size: 0.86rem;
	font-weight: 600;
}

.w3t-pagination {
	margin-top: 2rem;
}

.w3t-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.w3t-pagination a,
.w3t-pagination span {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.6rem 0.85rem;
	border-radius: 999px;
	background: var(--w3t-color-surface);
}

.w3t-pagination span {
	background: var(--w3t-color-primary);
	color: #ffffff;
}

.w3t-empty {
	padding: 1.4rem;
	border-radius: 20px;
	background: var(--w3t-color-surface);
}

.w3t-empty h2,
.w3t-empty p {
	margin: 0;
}

.w3t-empty p {
	margin-top: 0.5rem;
	color: var(--w3t-color-muted);
}

.w3t-about {
	display: grid;
	gap: 1rem;
}

.w3t-about-text {
	max-width: 48rem;
	margin: 0;
	color: var(--w3t-color-muted);
	font-size: clamp(1.2rem, 3.2vw, 2rem);
	line-height: 1.25;
}

.w3t-single {
	width: 80vw;
	margin: 0 auto;
	padding: clamp(4rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
}

.w3t-single-header {
	display: grid;
	gap: 1rem;
	margin-bottom: clamp(2rem, 6vw, 4rem);
}

.w3t-single-title {
	margin: 0;
	font-size: clamp(2.8rem, 11vw, 8rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 0.95;
}

.w3t-single-content {
	color: var(--w3t-color-ink);
	font-size: clamp(1.03rem, 2.4vw, 1.22rem);
}

.w3t-single-content > * {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.w3t-single-content a {
	color: var(--w3t-color-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.w3t-single-content h2,
.w3t-single-content h3,
.w3t-single-content h4 {
	margin-top: 2.2rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.05;
}

.w3t-single-content blockquote {
	margin-inline: 0;
	padding: 1.25rem;
	border-left: 4px solid var(--w3t-color-primary);
	background: var(--w3t-color-surface);
}

.w3t-single-content pre {
	overflow-x: auto;
	padding: 1rem;
	border-radius: 10px;
	background: var(--w3t-color-surface);
}

.w3t-single-content code {
	border-radius: 5px;
	background: var(--w3t-color-surface);
}

.w3t-page-links,
.w3t-post-nav {
	display: grid;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--w3t-color-line);
}

.w3t-footer {
	background: var(--w3t-color-primary);
	color: #ffffff;
}

.w3t-footer-inner {
	display: grid;
	gap: clamp(2rem, 6vw, 4rem);
	padding: clamp(3rem, 9vw, 6rem) 0 1.5rem;
}

.w3t-footer-cta {
	display: grid;
	gap: 0.85rem;
}

.w3t-footer-title {
	max-width: 12ch;
	margin: 0;
	font-family: var(--w3t-font-serif);
	font-size: clamp(4rem, 18vw, 17rem);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 0.86;
}

.w3t-footer-text {
	max-width: 40rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1rem, 2.6vw, 1.2rem);
}

.w3t-footer-email {
	color: #ffffff;
}

.w3t-footer-widgets {
	display: grid;
	gap: 1.5rem;
}

.w3t-widget-title {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
}

.w3t-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.w3t-widget a {
	color: rgba(255, 255, 255, 0.82);
}

.w3t-widget a:hover,
.w3t-widget a:focus {
	color: #ffffff;
}

.w3t-footer-menu a {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.w3t-search-form {
	display: grid;
	gap: 0.6rem;
}

.w3t-search-label {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
}

.w3t-search-row {
	display: flex;
	gap: 0.5rem;
}

.w3t-search-input {
	width: 100%;
	min-height: 2.9rem;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.w3t-search-input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.w3t-search-submit {
	min-height: 2.9rem;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: var(--w3t-color-primary);
	font-weight: 700;
	cursor: pointer;
}

.w3t-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.w3t-footer-bottom .w3t-logo-mark {
	background: #ffffff;
	color: var(--w3t-color-primary);
}

.w3t-site-name,
.w3t-footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 760px) {
	.w3t-post-grid,
	.w3t-footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.w3t-card-bottom {
		grid-template-columns: 1fr auto;
		align-items: start;
	}

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

	.w3t-post-nav-next {
		text-align: right;
	}
}

@media (min-width: 900px) {
	.w3t-menu-toggle {
		display: none;
	}

	.w3t-primary-nav {
		position: static;
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.w3t-menu-list {
		flex-direction: row;
		align-items: center;
	}

	.w3t-intro-inner {
		grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.58fr);
		align-items: end;
	}
}

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

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