/* ============================================
   SIRRUNA - Editorial Layout
   Full Lead + Structured Sections
   ============================================ */

/* =====================
   CSS VARIABLES
   ===================== */
:root {
    /* Typography */
    --serif-display: 'Bodoni Moda', Georgia, serif;  /* Logo, masthead, S. brand */
    --serif: 'New York', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;  /* Headers, titles */
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Colors */
    --burgundy: #8a123c;
    --teal: #12728A;
    --gold: #b8934c;
    --ink: #1a1a1a;
    --ink-secondary: #4a4a4a;
    --ink-tertiary: #7a7a7a;
    --paper: #FFF8F2;
    --paper-dark: #F5EDE5;
    --white: #ffffff;
    --rule: #E8DFD5;
    --rule-light: #f0ece4;
}

/* =====================
   MAIN CONTAINER
   ===================== */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px;
    margin-top: 100px;
}

/* =====================
   SECTION HEADERS (Shared)
   ===================== */
.section-header {
    margin-bottom: 32px;
    padding-top: 16px;
}

.section-header h2 {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-header.burgundy h2 { color: var(--burgundy); }
.section-header.teal h2 { color: var(--teal); }
.section-header.gold h2 { color: var(--gold); }

/* =====================
   THE LEAD - Hero + Full Article (Burgundy)
   ===================== */
.lead-section {
    margin-bottom: 64px;
    border-top: 4px solid var(--ink);
    padding-top: 24px;
}

.lead-hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 48px;
}

.lead-image {
    order: 2;
    background: var(--paper);
    display: flex;
    flex-direction: column;
}

.lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 1;
}

.lead-image-badge {
    display: none;
}

.lead-hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
}

.lead-headline {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--ink);
}

.lead-deck {
    font-family: var(--serif);
    font-size: 18px;
    font-style: italic;
    color: var(--ink-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.lead-meta {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-tertiary);
    margin-bottom: 16px;
}

.lead-meta .source {
    color: var(--burgundy);
    font-weight: 600;
}

.lead-hero .writer-byline {
    margin-top: auto;
    background: var(--paper-dark, #e8e4df);
}

/* Lead Full Article - 2 Column Layout */
.lead-article {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 48px;
}

.lead-article-body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    column-count: 2;
    column-gap: 48px;
    column-rule: 1px solid var(--rule-light);
}

.lead-article-body p {
    margin-bottom: 1.2em;
    break-inside: avoid;
}

.lead-article-body .drop-cap::first-letter {
    font-family: var(--serif);
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 4px;
    color: var(--burgundy);
}

/* Writer Byline Footer */
.lead-article-footer {
    margin-top: 40px;
}

.writer-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--paper-dark);
    padding: 20px 24px;
    border-radius: 4px;
}

.writer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.writer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-info {
    flex: 1;
}

.writer-name {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.writer-role {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-tertiary);
}

.writer-brand {
    font-family: var(--serif-display);
    font-size: 32px;
    font-weight: 500;
    color: var(--ink);
}

.writer-brand .brand-dot {
    color: var(--gold);
}

/* =====================
   THE WRAP - Evening Section (Gold)
   ===================== */
.wrap-section {
    margin-bottom: 64px;
    display: none;
}

.wrap-section.active {
    display: block;
}

.wrap-section .section-header h2 {
    color: var(--gold);
}

.wrap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.wrap-card {
    padding-top: 16px;
    border-top: 2px solid var(--gold);
    cursor: pointer;
    transition: opacity 0.2s;
}

.wrap-card:hover {
    opacity: 0.8;
}

.wrap-card-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 10px;
}

.wrap-card h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--ink);
}

.wrap-card p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================
   WHAT TO WATCH (Teal)
   ===================== */
.watch-section {
    margin-bottom: 64px;
}

.watch-section .section-header h2 {
    color: var(--teal);
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.watch-card {
    padding-top: 16px;
    border-top: 2px solid var(--teal);
    cursor: pointer;
    transition: opacity 0.2s;
}

.watch-card:hover {
    opacity: 0.8;
}

.watch-card-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: 10px;
}

.watch-card h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--ink);
}

.watch-card p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================
   INTELLIGENCE (Burgundy) - 3 Column
   ===================== */
.intelligence-section {
    margin-bottom: 64px;
}

.intelligence-section .section-header h2 {
    color: var(--burgundy);
}

.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.intelligence-card {
    padding-top: 16px;
    border-top: 2px solid var(--burgundy);
    cursor: pointer;
    transition: opacity 0.2s;
}

.intelligence-card:hover {
    opacity: 0.8;
}

.intelligence-card-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.intelligence-card h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--ink);
}

.intelligence-card p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================
   THE TAKEAWAY (Burgundy Block)
   ===================== */
