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

:root {
    --bg: #0f0f0f;
    --bg-elevated: #171717;
    --bg-card: #1a1a1a;
    --text: #fafafa;
    --text-secondary: #a1a1a1;
    --text-muted: #737373;
    --border: #262626;
    --border-light: #333;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.1);
    --success: #22c55e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
header {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.profile-text h1 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tagline {
    display: none;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: block;
}

.nav-item > a:hover,
.nav-item > a.active {
    color: var(--text);
    background: var(--bg-elevated);
}

.nav-item > a.on-air-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e8562a !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-item > a.on-air-link:hover {
    background: rgba(232, 86, 42, 0.08);
    color: #ff6b3d !important;
}

.on-air-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e8562a;
    display: inline-block;
    box-shadow: 0 0 6px 2px rgba(232, 86, 42, 0.6);
    animation: on-air-pulse 2s ease-in-out infinite;
}

@keyframes on-air-pulse {
    0%, 100% {
        box-shadow: 0 0 6px 2px rgba(232, 86, 42, 0.5);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 14px 6px rgba(232, 86, 42, 0.8);
        opacity: 0.85;
    }
}

.nav-item > a.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
}

.footer-links .linkedin-icon {
    width: 16px;
    height: 16px;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    min-width: 260px;
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 200;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.1s ease;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.dropdown a:first-child { border-radius: 12px 12px 0 0; }
.dropdown a:last-child { border-radius: 0 0 12px 12px; }

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.resume-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 0 64px;
    max-width: 800px;
}

.hero-banner {
    display: none;
}

.hero-intro {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    flex-shrink: 0;
}

.hero-headline {
    flex: 1;
}

.hero-name,
.hero-headline h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-tagline,
.hero-headline .role {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero .subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tag,
a.hero-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
}

a.hero-tag:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* Status indicator */
.status-available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== FEATURED SECTION ===== */
.featured {
    padding: 0 0 64px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title,
.featured-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.featured-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.featured-media {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
}

.featured-video {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-video {
    transform: scale(1.04);
}

.featured-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 12px;
}

.featured-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.featured-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.featured-info p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.featured-card:hover .featured-cta {
    gap: 10px;
}

/* ===== CATEGORIES / WORK AREAS ===== */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 80px;
}

.category-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.category-card img,
.category-card video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.3s ease;
}

.category-card:hover img,
.category-card:hover video {
    opacity: 1;
    transform: scale(1.04);
}

.category-info {
    padding: 16px 20px 20px;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.category-info p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ===== PAGE TITLE ===== */
.page-title {
    padding: 64px 0 48px;
    max-width: 600px;
}

.page-title h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.utility-blurb {
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ===== PORTFOLIO GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 80px;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.card img,
.card video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.3s ease;
}

.card:hover img,
.card:hover video {
    opacity: 1;
    transform: scale(1.04);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ===== PROJECT PAGE ===== */
.project-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 1.5rem 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

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

.project-header {
    margin-bottom: 32px;
}

.project-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.project-header .category-tag {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.15s;
}

.project-header .category-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Project content - description first, then media */
.project-content {
    margin-bottom: 40px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
    font-size: 1rem;
}

.project-content p:last-child {
    margin-bottom: 0;
}

.project-content ul {
    margin: 16px 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.project-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Project media gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow: hidden;
}

/* Lightbox trigger (shared: cards, galleries) */
.lightbox-trigger {
    padding: 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
}

.card .lightbox-trigger,
.category-card .lightbox-trigger {
    flex: 0 0 auto;
}

.project-gallery .lightbox-trigger {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.project-gallery .lightbox-trigger img,
.project-gallery .lightbox-trigger video {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    display: block;
    transition: transform 0.3s ease;
}

.project-gallery .lightbox-trigger:hover img,
.project-gallery .lightbox-trigger:hover video {
    transform: scale(1.04);
}

.project-gallery img,
.project-gallery video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
    background: var(--bg-card);
    transition: transform 0.3s ease;
}

.project-gallery img:hover,
.project-gallery video:hover {
    transform: scale(1.04);
}

/* Astro gallery (astro page) */
.astro-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 48px;
}

.astro-gallery-item {
    padding: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    display: block;
    text-align: left;
}

.astro-gallery-item:hover {
    border-color: var(--border-light);
}

.astro-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    transition: transform 0.3s ease;
}

.astro-gallery-item:hover img {
    transform: scale(1.04);
}

/* Global lightbox (all thumbnail pages) */
.lightbox,
.astro-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox[hidden],
.astro-lightbox[hidden] {
    display: none;
}

.lightbox-backdrop,
.astro-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img,
.astro-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
}

.lightbox-close,
.astro-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.astro-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .astro-gallery {
        grid-template-columns: 1fr;
    }
}

/* Steam store embed (project page) */
.steam-embed {
    margin-top: 24px;
    min-height: 190px;
}

.steam-embed iframe {
    max-width: 100%;
    display: block;
}

/* Single featured image (full width) */
.project-hero {
    margin-bottom: 32px;
}

.project-hero img,
.project-hero video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
}

/* Legacy layout support - can be removed later */
.project-layout {
    display: block;
    margin-bottom: 32px;
}

.project-media,
.project-body {
    display: contents;
}

.project-screenshot {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
    margin-bottom: 16px;
}

.project-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 48px 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-media {
        min-height: 280px;
    }
    
    .featured-video {
        min-height: 280px;
    }
    
    .featured-info {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }
    
    .header-content {
        height: 56px;
    }
    
    .main-nav {
        display: none;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 48px 0;
    }
    
    .hero-intro {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .hero-name,
    .hero-headline h1 {
        font-size: 1.75rem;
    }
    
    .hero .subtitle {
        text-align: center;
        font-size: 1rem;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .categories {
        grid-template-columns: 1fr;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-page {
        padding: 32px 1rem 64px;
    }
    
    .project-header h2 {
        font-size: 1.375rem;
    }
    
    .featured-info h3 {
        font-size: 1.375rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== BLOG LIST ===== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 80px;
}

.blog-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.blog-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.blog-card-image {
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    opacity: 1;
    transform: scale(1.04);
}

.blog-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card-meta time {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-card-tags,
.blog-post-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.blog-card-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap 0.15s;
}

.blog-card:hover .blog-card-cta {
    color: #60a5fa;
}

/* ===== BLOG POST ===== */
.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 1.5rem 80px;
}

.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-post-meta time {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-post-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.blog-post-tldr {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.blog-post-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
    padding-top: 8px;
}

.blog-post-body p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-post-body strong {
    color: var(--text);
    font-weight: 600;
}

.blog-post-body em {
    font-style: italic;
}

.blog-post-body code {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #e2e8f0;
}

.blog-post-body ul {
    margin: 0 0 24px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.blog-post-body li {
    margin-bottom: 12px;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.blog-figure {
    margin: 32px 0;
}

.blog-figure--hero {
    margin: 0 0 8px;
}

.blog-figure img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
    background: var(--bg-card);
}

.blog-figure--hero img {
    max-height: 480px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.blog-figure figcaption {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.blog-post-cta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.blog-cta-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-image img {
        min-height: 180px;
        max-height: 220px;
    }

    .blog-card-content {
        padding: 24px;
    }

    .blog-post {
        padding: 32px 1rem 64px;
    }

    .blog-post-header h1 {
        font-size: 1.625rem;
    }

    .blog-post-tldr {
        font-size: 1rem;
        padding: 16px 20px;
    }

    .blog-post-body h2 {
        font-size: 1.25rem;
    }

    .blog-figure--hero {
        margin: 0;
    }
}

/* Video in grid cards */
.category-card-video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
