/*
Theme Name: Monochrome Elegance
Theme URI: https://github.com/monochrome-elegance
Author: Monochrome Elegance Team
Author URI: https://zhangzhougang.cn
Description: A black and white elegant WordPress block theme featuring clean typography, minimalist design, and sophisticated monochrome aesthetics. Built for WordPress 6.9+ with full Site Editor support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monochrome-elegance
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, block-styles, wide-blocks, blog, portfolio, news
*/

/* ==========================================================================
   Monochrome Elegance - Black & White Elegant Theme
   ==========================================================================
*/

* {
	box-sizing: border-box;
}

html {
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Skip Link
   ==========================================================================
*/

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	z-index: 99999;
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	color: #ffffff;
	background-color: #000000;
	text-decoration: none;
	text-align: center;
	transition: top 0.3s ease;
}

.skip-link:focus {
	top: 10px;
	outline: 2px solid #111827;
	outline-offset: 2px;
}

/* ==========================================================================
   Screen Reader Text
   ==========================================================================
*/

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f9fafb;
	border-radius: 6px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #111827;
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   Hero Section
   ==========================================================================
*/

.wp-block-group.hero-section {
	padding: 6rem 0;
	background-color: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	text-align: center;
}

.hero-section h1 {
	font-size: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 1.25), 3.75rem);
	font-weight: 700;
	color: #111827;
	margin-bottom: 1.5rem;
}

.hero-section p {
	font-size: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.156), 1.25rem);
	color: #6b7280;
	max-width: 700px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}

/* ==========================================================================
   Feature Cards
   ==========================================================================
*/

.feature-card {
	background-color: #ffffff;
	padding: 2.5rem;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 1rem;
}

.feature-card p {
	color: #6b7280;
	line-height: 1.6;
}

/* ==========================================================================
   Post Cards
   ==========================================================================
*/

.post-card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	min-height: 420px;
}

.post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.post-card .post-card__content {
	padding: 1.5rem 2rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.post-card h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 0.75rem;
}

.post-card h3 a {
	color: #111827;
	text-decoration: none;
}

.post-card h3 a:hover {
	color: #000000;
	text-decoration: underline;
}

.post-card p {
	color: #6b7280;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.post-card .read-more {
	display: inline-block;
	padding: 0.5rem 1rem;
	background-color: #000000;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.post-card .read-more:hover {
	background-color: #1a1a1a;
	color: #ffffff;
}

.post-card .wp-block-post-date {
	margin-top: auto;
}

/* ==========================================================================
   Testimonial
   ==========================================================================
*/

.testimonial-section {
	background-color: #f9fafb;
	padding: 4rem;
	text-align: center;
	border-radius: 8px;
}

.testimonial-section blockquote {
	font-size: 1.25rem;
	line-height: 1.6;
	color: #374151;
	font-style: italic;
	margin: 0 0 1.5rem;
	border: none;
	padding: 0;
}

.testimonial-section cite {
	font-style: normal;
	font-weight: 600;
	color: #6b7280;
	font-size: 1rem;
}

/* ==========================================================================
   Section Backgrounds
   ==========================================================================
*/

.section-bg-light {
	background-color: #ffffff;
}

.section-bg-gray {
	background-color: #f9fafb;
}

.section-bg-dark {
	background-color: #111827;
	color: #f9fafb;
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4,
.section-bg-dark h5,
.section-bg-dark h6 {
	color: #f9fafb;
}

.section-bg-dark p {
	color: #d1d5db;
}

.section-bg-dark a {
	color: #ffffff;
}

/* ==========================================================================
   Responsive Adjustments
   ==========================================================================
*/

@media (max-width: 782px) {
	.hero-section {
		padding: 4rem 0;
	}

	.feature-card {
		padding: 1.5rem;
	}

	.testimonial-section {
		padding: 2.5rem;
	}
}

@media (max-width: 480px) {
	.hero-section {
		padding: 3rem 0;
	}

	.feature-card {
		padding: 1.25rem;
	}
}

/* ==========================================================================
   WordPress Alignments
   ==========================================================================
*/

.alignwide {
	margin-left: -80px;
	margin-right: -80px;
	max-width: unset;
	width: unset;
}

.alignfull {
	margin-left: calc(-100vw / 2 + 100% / 2);
	margin-right: calc(-100vw / 2 + 100% / 2);
	max-width: unset;
	width: unset;
}

@media (max-width: 782px) {
	.alignwide {
		margin-left: -20px;
		margin-right: -20px;
	}
}

/* ==========================================================================
   Pagination
   ==========================================================================
*/

.wp-block-query-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding-top: 3rem;
}

.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #111827;
	text-decoration: none;
	transition: all 0.2s ease;
}

.wp-block-query-pagination .page-numbers:hover {
	background-color: #000000;
	border-color: #000000;
	color: #ffffff;
}

.wp-block-query-pagination .page-numbers.current {
	background-color: #000000;
	border-color: #000000;
	color: #ffffff;
}

/* ==========================================================================
   Comments
   ==========================================================================
*/

.wp-block-comments .comment-list {
	list-style: none;
	padding: 0;
}

.wp-block-comments .comment {
	border-bottom: 1px solid #e5e7eb;
	padding: 1.5rem 0;
}

.wp-block-comments .comment:last-child {
	border-bottom: none;
}

.wp-block-comments .comment-author {
	font-weight: 600;
	color: #111827;
}

.wp-block-comments .comment-content p {
	color: #374151;
	line-height: 1.6;
}

/* ==========================================================================
   Search Form
   ==========================================================================
*/

.wp-block-search .wp-block-search__input {
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	color: #111827;
	background-color: #ffffff;
}

.wp-block-search .wp-block-search__button {
	background-color: #000000;
	color: #ffffff;
	border: 2px solid #000000;
	border-radius: 4px;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wp-block-search .wp-block-search__button:hover {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
}

/* ==========================================================================
   Footer ICP
   ==========================================================================
*/

.footer-icp {
	text-align: center;
	margin-top: 1.5rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--gray-400, #9ca3af);
	display: flex;
	justify-content: center;
	gap: 1.5rem;
}

.footer-icp a {
	color: var(--wp--preset--color--gray-400, #9ca3af);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-icp a:hover {
	color: var(--wp--preset--color--gray-700, #374151);
	text-decoration: underline;
}
