/*!
	Theme Name: vkytra
	Theme URI: https://vilius.blog
	Description: Personal blog theme for Vilius Kytra — light Shopify-inspired design
	Author: Vilius Kytra
	Version: 1.0.0
	Requires at least: 5.0
	Tested up to: 6.5
	Requires PHP: 7.4
	License: GNU General Public License v3 or later
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: vkytra
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
	/* Surfaces */
	--bg:            #ffffff;
	--bg-subtle:     #fafafa;
	--bg-muted:      #f4f4f5;

	/* Text */
	--text:          #09090b;
	--text-muted:    #71717a;
	--text-subtle:   #a1a1aa;

	/* Borders */
	--border:        #e4e4e7;
	--border-subtle: #f4f4f5;

	/* Accent — light-mode Shopify green */
	--accent:        #18a07a;
	--accent-bg:     #f0fdf9;
	--focus:         #36f4a4;

	/* Typography */
	--font-display:  'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
	--font-body:     'Inter', Helvetica, Arial, sans-serif;
	--font-mono:     ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;

	/* Spacing (8px base) */
	--sp-1:  4px;
	--sp-2:  8px;
	--sp-3:  12px;
	--sp-4:  16px;
	--sp-5:  24px;
	--sp-6:  28px;
	--sp-7:  32px;
	--sp-8:  40px;
	--sp-9:  56px;
	--sp-10: 80px;

	/* Layout */
	--container:     1280px;
	--content-width: 700px;
	--nav-height:    64px;

	/* Border radius */
	--r-sm:   4px;
	--r:      8px;
	--r-lg:   12px;
	--r-pill: 9999px;

	/* Shadows — multi-layer, light adaptation */
	--shadow-card:
		0 0 0 1px rgba(0, 0, 0, 0.06),
		0 2px 2px rgba(0, 0, 0, 0.04),
		0 4px 4px rgba(0, 0, 0, 0.03),
		0 8px 8px rgba(0, 0, 0, 0.02);
	--shadow-card-hover:
		0 0 0 1px rgba(0, 0, 0, 0.09),
		0 4px 8px  rgba(0, 0, 0, 0.06),
		0 8px 16px rgba(0, 0, 0, 0.04);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	font-feature-settings: 'ss03';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.56;
}

img, video {
	max-width: 100%;
	height: auto;
	border-style: none;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 200ms ease;
}

a:hover {
	color: var(--text);
}

a:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
	border-radius: var(--r-sm);
}

p {
	margin: 0 0 1.1em;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 300;
	line-height: 1.1;
	color: var(--text);
	margin: 0 0 var(--sp-4);
	font-feature-settings: 'ss03';
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem);   font-weight: 300; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); font-weight: 360; }
h4 { font-size: 1.375rem; font-weight: 400; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem;     font-weight: 500; }

blockquote {
	margin: var(--sp-7) 0;
	padding: var(--sp-5) var(--sp-7);
	border-left: 2px solid var(--accent);
	background: var(--accent-bg);
	border-radius: 0 var(--r) var(--r) 0;
	color: var(--text-muted);
	font-size: 1.1em;
	font-style: italic;
}

blockquote cite {
	display: block;
	margin-top: var(--sp-3);
	font-size: 0.875em;
	font-style: normal;
	color: var(--text-subtle);
}

code, kbd, samp {
	font-family: var(--font-mono);
	font-size: 0.875em;
	background: var(--bg-muted);
	padding: 2px 6px;
	border-radius: var(--r-sm);
}

pre {
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: var(--sp-5);
	overflow-x: auto;
	margin: var(--sp-7) 0;
}

pre code {
	background: none;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: var(--sp-8) 0;
}

ul, ol {
	padding-left: var(--sp-6);
	margin: 0 0 1.1em;
}

li {
	margin-bottom: var(--sp-2);
}

strong, b { font-weight: 600; }

small { font-size: 0.875em; }

sub, sup {
	font-size: 0.75em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
	margin-bottom: var(--sp-5);
}

table th,
table td {
	padding: var(--sp-3) var(--sp-4);
	border: 1px solid var(--border);
	text-align: left;
}

