@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Source+Serif+4:opsz,wght@8..60,500;650;800;900&display=swap');

:root {
    --ink: #171016;
    --ink-soft: #2b1f25;
    --wine: #3a141b;
    --wine-2: #5a1823;
    --red: #b51f2a;
    --gold: #e7b86d;
    --gold-2: #f0a12b;
    --cream: #fff4db;
    --paper: #f4eadb;
    --paper-2: #fff8ea;
    --line: #d9c09c;
    --muted: #765f57;
    --white: #fffdf6;
    --shadow: 0 28px 70px rgba(23, 16, 22, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 4%, rgba(181, 31, 42, 0.3), transparent 22%),
        radial-gradient(circle at 88% 2%, rgba(231, 184, 109, 0.18), transparent 22%),
        linear-gradient(180deg, #171016 0%, #39151c 24%, #f4eadb 24%, #f3eadf 100%);
    font-family: Archivo, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}

.site-header {
    color: var(--cream);
    background: var(--ink);
}

.topbar {
    border-bottom: 1px solid rgba(231, 184, 109, 0.24);
    background: #100b0f;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .pill-ghost {
    padding: 0;
    color: rgba(255, 244, 219, 0.86);
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.topbar-meta {
    color: rgba(255, 244, 219, 0.6);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.12em;
}

.topbar-link,
.divider {
    color: rgba(255, 244, 219, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.topbar-link:hover {
    color: var(--gold);
}

.nav {
    position: relative;
    background:
        radial-gradient(circle at 50% 0%, rgba(231, 184, 109, 0.07), transparent 30%),
        linear-gradient(180deg, #20161d 0%, #171016 100%);
    border-bottom: 4px double rgba(231, 184, 109, 0.42);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "logo"
        "menu";
    justify-items: center;
    gap: 16px;
    padding: 30px 0 22px;
}

.site-logo {
    grid-area: logo;
    width: 100%;
    padding-bottom: 16px;
    color: var(--cream);
    border-bottom: 1px solid rgba(231, 184, 109, 0.28);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 7vw, 92px);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.84;
    text-align: center;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.site-logo:hover {
    color: #ffe9bd;
}

.site-logo::after {
    content: "politica nacional | economia | mundo | deportes";
    display: block;
    margin-top: 14px;
    color: var(--gold);
    font-family: Archivo, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3em;
    line-height: 1.4;
}

.site-nav {
    grid-area: menu;
    display: flex;
    justify-content: center;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 244, 219, 0.1);
    border-bottom: 1px solid rgba(255, 244, 219, 0.1);
}

.site-nav a {
    min-width: 96px;
    padding: 13px 18px;
    color: var(--cream);
    border-right: 1px solid rgba(255, 244, 219, 0.12);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
}

.site-nav a:first-child {
    border-left: 1px solid rgba(255, 244, 219, 0.12);
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--gold);
}

.nav-actions {
    display: none;
}

.page-gap {
    padding-top: 46px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.hero-card {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.hero-card::before {
    inset: 18px;
    border: 1px solid rgba(255, 244, 219, 0.5);
}

.hero-card::after {
    top: 34px;
    left: 34px;
    width: 130px;
    height: 10px;
    background: var(--gold-2);
    box-shadow: 145px 0 0 var(--red);
}

.hero-card-media,
.hero-card-media img,
.hero-card-media.placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 590px;
    object-fit: cover;
}

.hero-card-media img {
    filter: saturate(0.9) contrast(1.04);
}

.hero-card-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 76% 12%, rgba(231, 184, 109, 0.2), transparent 20%),
        linear-gradient(90deg, rgba(23, 16, 22, 0.95) 0%, rgba(23, 16, 22, 0.76) 48%, rgba(23, 16, 22, 0.2) 100%),
        linear-gradient(180deg, transparent 0%, rgba(23, 16, 22, 0.76) 100%);
}

.hero-card-body {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 590px;
    padding: 58px;
}

.hero-card-topline,
.article-hero-meta,
.article-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-card-title {
    max-width: 880px;
    margin: 46px 0 0;
    color: var(--white);
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.94;
    text-transform: uppercase;
}

.hero-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hero-card-snippet {
    display: -webkit-box;
    max-width: 720px;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 244, 219, 0.88);
    font-size: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 22px;
    color: #ffe2a3;
    background: rgba(23, 16, 22, 0.45);
    border: 1px solid var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-card-link:hover {
    color: var(--ink);
    background: var(--gold);
}

.hero-sidebar {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.ticker-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--cream);
    background: linear-gradient(135deg, #171016 0%, #3a1519 100%);
    border-right: 1px solid var(--line);
}

.ticker-head .pill-highlight {
    width: fit-content;
    color: var(--ink);
    background: var(--gold);
    border-color: var(--gold);
}

.ticker-sub {
    color: rgba(255, 244, 219, 0.72);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;
}

.ticker-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticker-item {
    display: block;
    min-height: 126px;
    padding: 18px;
    border-right: 1px solid #ead6b7;
}

.ticker-item:last-child {
    border-right: 0;
}

.ticker-item:hover {
    background: #f6e4c9;
}

.ticker-dot {
    width: 28px;
    height: 4px;
    margin-bottom: 12px;
    background: var(--red);
}

.ticker-title {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.25;
}

.ticker-time {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(255, 244, 219, 0.99), rgba(248, 237, 218, 0.95));
    border: 1px solid rgba(217, 192, 156, 0.9);
    border-left: 8px solid var(--gold);
    box-shadow: 0 18px 44px rgba(23, 16, 22, 0.1);
}

.filters-group,
.chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filters-label {
    color: var(--red);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--line);
    box-shadow: inset 0 -2px 0 rgba(143, 45, 36, 0.08);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip:hover {
    color: var(--gold);
    background: var(--ink);
    border-color: var(--ink);
}

.chip-active {
    color: var(--cream);
    background: var(--red);
    border-color: var(--red);
}

.block {
    margin-top: 54px;
    background: transparent;
}

.block-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 18px 0 15px;
    border-top: 4px solid var(--gold);
    border-bottom: 2px solid rgba(43, 31, 37, 0.24);
}

