/*
Theme Name: Brightline Ledger
Author: Calder Vale
Description: A mobile-first classic WordPress theme with a dark editorial layout, flexible menus, editable hero copy, and domain-specific prefixing for wordpress4themes.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: w4t-theme
*/

:root {
	--w4t-color-base: #141414;
	--w4t-color-surface: #212121;
	--w4t-color-panel: #323232;
	--w4t-color-text: #f3f3f3;
	--w4t-color-muted: #999999;
	--w4t-color-line: rgba(255, 255, 255, 0.12);
	--w4t-color-accent: #82ff1f;
	--w4t-color-hot: #ff6229;
	--w4t-font-main: Inter, Satoshi, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--w4t-font-display: Satoshi, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body.w4t-body {
	margin: 0;
	background: var(--w4t-color-base);
	color: var(--w4t-color-text);
	font-family: var(--w4t-font-main);
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0;
}

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

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

.w4t-site {
	min-height: 100vh;
	overflow: hidden;
	background:
		radial-gradient(circle at 15% 10%, rgba(130, 255, 31, 0.12), transparent 28rem),
		linear-gradient(180deg, #141414 0%, #191919 42%, #101010 100%);
}

.w4t-skip-link {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 999;
	padding: 0.7rem 1rem;
	background: var(--w4t-color-accent);
	color: #141414;
	transform: translateY(-160%);
}

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

.w4t-header-wrap {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 0.85rem 0;
	backdrop-filter: blur(18px);
}

.w4t-header,
.w4t-hero-inner,
.w4t-posts-section,
.w4t-footer-inner {
	width: min(1120px, calc(100% - 2rem));
	margin-inline: auto;
}

.w4t-header-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	padding: 0.55rem;
	border: 1px solid var(--w4t-color-line);
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.76);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.w4t-brand,
.w4t-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 700;
	line-height: 1;
}

.w4t-logo-mark {
	display: grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	background: var(--w4t-color-accent);
	color: #141414;
	font-size: 0.8rem;
	font-weight: 800;
}

.w4t-logo-image {
	width: auto;
	max-width: 9rem;
	max-height: 2.45rem;
	object-fit: contain;
}

.w4t-brand-text {
	max-width: 10rem;
	overflow: hidden;
	color: var(--w4t-color-text);
	font-size: 0.92rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w4t-menu-toggle {
	display: inline-grid;
	place-items: center;
	width: 2.7rem;
	height: 2.7rem;
	border: 1px solid var(--w4t-color-line);
	border-radius: 50%;
	background: transparent;
	color: var(--w4t-color-text);
	cursor: pointer;
}

.w4t-menu-toggle-line {
	display: block;
	width: 1rem;
	height: 2px;
	margin: 2px 0;
	background: currentColor;
}

.w4t-menu-toggle-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.w4t-primary-nav {
	position: absolute;
	inset: 4.5rem 1rem auto;
	display: none;
	padding: 1rem;
	border: 1px solid var(--w4t-color-line);
	border-radius: 8px;
	background: #181818;
}

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

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

.w4t-menu-item a,
.w4t-footer-menu a {
	display: block;
	padding: 0.7rem 0.75rem;
	border-radius: 999px;
	color: var(--w4t-color-muted);
	font-size: 0.92rem;
}

.w4t-menu-item a:hover,
.w4t-menu-item a:focus,
.w4t-footer-menu a:hover,
.w4t-footer-menu a:focus {
	color: var(--w4t-color-text);
	background: rgba(255, 255, 255, 0.07);
	outline: none;
}

.w4t-current-menu-item > a {
	color: var(--w4t-color-accent);
}

.w4t-header-cta,
.w4t-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.8rem;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background: var(--w4t-color-accent);
	color: #141414;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.w4t-header-cta {
	display: none;
}

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

.w4t-hero {
	padding: clamp(4rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem);
}

.w4t-hero-inner {
	display: grid;
	gap: 2rem;
}

.w4t-kicker {
	margin: 0 0 1rem;
	color: var(--w4t-color-accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.w4t-hero-title {
	max-width: 11ch;
	margin: 0;
	font-family: var(--w4t-font-display);
	font-size: clamp(3.2rem, 17vw, 8.7rem);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 0.88;
}

.w4t-hero-side {
	display: grid;
	align-content: end;
	gap: 1.35rem;
	max-width: 31rem;
}

.w4t-hero-summary {
	margin: 0;
	color: #e1e1e1;
	font-size: clamp(1rem, 4vw, 1.35rem);
	line-height: 1.35;
}

.w4t-posts-section {
	padding: 0 0 clamp(4rem, 10vw, 7rem);
}

.w4t-section-heading {
	display: grid;
	gap: 0.4rem;
	margin-bottom: 1.3rem;
}

.w4t-section-heading h2 {
	margin: 0;
	font-size: clamp(2rem, 8vw, 4.75rem);
	letter-spacing: 0;
	line-height: 0.95;
}

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

.w4t-post-card {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--w4t-color-line);
	border-radius: 8px;
	background: var(--w4t-color-surface);
}

.w4t-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #0f0f0f;
}

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