table th {
	background: var(--bg-subtle);
	font-weight: 500;
	font-family: var(--font-display);
}

table tbody tr:nth-child(even) td {
	background: var(--bg-subtle);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--sp-10);
}

.content-container {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: var(--sp-5);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--nav-height);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 300ms ease, background 300ms ease;
}

.site-header.scrolled {
	border-bottom-color: var(--border);
}

.site-header .container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-5);
}

.site-branding a {
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: opacity 200ms ease;
}

.site-branding a:hover {
	opacity: 0.7;
	color: var(--text);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

/* wp_nav_menu outputs a <ul> — flatten it into the flex row */
.site-nav ul,
.site-nav ul li,
.site-nav ol,
.site-nav ol li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.site-nav a {
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-pill);
	letter-spacing: 0.01em;
	transition: color 200ms ease, background 200ms ease;
}

.site-nav a:hover {
	color: var(--text);
	background: var(--bg-muted);
}

.nav-social {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	margin-left: var(--sp-3);
}

.nav-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--r-pill);
	color: var(--text-muted);
	transition: color 200ms ease, background 200ms ease;
}

.nav-social a:hover {
	color: var(--text);
	background: var(--bg-muted);
}

.nav-social a svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Mobile nav */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	border-radius: var(--r);
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--text);
	transition: transform 300ms ease, opacity 300ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   HERO / HOME INTRO
   ============================================================ */
.home-hero {
	padding: var(--sp-10) 0 var(--sp-9);
	border-bottom: 1px solid var(--border);
}

.home-hero .container {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

.home-hero-label {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.home-hero h1 {
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	max-width: 18ch;
	line-height: 1.05;
	margin: 0;
}

.home-hero-desc {
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 50ch;
	margin: 0;
	line-height: 1.6;
}

/* ============================================================
   POST LISTING (HOME / ARCHIVE)
   ============================================================ */
.posts-section {
	padding: var(--sp-9) 0 var(--sp-10);
}

.posts-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--sp-7);
}

.posts-section-title {
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-subtle);
	margin: 0;
}

.posts-list {
	display: flex;
	flex-direction: column;
}

.post-card {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: var(--sp-4);
	padding: var(--sp-6) 0;
	border-top: 1px solid var(--border);
	text-decoration: none;
	color: inherit;
	transition: none;
}

.post-card:last-child {
	border-bottom: 1px solid var(--border);
}

.post-card:hover .post-card-title {
	color: var(--accent);
}

.post-card-meta {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-bottom: var(--sp-2);
}

.post-card-category {
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
	transition: opacity 200ms ease;
}

.post-card-category:hover {
	opacity: 0.7;
}

.post-card-date {
	font-size: 0.8125rem;
	color: var(--text-subtle);
}

.post-card-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--text);
	margin: 0 0 var(--sp-2);
	line-height: 1.3;
	letter-spacing: -0.01em;
	transition: color 200ms ease;
}

.post-card-excerpt {
	font-size: 0.9375rem;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card-arrow {
	color: var(--text-subtle);
	font-size: 1.25rem;
	line-height: 1;
	margin-top: 0.2em;
	transition: transform 200ms ease, color 200ms ease;
}

.post-card:hover .post-card-arrow {
	transform: translateX(3px);
	color: var(--accent);
}

/* Archive header */
.archive-header {
	padding: var(--sp-9) 0 var(--sp-7);
	border-bottom: 1px solid var(--border);
}

.archive-label {
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: var(--sp-3);
}

.archive-title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	margin: 0;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--sp-7) 0;
	border-top: 1px solid var(--border);
	margin-top: var(--sp-3);
}

.pagination a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--text-muted);
	padding: var(--sp-3) var(--sp-5);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	text-decoration: none;
	transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.pagination a:hover {
	color: var(--text);
	border-color: var(--text);
	background: var(--bg-subtle);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header {
	padding: var(--sp-9) 0 var(--sp-8);
}

.post-back {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-subtle);
	text-decoration: none;
	margin-bottom: var(--sp-7);
	transition: color 200ms ease;
}

.post-back:hover {
	color: var(--text);
}

