/* ============================================================
   JJUGGL.com — Editorial Broadsheet Stylesheet
   Palette: Burgundy-Cream-Ochre Editorial System
   ============================================================ */

/* --- RESET & BASE --- */

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

html {
    font-size: 17px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #F7F5F0;
    color: #1A1A1A;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY FOUNDATIONS --- */

h1, h2, h3, h4 {
    font-weight: 700;
}

a {
    color: #1A1A1A;
    text-decoration: underline;
    text-decoration-color: #8B1A1A66;
    text-underline-offset: 3px;
    transition: color 200ms ease, text-decoration-color 200ms ease;
}

a:hover {
    color: #6D1414;
    text-decoration-color: #6D1414;
}

/* --- MASTHEAD --- */

.masthead {
    padding: 0 80px;
}

.masthead-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 120px;
}

.masthead-date {
    text-align: left;
}

.masthead-edition {
    text-align: right;
}

.masthead-date .label,
.masthead-edition .label {
    font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4A4540;
}

.edition-number {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    font-size: 15px;
    color: #B8960C;
}

.logotype {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A1A1A;
    text-align: center;
}

/* Masthead Navigation */

.masthead-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 12px 0;
}

.nav-link {
    font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #1A1A1A;
    cursor: pointer;
    transition: color 200ms ease;
    padding: 0 12px;
}

.nav-link:hover {
    color: #6D1414;
}

.nav-sep {
    font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
    font-size: 12px;
    color: #D1CFC8;
    user-select: none;
}

.masthead-rule {
    height: 2px;
    background-color: #1A1A1A;
    width: 100%;
}

/* --- HEADLINE BELT --- */

.headline-belt {
    padding: 48px 80px 40px;
}

.lead-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1A1A1A;
    margin-bottom: 24px;
}

.lead-headline .char {
    display: inline-block;
    opacity: 0;
    transition: none;
}

.lead-headline .char.visible {
    opacity: 1;
}

.deck {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: #4A4540;
    max-width: 66%;
    margin-bottom: 32px;
}

.headline-rule {
    height: 2px;
    background-color: #1A1A1A;
    width: 100%;
}

/* --- COLUMN FIELD --- */

.column-field {
    padding: 0 80px;
}

.column-field-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 48px;
}

/* Lead article takes 4 columns */
.lead-article {
    grid-column: 1 / 5;
    border-right: 0.5px solid #D1CFC8;
    padding-right: 24px;
}

/* Sidebar takes 2 columns */
.sidebar {
    grid-column: 5 / 7;
}

/* Dateline */
.dateline {
    font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #4A4540;
    margin-bottom: 16px;
}

.dateline-bullet {
    margin: 0 6px;
    color: #D1CFC8;
}

/* Lead article body */
.lead-article-body p:first-of-type {
    text-indent: 0;
}

.lead-article-body p + p {
    text-indent: 1.5em;
}

.lead-article-body p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #1A1A1A;
}

/* Drop Cap */
.lead-article-body p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 5.5em;
    line-height: 0.8;
    padding-right: 0.1em;
    padding-top: 0.05em;
    color: #8B1A1A;
}

/* Pull Quote */
.pull-quote {
    margin: 32px 0;
    padding-left: 20px;
    border-left: 3px solid #8B1A1A;
    overflow: hidden;
}

.pull-quote.animate-border {
    border-left-color: transparent;
    background-image: linear-gradient(#8B1A1A, #8B1A1A);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 3px 0%;
    padding-left: 20px;
    border-left: 3px solid transparent;
    transition: background-size 400ms ease;
}

.pull-quote.animate-border.border-visible {
    background-size: 3px 100%;
}

.pull-quote p {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1.5;
    color: #4A4540;
    text-indent: 0 !important;
}

/* Sidebar stories */
.sidebar-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.sidebar-story {
    padding: 0 0 16px 0;
    transition: transform 200ms ease;
    cursor: default;
}

.sidebar-story:hover {
    transform: translateY(-2px);
}

.sidebar-story:hover .sidebar-headline {
    color: #000000;
}

.sidebar-story .dateline {
    margin-bottom: 8px;
}

.sidebar-story p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #4A4540;
}

.story-rule {
    height: 1px;
    background-color: #4A4540;
    margin-bottom: 16px;
}

