/*
Theme Name: Vibe Coder
Author: MIB Tech
Description: A clean, fast, accessible one-column theme that stays out of the way, so full-width pages and custom sections look exactly as designed. No sidebars, no clutter, nothing to configure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
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: vibe-coder
Tags: blog, one-column, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

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

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

body {
	margin: 0;
	background: #fff;
	color: #1f2328;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.7;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1.6em 0 0.5em;
	line-height: 1.25;
}

h1 {
	font-size: 2.1rem;
}

h2 {
	font-size: 1.6rem;
}

h3 {
	font-size: 1.3rem;
}

p,
ul,
ol,
blockquote,
pre,
table,
figure {
	margin: 0 0 1.25em;
}

blockquote {
	padding-left: 1.25em;
	border-left: 4px solid #d0d7de;
	color: #57606a;
}

pre,
code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	padding: 1em;
	overflow: auto;
	background: #f6f8fa;
	border-radius: 6px;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.5em 0.75em;
	border: 1px solid #d0d7de;
	text-align: left;
}

a {
	color: #0b57d0;
}

a:hover {
	color: #08408f;
}

/* Links inside written content are underlined so colour is never the only cue. */
.entry-content a,
.comment-content a,
.archive-description a {
	text-decoration: underline;
}

/* Visible keyboard focus on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	max-width: 100%;
	padding: 0.5em 0.7em;
	border: 1px solid #6e7781;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	font: inherit;
}

button,
input[type="submit"] {
	padding: 0.55em 1.1em;
	border: 2px solid #0b57d0;
	border-radius: 4px;
	background: #0b57d0;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
	background: #08408f;
	border-color: #08408f;
}

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

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	overflow: visible;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: #0b57d0;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 0 0 3px #0b57d0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.site-main {
	padding: 2.5rem 0 4rem;
}

/* The main area is focusable only so the skip link can move focus there. */
.site-main:focus {
	outline: none;
}

/* Full width: used by pages that bring their own layout. */
.site-main--full {
	padding: 0;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
	border-bottom: 1px solid #d0d7de;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	max-width: 760px;
	min-height: 4.25rem;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

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

.site-title a:hover {
	text-decoration: underline;
}

.site-description {
	margin: 0.15rem 0 0;
	color: #57606a;
	font-size: 0.9rem;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.custom-logo {
	max-height: 56px;
	width: auto;
}

.menu-toggle {
	display: none;
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	display: inline-block;
	padding: 0.35rem 0;
	color: inherit;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	text-decoration: underline;
}

.main-navigation li {
	position: relative;
}

.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: -9999px;
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 12rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	background: #fff;
}

/*
 * Closed sub-menus are moved off-screen rather than hidden with display:none,
 * so keyboard users can Tab into them. They open on hover and whenever focus
 * is inside them.
 */
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	left: 0;
}

@media (max-width: 640px) {
	.menu-toggle {
		display: inline-block;
	}

	.main-navigation {
		width: 100%;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
	}

	.main-navigation.is-open ul {
		display: flex;
	}

	.main-navigation ul ul {
		position: static;
		min-width: 0;
		border: 0;
		padding: 0 0 0 1rem;
	}
}

/* ==========================================================================
   Entries
   ========================================================================== */
.entry {
	margin-bottom: 3rem;
}

.entry-title {
	margin: 0 0 0.4rem;
	font-size: 1.8rem;
}

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

.entry-title a:hover {
	text-decoration: underline;
}

.entry-meta,
.entry-footer {
	color: #57606a;
	font-size: 0.9rem;
}

.entry-meta > span + span::before {
	content: "\00b7";
	margin: 0 0.5em;
}

.entry-footer {
	margin-top: 1.5rem;
}

.post-thumbnail {
	display: block;
	margin: 1rem 0;
}

.page-title {
	margin-top: 0;
}

.archive-description {
	color: #57606a;
}

.entry-content > :first-child {
	margin-top: 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Sticky posts are visibly distinct. */
.sticky {
	padding: 1.25rem 1.5rem;
	border-left: 6px solid #0b57d0;
	background: #f6f8fa;
}

/* ==========================================================================
   Core alignment, captions and galleries (required classes)
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

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

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

.wp-caption-text,
.gallery-caption,
figcaption {
	color: #57606a;
	font-size: 0.875rem;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem;
}

.gallery-item {
	margin: 0;
}

.bypostauthor {
	/* Intentionally unstyled: marks comments written by the post author. */
	display: block;
}

/* ==========================================================================
   Pagination and navigation links
   ========================================================================== */
.post-navigation .nav-links,
.comments-pagination .nav-links,
.comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: space-between;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-start;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border: 1px solid #d0d7de;
	border-radius: 4px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: #0b57d0;
	border-color: #0b57d0;
	color: #fff;
}

.post-navigation {
	margin-top: 2rem;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
	margin-top: 3rem;
}

.comments-title {
	font-size: 1.3rem;
}

.comment-list,
.comment-list .children {
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 1.5rem;
}

.comment-body {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid #d0d7de;
	border-radius: 6px;
}

.comment-meta {
	font-size: 0.9rem;
	color: #57606a;
}

.comment-author .avatar {
	float: left;
	margin: 0 0.75rem 0.5rem 0;
	border-radius: 50%;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	padding: 1.5rem 0;
	border-top: 1px solid #d0d7de;
	color: #57606a;
	font-size: 0.9rem;
}

.site-footer p {
	margin: 0;
}

/* ==========================================================================
   Motion and print preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.comments-area,
	.post-navigation {
		display: none;
	}
}
