@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/* ── Base ── */
body {
    font-family: 'Lexend', sans-serif;
    background: #f8fafc;
    color: #22223b;
    min-height: 100vh;
}

/* ── Header ── */
header {
    border-bottom: 1px solid #e0e1dd;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    z-index: 50;
}

header .container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Logo ── */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #22223b;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.logo:hover {
    color: #4f5d75;
}

.logo .highlight {
    color: #bfcde0;
}

/* Logo image */
.logo-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(79, 93, 117, 0.06);
}

.logo-text {
    font-size: 1.05rem;
    color: #22223b;
}

/* ── Nav ── */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: #4f5d75;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

nav a:hover {
    background: #e0e1dd;
    color: #22223b;
}

nav .github svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── Main ── */
#app {
    max-width: 55rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem 1rem;
}

/* ── Footer ── */
footer {
    border-top: 1px solid #e0e1dd;
    margin-top: 5rem;
}

footer .container {
    max-width: 44rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
    color: #4f5d75;
    font-size: 0.93rem;
}

/* ── Animação ── */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ── Prose (conteúdo de posts) ── */
.prose h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #22223b;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #22223b;
}

.prose code {
    background: #e0e1dd;
    color: #4f5d75;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.93rem;
}

.prose pre {
    background: #f8fafc;
    border: 1px solid #bfcde0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.prose pre code {
    background: none;
    padding: 0;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.25rem;
}