.block-head h2 {
    margin: 0;
    color: var(--ink-soft);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.block-head p {
    margin: 0;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-style: italic;
}

.highlight-row {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr 0.95fr;
    gap: 18px;
}

.highlight-card,
.article-card,
.related-card,
.article-full {
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(47, 28, 24, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.highlight-card:hover,
.article-card:hover,
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(47, 28, 24, 0.18);
}

.highlight-media,
.highlight-media img,
.highlight-media.placeholder {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.highlight-card:first-child .highlight-media,
.highlight-card:first-child .highlight-media img,
.highlight-card:first-child .highlight-media.placeholder {
    height: 280px;
}

.highlight-body,
.article-card-body {
    padding: 20px;
}

.highlight-body h3,
.article-card-title,
.related-card h3 {
    margin: 0;
    color: var(--ink-soft);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.highlight-body p,
.article-card-snippet {
    margin: 12px 0 0;
    color: var(--muted);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    grid-column: span 3;
}

.article-card:nth-child(8n+1),
.article-card:nth-child(8n+6) {
    grid-column: span 6;
}

.article-card-image,
.article-card-image img,
.article-card-image.placeholder {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.article-card:nth-child(8n+1) .article-card-image,
.article-card:nth-child(8n+1) .article-card-image img,
.article-card:nth-child(8n+1) .article-card-image.placeholder,
.article-card:nth-child(8n+6) .article-card-image,
.article-card:nth-child(8n+6) .article-card-image img,
.article-card:nth-child(8n+6) .article-card-image.placeholder {
    height: 250px;
}

.article-card-top {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ead6b7;
}

.article-card-title {
    font-size: 20px;
}

.article-card:nth-child(8n+1) .article-card-title,
.article-card:nth-child(8n+6) .article-card-title {
    font-size: 28px;
}

.article-card-snippet {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-card-meta,
.article-card-date {
    color: var(--muted);
    font-size: 13px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 13px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.pill-category {
    color: var(--cream);
    background: var(--red);
    border-color: var(--red);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill-highlight {
    color: var(--ink);
    background: var(--gold);
    border-color: var(--gold);
}

.pill-muted {
    color: var(--cream);
    background: rgba(23, 16, 22, 0.55);
    border-color: rgba(255, 244, 219, 0.08);
}

.read-more {
    display: inline-flex;
    margin-top: 16px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.read-more:hover {
    color: var(--ink);
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 42px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.page-link:hover,
.page-link.current {
    color: var(--cream);
    background: var(--red);
    border-color: var(--red);
}

.placeholder-pattern,
.hero-card-media.placeholder,
.highlight-media.placeholder,
.article-card-image.placeholder,
.article-hero-media.placeholder {
    background:
        radial-gradient(circle at 72% 28%, rgba(231, 184, 109, 0.42), transparent 18%),
        linear-gradient(135deg, #171016 0%, #2b1f25 46%, #9d2b25 46%, #b97968 100%);
}

.empty-state {
    padding: 40px;
    color: var(--muted);
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.article-page {
    padding-top: 38px;
}

.breadcrumbs {
    margin-bottom: 18px;
    color: rgba(255, 244, 219, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumbs .current {
    color: var(--gold);
}

.article-full {
    background: var(--paper-2);
}

.article-hero {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
}

.article-hero-media,
.article-hero-media img,
.article-hero-media.placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(23, 16, 22, 0.9) 0%, rgba(23, 16, 22, 0.6) 58%, rgba(23, 16, 22, 0.16) 100%),
        linear-gradient(180deg, transparent 0%, rgba(23, 16, 22, 0.72) 100%);
}

.article-hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 470px;
    padding: 48px;
}

.article-hero-meta {
    align-self: flex-start;
}

.article-title {
    max-width: 940px;
    margin: 42px 0 0;
    color: var(--white);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-transform: uppercase;
}

.article-full-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 42px 44px 20px;
    color: var(--ink);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.78;
}

.article-full-content p {
    margin: 0 0 20px;
}

.article-back {
    max-width: 980px;
    margin: 0 auto 38px;
    padding: 0 44px 38px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 18px;
    color: var(--cream);
    background: var(--red);
    border: 1px solid var(--red);
    font-size: 13px;
    font-weight: 900;
}

.back-link:hover {
    color: var(--ink);
    background: var(--gold);
    border-color: var(--gold);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    padding: 20px;
}

.site-footer {
    margin-top: 70px;
    color: var(--cream);
    background:
        linear-gradient(90deg, rgba(231, 184, 109, 0.08), transparent 34%, rgba(181, 31, 42, 0.12)),
        var(--ink);
    border-top: 4px double var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 44px;
    padding-top: 48px;
    padding-bottom: 42px;
}

.logo-mark {
    color: var(--cream);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.9;
    text-transform: uppercase;
}

.footer-brand p,
.footer-bottom {
    color: rgba(255, 244, 219, 0.68);
}

.footer-links {
    padding-left: 22px;
    border-left: 1px solid rgba(231, 184, 109, 0.24);
}

.footer-links h4 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 244, 219, 0.76);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(231, 184, 109, 0.24);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

@media (max-width: 1100px) {
    .articles-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .article-card,
    .article-card:nth-child(8n+1),
    .article-card:nth-child(8n+6) {
        grid-column: span 3;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .topbar .container,
    .hero-sidebar,
    .ticker-list,
    .highlight-row,
    .articles-grid,
    .related-grid,
    .footer-grid,
    .footer-bottom-inner {
        grid-template-columns: 1fr;
    }

    .topbar .container,
    .footer-bottom-inner {
        display: grid;
    }

    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .site-nav a {
        min-width: max-content;
    }

    .hero-card,
    .hero-card-media,
    .hero-card-media img,
    .hero-card-media.placeholder,
    .hero-card-body {
        min-height: 500px;
    }

    .hero-card-body,
    .article-hero-body {
        padding: 34px;
    }

    .hero-card-title,
    .article-title {
        font-size: clamp(34px, 10vw, 54px);
    }

    .ticker-head {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .ticker-item {
        border-right: 0;
        border-bottom: 1px solid #ead6b7;
    }

    .article-card,
    .article-card:nth-child(8n+1),
    .article-card:nth-child(8n+6) {
        grid-column: auto;
    }

    .article-full-content,
    .article-back {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 560px) {
    .site-logo {
        font-size: 42px;
    }

    .site-logo::after {
        font-size: 9px;
        letter-spacing: 0.18em;
    }

    .hero-card::before,
    .hero-card::after {
        display: none;
    }

    .hero-card,
    .hero-card-media,
    .hero-card-media img,
    .hero-card-media.placeholder,
    .hero-card-body {
        min-height: 440px;
    }

    .hero-card-snippet {
        font-size: 15px;
    }

    .block-head {
        display: block;
    }

    .block-head p {
        margin-top: 8px;
    }
}
