:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #EEDD00;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Archivo', sans-serif;
    --font-mono: 'Geist Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

/* Background Effect */
.bg-dot-matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 4px 4px;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.blog-header {
    height: 60px;
    background: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #000000;
}

.header-logo {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    /* Matching blog-container padding */
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.signature-label {
    display: flex;
    height: 60px;
    background: #ffffff;
    align-items: stretch;
}

.house-sidebar {
    width: 60px;
    /* 1:1 Aspect ratio with header height */
    height: 60px;
    background-color: var(--accent-color);
    /* Yellow #EEDD00 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.house-sidebar:hover {
    background-color: #ffffff;
}

.house-icon {
    width: 28px;
    /* 7 dots * 4px */
    height: 28px;
    /* Denser dot matrix inspired by the flags style: 3px dots, 1px gap */
    background-image: radial-gradient(#000000 1.5px, transparent 1.6px);
    background-size: 4px 4px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7'%3E%3Cpath d='M3 0h1v1H3zM2 1h1v1H2zM4 1h1v1H4zM1 2h1v1H1zM5 2h1v1H5zM0 3h1v1H0zM6 3h1v1H6zM0 4h1v1H0zM6 4h1v1H6zM0 5h1v1H0zM6 5h1v1H6zM0 6h7v1H0z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
}

.label-main {
    padding: 0 25px;
    display: flex;
    align-items: center;
}

.blog-title {
    font-family: 'Geist', sans-serif;
    /* Matches main site signature */
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #000000 !important;
    text-transform: lowercase;
}

/* Feed */
.blog-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.blog-post {
    margin-bottom: 80px;
    position: relative;
}

.post-header-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 25px;
    height: 24px;
    /* Fixed height for consistent look */
}

.post-date-block {
    background: var(--accent-color);
    color: #000000;
    font-family: 'Geist', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 0 12px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.post-title-block {
    background: #ffffff;
    color: #000000;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 0 15px;
    display: flex;
    align-items: center;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-content {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding: 0 5px;
    /* Slight breathing room */
}

.post-divider {
    height: 1px;
    background: var(--border-color);
    margin-top: 40px;
}

/* Loading */
.data-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 100px 0;
}

.loading-text {
    opacity: 0.5;
}

.shockwave-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.shockwave-fill {
    position: absolute;
    width: 60px;
    height: 100%;
    background: var(--accent-color);
    animation: slide 1.5s infinite ease-in-out;
}

@keyframes slide {
    0% {
        left: -60px;
    }

    100% {
        left: 200px;
    }
}

/* Site Footer (1:1 with abbadie.net) */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background: #000000;
    z-index: 10000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #000000;
}

.footer-system-links {
    display: flex;
    height: 100%;
}

.footer-license {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 7.5px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-divider-2px {
    width: 100%;
    height: 1px;
    background: #ffffff;
    opacity: 0.8;
}

.legal-disclaimer {
    font-size: 6px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.2;
    text-align: center;
    max-width: 500px;
}

.footer-license a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-license a:hover {
    color: #EEDD00 !important;
}

.cc-icons {
    display: flex;
    gap: 3px;
    align-items: center;
}

.cc-icons img {
    height: 10px;
    width: auto;
    filter: invert(1) opacity(0.5);
    transition: opacity 0.2s ease;
}

.footer-license:hover .cc-icons img {
    opacity: 0.8;
}

.footer-credits {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.credits-label {
    opacity: 0.8;
    font-size: 8px;
}

.footer-credits .brand-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.brand-item svg {
    transition: fill 0.3s ease;
    opacity: 0.6;
}

/* Specific Brand Hover Colors */
.footer-credits .brand-item:hover {
    opacity: 1 !important;
    color: #EEDD00;
}

.brand-item[href*="cloudflare"]:hover {
    color: #F38020 !important;
}

.brand-item[href*="cloudflare"]:hover svg {
    fill: #F38020 !important;
    opacity: 1;
}

.brand-item[href*="vercel"]:hover {
    color: #0070f3 !important;
}

.brand-item[href*="vercel"]:hover svg {
    fill: #0070f3 !important;
    opacity: 1;
}

.brand-item[href*="supabase"]:hover {
    color: #3ECF8E !important;
}

.brand-item[href*="supabase"]:hover svg {
    fill: #3ECF8E !important;
    opacity: 1;
}

.footer-credits svg {
    margin-right: 2px;
}

/* Adjust blog container to not be covered by fixed footer */
.blog-container {
    max-width: 800px;
    margin: 60px auto 120px auto;
    padding: 0 20px;
}

/* Responsive Mobile (Match abbadie.net) */
@media (max-width: 768px) {
    .blog-header {
        height: 50px !important;
        padding: 0 10px !important;
        display: flex !important;
    }

    .signature-label {
        height: 50px !important;
        min-width: 100% !important;
    }

    .house-sidebar {
        width: 50px !important;
        height: 50px !important;
    }

    .house-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .label-main {
        padding: 0 15px !important;
    }

    .signature {
        font-size: 24px !important;
        letter-spacing: -0.5px;
    }

    .role-label {
        height: 18px !important;
    }

    .role-title {
        font-size: 7px !important;
    }

    .role-main {
        padding: 0 15px !important;
    }

    .blog-container {
        margin: 80px auto 100px auto;
        padding: 0 15px;
    }

    .site-footer {
        height: auto !important;
        min-height: 40px;
        grid-template-columns: 1fr;
        padding: 10px 20px !important;
        gap: 10px;
        position: relative;
        /* Avoid overlaying content too much on mobile */
    }

    .footer-license,
    .footer-credits,
    .footer-system-links {
        justify-self: center !important;
    }
}