/* ==========================================================
   Estilo periódico + máquina de escribir
   Capa visual posterior a categorias.css. No altera la estructura.
   ========================================================== */

:root {
    --paper: #f2ecdd;
    --paper-2: #ebe3d1;
    --ink: #1c1a16;
    --ink-soft: #47433c;
    --muted: #6d675c;
    --rule: #b8ae9b;
    --spot: #8c1d1d;
    --font-type: "Courier Prime", "Courier New", Courier, monospace;
    --font-display: "Special Elite", "Courier Prime", "Courier New", monospace;

    --color-darkgrey: var(--ink);
    --color-midgrey: var(--ink-soft);
    --color-secondary-text: var(--muted);
    --color-lightgrey: #e3dbc9;
    --color-border: var(--rule);
    --color-wash: var(--paper-2);
    --gh-font-heading: var(--font-display);
    --gh-font-body: var(--font-type);
}

html {
    background: var(--paper);
}

body {
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-type);
}

::selection {
    background: var(--spot);
    color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.gh-head-logo,
.blog-title,
.post-list-title,
.post-card-title,
.article-title {
    font-family: var(--font-display);
    font-weight: 400;
}

a {
    color: var(--spot);
}

/* Cabecera tipo cabecera de periódico
/* ---------------------------------------------------------- */

.gh-head {
    background: var(--paper);
    border-bottom: 3px double var(--ink);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.has-cover:not(.home-template) .gh-head {
    background: var(--paper);
    color: var(--ink);
}

.is-head-stacked .gh-head-menu::before,
.is-head-stacked .gh-head-menu::after {
    background-color: var(--rule);
}

.gh-head-logo {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 4rem;
    letter-spacing: 0.01em;
    text-shadow: none;
}

.gh-head-logo::after {
    content: none;
}

.nav a,
.gh-head-link,
.gh-head-button,
.site-footer-nav a,
.gh-powered-by,
.site-footer .copyright {
    font-family: var(--font-type);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav a {
    color: var(--ink);
    border-bottom: 1px solid transparent;
}

.nav a:hover {
    border-bottom-color: var(--spot);
    color: var(--spot);
    text-shadow: none;
}

.gh-head-button {
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
    font-family: var(--font-type);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: none;
}

.gh-head-button:hover {
    transform: none;
    border-color: var(--spot);
    background: var(--spot);
    box-shadow: none;
}

.gh-search.gh-icon-btn {
    color: var(--ink);
}

/* Menú lateral como columna de periódico
/* ---------------------------------------------------------- */

.blog-sidebar {
    padding-right: 2.4rem;
    border-right: 1px solid var(--rule);
}

.sidebar-box {
    position: static;
    margin-bottom: 3.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar-box::before,
.sidebar-box::after {
    content: none;
}

.sidebar-title {
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-type);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: none;
}

.sidebar-title::before {
    content: none;
}

.sidebar-categories li {
    border-bottom: 1px dotted var(--rule);
}

.sidebar-category {
    padding: 0.7rem 0;
    color: var(--ink);
    font-family: var(--font-type);
    font-size: 1.4rem;
    letter-spacing: 0;
}

.sidebar-category:hover,
.sidebar-category.is-active {
    color: var(--spot);
    text-shadow: none;
}

.sidebar-category.is-active {
    font-weight: 700;
}

.sidebar-count {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-type);
    font-size: 1.3rem;
    line-height: 1.5;
    text-shadow: none;
}

.sidebar-count::before {
    content: "(";
}

.sidebar-count::after {
    content: ")";
}

.sidebar-about {
    color: var(--ink-soft);
    font-family: var(--font-type);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
}

/* Cabecera del listado
/* ---------------------------------------------------------- */

.blog-header {
    border-bottom: 3px double var(--ink);
    box-shadow: none;
}

.blog-kicker {
    color: var(--spot);
    font-family: var(--font-type);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-shadow: none;
}

.blog-title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 4.2rem;
    letter-spacing: 0;
    text-transform: none;
    background: none;
    filter: none;
    -webkit-text-fill-color: currentColor;
}

.blog-header-description {
    color: var(--muted);
    font-family: var(--font-type);
    font-style: italic;
}

/* Listado de entradas
/* ---------------------------------------------------------- */

.post-list-item {
    border-bottom: 1px solid var(--rule);
}

.post-list-tag {
    color: var(--spot);
    font-family: var(--font-type);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.post-list-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
}

.post-list-title a {
    color: var(--ink);
}

.post-list-title a:hover {
    color: var(--spot);
    text-shadow: none;
}

.post-list-meta {
    color: var(--muted);
    font-family: var(--font-type);
    letter-spacing: 0.08em;
}

.post-list-excerpt {
    color: var(--ink-soft);
    font-family: var(--font-type);
    font-size: 1.5rem;
    line-height: 1.65;
}

.post-list-more {
    border-bottom: 1px solid currentColor;
    color: var(--spot);
    font-family: var(--font-type);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: none;
}

.post-list-thumb {
    padding: 2px;
    border: 1px solid var(--ink);
    background: #fff;
    box-shadow: none;
}

.post-list-thumb img {
    filter: grayscale(1) contrast(1.05);
}

/* Entrada
/* ---------------------------------------------------------- */

.article-title {
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: 0;
    background: none;
    filter: none;
    -webkit-text-fill-color: currentColor;
}

.article-tag a {
    color: var(--spot);
    font-family: var(--font-type);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-shadow: none;
}

.article-excerpt {
    color: var(--muted);
    font-family: var(--font-type);
    font-style: italic;
}

.article-byline-meta,
.byline-meta-content,
.pagination,
.pagination a {
    color: var(--muted);
    font-family: var(--font-type);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gh-content {
    color: var(--ink);
    font-family: var(--font-type);
    font-size: 1.7rem;
    line-height: 1.8;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--ink);
    font-family: var(--font-display);
    text-shadow: none;
}

.gh-content a {
    color: var(--spot);
    text-shadow: none;
}

.gh-content blockquote {
    border-left: 2px solid var(--ink);
    color: var(--ink-soft);
    box-shadow: none;
}

.gh-content hr {
    border-color: var(--rule);
}

.article-image img {
    border: 1px solid var(--ink);
    box-shadow: none;
}

.gh-button-share {
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    font-family: var(--font-type);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.author-avatar-lg {
    border: 1px solid var(--ink);
    box-shadow: none;
}

/* Tarjetas del bloque "leer más"
/* ---------------------------------------------------------- */

.read-more-wrap {
    border-top: 3px double var(--ink);
}

.post-card-tags,
.post-card-meta {
    color: var(--muted);
    font-family: var(--font-type);
    letter-spacing: 0.08em;
}

.post-card-primary-tag {
    color: var(--spot);
    font-weight: 700;
    text-shadow: none;
}

.post-card-title {
    color: var(--ink);
    font-family: var(--font-display);
}

.post-card-excerpt {
    color: var(--ink-soft);
    font-family: var(--font-type);
}

/* Pie de página
/* ---------------------------------------------------------- */

.site-footer {
    color: var(--ink);
    background: var(--paper);
    border-top: 3px double var(--ink);
    box-shadow: none;
}

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

.site-footer a:hover {
    color: var(--spot);
    text-shadow: none;
}

.site-footer-social-links a {
    color: var(--ink);
}

/* Responsive
/* ---------------------------------------------------------- */

@media (max-width: 900px) {
    .blog-sidebar {
        padding-right: 0;
        border-right: 0;
    }

    .gh-head-logo {
        font-size: 3rem;
    }

    .blog-title {
        font-size: 3rem;
    }
}

/* Portada de periódico
/* ---------------------------------------------------------- */

.front-header {
    margin-bottom: 2.4rem;
}

.front-lead {
    padding-bottom: 2.4rem;
    border-bottom: 3px double var(--ink);
}

.front-lead-tag,
.front-item-tag {
    display: inline-block;
    color: var(--spot);
    font-family: var(--font-type);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.front-lead-tag:hover,
.front-item-tag:hover {
    text-decoration: underline;
}

.front-lead-title {
    margin: 0.6rem 0 1rem;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.08;
}

.front-lead-title a {
    color: var(--ink);
    text-decoration: none;
}

.front-lead-title a:hover {
    color: var(--spot);
}

.front-lead-meta,
.front-item-meta {
    color: var(--muted);
    font-family: var(--font-type);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.front-lead-meta .bull {
    margin: 0 0.5rem;
}

.front-lead-excerpt {
    max-width: 62ch;
    margin: 1.2rem 0;
    color: var(--ink-soft);
    font-family: var(--font-type);
    font-size: 1.6rem;
    line-height: 1.65;
}

.front-lead-more {
    border-bottom: 1px solid currentColor;
    color: var(--spot);
    font-family: var(--font-type);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.front-section-title {
    margin: 3rem 0 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-type);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.front-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.2rem;
}

.front-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--rule);
}

.front-item {
    min-width: 0;
    padding: 1.8rem 0;
    border-top: 1px solid var(--rule);
}

.front-item-title {
    margin: 0.4rem 0 0.6rem;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.15;
}

.front-item-title a {
    color: var(--ink);
    text-decoration: none;
}

.front-item-title a:hover {
    color: var(--spot);
}

.front-item-excerpt {
    margin: 0.6rem 0 0;
    color: var(--ink-soft);
    font-family: var(--font-type);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Índice de categorías
/* ---------------------------------------------------------- */

.categories-page {
    max-width: 1080px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.2rem;
}

.category-entry {
    min-width: 0;
    padding: 1.8rem 0;
    border-top: 1px solid var(--ink);
}

.category-entry-title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.15;
}

.category-entry-title a {
    color: var(--ink);
    text-decoration: none;
}

.category-entry-title a:hover {
    color: var(--spot);
}

.category-entry-meta {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-family: var(--font-type);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-entry-description {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--font-type);
    font-size: 1.4rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .front-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .front-grid::before {
        content: none;
    }

    .front-lead-title {
        font-size: 3rem;
    }
}

/* Portada a ancho completo, sin menú lateral
/* ---------------------------------------------------------- */

.home-front {
    max-width: 1560px;
}

.home-main {
    min-width: 0;
}

.home-main .pagination {
    margin-top: 3.2rem;
}

.home-front .front-lead-title {
    font-size: clamp(3.4rem, 4vw, 5rem);
}

@media (min-width: 1200px) {
    .front-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .front-grid::before {
        content: none;
    }
}
