/* Modern Dr. Data Scientist Theme */
:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    
    /* Spacing & Layout */
    --container-max-width: 1400px;
    --border-radius: 0.75rem;
    --border-radius-lg: 1.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Animations */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container System */
.container {
    max-width: var(--container-max-width) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (min-width: 1200px) {
    .container {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* Enhanced Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-rendering: optimizeLegibility;
}

/* Responsive Typography Scale */
h1 { 
    font-size: 3.5rem; 
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

h2 { 
    font-size: 2.75rem; 
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h3 { 
    font-size: 2.25rem; 
    font-weight: 600;
    line-height: 1.2;
}

h4 { 
    font-size: 1.875rem; 
    font-weight: 600;
}

h5 { 
    font-size: 1.5rem; 
    font-weight: 600;
}

h6 { 
    font-size: 1.25rem; 
    font-weight: 600;
}

/* Display Typography */
.display-1 { 
    font-size: 6rem; 
    font-weight: 900; 
    line-height: 1.05;
    letter-spacing: -0.08em;
}

.display-2 { 
    font-size: 5rem; 
    font-weight: 800; 
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.display-3 { 
    font-size: 4.5rem; 
    font-weight: 800; 
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.display-4 { 
    font-size: 4rem; 
    font-weight: 700; 
    line-height: 1.1;
    letter-spacing: -0.04em;
}

/* Body Text */
p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 75ch;
}

.lead {
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 65ch;
}

/* Text Alignment Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Centered Content Containers */
.content-center {
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

.content-center-narrow {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.content-center-wide {
    max-width: 90ch;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Header */
.modern-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.modern-header .navbar {
    padding: 1rem 0;
    background: transparent;
}

.modern-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.modern-header .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateY(-1px);
}

.modern-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.modern-header .navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section - Modern Design */
.modern-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Modern Buttons */
.btn, .btn-modern {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
}

.btn-modern-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-modern-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-modern-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--gray-200);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Code Blocks - Beautiful Syntax Highlighting */
.code-block-container {
    position: relative;
    margin: 2rem 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-900);
}

.code-block-header {
    background: var(--gray-800);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-700);
}

.code-block-language {
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-block-language::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
}

.code-copy-button {
    background: var(--gray-700);
    border: none;
    color: var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-copy-button:hover {
    background: var(--gray-600);
    color: white;
}

pre {
    margin: 1rem 0;
    padding: 1.5rem;
    background: var(--gray-900) !important;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
}

/* Enhanced Syntax Highlighting - VS Code Dark Theme */
.highlight { background: #1e293b !important; }
.highlight pre { background: #1e293b !important; color: #f1f5f9 !important; }

/* Chroma syntax highlighting classes */
.highlight .c { color: #7c3aed !important; font-style: italic; } /* Comment */
.highlight .c1 { color: #7c3aed !important; font-style: italic; } /* Comment.Single */
.highlight .cm { color: #7c3aed !important; font-style: italic; } /* Comment.Multiline */
.highlight .cp { color: #7c3aed !important; font-style: italic; } /* Comment.Preproc */

.highlight .k { color: #3b82f6 !important; font-weight: bold; } /* Keyword */
.highlight .kc { color: #3b82f6 !important; font-weight: bold; } /* Keyword.Constant */
.highlight .kd { color: #3b82f6 !important; font-weight: bold; } /* Keyword.Declaration */
.highlight .kn { color: #3b82f6 !important; font-weight: bold; } /* Keyword.Namespace */
.highlight .kp { color: #3b82f6 !important; font-weight: bold; } /* Keyword.Pseudo */
.highlight .kr { color: #3b82f6 !important; font-weight: bold; } /* Keyword.Reserved */
.highlight .kt { color: #06b6d4 !important; font-weight: bold; } /* Keyword.Type */

.highlight .n { color: #f8fafc !important; } /* Name */
.highlight .na { color: #10b981 !important; } /* Name.Attribute */
.highlight .nb { color: #fbbf24 !important; } /* Name.Builtin */
.highlight .nc { color: #06b6d4 !important; font-weight: bold; } /* Name.Class */
.highlight .nd { color: #06b6d4 !important; } /* Name.Decorator */
.highlight .ne { color: #ef4444 !important; font-weight: bold; } /* Name.Exception */
.highlight .nf { color: #10b981 !important; font-weight: bold; } /* Name.Function */
.highlight .ni { color: #f8fafc !important; } /* Name.Entity */
.highlight .nl { color: #f8fafc !important; } /* Name.Label */
.highlight .nn { color: #06b6d4 !important; } /* Name.Namespace */
.highlight .nt { color: #ef4444 !important; font-weight: bold; } /* Name.Tag */
.highlight .nv { color: #f8fafc !important; } /* Name.Variable */
.highlight .nx { color: #f8fafc !important; } /* Name.Other */

.highlight .s { color: #22c55e !important; } /* String */
.highlight .s1 { color: #22c55e !important; } /* String.Single */
.highlight .s2 { color: #22c55e !important; } /* String.Double */
.highlight .sb { color: #22c55e !important; } /* String.Backtick */
.highlight .sc { color: #22c55e !important; } /* String.Char */
.highlight .sd { color: #22c55e !important; font-style: italic; } /* String.Doc */
.highlight .se { color: #fbbf24 !important; } /* String.Escape */
.highlight .sh { color: #22c55e !important; } /* String.Heredoc */
.highlight .si { color: #fbbf24 !important; } /* String.Interpol */
.highlight .sr { color: #22c55e !important; } /* String.Regex */
.highlight .ss { color: #22c55e !important; } /* String.Symbol */
.highlight .sx { color: #22c55e !important; } /* String.Other */

.highlight .m { color: #fb7185 !important; } /* Number */
.highlight .mf { color: #fb7185 !important; } /* Number.Float */
.highlight .mh { color: #fb7185 !important; } /* Number.Hex */
.highlight .mi { color: #fb7185 !important; } /* Number.Integer */
.highlight .mo { color: #fb7185 !important; } /* Number.Oct */

.highlight .o { color: #3b82f6 !important; } /* Operator */
.highlight .ow { color: #3b82f6 !important; font-weight: bold; } /* Operator.Word */

.highlight .p { color: #d1d5db !important; } /* Punctuation */
.highlight .w { color: transparent; } /* Text.Whitespace */

/* Generic styles */
.highlight .g { color: #f8fafc !important; } /* Generic */
.highlight .gd { color: #ef4444 !important; } /* Generic.Deleted */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .gh { color: #f8fafc !important; font-weight: bold; } /* Generic.Heading */
.highlight .gi { color: #22c55e !important; } /* Generic.Inserted */
.highlight .gs { font-weight: bold; } /* Generic.Strong */
.highlight .gu { color: #f8fafc !important; font-weight: bold; } /* Generic.Subheading */

/* Default text color */
.highlight, .highlight pre, .highlight code {
    color: #f1f5f9 !important;
}

/* Inline Code */
code {
    background: var(--gray-100);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.875em;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

pre code {
    background: transparent;
    color: var(--gray-100);
    padding: 0;
    border: none;
    font-weight: normal;
}

/* Blog Post Layout - Enhanced Typography */
.post-header {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    margin-bottom: 4rem;
}

.post-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.05em;
    max-width: 15ch;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-description {
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--gray-600);
    max-width: 65ch;
    margin: 0 auto;
    line-height: 1.6;
}

.post-content {
    max-width: 75ch;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-700);
    padding: 0 2rem;
}

.post-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
    text-align: left;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.post-content h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--gray-800);
}

.post-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--gray-800);
}

.post-content p {
    margin-bottom: 2rem;
    text-align: left;
    max-width: none;
}

.post-content ul, .post-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    text-align: left;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    text-align: left;
}

.post-content blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-600);
    border-left: 4px solid var(--primary);
    padding-left: 2rem;
    margin: 3rem 0;
    max-width: 65ch;
}

.post-content strong {
    font-weight: 600;
    color: var(--gray-800);
}

.post-content em {
    font-style: italic;
    color: var(--gray-600);
}

/* Category Tags */
.category-tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

/* Footer */
.modern-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    border-bottom: 1px solid var(--gray-800);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    background: var(--gray-800);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(2rem);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Lists and Content Alignment */
.post-content ul {
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 0;
    padding-left: 2rem;
}

.post-content ol {
    list-style-type: decimal;
    list-style-position: outside;
    margin-left: 0;
    padding-left: 2rem;
}

.post-content li {
    text-align: left;
    padding-left: 0.5rem;
    margin-bottom: 0.75rem;
}

.post-content li::marker {
    color: var(--primary);
    font-weight: 600;
}

/* Home Page Typography */
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.05em;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-align: center;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Card Typography */
.modern-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: left;
}

.modern-card .card-text {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    text-align: left;
}

.modern-card .lead {
    text-align: left;
}

/* About Page Specific */
.about-content {
    max-width: 75ch;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content h3 {
    text-align: left;
    margin-top: 3rem;
}

.about-content p {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .post-title {
        font-size: 2.5rem;
        max-width: none;
        padding: 0 1rem;
    }
    
    .post-content {
        padding: 0 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    
    .post-content h2 { font-size: 1.875rem; }
    .post-content h3 { font-size: 1.5rem; }
    .post-content h4 { font-size: 1.25rem; }
    
    p {
        font-size: 1rem;
    }
    
    .post-content p {
        font-size: 1rem;
    }
}

/* Fix content spacing on non-home pages - Override Tachyons classes */
body:not(.home) .pa3 { padding: 3rem 4rem !important; }
body:not(.home) .pa4-ns { padding: 3rem 4rem !important; }
body:not(.home) .ph3 { padding-left: 4rem !important; padding-right: 4rem !important; }
body:not(.home) .ph5-l { padding-left: 5rem !important; padding-right: 5rem !important; }
body:not(.home) .measure-wide { 
    max-width: 120ch !important; 
    margin: 0 auto !important;
    width: auto !important;
}
body:not(.home) .center { margin: 0 auto !important; }

/* Center alignment for all non-home content */
body:not(.home) article.pa3.pa4-ns,
body:not(.home) article.pa3,
body:not(.home) article.pa4-ns,
body:not(.home) article {
    padding: 3rem 4rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

body:not(.home) section.cf.ph3.ph5-l.pv3.pv4-l.f4.tc-l.center.measure-wide.lh-copy.nested-links,
body:not(.home) section.nested-links,
body:not(.home) .nested-copy-line-height,
body:not(.home) .measure-wide.nested-links {
    padding: 3rem 5rem !important;
    max-width: 120ch !important;
    margin: 0 auto !important;
    width: auto !important;
}

/* Content spacing improvements applied */

/* Additional post readability improvements */
body:not(.home) .highlight pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    background: #1e293b !important;
    border: 1px solid #334155;
}

body:not(.home) pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

/* Better paragraph spacing in posts */
body:not(.home) p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #374151;
}

/* Better heading spacing in posts */
body:not(.home) h1, 
body:not(.home) h2, 
body:not(.home) h3, 
body:not(.home) h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

body:not(.home) h1:first-child,
body:not(.home) h2:first-child,
body:not(.home) h3:first-child {
    margin-top: 0;
}

/* Better list styling */
body:not(.home) ul, 
body:not(.home) ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

body:not(.home) li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Mobile responsive adjustments for non-home pages */
@media (max-width: 768px) {
    body:not(.home) .pa3,
    body:not(.home) .pa4-ns,
    body:not(.home) article {
        padding: 1rem !important;
    }
    
    body:not(.home) .ph3,
    body:not(.home) .ph5-l {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0f172a;
        --gray-50: #1e293b;
        --gray-100: #334155;
        --gray-200: #475569;
        --gray-800: #f1f5f9;
        --gray-900: #ffffff;
    }
}