/* matchumnews.com - Vintage Newspaper / Victorian Ornate */
/* Colors: #1A1209, #2C1E0F, #3D2B1F, #7A6652, #8B1A2B, #C5982E, #EDE3CA, #F5EDDA */
/* Fonts: Playfair Display, Lora, Cormorant Garamond, Space Mono */

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

body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    color: #2C1E0F;
    background: #F5EDDA;
    overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

.noise-overlay.visible {
    opacity: 1;
}

/* Ornamental Rules */
.ornamental-rule {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 24px;
    overflow: hidden;
}

.rule-svg {
    width: 100%;
    height: 20px;
}

.top-rule {
    padding-top: 32px;
}

.rule-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.rule-line.drawn {
    animation: drawRule 0.8s ease-out forwards;
}

@keyframes drawRule {
    to { stroke-dashoffset: 0; }
}

.rule-flourish {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.rule-flourish.drawn {
    animation: drawFlourish 0.6s ease-out 0.4s forwards;
}

@keyframes drawFlourish {
    to { stroke-dashoffset: 0; }
}

/* Masthead */
.masthead {
    text-align: center;
    padding: 24px 24px 16px;
    max-width: 800px;
    margin: 0 auto;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 72px;
    color: #1A1209;
    letter-spacing: 0.02em;
    line-height: 1;
}

.masthead-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-4px);
}

.masthead-title .letter.stamped {
    animation: stampLetter 0.15s ease-out forwards;
}

@keyframes stampLetter {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dateline {
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dateline.visible {
    opacity: 1;
}

.dateline-text {
    font-size: 11px;
    color: #7A6652;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mono-text {
    font-family: 'Space Mono', monospace;
}

/* Newspaper Grid */
.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

/* Stories */
.story {
    padding: 20px 0;
}

.lead-story {
    grid-column: 1 / 5;
    grid-row: 1;
    border-right: 1px solid #3D2B1F;
    padding-right: 16px;
}

.sidebar-story {
    grid-column: 5 / 7;
    grid-row: 1;
}

.column-rule {
    grid-column: 1 / 7;
    grid-row: 2;
    height: 1px;
    background: #3D2B1F;
    margin: 8px 0;
}

.second-story {
    grid-column: 1 / 4;
    grid-row: 3;
    border-right: 1px solid #3D2B1F;
    padding-right: 16px;
}

.third-story {
    grid-column: 4 / 7;
    grid-row: 3;
}

.ornamental-break {
    grid-column: 1 / 7;
    grid-row: 4;
    text-align: center;
    padding: 16px 0;
}

.break-svg {
    width: 100px;
    height: 20px;
}

.fourth-story {
    grid-column: 1 / 4;
    grid-row: 5;
    border-right: 1px solid #3D2B1F;
    padding-right: 16px;
}

.fifth-story {
    grid-column: 4 / 7;
    grid-row: 5;
}

/* Headlines */
.story-headline {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #1A1209;
    margin-bottom: 8px;
    line-height: 1.25;
}

.lead-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.01em;
}

.sidebar-headline {
    font-size: 22px;
}

.second-story .story-headline,
.third-story .story-headline,
.fourth-story .story-headline,
.fifth-story .story-headline {
    font-size: 20px;
}

/* Bylines */
.story-byline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    color: #7A6652;
    margin-bottom: 16px;
}

/* Body Text */
.story-body p {
    margin-bottom: 12px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    color: #2C1E0F;
}

/* Drop Caps */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 64px;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 4px;
    color: #8B1A2B;
}

/* Letter Text */
.letter-text {
    font-style: italic;
    margin-bottom: 4px;
}

.letter-attribution {
    font-size: 14px;
    color: #7A6652;
    text-align: right;
    margin-bottom: 16px;
}

/* Fade Reveal */
.fade-reveal {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.fade-reveal.visible {
    opacity: 1;
}

/* Bottom Rule */
.bottom-rule {
    padding-bottom: 16px;
}

/* Footer */
.newspaper-footer {
    text-align: center;
    padding: 24px 24px 48px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    font-size: 11px;
    color: #7A6652;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.footer-motto {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 16px;
    color: #8B1A2B;
}

/* Column highlight on hover */
.story {
    transition: background 0.3s ease;
}

.story:hover {
    background: rgba(197, 152, 46, 0.05);
}

/* Link styling - gold */
a {
    color: #C5982E;
    text-decoration: underline;
}

a:hover {
    color: #8B1A2B;
}

/* Responsive */
@media (max-width: 768px) {
    .newspaper-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .lead-story,
    .sidebar-story,
    .second-story,
    .third-story,
    .fourth-story,
    .fifth-story {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #3D2B1F;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .column-rule {
        display: none;
    }

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

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

    .drop-cap {
        font-size: 48px;
    }
}
