/*
Theme Name: Osama Shawky
Theme URI: https://osamashawky.com/
Author: Osama Shawky
Author URI: https://osamashawky.com/
Description: A bespoke WordPress theme for Osama Shawky — founder, operator and venture builder. The theme preserves the MARKET / MAKER visual system and includes the complete six-page site content, navigation, a working enquiry form and a one-click setup screen.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
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: osama-shawky
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, editor-style
*/

/*
 * The main visual system lives in assets/site.css so the original font paths
 * stay intact. This file contains theme metadata and WordPress-specific
 * additions that sit on top of the original design.
 */

/* -------------------------------------------------------------------------
 * Accessibility helpers
 * ---------------------------------------------------------------------- */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--purple);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 16px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}

.skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 100000;
}

/* Custom logo replaces the "OS" mark but keeps the same footprint. */
.logo-image {
	border-radius: 13px;
	display: block;
	height: 36px;
	object-fit: cover;
	width: 36px;
}

/* Keep the sticky navigation clear of the WordPress admin bar. */
.admin-bar .nav-shell {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .nav-shell {
		top: 46px;
	}
}

/* -------------------------------------------------------------------------
 * Contact form
 * ---------------------------------------------------------------------- */
.form-notice {
	border-radius: 16px;
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 22px;
	padding: 15px 18px;
}

.form-notice.success {
	background: #eefbf2;
	border: 1px solid #b9e8c8;
	color: #176b36;
}

.form-notice.error {
	background: #fff2f2;
	border: 1px solid #f0c2c2;
	color: #8a1f1f;
}

.form-notice a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.form-honeypot {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.form-note a {
	color: var(--purple);
	font-weight: 700;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * Blog / archive fallbacks
 * ---------------------------------------------------------------------- */
.entry-content {
	max-width: 820px;
}

.entry-content > * {
	margin-bottom: 1.15em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.5em;
}

.entry-content h2 {
	font-size: clamp(32px, 4vw, 48px);
}

.entry-content h3 {
	font-size: clamp(25px, 3vw, 34px);
}

.entry-content p,
.entry-content li,
.entry-content blockquote {
	color: #474747;
	font-size: 17px;
	line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content a {
	color: var(--purple);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content blockquote {
	border-left: 3px solid var(--purple);
	margin-left: 0;
	padding-left: 24px;
}

.entry-content img,
.entry-content iframe,
.entry-content video {
	height: auto;
	max-width: 100%;
}

.entry-content figure {
	margin: 2em 0;
}

.post-thumbnail {
	border-radius: 24px;
	display: block;
	margin-bottom: 36px;
	width: 100%;
}

.article-card h3 a:hover {
	color: var(--purple);
}

.post-nav {
	border-top: 1px solid var(--line);
	display: flex;
	gap: 28px;
	justify-content: space-between;
	margin-top: 54px;
	padding-top: 28px;
}

.post-nav a {
	color: var(--purple);
	font-size: 13px;
	font-weight: 700;
}

.post-nav .nav-next {
	margin-left: auto;
	text-align: right;
}

.search-form {
	display: flex;
	gap: 10px;
	margin: 24px 0 0;
	max-width: 560px;
}

.search-form input[type="search"] {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	flex: 1;
	min-width: 0;
	padding: 13px 20px;
}

.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	display: inline-flex;
	font-size: 13px;
	height: 40px;
	justify-content: center;
	min-width: 40px;
	padding: 0 12px;
	transition: 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--purple);
	border-color: var(--purple);
	color: #fff;
}

.archive-description p {
	color: var(--muted);
	font-size: 16px;
	margin-top: 14px;
}

/* -------------------------------------------------------------------------
 * Comments
 * ---------------------------------------------------------------------- */
.comments-area {
	margin-top: 56px;
	max-width: 820px;
}

.comments-title,
.comment-reply-title {
	font-size: clamp(26px, 3vw, 36px);
	margin-bottom: 24px;
}

.comment-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.comment-list .comment {
	border-top: 1px solid var(--line);
	padding: 24px 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 28px;
}

.comment-author {
	font-weight: 700;
}

.comment-metadata {
	color: var(--muted);
	font-size: 12px;
	margin: 4px 0 12px;
}

.comment-content {
	color: #474747;
	font-size: 15px;
}

.comment-respond {
	margin-top: 36px;
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-form label {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink);
	padding: 12px 14px;
	width: 100%;
}

.comment-form .submit {
	background: var(--purple);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	padding: 13px 22px;
}

/* -------------------------------------------------------------------------
 * Small WordPress content helpers
 * ---------------------------------------------------------------------- */
.alignleft {
	float: left;
	margin: 0 24px 18px 0;
}

.alignright {
	float: right;
	margin: 0 0 18px 24px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	color: var(--muted);
	font-size: 12px;
	margin-top: 8px;
}

.sticky {
	position: relative;
}

/* Slightly larger footer link hit areas on touch screens. */
@media (max-width: 720px) {
	.footer-col a {
		padding: 4px 0;
	}
}
