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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #111;
    background-color: #fff;
}

main {
    max-width: 650px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    main {
        margin: 2rem auto;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    main {
        margin: 1.5rem auto;
        padding: 0 0.75rem;
    }
}

#featured-post {
    margin-bottom: 4rem;
}

#featured-post h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    #featured-post h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #featured-post h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
}

.post-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .post-meta {
        margin-bottom: 1.5rem;
    }
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .post-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

#all-posts {
    margin-top: 4rem;
}

.post-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.post-item a {
    text-decoration: none;
    color: inherit;
}

.post-item a:hover h3 {
    opacity: 0.7;
}

.post-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

footer {
    text-align: center;
    padding: 3rem 0;
    color: #999;
    font-size: 0.85rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
        font-size: 0.8rem;
    }
}

/* Markdown content styles */
.post-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content pre {
    background-color: #f8f8f8;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Cascadia Mono', 'Roboto Mono', monospace;
    font-size: 0.85em;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content ul, .post-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
}

.post-content strong {
    font-weight: 600;
}

.post-content a {
    color: #111;
    text-decoration: underline;
    text-decoration-color: #ddd;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.post-content a:hover {
    text-decoration-color: #111;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

/* Responsive typography for markdown content */
@media (max-width: 768px) {
    .post-content h2 {
        font-size: 1.25rem;
        margin: 2rem 0 0.75rem;
    }
    
    .post-content h3 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.5rem;
    }
    
    .post-content p {
        margin-bottom: 1rem;
    }
    
    .post-content pre {
        padding: 0.75rem;
        font-size: 0.85rem;
        margin: 1.25rem 0;
    }
    
    .post-content code {
        font-size: 0.8em;
        padding: 0.15rem 0.3rem;
    }
    
    .post-content ul, .post-content ol {
        margin: 1rem 0;
        padding-left: 1.25rem;
    }
    
    .post-content li {
        margin-bottom: 0.4rem;
    }
    
    .post-content blockquote {
        margin: 1.25rem 0;
        padding-left: 0.75rem;
    }
}

