/* ==========================================================================
 *  Tema New Yorker - Versión Auténtica
 *  Basado en newyorker.com (2026)
 *  ========================================================================== */

/* ==========================================================================
 *  Reset y variables
 *  ========================================================================== */

:root {
    /* Colores */
    --black: #1a1a1a;
    --gray-dark: #2c2c2c;
    --gray-mid: #6b6b6b;
    --gray-light: #eaeaea;
    --white: #ffffff;
    --red: #cc0000;          /* Rojo característico */
    --red-dark: #990000;

    /* Tipografía */
    --serif: "Adobe Caslon Pro" ,Georgia, "Times New Roman", Times, serif;
    --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --content-width: 680px;
}

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

body {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.55;
    color: var(--black);
    background: var(--white);
}

/* ==========================================================================
 *  Layout principal
 *  ========================================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

/* ==========================================================================
 *  Header - Ícono de The New Yorker
 *  ========================================================================== */

.site-header {
    border-top: 4px solid var(--red);
    padding: 30px 0 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 40px;
}

.site-title {
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.site-title a {
    color: var(--black);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--red);
}

/* Línea roja decorativa */
.title-line {
    width: 60px;
    height: 2px;
    background: var(--red);
    margin: 15px auto;
}

.site-description {
    font-family: var(--serif);
    font-size: 11px;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
}

/* Navegación */
.nav {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-list a {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--red);
}

/* ==========================================================================
 *  Grid de artículos - Estilo revista
 *  ========================================================================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Artículo destacado (primer artículo) */
.article-featured {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
}

.article-featured .article-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-featured .article-summary {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* Artículos regulares */
.article-card {
    border-bottom: none;
    padding-bottom: 0;
}

.article-card .article-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.article-card .article-summary {
    font-size: 0.9rem;
}

/* ==========================================================================
 *  Estilos de artículos (generales)
 *  ========================================================================== */

.article-title {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
}

.article-title a {
    color: var(--black);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--red);
}

/* Metadata */
.article-meta {
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-mid);
    margin: 12px 0;
}

.article-meta a {
    color: var(--gray-mid);
    text-decoration: none;
}

.article-meta a:hover {
    color: var(--red);
}

/* Resumen */
.article-summary {
    color: var(--gray-dark);
    margin: 15px 0;
}

/* Tags */
.article-tags {
    margin-top: 15px;
}

.tag {
    font-family: var(--sans);
    font-size: 9px;
    text-transform: uppercase;
    background: none;
    color: var(--red);
    padding: 0;
    margin-right: 15px;
    text-decoration: none;
}

.tag:hover {
    text-decoration: underline;
}

.read-more {
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--red);
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
 *  Artículo completo (página individual)
 *  ========================================================================== */

.article-full {
    max-width: var(--content-width);
    margin: 0 auto;
}

.article-full .article-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

/* Drop cap (letra capital) */
.article-content > p:first-of-type::first-letter {
    font-size: 5rem;
    font-weight: 400;
    float: left;
    line-height: 0.85;
    margin-right: 12px;
    color: var(--black);
}

/* Contenido */
.article-content {
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.65;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: var(--serif);
    font-weight: 400;
    margin: 2rem 0 1rem;
}

.article-content h2 {
    font-size: 1.6rem;
}

.article-content h3 {
    font-size: 1.3rem;
}

.article-content blockquote {
    font-style: italic;
    border-left: 3px solid var(--red);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--gray-dark);
}

.article-content code {
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 5px;
    font-size: 0.85rem;
}

.article-content pre {
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

/* ==========================================================================
 *  Footer
 *  ========================================================================== */

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-mid);
}

.site-footer a {
    color: var(--black);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--red);
}

/* ==========================================================================
 *  Páginas de listado
 *  ========================================================================== */

.page-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.category-list,
.tag-list,
.archive-list {
    list-style: none;
}

.category-list li,
.tag-list li,
.archive-list li {
    margin-bottom: 0.8rem;
}

.category-list a,
.tag-list a,
.archive-list a {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--black);
    text-decoration: none;
}

.category-list a:hover,
.tag-list a:hover {
    color: var(--red);
}

/* ==========================================================================
 *  Paginación
 *  ========================================================================== */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    font-family: var(--sans);
    font-size: 12px;
}

.pagination a {
    color: var(--red);
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

/* ==========================================================================
 *  Responsive
 *  ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-featured .article-title {
        font-size: 2rem;
    }

    .article-full .article-title {
        font-size: 2rem;
    }

    .nav-list {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .article-featured .article-title {
        font-size: 1.6rem;
    }

    .article-content > p:first-of-type::first-letter {
        font-size: 3.5rem;
    }
}