.post-back svg {
	width: 16px;
	height: 16px;
}

.post-category-tag {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
	background: var(--accent-bg);
	padding: var(--sp-1) var(--sp-3);
	border-radius: var(--r-pill);
	text-decoration: none;
	margin-bottom: var(--sp-5);
	transition: opacity 200ms ease;
}

.post-category-tag:hover {
	opacity: 0.8;
}

.post-title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 300;
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 0 0 var(--sp-5);
	max-width: 20ch;
}

.post-dateline {
	font-size: 0.875rem;
	color: var(--text-subtle);
}

/* Post body */
.post-body {
	padding-bottom: var(--sp-10);
}

.post-body .entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--text);
}

.post-body .entry-content > * + * {
	margin-top: 1.5em;
}

.post-body .entry-content p {
	margin: 0 0 1.4em;
}

.post-body .entry-content p:last-child {
	margin-bottom: 0;
}

.post-body .entry-content h2 {
	font-size: 1.625rem;
	font-weight: 400;
	margin-top: 2.5em;
	margin-bottom: 0.75em;
}

.post-body .entry-content h3 {
	font-size: 1.25rem;
	font-weight: 500;
	margin-top: 2em;
	margin-bottom: 0.5em;
}

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

.post-body .entry-content a:hover {
	color: var(--text);
}

.post-body .entry-content img {
	border-radius: var(--r);
	box-shadow: var(--shadow-card);
}

/* Post footer — tags + share */
.post-footer {
	padding: var(--sp-7) 0 var(--sp-10);
	border-top: 1px solid var(--border);
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-bottom: var(--sp-5);
}

.post-tags .tag-links {
	font-size: 0.8125rem;
	color: var(--text-subtle);
}

.post-tags a {
	display: inline-block;
	font-size: 0.8125rem;
	color: var(--text-muted);
	background: var(--bg-muted);
	padding: var(--sp-1) var(--sp-3);
	border-radius: var(--r-pill);
	text-decoration: none;
	transition: color 200ms ease, background 200ms ease;
}

.post-tags a:hover {
	color: var(--text);
	background: var(--border);
}

/* Comments */
.comments-area {
	padding: var(--sp-8) 0 var(--sp-10);
	border-top: 1px solid var(--border);
}

.comments-area .comment-list {
	list-style: none;
	padding: 0;
	margin: var(--sp-7) 0;
}

.comment-body {
	padding: var(--sp-5) 0;
	border-bottom: 1px solid var(--border-subtle);
}

.comment-author {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.9375rem;
}

.comment-meta {
	font-size: 0.8125rem;
	color: var(--text-subtle);
	margin-bottom: var(--sp-3);
}

/* Comment form */
.comment-form label {
	display: block;
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: var(--sp-2);
	color: var(--text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: var(--sp-3) var(--sp-4);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 200ms ease;
	-webkit-appearance: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(24, 160, 122, 0.15);
}

.comment-form textarea {
	resize: vertical;
	min-height: 140px;
}

.comment-form .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	background: var(--text);
	color: var(--bg);
	border: 2px solid transparent;
	border-radius: var(--r-pill);
	padding: 10px 24px;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 200ms ease;
}

.comment-form .form-submit input[type="submit"]:hover {
	opacity: 0.8;
}

.comment-form .form-submit input[type="submit"]:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

/* ============================================================
   PAGE / 404
   ============================================================ */
.page-content {
	padding: var(--sp-9) 0 var(--sp-10);
}

.not-found-section {
	padding: var(--sp-10) 0;
	text-align: center;
}

.not-found-section h1 {
	font-size: clamp(4rem, 12vw, 9rem);
	font-weight: 300;
	color: var(--bg-muted);
	line-height: 1;
	margin-bottom: 0;
}

.not-found-section h2 {
	font-size: 1.5rem;
	font-weight: 400;
	margin-bottom: var(--sp-4);
}

.not-found-section p {
	color: var(--text-muted);
	max-width: 40ch;
	margin-inline: auto;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	background: var(--text);
	color: var(--bg);
	border: 2px solid transparent;
	border-radius: var(--r-pill);
	padding: 12px 26px 12px 20px;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 200ms ease;
}

