/* ========================================
   Alcides Espinosa — Blog
   Tipografia editorial, fondo blanco, mobile-first
   ======================================== */

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

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
header {
    padding: 56px 0 32px;
    border-bottom: 2px solid #1a1a1a;
}

header h1 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

header h1 a {
    color: #1a1a1a;
    text-decoration: none;
}

.tagline {
    font-size: 0.95rem;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

nav {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

nav a:hover {
    color: #1a1a1a;
}

/* --- Post list (index) --- */
main {
    padding: 48px 0 80px;
}

.post-list {
    list-style: none;
}

.post-item {
    padding: 36px 0;
    border-bottom: 1px solid #e0e0e0;
}

.post-item:first-child {
    padding-top: 0;
}

.post-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #444;
}

.post-excerpt {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.post-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #888;
    border: 1px solid #ddd;
    padding: 3px 12px;
    border-radius: 2px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-reading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #aaa;
    margin-left: 8px;
}

/* --- Article page --- */
article {
    padding: 48px 0 80px;
}

article header {
    padding: 0 0 32px;
    border-bottom: none;
    margin-bottom: 40px;
}

article header .post-date {
    display: block;
    margin-bottom: 12px;
}

article header h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-transform: none;
}

article header .article-meta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-body h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

.article-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #2a2a2a;
}

.article-body strong {
    font-weight: 700;
    color: #1a1a1a;
}

.article-body em {
    font-style: italic;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 24px;
    font-size: 1.05rem;
    color: #2a2a2a;
}

.article-body li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.article-body hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 48px 0;
}

.article-body blockquote {
    border-left: 3px solid #1a1a1a;
    padding-left: 20px;
    margin: 28px 0;
    font-style: italic;
    color: #555;
}

/* Disclaimer / callout */
.disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    border-top: 1px solid #e0e0e0;
    padding-top: 32px;
    margin-top: 56px;
}

/* Back link */
.back-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1a1a1a;
}

/* --- Footer --- */
footer {
    border-top: 2px solid #1a1a1a;
    padding: 24px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    header {
        padding: 36px 0 24px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    main {
        padding: 32px 0 60px;
    }

    .post-title {
        font-size: 1.25rem;
    }

    article header h1 {
        font-size: 1.6rem;
    }

    .article-body h2 {
        font-size: 1.05rem;
        margin-top: 36px;
    }

    .article-body p,
    .article-body ul,
    .article-body ol {
        font-size: 1rem;
    }

    .post-reading {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }
}
