/* NerdDevs Ghost theme — ported from the legacy WP nerddevs-custom-theme. */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Design tokens */
:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-accessible-400: #b8590c;
    --orange-accessible-500: #a0520b;
    --orange-accessible-600: #8f470a;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --gradient-primary: linear-gradient(to right, #fe3f4b, #f58220);
    --gradient-orange: linear-gradient(to right, #fb923c, #f97316);
    --gradient-hero: linear-gradient(to right, #ff8a00, #e52e71);
}

/* Base */
html { scroll-behavior: smooth; }

/* Allow Ghost admin's "Customize" font picker to override our defaults
   without losing the Inter fallback. --gh-font-* are set by Ghost. */
:root {
    --nd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --nd-font-heading: var(--nd-font-body);
}

body {
    font-family: var(--gh-font-body, var(--nd-font-body));
    font-display: swap;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.blog-title, .single-post-title, .post-title,
.related-posts-title, .footer-heading {
    font-family: var(--gh-font-heading, var(--nd-font-heading));
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

.text-gradient-primary {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 4rem 0; }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    gap: 0.5rem;
}
.btn-primary {
    background-color: var(--orange-accessible-500);
    color: white;
    border-color: var(--orange-accessible-500);
}
.btn-primary:hover {
    background-color: var(--orange-accessible-600);
    border-color: var(--orange-accessible-600);
    color: white;
}
.btn-secondary {
    background-color: var(--gray-900);
    color: white;
    border-color: var(--gray-900);
}
.btn-secondary:hover {
    background-color: var(--gray-800);
    border-color: var(--gray-800);
    color: white;
}

/* Badge pill */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--orange-200);
    color: var(--orange-accessible-400);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    text-decoration: none;
}

/* Card */
.card {
    background-color: white;
    border-radius: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    padding: 2rem;
}
@media (min-width: 1024px) { .card { padding: 3rem; } }

/* Site header — floating glass pill */
.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    max-width: 80rem;
    width: calc(100% - 2rem);
}
.site-header .container { padding: 0 1rem; }

.site-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}
@media (min-width: 1024px) { .site-navigation { height: 5rem; } }

.site-logo img { height: 2rem; width: auto; }
@media (min-width: 1024px) { .site-logo img { height: 2.5rem; } }

.desktop-menu { display: none; }
.header-cta   { display: none; }
@media (min-width: 1024px) {
    .desktop-menu { display: block; }
    .header-cta   { display: block; }
}

.main-menu li { white-space: nowrap; }

.main-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}
.main-menu a:hover { color: #d97914; }
.main-menu a.current { color: #f58220; }

/* Mobile nav */
.mobile-menu-toggle { display: block; }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
    transition: all 0.2s ease-in-out;
}
.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: var(--gray-700);
    transition: all 0.2s ease-in-out;
    border-radius: 1px;
}
.mobile-menu-button:hover .hamburger-line { background-color: var(--orange-accessible-500); }
.mobile-menu-button.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-button.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-button.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.mobile-menu.is-open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.mobile-menu-content { padding: 1rem; }
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-menu-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    font-size: 1rem;
}
.mobile-menu-list a:hover { background-color: var(--orange-50); color: #d97914; }
.mobile-menu-list a.current { background-color: var(--orange-50); color: #f58220; }
.mobile-menu-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}
.mobile-menu-cta .btn { width: 100%; justify-content: center; }

/* Main content */
.site-main {
    margin-top: 6rem;
    min-height: calc(100vh - 6rem);
    padding-bottom: 4rem;
}

/* Blog index header */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) { .blog-container { padding: 0 1.5rem; } }

.blog-header {
    text-align: center;
    padding: 4rem 0 3rem;
    background: linear-gradient(to bottom right, var(--gray-50), white, var(--orange-50));
    border-radius: 1.5rem;
    margin-bottom: 1rem;
}
.blog-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
@media (max-width: 768px) { .blog-title { font-size: 2.25rem; } }

.blog-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto;
}

.author-header-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}
.author-location, .author-website {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.author-website a { color: var(--orange-accessible-500); text-decoration: none; }
.author-website a:hover { text-decoration: underline; }

/* Posts grid (3-up, responsive) */
.posts-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}
@media (min-width: 768px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* Post card */
.post-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0,0,0,0.1);
    border-color: var(--orange-200);
}

.post-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--gray-100);
}
.post-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.post-card:hover .post-featured-image { transform: scale(1.04); }

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-category {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background-color: var(--orange-100);
    color: var(--orange-accessible-500);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.post-category:hover {
    background-color: var(--orange-accessible-500);
    color: white;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.post-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.post-title a:hover { color: var(--orange-accessible-500); }

.post-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: auto;
    padding-top: 0.5rem;
}
.post-meta-date,
.post-meta-author,
.post-meta-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.post-meta svg { color: var(--gray-400); }

.post-read-more {
    margin-top: 1rem;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    align-self: flex-start;
}

/* Single post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
}
.single-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}
@media (max-width: 768px) { .single-post-title { font-size: 2rem; } }

.single-post-lede {
    color: var(--gray-600);
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0 auto 1.5rem;
    max-width: 700px;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--gray-600);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}
.meta-item svg { color: var(--gray-400); }

.single-post-featured-image-wrapper {
    margin: 0 auto 3rem;
    max-width: 100%;
}
.single-post-featured-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 1rem;
}
.wp-caption-text,
.kg-card figcaption {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

/* Post body typography */
.single-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-800);
}
.single-post-content > * + * { margin-top: 1.25rem; }

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}
.single-post-content h2 { font-size: 2rem; }
.single-post-content h3 { font-size: 1.5rem; }
.single-post-content h4 { font-size: 1.25rem; }

