/* perso.news - Vintage Broadsheet / Newspaper + Maximalist */
/* Colors: #4a4a4a, #1a1a1a, #0a0a0a, #333333, #2a2a2a, #f4efe4, #8b3a3a */
/* Fonts: Playfair Display (900/700), Source Serif 4 (400), IBM Plex Mono */

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

body {
    font-family: 'Source Serif 4', serif;
    background: #f4efe4;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Broadsheet container */
.broadsheet {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 40px 60px;
}

/* Double Rule */
.double-rule {
    height: 3px;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    margin: 10px 0;
}

/* Thin Rule */
.thin-rule {
    height: 0;
    border-top: 1px solid #e0ddd4;
    margin: 16px 0;
}

/* Masthead */
.masthead {
    text-align: center;
    margin-bottom: 10px;
}

.masthead-content {
    padding: 16px 0;
}

.masthead-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #4a4a4a;
    display: block;
    margin-bottom: 8px;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 56px;
    letter-spacing: 0.02em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 1;
}

.masthead-tagline {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 14px;
    color: #4a4a4a;
    display: block;
    margin-top: 6px;
}

/* Category Bar */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 0;
}

.category {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #4a4a4a;
    cursor: pointer;
    text-transform: uppercase;
    padding: 4px 8px;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 2px solid transparent;
}

.category:hover,
.category.active {
    color: #8b3a3a;
    border-bottom-color: #8b3a3a;
}

/* Columns Grid - Asymmetric 4fr 2.5fr 2.5fr 1fr */
.columns-grid {
    display: grid;
    grid-template-columns: 4fr 2.5fr 2.5fr 1fr;
    gap: 0;
    margin-top: 10px;
}

.column {
    padding: 0 16px;
    border-right: 1px solid #e0ddd4;
}

.column:first-child {
    padding-left: 0;
}

.column:last-child {
    border-right: none;
    padding-right: 0;
}

/* Articles */
.article {
    margin-bottom: 20px;
    transition: opacity 0.4s ease;
}

.article.hidden {
    display: none;
}

/* Headlines */
.headline {
    font-family: 'Playfair Display', serif;
    color: #0a0a0a;
    line-height: 1.15;
    margin-bottom: 8px;
}

.headline-lead {
    font-weight: 700;
    font-size: 32px;
}

.headline-secondary {
    font-weight: 700;
    font-size: 22px;
}

.headline-small {
    font-weight: 700;
    font-size: 17px;
}

/* Byline */
.byline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #4a4a4a;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 10px;
}

/* Body Text */
.body-text {
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
    line-height: 1.65;
    color: #333333;
    text-align: justify;
    hyphens: auto;
    margin-bottom: 12px;
}

/* Lead text with drop cap */
.lead-text::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 64px;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 5px;
    color: #8b3a3a;
}

/* Sidebar */
.column-sidebar {
    padding: 0 0 0 16px;
}

.sidebar-box {
    margin-bottom: 16px;
}

.sidebar-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #2a2a2a;
    margin-bottom: 8px;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 4px;
}

.sidebar-list {
    list-style: none;
    font-size: 12px;
    line-height: 1.6;
    color: #4a4a4a;
}

.sidebar-list li {
    padding: 3px 0;
    border-bottom: 1px dotted #e0ddd4;
}

.index-list li {
    display: flex;
    justify-content: space-between;
}

.index-list li span:last-child {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #8b3a3a;
}

.sidebar-text {
    font-size: 12px;
    line-height: 1.6;
    color: #4a4a4a;
    font-style: italic;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #4a4a4a;
}

.footer-edition {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #4a4a4a;
}

/* Responsive */
@media (max-width: 900px) {
    .columns-grid {
        grid-template-columns: 1fr;
    }

    .column {
        border-right: none;
        border-bottom: 1px solid #e0ddd4;
        padding: 16px 0;
    }

    .masthead-title {
        font-size: 36px;
    }

    .headline-lead {
        font-size: 24px;
    }

    .category-bar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .broadsheet {
        padding: 20px;
    }
}
