@import url("root.css");

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

body {
    background-color: var(--color-bg);
    color: var(--color-txt);
    font-family: system-ui, -apple-system, sans-serif; 
    line-height: 1.5; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    position: sticky;
    top: 0;
    z-index: 10; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-color: var(--color-header);
    color: var(--color-txt-header);
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header h1 {
    font-size: 1.5rem;
}

header nav {
    display: flex;
    align-items: center; 
    gap: 1.5rem; 
}

header nav a {
    color: var(--color-txt-header);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

header nav a:hover, header nav a:focus {
    background-color: rgba(34, 40, 49, 0.1); 
    outline: 2px solid var(--color-txt-header);
}

.theme-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    margin-left: 0.5rem; 
}

.theme-indicator::before {
    content: var(--theme-symbol);
    color: var(--theme-symbol-color);
    transition: color 0.3s ease; 
}

main {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
    
    position: relative;
    z-index: 1; 
}

.blog-intro {
    text-align: center;
    margin-bottom: 3.5rem;
}

.blog-intro h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
    color: var(--color-title-resume, inherit);
}

.blog-intro p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-card {
    background-color: var(--color-bg-resume, #ffffff);
    color: var(--color-txt-resume, #2d3748);
    padding: 2.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.post-header {
    margin-bottom: 1rem;
}

.post-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--color-title-resume, #1a202c);
}

time {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(#ffffff);
}


.blog-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-subtitle-resume, #4a5568);
}


.post-footer {
    display: flex;
    justify-content: flex-start;
}

.post-footer a {
    color: var(--color-header, #00adb5);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.post-footer a:hover {
    text-decoration: underline;
    color: var(--color-txt-header);
}

.post-footer a:focus-visible {
    outline: 2px solid var(--color-header);
    outline-offset: 4px;
    border-radius: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    opacity: 0.75;
    border-top: 1px solid var(--color-border-resume, rgba(0, 0, 0, 0.05));
}


@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 0.75rem;
    }

    main {
        margin: 2rem auto;
    }

    .blog-intro {
        margin-bottom: 2rem;
        text-align: left;
    }

    .blog-intro h1 {
        font-size: 2.25rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

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