.btn:hover {
	opacity: 0.8;
	color: var(--bg);
}

.btn:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--border);
}

.btn-ghost:hover {
	border-color: var(--text);
	background: var(--bg-subtle);
	color: var(--text);
	opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--bg-subtle);
	padding: var(--sp-9) 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--sp-8);
	padding-bottom: var(--sp-8);
	border-bottom: 1px solid var(--border);
	margin-bottom: var(--sp-7);
}

.footer-brand p {
	font-size: 0.9375rem;
	color: var(--text-muted);
	max-width: 32ch;
	margin-top: var(--sp-3);
}

.footer-brand .site-name {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.footer-col-title {
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-subtle);
	margin-bottom: var(--sp-4);
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.footer-links a {
	font-size: 0.9375rem;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 200ms ease;
}

.footer-links a:hover {
	color: var(--text);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
}

.footer-copy {
	font-size: 0.8125rem;
	color: var(--text-subtle);
}

.footer-social {
	display: flex;
	gap: var(--sp-3);
}

.footer-social a {
	font-size: 0.8125rem;
	color: var(--text-subtle);
	text-decoration: none;
	transition: color 200ms ease;
}

.footer-social a:hover {
	color: var(--text);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-section {
	padding: var(--sp-9) 0 var(--sp-10);
}

.search-form {
	display: flex;
	gap: var(--sp-3);
	margin-bottom: var(--sp-8);
}

.search-form input[type="search"] {
	flex: 1;
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: var(--sp-3) var(--sp-4);
	font-family: var(--font-body);
	font-size: 1rem;
	-webkit-appearance: none;
	transition: border-color 200ms ease;
}

.search-form input:focus {
	outline: none;
	border-color: var(--accent);
}

/* ============================================================
   BEFORE/AFTER COMPONENT (existing shortcode)
   ============================================================ */
.container-ba {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	cursor: pointer;
	border-radius: var(--r);
	margin: var(--sp-7) 0;
}

.container-ba img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.container {
		padding-inline: var(--sp-7);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 17px;
	}

	.container {
		padding-inline: var(--sp-5);
	}

	/*
	 * Remove backdrop-filter + z-index from the header on mobile.
	 * backdrop-filter creates a new stacking context that traps the nav
	 * overlay inside it, preventing it from covering the full viewport.
	 */
	.site-header {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: var(--bg);
		z-index: auto;
	}

	.site-nav {
		display: none;
		position: fixed;
		inset: 0;
		background: var(--bg);
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: var(--sp-3);
		z-index: 9999;
	}

	.site-nav.open {
		display: flex;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: center;
		gap: var(--sp-3);
	}

	.site-nav a {
		font-size: 1.5rem;
		font-weight: 300;
		padding: var(--sp-3) var(--sp-5);
	}

	.nav-social {
		display: none;
	}

	/* Keep the X button above the overlay */
	.nav-toggle {
		display: flex;
		position: relative;
		z-index: 10000;
	}

	.post-title {
		max-width: none;
	}

	.home-hero {
		padding: var(--sp-8) 0 var(--sp-7);
	}

	.home-hero h1 {
		max-width: none;
	}

	.post-card {
		grid-template-columns: 1fr;
	}

	.post-card-arrow {
		display: none;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: var(--sp-7);
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.posts-section-header {
		flex-direction: column;
		gap: var(--sp-3);
	}
}

@media (max-width: 480px) {
	.container {
		padding-inline: var(--sp-4);
	}

	.home-hero {
		padding: var(--sp-7) 0 var(--sp-6);
	}
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0 var(--sp-5) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-5); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { margin-inline: calc(-1 * var(--sp-8)); }

.wp-caption {
	max-width: 100%;
	margin-bottom: var(--sp-5);
}

.wp-caption-text {
	font-size: 0.875rem;
	color: var(--text-subtle);
	margin-top: var(--sp-2);
	font-style: italic;
}

.sticky { /* WordPress sticky post — no special treatment */ }

.bypostauthor { /* no special treatment */ }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
