@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@700&display=swap');

:root {
    --bg: #f4f4f4;
    --bg-card: #FFFFFF;
    --text: #000000;
    --text-body: #000000;
    --accent: #8B0000;
    --accent-green: #006400;
    --rule: #CCCCCC;
    --rule-light: #DDDDDD;
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
    --nameplate: "Zilla Slab", serif;
    --page-width: 960px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif);
    line-height: 1.6;
}

a { color: inherit; }

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

/* Nameplate */
.nameplate {
    text-align: center;
    padding: 20px 0 12px;
}

.nameplate-descriptor {
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.nameplate-title {
    font-family: var(--nameplate);
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    line-height: 1;
}

.nameplate-title a { text-decoration: none; }

.nameplate-logo {
    height: 62px;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
    position: relative;
    top: -5px;
}

.nameplate-tagline {
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 6px;
}

.nameplate-rule {
    border: none;
    border-bottom: 3px double var(--text);
    margin-top: 12px;
}

/* Ticker */
.ticker {
    background: var(--ticker-bar-bg, #000000);
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
}

.ticker-label {
    background: var(--ticker-label-bg, var(--accent));
    color: var(--ticker-label-color, #FFFFFF);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}

.ticker-track {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    padding: 6px 0;
}

.ticker-inner {
    display: inline-block;
    animation: ticker-scroll var(--ticker-scroll-duration, 15s) linear infinite;
    font-family: var(--sans);
    font-size: var(--ticker-text-size, 14px);
    letter-spacing: 0.5px;
    color: var(--ticker-text-color, #FFFFFF);
    padding-left: 16px;
}

.ticker-inner a {
    color: var(--ticker-text-color, #FFFFFF);
    text-decoration: none;
}

.ticker-inner a:hover { color: var(--ticker-link-hover, #CCCCCC); }

.ticker-inner span {
    margin-right: 12px;
}

.ticker-inner span::before {
    content: var(--ticker-separator, "\25C6 ");
    font-size: inherit;
    margin-right: 12px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-bottom: 24px;
}

/* Lead Story */
.lead-headline {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
}

.lead-headline a { text-decoration: none; }
.lead-headline a:hover { color: var(--accent); }

.lead-deck {
    font-family: var(--serif);
    font-size: 16px;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.lead-photo-wrap {
    margin-bottom: 14px;
}

.lead-image {
    width: 100%;
    display: block;
}

.lead-caption {
    font-family: var(--sans);
    font-size: 11px;
    font-style: italic;
    color: var(--text);
    padding-top: 6px;
}

.lead-byline {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.lead-byline a { text-decoration: none; }
.lead-byline a:hover { color: var(--accent); }

.lead-body {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.7;
    column-count: 2;
    column-gap: 24px;
    column-rule: 1px solid var(--rule-light);
}

.lead-body .drop-cap::first-letter {
    font-size: 3.2em;
    float: left;
    line-height: 0.8;
    margin-right: 6px;
    margin-top: 4px;
    font-weight: 700;
}

.lead-continued {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.lead-continued a {
    color: var(--accent);
    text-decoration: none;
}

.lead-continued a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    border-left: 1px solid #000000;
    padding-left: 20px;
}

.sidebar-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule-light);
}

.sidebar-item:last-child { border-bottom: none; }

.sidebar-widget {
    margin-top: 16px;
    padding-top: 16px;
}

.category-label {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.sidebar-item h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
}

.sidebar-item h3 a { text-decoration: none; }
.sidebar-item h3 a:hover { color: var(--accent); }

.sidebar-item p {
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.5;
}

/* Feature Well */
.feature-well {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--text);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--rule);
}

.feature-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--text);
    color: var(--bg);
    padding: 3px 8px;
    margin: 12px 0 0 12px;
}

.feature-photo {
    height: 140px;
    overflow: hidden;
    margin: 10px 12px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-photo span {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.feature-card h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    padding: 0 12px;
    margin-bottom: 6px;
}

.feature-card h3 a { text-decoration: none; }
.feature-card h3 a:hover { color: var(--accent); }

.feature-author {
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.feature-excerpt {
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.5;
    padding: 0 12px 14px;
}

/* Basement */
.basement {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--text);
    margin-bottom: 24px;
}

.basement-section {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.basement-item h4 {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
}

.basement-item h4 a { text-decoration: none; }
.basement-item h4 a:hover { color: var(--accent); }

.basement-item p {
    font-family: var(--serif);
    font-size: 12px;
    line-height: 1.5;
}

/* Colophon */
.colophon {
    text-align: center;
    padding: 14px 0 24px;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
}

.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--accent); }
.slot-empty {
    border: 2px dashed var(--rule-light);
    padding: 20px;
    text-align: center;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rule);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== MOBILE ========== */

/* Sidebar Social Icons */
.sidebar-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--rule-light);
    align-items: center;
    justify-content: center;
}

.social-icon-link {
    display: block;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    overflow: hidden;
    transition: opacity 0.15s;
}

.social-icon-link:hover {
    opacity: 0.7;
}

.social-icon-link img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .page-wrap { padding: 0 16px; }

    /* Nameplate */
    .nameplate-title { font-size: 40px; letter-spacing: 6px; }
    .nameplate-logo { height: 36px; margin-right: 8px; }
    .nameplate-descriptor { font-size: 8px; }
    .nameplate-tagline { font-size: 8px; letter-spacing: 2px; }

    /* Main grid — stack lead + sidebar */
    .main-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Lead story */
    .lead-headline { font-size: 28px; }
    .lead-deck { font-size: 15px; }
    .lead-body {
        column-count: 1;
        font-size: 15px;
    }

    /* Sidebar — remove left border, add top border */
    .sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--text);
        padding-top: 16px;
        margin-top: 20px;
    }

    /* Feature well — single column */
    .feature-well {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-photo { height: 180px; }

    /* Basement — two columns */
    .basement {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .nameplate-title { font-size: 32px; letter-spacing: 4px; }

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

    /* Basement — single column on very small screens */
    .basement {
        grid-template-columns: 1fr;
    }
}
