/*
Theme Name: Wireframe Blog
Theme URI: https://wordpress.org/
Author: Custom
Description: A clean two-column blog theme with a four-column footer, customizable colors, and widget-ready areas. Built with accessibility and security in mind.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wireframe-blog
Tags: blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments
*/

/* CSS variables — values overridden via Customizer (inline in wp_head) */
:root {
	--wb-bg: #f6f7f9;
	--wb-text: #1a1d21;
	--wb-muted: #5c6370;
	--wb-header-bg: #ffffff;
	--wb-footer-bg: #e8eaef;
	--wb-accent: #2563eb;
	--wb-accent-hover: #1d4ed8;
	--wb-border: #d1d5db;
	--wb-card: #ffffff;
	--wb-max-width: 1120px;
	--wb-sidebar: 300px;
	--wb-gap: 1.75rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wb-text);
	background-color: var(--wb-bg);
}

a {
	color: var(--wb-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--wb-accent-hover);
}

a:focus-visible {
	outline: 2px solid var(--wb-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 6px;
	top: 6px;
	z-index: 100000;
	padding: 0.5rem 1rem;
	background: var(--wb-accent);
	color: #fff;
	text-decoration: none;
}

/* Header */
.site-header {
	flex-shrink: 0;
	background: var(--wb-header-bg);
	border-bottom: 1px solid var(--wb-border);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
	max-width: var(--wb-max-width);
	margin: 0 auto;
	padding: 1rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wb-gap);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-branding .custom-logo-link {
	display: inline-flex;
	line-height: 0;
}

.site-branding .custom-logo {
	max-height: 48px;
	width: auto;
	height: auto;
}

.site-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
	color: var(--wb-accent);
}

.site-description {
	margin: 0.15rem 0 0;
	font-size: 0.875rem;
	color: var(--wb-muted);
}

/* Navigation */
.main-navigation {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	justify-content: flex-end;
	align-items: center;
}

.main-navigation a {
	display: block;
	padding: 0.35rem 0;
	color: var(--wb-text);
	text-decoration: none;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: var(--wb-accent);
}

.menu-toggle {
	display: none;
	padding: 0.5rem 0.75rem;
	background: var(--wb-card);
	border: 1px solid var(--wb-border);
	border-radius: 6px;
	font: inherit;
	cursor: pointer;
	color: var(--wb-text);
}

.menu-toggle:hover {
	border-color: var(--wb-accent);
}

@media (max-width: 782px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation.toggled ul {
		display: flex;
		flex-direction: column;
		width: 100%;
		padding-top: 0.75rem;
		border-top: 1px solid var(--wb-border);
		margin-top: 0.75rem;
	}

	.main-navigation:not(.toggled) ul {
		display: none;
	}
}

/* Layout */
.site-content-wrap {
	flex: 1 0 auto;
	max-width: var(--wb-max-width);
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
	display: grid;
	grid-template-columns: 1fr var(--wb-sidebar);
	gap: 2rem;
	align-items: start;
}

.site-content-wrap--no-sidebar {
	grid-template-columns: 1fr;
}

@media (max-width: 900px) {
	.site-content-wrap {
		grid-template-columns: 1fr;
	}
}

/* Posts */
.content-area {
	min-width: 0;
}

.post-list article,
.single .post {
	background: var(--wb-card);
	border: 1px solid var(--wb-border);
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.entry-header {
	margin-bottom: 0.75rem;
}

.entry-title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--wb-accent);
}

.entry-meta {
	font-size: 0.8125rem;
	color: var(--wb-muted);
}

.entry-meta a {
	color: var(--wb-muted);
}

.entry-meta a:hover {
	color: var(--wb-accent);
}

.post-thumbnail {
	margin: 0 0 1rem;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
}

.post-thumbnail img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.entry-summary,
.entry-content {
	margin-top: 0.75rem;
}

.entry-summary p:last-child,
.entry-content > *:last-child {
	margin-bottom: 0;
}

.read-more {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 600;
}

.pagination {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.pagination a,
.pagination span {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--wb-border);
	border-radius: 6px;
	background: var(--wb-card);
	text-decoration: none;
	color: var(--wb-text);
}

.pagination .current {
	border-color: var(--wb-accent);
	background: var(--wb-accent);
	color: #fff;
}

.pagination a:hover {
	border-color: var(--wb-accent);
	color: var(--wb-accent);
}

/* Sidebar */
.widget-area {
	background: var(--wb-card);
	border: 1px solid var(--wb-border);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.widget {
	margin: 0 0 1.5rem;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wb-muted);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--wb-border);
}

.widget li:last-child {
	border-bottom: none;
}

.widget a {
	text-decoration: none;
}

.widget a:hover {
	text-decoration: underline;
}

/* Footer */
.site-footer {
	flex-shrink: 0;
	background: var(--wb-footer-bg);
	border-top: 1px solid var(--wb-border);
	margin-top: auto;
	padding: 2.5rem 1.25rem 2rem;
}

.footer-widgets-inner {
	max-width: var(--wb-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

@media (max-width: 900px) {
	.footer-widgets-inner {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.footer-widgets-inner {
		grid-template-columns: 1fr;
	}
}

.footer-widgets .widget {
	margin-bottom: 0;
}

.footer-widgets .widget-title {
	color: var(--wb-text);
}

.site-info {
	max-width: var(--wb-max-width);
	margin: 2rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wb-border);
	text-align: center;
	font-size: 0.875rem;
	color: var(--wb-muted);
}

.site-info a {
	color: inherit;
}

.widget-placeholder {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wb-muted);
	line-height: 1.5;
}

.page-header {
	margin-bottom: 1.25rem;
}

.page-header .entry-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 600;
}

.archive-description {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--wb-muted);
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.75rem;
}

.search-form .search-field {
	flex: 1;
	min-width: 12rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wb-border);
	border-radius: 6px;
	font: inherit;
	background: var(--wb-card);
	color: var(--wb-text);
}

.search-form .search-submit {
	padding: 0.5rem 1rem;
	border: 1px solid var(--wb-border);
	border-radius: 6px;
	background: var(--wb-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--wb-accent-hover);
}

.post-navigation {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wb-border);
}

.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.post-navigation a {
	text-decoration: none;
	font-weight: 600;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wb-muted);
}

.entry-footer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wb-border);
	font-size: 0.875rem;
	color: var(--wb-muted);
}

.entry-footer .cat-links,
.entry-footer .tags-links {
	display: block;
	margin-bottom: 0.35rem;
}

/* Comments */
.comments-area {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wb-border);
}

.comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0.75rem 0 0 1rem;
	padding: 0;
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--wb-border);
}

.comments-title,
.comment-reply-title {
	font-size: 1.15rem;
	margin: 0 0 1rem;
}

/* Block editor alignment */
.alignwide {
	max-width: var(--wb-max-width);
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: 100%;
}