.takeaway-section {
    background: var(--burgundy);
    color: white;
    padding: 48px;
    margin-bottom: 64px;
    text-align: center;
}

.takeaway-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    margin-bottom: 24px;
}

.takeaway-quote {
    font-family: var(--serif);
    font-size: 24px;
    font-style: italic;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* =====================
   SLIDE-OVER READER
   ===================== */
.reader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.reader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reader-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 90vw;
    height: 100vh;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.reader-overlay.active .reader-panel {
    transform: translateX(0);
}

.reader-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.reader-close:hover {
    background: var(--white);
}

.reader-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--ink-secondary);
}

.reader-close:hover svg {
    stroke: var(--ink);
}

.reader-content {
    padding: 64px 48px;
}

.reader-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.reader-label.teal { color: var(--teal); }
.reader-label.gold { color: var(--gold); }

.reader-headline {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--ink);
}

.reader-meta {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-tertiary);
    margin-bottom: 16px;
}

.reader-meta .source {
    color: var(--burgundy);
    font-weight: 600;
}

.reader-body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
}

.reader-body p {
    margin-bottom: 1.5em;
}

.reader-body ul {
    margin-bottom: 1.5em;
    padding-left: 0;
    list-style: none;
}

.reader-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 1em;
}

.reader-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--burgundy);
}

/* Reader Byline */
.reader-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--paper-dark, #e8e4df);
    border-radius: 4px;
}

.reader-byline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.reader-byline-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reader-byline-name {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.reader-byline-role {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-secondary);
}

.reader-byline-brand {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--ink);
    margin-left: auto;
}

.reader-byline-brand .brand-dot {
    color: var(--burgundy);
}

/* Read Next */
.reader-next {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.reader-next-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: 16px;
}

.reader-next-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reader-next-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.15s;
}

.reader-next-link:hover {
    opacity: 0.7;
}

.reader-next-link .next-arrow {
    color: var(--burgundy);
    font-size: 14px;
    flex-shrink: 0;
}

.reader-next-link .next-headline {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--ink);
    line-height: 1.3;
}

.reader-next-link.teal .next-arrow {
    color: var(--teal);
}

.reader-next-link.gold .next-arrow {
    color: var(--gold);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
    .lead-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .lead-headline {
        font-size: 34px;
    }
    
    .lead-article-body {
        column-count: 1;
    }
    
    .wrap-grid,
    .watch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intelligence-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 32px 20px;
        margin-top: 90px;
    }
    
    .lead-headline {
        font-size: 28px;
    }
    
    .wrap-grid,
    .watch-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .takeaway-section {
        padding: 32px 24px;
    }
    
    .takeaway-quote {
        font-size: 20px;
    }
    
    .reader-panel {
        width: 100vw;
        max-width: 100vw;
    }
    
    .reader-content {
        padding: 48px 24px;
    }
}

/* =====================
   WRAP-UP BANNER
   ===================== */
.wrap-banner {
    max-width: 100%;
    margin: 0 auto 32px;
}

.wrap-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.06) 0%, rgba(128, 0, 32, 0.02) 100%);
    border-left: 3px solid var(--burgundy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wrap-banner-content:hover {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.10) 0%, rgba(128, 0, 32, 0.04) 100%);
}

.wrap-banner-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

.wrap-banner-title {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--burgundy);
}

.wrap-banner-dot {
    color: var(--ink-tertiary);
}

.wrap-banner-date {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-tertiary);
}

.wrap-banner-headline {
    flex: 1;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
}

.wrap-banner-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--burgundy);
    flex-shrink: 0;
}

.wrap-banner-cta svg {
    transition: transform 0.2s ease;
}

.wrap-banner-content:hover .wrap-banner-cta svg {
    transform: translate(2px, -2px);
}

@media (max-width: 768px) {
    .wrap-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .wrap-banner-headline {
        font-size: 15px;
    }
}

/* =====================
   LEAD ARTICLE BALANCED SPLIT
   ===================== */
.lead-article-body.split-columns {
    column-count: unset;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.lead-article-body.split-columns .lead-col {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
}

.lead-article-body.split-columns .lead-col-left {
    border-right: 1px solid var(--rule-light);
    padding-right: 24px;
}

.lead-article-body.split-columns .lead-col p {
    margin-bottom: 1.2em;
}

.lead-article-body.split-columns .lead-col p:last-child {
    margin-bottom: 0;
}

.lead-article-body.split-columns .drop-cap::first-letter {
    font-family: var(--serif);
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 4px;
    color: var(--burgundy);
}

@media (max-width: 768px) {
    .lead-article-body.split-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .lead-article-body.split-columns .lead-col-left {
        border-right: none;
        padding-right: 0;
    }
}