@media (max-width: 480px) {
    .post-content h2 {
        font-size: 1.15rem;
        margin: 1.5rem 0 0.5rem;
    }
    
    .post-content h3 {
        font-size: 1.05rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    .post-content p {
        margin-bottom: 0.9rem;
    }
    
    .post-content pre {
        padding: 0.6rem;
        font-size: 0.8rem;
        margin: 1rem 0;
    }
    
    .post-content code {
        font-size: 0.75em;
    }
    
    .post-content ul, .post-content ol {
        margin: 0.75rem 0;
        padding-left: 1rem;
    }
    
    .post-content li {
        margin-bottom: 0.3rem;
    }
    
    .post-content blockquote {
        margin: 1rem 0;
        padding-left: 0.6rem;
    }
    
    .post-content hr {
        margin: 1.5rem 0;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: #999;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Visualization styles */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 3rem 0;
}

.network-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.network-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.network-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #111;
    font-weight: 600;
}

.mdn-title {
    color: #2563eb;
}

.pinn-title {
    color: #7c3aed;
}

.viz-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.canvas-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.viz-canvas {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.viz-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
}

.viz-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.pinn-button {
    background: #7c3aed;
}

.pinn-button:hover {
    background: #6d28d9;
}

.info-box {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    border-left: 3px solid #2563eb;
}

.pinn-info {
    border-left-color: #7c3aed;
}

.equation {
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Mono', monospace;
    text-align: center;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    overflow-x: auto;
}

.legend {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Responsive visualization styles */
@media (max-width: 968px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 2rem 0;
    }
}

@media (max-width: 768px) {
    .comparison-grid {
        margin: 1.5rem 0;
    }
    
    .network-card {
        padding: 20px;
    }
    
    .network-title {
        font-size: 1.2em;
    }
    
    .viz-description {
        font-size: 0.9rem;
    }
    
    .canvas-container {
        padding: 10px;
    }
    
    .viz-canvas {
        width: 100%;
        max-width: 350px;
    }
    
    .controls {
        gap: 8px;
    }
    
    .viz-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .info-box {
        font-size: 12px;
        padding: 10px;
    }
    
    .equation {
        font-size: 12px;
        padding: 10px;
    }
    
    .legend {
        gap: 10px;
    }
    
    .legend-item {
        font-size: 11px;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .network-card {
        padding: 15px;
    }
    
    .network-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .viz-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .canvas-container {
        padding: 8px;
    }
    
    .viz-canvas {
        max-width: 280px;
    }
    
    .controls {
        flex-direction: column;
        gap: 6px;
    }
    
    .viz-button {
        padding: 8px 12px;
        flex: none;
    }
    
    .info-box {
        font-size: 11px;
        padding: 8px;
    }
    
    .equation {
        font-size: 11px;
        padding: 8px;
    }
    
    .legend {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .legend-item {
        font-size: 10px;
    }
}

/* V-JEPA specific styles */
.vjepa-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    margin: 3rem 0;
    max-width: 100%;
}

.vjepa-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vjepa-title {
    color: #059669;
}

.vjepa-button {
    background: #059669;
}

.vjepa-button:hover {
    background: #047857;
}

.vjepa-info {
    border-left-color: #059669;
}

@media (max-width: 768px) {
    .vjepa-card {
        padding: 20px;
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .vjepa-card {
        padding: 15px;
        margin: 1.5rem 0;
    }
}

/* Visual Elements Styles */
.visual-element {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.visual-title {
    font-size: 1.3em;
    margin-bottom: 1.5rem;
    color: #111;
    font-weight: 600;
    text-align: center;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #059669);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
}

.timeline-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e5e5;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -8px;
}

.timeline-content {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2563eb;
    font-size: 1.1em;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    top: -25px;
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
}

.timeline-item:nth-child(odd)::before {
    right: 0;
}

.timeline-item:nth-child(even)::before {
    left: 0;
}

/* Architecture Diagram Styles */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.arch-layer {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.arch-layer h4 {
    margin: 0 0 1rem 0;
    text-align: center;
    font-size: 1.1em;
}

.physics-layer h4 {
    color: #7c3aed;
}

.integration-layer h4 {
    color: #f59e0b;
}

.intelligence-layer h4 {
    color: #059669;
}

.layer-content {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.component {
    background: #f8f8f8;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid #e5e5e5;
}

.arch-connection {
    width: 2px;
    height: 30px;
    background: #ccc;
    position: relative;
}

.arch-connection::after {
    content: '↓';
    position: absolute;
    bottom: -10px;
    left: -5px;
    font-size: 1.2rem;
    color: #999;
}

/* Decision Tree Styles */
.decision-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.tree-node {
    text-align: center;
}

.node-content {
    display: inline-block;
    padding: 1rem 2rem;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    margin: 0.5rem 0;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.node-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.node-content.simulation {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #faf5ff;
}

.node-content.world-model {
    border-color: #059669;
    color: #059669;
    background: #f0fdf4;
}

.node-content.hybrid {
    border-color: #f59e0b;
    color: #f59e0b;
    background: #fffbeb;
}

.node-examples {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: left;
    line-height: 1.5;
    background: #f8f8f8;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.tree-branches {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    width: 100%;
    justify-content: center;
}

.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 250px;
}

.branch-label {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.tree-hybrid {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
}

.hybrid-label {
    background: #fef3c7;
    padding: 0.75rem 2rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 600;
    color: #92400e;
    border: 2px solid #fbbf24;
}

/* Cost Comparison Styles */
.cost-chart {
    max-width: 600px;
    margin: 0 auto;
}

.cost-item {
    margin-bottom: 2rem;
}

.cost-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.cost-bar-container {
    position: relative;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cost-bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.traditional .cost-bar {
    background: #dc2626;
}

.world-model .cost-bar {
    background: #059669;
}

.cost-value {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #fff;
}

.cost-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.breakdown-item {
    padding: 0.25rem 0;
}

/* Industry Adoption Styles */
.adoption-grid {
    display: grid;
    gap: 1.5rem;
}

.adoption-item {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.company-logo {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 0.75rem;
}

.company-logo.tesla {
    color: #dc2626;
}

.company-logo.boston {
    color: #f59e0b;
}

.company-logo.google {
    color: #3b82f6;
}

.company-logo.meta {
    color: #1e40af;
}

.adoption-bar {
    display: flex;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.bar-segment {
    transition: width 0.3s ease;
}

.bar-segment.simulation {
    background: #7c3aed;
}

.bar-segment.world-model {
    background: #059669;
}

.adoption-desc {
    font-size: 0.85rem;
    color: #666;
}

.adoption-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.simulation {
    background: #7c3aed;
}

.legend-color.world-model {
    background: #059669;
}

/* Roadmap Styles */
.roadmap-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 300px;
}

.roadmap-phase {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.roadmap-phase h4 {
    margin: 0 0 1rem 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}

.near-term {
    border-top: 4px solid #3b82f6;
}

.mid-term {
    border-top: 4px solid #f59e0b;
}

.long-term {
    border-top: 4px solid #059669;
}

.near-term h4 {
    color: #3b82f6;
}

.mid-term h4 {
    color: #f59e0b;
}

.long-term h4 {
    color: #059669;
}

.phase-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.roadmap-item {
    background: #f8f8f8;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: left;
    border: 1px solid #e5e5e5;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.roadmap-item:hover {
    background: #f1f5f9;
}

.roadmap-arrow {
    font-size: 2rem;
    color: #ccc;
    display: flex;
    align-items: center;
    font-weight: bold;
}

/* Responsive Visual Elements */
@media (max-width: 768px) {
    .visual-element {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 40px !important;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-marker {
        left: -8px !important;
        right: auto !important;
    }
    
    .timeline-item::before {
        left: -20px !important;
        right: auto !important;
    }
    
    .tree-branches {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cost-breakdown {
        grid-template-columns: 1fr;
    }
    
    .roadmap-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .roadmap-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .roadmap-phase {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .visual-element {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .visual-title {
        font-size: 1.1em;
        margin-bottom: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1em;
    }
    
    .component {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .node-content {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .node-examples {
        font-size: 0.8rem;
    }
    
    .roadmap-phase {
        padding: 1rem;
    }
    
    .roadmap-item {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}