/* gazza.news - Vintage Newspaper Experience */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #F4EDE4;
    color: #3D3530;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Newsprint Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background:
        radial-gradient(circle 1px at 20% 30%, rgba(44, 36, 32, 0.03) 1px, transparent 1px),
        radial-gradient(circle 1px at 60% 70%, rgba(44, 36, 32, 0.02) 1px, transparent 1px),
        radial-gradient(circle 1px at 80% 20%, rgba(44, 36, 32, 0.03) 1px, transparent 1px),
        radial-gradient(circle 1px at 40% 80%, rgba(44, 36, 32, 0.02) 1px, transparent 1px),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(44, 36, 32, 0.008) 2px,
            rgba(44, 36, 32, 0.008) 3px
        );
    background-size: 150px 150px, 200px 200px, 180px 180px, 160px 160px, 100% 4px;
}

/* ===== Page Structure ===== */
.page {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-1 {
    min-height: 100vh;
    padding-top: 40px;
    background: #F4EDE4;
}

.page-2 {
    min-height: 100vh;
    background: #EBE0D2;
    padding-top: 40px;
    padding-bottom: 80px;
    max-width: 100%;
}

.page-2 .section-header,
.page-2 .feature-layout {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.page-3 {
    padding-top: 40px;
    padding-bottom: 80px;
    background: #F4EDE4;
}

.page-4 {
    min-height: 100vh;
    background: #EBE0D2;
    padding-top: 40px;
    padding-bottom: 80px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.page-4 .section-header,
.page-4 .editorial-column {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    width: 100%;
}

.page-5 {
    min-height: 60vh;
    background: #F4EDE4;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Masthead ===== */
.masthead {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
}

.masthead-rule {
    display: block;
    margin: 0 auto;
    max-width: 800px;
}

.rule-top {
    border-top: 1px solid #2C2420;
    border-bottom: 3px solid #2C2420;
    height: 6px;
    margin-bottom: 2px;
    position: relative;
}

.rule-top::after {
    content: '';
    display: block;
    border-bottom: 1px solid #2C2420;
    margin-top: 2px;
}

.rule-bottom {
    border-top: 1px solid #2C2420;
    height: 2px;
    margin-top: 2px;
    position: relative;
}

.rule-bottom::before {
    content: '';
    display: block;
    border-top: 3px solid #2C2420;
    margin-bottom: 2px;
}

.rule-bottom::after {
    content: '';
    display: block;
    border-top: 1px solid #2C2420;
    margin-top: 2px;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 56px;
    color: #2C2420;
    line-height: 1.05;
    letter-spacing: -0.01em;
    padding: 12px 0;
    text-shadow: 0 0 1px rgba(44, 36, 32, 0.3);
}

.masthead-dateline {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #6B5B4F;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 4px;
}

/* ===== Headlines ===== */
.headline {
    font-family: 'Playfair Display', serif;
    color: #2C2420;
    text-shadow: 0 0 1px rgba(44, 36, 32, 0.3);
}

.headline-lead {
    font-weight: 900;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.headline-secondary {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.headline-feature {
    font-weight: 900;
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.headline-grid {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.headline-editorial {
    font-weight: 900;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    text-align: center;
}

/* ===== Bylines ===== */
.byline {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6B5B4F;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.byline-author {
    font-weight: 500;
}

.byline-date {
    margin-left: 12px;
    opacity: 0.7;
}

/* ===== Article Body ===== */
.article-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: #3D3530;
    margin-bottom: 12px;
}

/* ===== Front Page Grid ===== */
.front-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Column rules */
.front-page-grid::before,
.front-page-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(44, 36, 32, 0.2);
}

.front-page-grid::before {
    left: 50%;
}

.front-page-grid::after {
    left: 25%;
}

.lead-story {
    grid-column: 1 / -1;
    padding-bottom: 32px;
    border-bottom: 3px solid #2C2420;
}

.secondary-story {
    grid-column: span 2;
    padding-top: 24px;
}

.story-left {
    padding-right: 12px;
    border-right: 1px solid rgba(44, 36, 32, 0.2);
}

.story-right {
    padding-left: 12px;
}

/* ===== Dateline Strips ===== */
.dateline-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2C2420;
    border-bottom: 1px solid #2C2420;
    padding: 4px 0;
    margin-bottom: 24px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #6B5B4F;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #6B5B4F;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 16px 0;
}

.thick-rule {
    height: 3px;
    background: #2C2420;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Ornaments ===== */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ornament-rule {
    display: inline-block;
    width: 80px;
    height: 1px;
    background: #2C2420;
}

.ornament-diamond {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #2C2420;
    transform: rotate(45deg);
}

.ornament-circle {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2C2420;
}

/* ===== Feature Layout ===== */
.feature-layout {
    max-width: 900px;
    margin: 0 auto;
}

.feature-body {
    margin-bottom: 40px;
}

.feature-columns {
    column-count: 2;
    column-gap: 32px;
    column-rule: 1px solid rgba(44, 36, 32, 0.2);
}

/* ===== Pull Quote ===== */
.pull-quote {
    background: #C9B896;
    padding: 32px;
    margin: 32px 0;
    position: relative;
}

.pull-quote p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.3;
    color: #2C2420;
    text-align: center;
}

/* ===== Articles Grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.grid-article {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(44, 36, 32, 0.15);
}

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

.grid-article.span-2 {
    grid-column: span 2;
}

/* Breaking tag */
.breaking-tag {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 10px;
    color: #8B3A3A;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 2px 6px;
    border: 1px solid #8B3A3A;
    margin-bottom: 8px;
}

/* ===== Editorial ===== */
.editorial-column {
    max-width: 640px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-body {
    font-size: 17px;
    line-height: 1.8;
}

/* Drop Cap */
.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    float: left;
    font-size: 4em;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 6px;
    color: #8B3A3A;
    border-right: 2px solid #C9B896;
    margin-right: 12px;
}

/* ===== Colophon ===== */
.colophon-content {
    text-align: center;
    padding: 40px;
}

.colophon-masthead {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 32px;
    color: #2C2420;
    letter-spacing: -0.01em;
    text-shadow: 0 0 1px rgba(44, 36, 32, 0.3);
    margin-bottom: 24px;
}

.thin-rule {
    height: 1px;
    background: #2C2420;
    width: 200px;
    margin: 0 auto 24px;
}

.ornament-final {
    margin-bottom: 24px;
}

.colophon-dateline {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #6B5B4F;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.colophon-fin {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #6B5B4F;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* ===== Underline Draw Animation ===== */
.underline-draw {
    display: inline;
    background-image: linear-gradient(#2C2420, #2C2420);
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 800ms ease;
}

.underline-draw.drawn {
    background-size: 100% 2px;
}

/* ===== Fade Reveal ===== */
.fade-reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.fade-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Slide Reveal ===== */
.slide-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.slide-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Alternate Section Backgrounds ===== */
.page-2,
.page-4 {
    background: #EBE0D2;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .headline-lead {
        font-size: 48px;
    }
}

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

    .front-page-grid {
        grid-template-columns: 1fr;
    }

    .front-page-grid::before,
    .front-page-grid::after {
        display: none;
    }

    .secondary-story {
        grid-column: 1;
    }

    .story-left {
        border-right: none;
        padding-right: 0;
    }

    .story-right {
        padding-left: 0;
    }

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

    .headline-secondary {
        font-size: 28px;
    }

    .headline-feature {
        font-size: 32px;
    }

    .feature-columns {
        column-count: 1;
    }

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

    .grid-article.span-1,
    .grid-article.span-2 {
        grid-column: 1;
    }

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

    .pull-quote p {
        font-size: 22px;
    }

    .dateline-strip {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-2 .section-header,
    .page-2 .feature-layout,
    .page-4 .section-header,
    .page-4 .editorial-column {
        padding: 0 20px;
    }
}
