/*
Theme Name: O2O Soft Framework
Author: O2O Soft
Description: A lightweight, security-conscious WordPress framework optimized for Elementor and broad plugin compatibility.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: o2o-soft-framework
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--o2o-site-width: 1200px;
	--o2o-content-width: 860px;
	--o2o-gutter: 24px;
	--o2o-content-line-height: 1.75;
	--o2o-text: #1f2937;
	--o2o-muted: #6b7280;
	--o2o-border: #e5e7eb;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--o2o-text);
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img,
svg,
video,
canvas {
	max-width: 100%;
}

img {
	height: auto;
}

iframe {
	max-width: 100%;
}

.o2o-container {
	width: min(calc(100% - (var(--o2o-gutter) * 2)), var(--o2o-site-width));
	margin-inline: auto;
}

.o2o-content-container {
	width: min(calc(100% - (var(--o2o-gutter) * 2)), var(--o2o-content-width));
	margin-inline: auto;
}

.o2o-site-main {
	min-width: 0;
}

.o2o-site-header,
.o2o-site-footer {
	border-color: var(--o2o-border);
}

.o2o-site-header {
	border-bottom: 1px solid var(--o2o-border);
}

.o2o-site-footer {
	border-top: 1px solid var(--o2o-border);
}

.o2o-header-inner,
.o2o-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 64px;
}

.o2o-site-title,
.o2o-site-description,
.o2o-entry-title,
.o2o-archive-title,
.o2o-post-title {
	margin: 0;
}

.o2o-site-title {
	font-size: 1.125rem;
	font-weight: 700;
}

.o2o-site-title a {
	color: inherit;
	text-decoration: none;
}

.o2o-site-description,
.o2o-entry-meta,
.o2o-footer-meta {
	color: var(--o2o-muted);
	font-size: 0.875rem;
}

.o2o-primary-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.o2o-primary-menu a {
	color: inherit;
	text-decoration: none;
}

.o2o-primary-menu a:hover,
.o2o-primary-menu a:focus-visible {
	text-decoration: underline;
}

.o2o-entry,
.o2o-archive,
.o2o-search,
.o2o-error-404 {
	padding-block: clamp(36px, 6vw, 80px);
}

.o2o-entry-header,
.o2o-archive-header {
	margin-bottom: 28px;
}

.o2o-entry-title,
.o2o-archive-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.15;
}

.o2o-entry-meta {
	margin-top: 10px;
}

.o2o-post-list {
	display: grid;
	gap: 24px;
}

.o2o-post-card {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--o2o-border);
}

.o2o-post-title {
	font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.o2o-post-title a {
	color: inherit;
	text-decoration: none;
}

.o2o-post-title a:hover,
.o2o-post-title a:focus-visible {
	text-decoration: underline;
}

.o2o-post-excerpt {
	margin-top: 10px;
}

.o2o-pagination {
	margin-top: 36px;
}

.o2o-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.o2o-pagination a,
.o2o-pagination span {
	padding: 8px 12px;
	border: 1px solid var(--o2o-border);
	text-decoration: none;
}

.screen-reader-text {
	position: absolute;
	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 {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: #111;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
	.o2o-header-inner,
	.o2o-footer-inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding-block: 16px;
	}
}

.o2o-featured-image {
	margin: 0 0 28px;
}

.o2o-comments {
	margin-top: 48px;
}

.o2o-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.o2o-search-form input,
.o2o-search-form button {
	font: inherit;
	padding: 10px 12px;
}
