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

/* === GRID OVERLAY === */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 31px, rgba(196,120,60,0.08) 31px, rgba(196,120,60,0.08) 32px),
        repeating-linear-gradient(90deg, transparent 31px, rgba(196,120,60,0.08) 31px, rgba(196,120,60,0.08) 32px);
    pointer-events: none;
    z-index: 9999;
}

/* === BASE === */
body {
    font-family: 'Lora', Georgia, serif;
    background-color: #1a1210;
    color: #f0e0d0;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === LEATHER TEXTURE MIXIN (applied via backgrounds) === */

/* === MASTHEAD === */
.masthead {
    background-color: #2a1e18;
    background-image:
        repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.05) 75%),
        linear-gradient(180deg, rgba(196,120,60,0.06) 0%, transparent 100%);
    background-size: 4px 4px, 100% 100%;
    border-left: 4px solid #c4783c;
    padding: 60px 40px 50px;
    box-shadow: 0 0 40px rgba(196,120,60,0.15), inset 0 -1px 0 rgba(196,120,60,0.2);
    position: relative;
}

.masthead-inner {
    max-width: 960px;
    margin: 0 auto;
}

.masthead-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 72px;
    letter-spacing: -1px;
    color: #f0e0d0;
    line-height: 1.1;
}

.masthead-date {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: #c4783c;
    margin-top: 12px;
    letter-spacing: 1px;
}

.masthead-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 16px;
    color: #d4a060;
    margin-top: 8px;
    opacity: 0.8;
}

/* === SECTIONS === */
.brief {
    padding: 60px 40px;
    position: relative;
    border-top: 1px solid rgba(196,120,60,0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.brief.revealed {
    opacity: 1;
    transform: translateY(0);
}

.brief:nth-child(even) {
    background-color: #2a1e18;
    background-image:
        repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.05) 75%);
    background-size: 4px 4px;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #f0e0d0;
    margin-bottom: 32px;
    position: relative;
    padding-left: 100px;
}

.section-heading::before {
    content: attr(data-time);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #e07030;
    letter-spacing: 1px;
}

/* === EDITORIAL GRID === */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.editorial-grid--two {
    grid-template-columns: 1.5fr 1fr;
}

/* === PANELS === */
.panel {
    background-color: rgba(26,18,16,0.6);
    border: 1px solid rgba(196,120,60,0.15);
    padding: 28px;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.panel:hover {
    border-color: rgba(196,120,60,0.4);
    box-shadow: 0 0 20px rgba(196,120,60,0.1);
}

.panel-featured {
    border-left: 3px solid #c4783c;
    box-shadow: 0 0 30px rgba(196,120,60,0.08);
    grid-column: span 1;
}

.editorial-grid--two .panel-featured {
    grid-column: span 1;
}

.panel-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c4783c;
    display: block;
    margin-bottom: 12px;
}

.panel h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #f0e0d0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.panel-body {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: rgba(240,224,208,0.8);
    line-height: 1.7;
    margin-bottom: 16px;
}

.panel-timestamp {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #8b4520;
    letter-spacing: 1px;
}

/* === FOOTER === */
.site-footer {
    background-color: #2a1e18;
    border-top: 1px solid rgba(196,120,60,0.2);
    padding: 50px 40px;
    text-align: center;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #c4783c;
}

.footer-sub {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 14px;
    color: #d4a060;
    margin-top: 6px;
    opacity: 0.7;
}

.footer-meta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #8b4520;
    letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .masthead-title {
        font-size: 42px;
    }

    .masthead {
        padding: 40px 20px 30px;
    }

    .brief {
        padding: 40px 20px;
    }

    .editorial-grid,
    .editorial-grid--two {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: 24px;
        padding-left: 80px;
    }
}