.w4t-card-placeholder {
	display: grid;
	place-items: center;
	background:
		linear-gradient(135deg, rgba(130, 255, 31, 0.22), transparent 45%),
		linear-gradient(315deg, rgba(255, 98, 41, 0.28), transparent 50%),
		#1c1c1c;
	color: var(--w4t-color-muted);
	font-size: 0.82rem;
	text-transform: uppercase;
}

.w4t-post-card:hover .w4t-card-image {
	transform: scale(1.04);
}

.w4t-card-content {
	display: grid;
	gap: 0.85rem;
	padding: 1.1rem;
}

.w4t-card-date,
.w4t-single-date {
	color: var(--w4t-color-muted);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.w4t-card-title {
	margin: 0;
	font-size: clamp(1.35rem, 6vw, 2.1rem);
	line-height: 1;
	letter-spacing: 0;
}

.w4t-card-excerpt {
	margin: 0;
	color: #d7d7d7;
}

.w4t-card-link,
.w4t-back-link,
.w4t-post-nav-item a {
	color: var(--w4t-color-accent);
	font-weight: 800;
}

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

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

.w4t-pagination a,
.w4t-pagination span {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--w4t-color-line);
	border-radius: 999px;
}

.w4t-pagination span {
	background: var(--w4t-color-accent);
	color: #141414;
	font-weight: 800;
}

.w4t-empty {
	padding: 2rem;
	border: 1px solid var(--w4t-color-line);
	border-radius: 8px;
	background: var(--w4t-color-surface);
}

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

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

.w4t-single {
	width: 80vw;
	margin: 0 auto;
	padding: clamp(4rem, 12vw, 8rem) 0 clamp(4rem, 10vw, 7rem);
}

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

.w4t-single-title {
	margin: 0;
	font-size: clamp(2.7rem, 12vw, 6.5rem);
	line-height: 0.95;
	letter-spacing: 0;
}

.w4t-single-content {
	color: #eeeeee;
	font-size: clamp(1.03rem, 3vw, 1.18rem);
}

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

.w4t-single-content a {
	color: var(--w4t-color-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.w4t-single-content h2,
.w4t-single-content h3,
.w4t-single-content h4 {
	margin-top: 2.2rem;
	color: var(--w4t-color-text);
	line-height: 1.05;
	letter-spacing: 0;
}

.w4t-single-content blockquote {
	margin-inline: 0;
	padding: 1.2rem;
	border-left: 4px solid var(--w4t-color-accent);
	background: rgba(255, 255, 255, 0.05);
}

.w4t-single-content pre,
.w4t-single-content code {
	border-radius: 6px;
	background: #0d0d0d;
	color: #f3f3f3;
}

.w4t-single-content pre {
	overflow-x: auto;
	padding: 1rem;
}

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

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

.w4t-post-nav-next {
	text-align: left;
}

.w4t-footer {
	border-top: 1px solid var(--w4t-color-line);
	background: #0f0f0f;
}

.w4t-footer-inner {
	display: grid;
	gap: 2rem;
	padding: clamp(3rem, 8vw, 5rem) 0 1.3rem;
}

.w4t-footer-note {
	max-width: 34rem;
	margin: 1rem 0 0;
	color: var(--w4t-color-muted);
}

.w4t-footer-widgets {
	display: grid;
	gap: 1rem;
}

.w4t-footer-column,
.w4t-widget {
	min-width: 0;
}

.w4t-widget-title {
	margin: 0 0 0.75rem;
	color: var(--w4t-color-text);
	font-size: 0.86rem;
	text-transform: uppercase;
}

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

.w4t-widget a {
	color: var(--w4t-color-muted);
}

.w4t-widget a:hover,
.w4t-widget a:focus {
	color: var(--w4t-color-accent);
}

.w4t-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1.3rem;
	border-top: 1px solid var(--w4t-color-line);
	color: var(--w4t-color-muted);
	font-size: 0.9rem;
}

.w4t-footer-bottom p {
	margin: 0;
}

.w4t-footer-bottom a {
	color: var(--w4t-color-text);
}

.w4t-search-form {
	display: grid;
	gap: 0.65rem;
}

.w4t-search-label {
	color: var(--w4t-color-muted);
	font-size: 0.9rem;
}

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

.w4t-search-input {
	width: 100%;
	min-height: 2.8rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--w4t-color-line);
	border-radius: 999px;
	background: #151515;
	color: var(--w4t-color-text);
}

.w4t-search-submit {
	min-height: 2.8rem;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--w4t-color-accent);
	color: #141414;
	font-weight: 800;
	cursor: pointer;
}

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

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

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

	.w4t-footer-widgets {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

	.w4t-primary-nav {
		position: static;
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
	}

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

	.w4t-menu-item a {
		padding: 0.65rem 0.8rem;
	}

	.w4t-header-cta {
		display: inline-flex;
	}

	.w4t-hero-inner {
		grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.65fr);
		align-items: end;
	}

	.w4t-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@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;
	}
}