.single-post-content p { margin-bottom: 1.5rem; }
.single-post-content a {
    color: var(--orange-accessible-500);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.single-post-content a:hover { color: var(--orange-accessible-600); }

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 1.5rem;
    padding-left: 2rem;
}
.single-post-content li { margin-bottom: 0.5rem; }

.single-post-content blockquote {
    border-left: 4px solid var(--orange-accessible-500);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-700);
    background-color: var(--gray-50);
    border-radius: 0 0.5rem 0.5rem 0;
}

.single-post-content code {
    background-color: var(--gray-100);
    color: var(--gray-800);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.single-post-content pre {
    background-color: var(--gray-900);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}
.single-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.single-post-content img,
.single-post-content figure {
    margin: 2rem 0;
    max-width: 100%;
    border-radius: 0.5rem;
}
.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}
.single-post-content th,
.single-post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    text-align: left;
}
.single-post-content th { background-color: var(--gray-50); font-weight: 600; }

/* Ghost-specific cards */
.kg-card { margin: 2rem 0; }
.kg-image-card img { border-radius: 0.5rem; }

/* Ghost wide / full-width image cards (required by gscan) */
.kg-width-wide,
.kg-card.kg-width-wide {
    max-width: 1100px;
    margin-left: 50%;
    transform: translateX(-50%);
    width: 90vw;
}
.kg-width-full,
.kg-card.kg-width-full {
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    width: 100vw;
}
.kg-width-wide img,
.kg-width-full img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.kg-width-full img { border-radius: 0; }
.kg-bookmark-card {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
}
.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}
.kg-bookmark-content { padding: 1rem; flex: 1; }
.kg-bookmark-title { font-weight: 600; margin-bottom: 0.25rem; color: var(--gray-900); }
.kg-bookmark-description { font-size: 0.875rem; color: var(--gray-600); }

/* Tags row */
.post-tags {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.post-tags h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-900);
}
.tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
}
.tag-link:hover {
    background-color: var(--orange-accessible-500);
    color: white;
}

/* Author bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--gray-50);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}
.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 1.5rem;
}
.author-info { flex: 1; }
.author-name {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--gray-900);
}
.author-name a {
    color: inherit;
    text-decoration: none;
}
.author-name a:hover { color: var(--orange-accessible-500); }
.author-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Post navigation (prev/next) */
.post-navigation {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.nav-links { display: grid; gap: 1rem; }
@media (min-width: 768px) { .nav-links { grid-template-columns: 1fr 1fr; } }

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background-color: var(--gray-50);
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease-in-out;
}
.nav-previous:hover,
.nav-next:hover {
    background-color: white;
    border-color: var(--orange-accessible-500);
}
.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.nav-title {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
}
.nav-next { text-align: right; }

/* Related posts */
.related-posts {
    background-color: var(--gray-50);
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
}
.related-posts-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--gray-900);
}
.posts-grid--related { max-width: 1100px; margin: 2rem auto 0; }

/* Pagination */
.pagination-wrapper {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}
.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}
.pagination .page-item { margin: 0; }
.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.pagination a:hover {
    background-color: var(--orange-accessible-500);
    border-color: var(--orange-accessible-500);
    color: white;
}
.pagination .current {
    background-color: var(--orange-accessible-500);
    border-color: var(--orange-accessible-500);
    color: white;
}

/* Site footer */
.site-footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}
.footer-inner {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-tagline {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 320px;
}
.footer-heading {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease-in-out;
}
.footer-nav a:hover { color: var(--orange-300); }

.footer-contact p { margin-bottom: 1rem; }
.footer-contact a { color: var(--gray-300); text-decoration: none; }
.footer-contact a:hover { color: var(--orange-300); }
.footer-contact .btn { margin-top: 0.5rem; }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Utility */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.hidden      { display: none; }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}
.screen-reader-text:focus {
    background-color: var(--orange-accessible-500);
    border-radius: 4px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important;
    color: white;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto !important;
    left: 5px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    top: 5px;
    width: auto !important;
    z-index: 100000;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease-out backwards; }
.posts-grid .post-card:nth-child(2) { animation-delay: 0.05s; }
.posts-grid .post-card:nth-child(3) { animation-delay: 0.1s; }
.posts-grid .post-card:nth-child(4) { animation-delay: 0.15s; }
.posts-grid .post-card:nth-child(5) { animation-delay: 0.2s; }
.posts-grid .post-card:nth-child(6) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile responsive single post adjustments */
@media (max-width: 767px) {
    .single-post-meta { gap: 1rem; }
    .author-bio { flex-direction: column; text-align: center; }
    .nav-next { text-align: left; }
}
