* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
}

nav {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
}

nav a {
    color: #555;
}

nav a:hover {
    color: #000;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

h3 {
    font-size: 1.05rem;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #1a5c97;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.3rem;
}

blockquote {
    border-left: 3px solid #ccc;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #555;
    font-style: italic;
}

code {
    background: #eee;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background: #eee;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 3px;
}

pre code {
    background: none;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* Index: carpetas colapsables */
details.folder {
    margin: 0.2rem 0;
}

details.folder > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.35rem 0;
    font-size: 1.05rem;
    user-select: none;
}

details.folder > summary::-webkit-details-marker {
    display: none;
}

details.folder > summary::before {
    content: "\25B6";
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.65rem;
    transition: transform 0.15s;
    vertical-align: middle;
}

details[open].folder > summary::before {
    transform: rotate(90deg);
}

.folder-name {
    font-weight: 600;
}

.folder-content {
    padding-left: 1.2rem;
    margin-left: 0.3rem;
    border-left: 1px solid #e0e0e0;
}

.post-item {
    padding: 0.2rem 0;
}

.post-item::before {
    content: "\2014";
    margin-right: 0.5rem;
    color: #aaa;
}

details.folder > summary small {
    color: #888;
    font-weight: normal;
    font-size: 0.8rem;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #e0e0e0;
        background: #1a1a1a;
    }
    nav {
        border-color: #333;
    }
    nav a {
        color: #aaa;
    }
    nav a:hover {
        color: #fff;
    }
    a {
        color: #6db3f2;
    }
    .folder-name {
        color: #e0e0e0;
    }
    .folder-content {
        border-color: #333;
    }
    .post-item::before {
        color: #555;
    }
    details.folder > summary small {
        color: #666;
    }
    blockquote {
        border-color: #444;
        color: #aaa;
    }
    code, pre {
        background: #2a2a2a;
    }
    hr {
        border-color: #333;
    }
}