/* --- SECTION BREAK --- */

.section-break {
    padding: 0 80px;
}

.section-break-rule {
    height: 2px;
    background-color: #1A1A1A;
}

/* --- TIMELINE RIVER --- */

.timeline-river {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.river-section-header {
    font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #4A4540;
    margin-bottom: 40px;
    text-align: center;
}

.river-story {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    margin-bottom: 8px;
}

.river-timestamp {
    text-align: right;
    padding-top: 4px;
}

.timestamp-time {
    display: block;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #B8960C;
    line-height: 1.2;
}

.timestamp-date {
    display: block;
    font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7A756D;
    margin-top: 2px;
}

.river-content {
    padding-bottom: 8px;
}

.river-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.river-content .dateline {
    margin-bottom: 10px;
}

.river-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #2B2B2B;
}

/* River separator (em-dash ornament) */
.river-separator {
    text-align: center;
    padding: 16px 0;
    grid-column: 1 / -1;
}

.river-separator span {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    font-size: 2rem;
    color: #D1CFC8;
    letter-spacing: 0.1em;
}

/* --- COLOPHON --- */

.colophon {
    padding: 0 80px 48px;
}

.colophon-rule {
    height: 1px;
    background-color: #2B2B2B;
    margin-bottom: 32px;
}

.colophon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.colophon-col {
    border-right: 0.5px solid #D1CFC8;
    padding-right: 20px;
}

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

.colophon-heading {
    font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4A4540;
    margin-bottom: 8px;
}

.colophon-text {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.6;
    color: #7A756D;
    letter-spacing: 0.02em;
}

/* --- RESPONSIVE: TABLET --- */

@media (max-width: 1024px) {
    .masthead,
    .headline-belt,
    .column-field,
    .section-break,
    .colophon {
        padding-left: 40px;
        padding-right: 40px;
    }

    .column-field-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lead-article {
        grid-column: 1 / -1;
        border-right: none;
        padding-right: 0;
        padding-bottom: 32px;
        border-bottom: 1px solid #4A4540;
        margin-bottom: 8px;
    }

    .sidebar {
        grid-column: 1 / -1;
    }

    .colophon-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .colophon-col:nth-child(3) {
        border-right: none;
    }

    .colophon-col:nth-child(n+4) {
        margin-top: 16px;
    }

    .deck {
        max-width: 100%;
    }

    .lead-headline {
        font-size: clamp(2.5rem, 6vw, 5rem);
    }
}

/* --- RESPONSIVE: MOBILE --- */

@media (max-width: 640px) {
    .masthead,
    .headline-belt,
    .column-field,
    .section-break,
    .colophon {
        padding-left: 20px;
        padding-right: 20px;
    }

    .masthead-inner {
        grid-template-columns: 1fr;
        height: auto;
        padding-top: 20px;
        text-align: center;
        gap: 4px;
    }

    .masthead-date {
        text-align: center;
        order: 2;
    }

    .masthead-logo {
        order: 1;
    }

    .masthead-edition {
        text-align: center;
        order: 3;
        margin-bottom: 12px;
    }

    .masthead-nav {
        flex-wrap: wrap;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 12px 0;
    }

    .column-field-grid {
        grid-template-columns: 1fr;
    }

    .lead-article {
        grid-column: 1;
    }

    .sidebar {
        grid-column: 1;
    }

    .colophon-grid {
        grid-template-columns: 1fr;
    }

    .colophon-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 0.5px solid #D1CFC8;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .colophon-col:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .lead-headline {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .deck {
        max-width: 100%;
        font-size: 1.05rem;
    }

    .lead-article-body p:first-of-type::first-letter {
        font-size: 4em;
    }

    .river-story {
        grid-template-columns: 60px 1fr;
        gap: 16px;
    }

    .timeline-river {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* --- PRINT STYLESHEET --- */

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .masthead-nav {
        display: none;
    }

    .lead-headline {
        font-size: 36pt;
    }

    .column-field-grid {
        display: block;
        column-count: 3;
        column-gap: 24px;
        column-rule: 0.5px solid #ccc;
    }

    .lead-article,
    .sidebar {
        break-inside: avoid;
    }

    .pull-quote {
        border-left-color: #000;
    }

    .timeline-river {
        max-width: 100%;
    }
}
