/* historic.day - Vintage Newspaper Layout */

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

:root {
    --newsprint: #FAF0E3;
    --headline-ink: #2C1810;
    --body-ink: #3D2B1F;
    --column-rule: #8B7355;
    --aged-paper: #F0E2CC;
    --red-accent: #8B2500;
    --faded-ink: #B8A48C;
}

body {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--body-ink);
    background: var(--newsprint);
    overflow-x: hidden;
    box-shadow: inset 0 0 100px 40px rgba(245, 240, 227, 0.8);
}

/* Masthead */
#masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--newsprint);
    padding: 0 2rem;
}

.masthead-inner {
    max-width: 960px;
    margin: 0 auto;
}

.masthead-rule {
    height: 0;
    position: relative;
    overflow: visible;
}

.masthead-rule.top {
    border-top: 1px solid var(--column-rule);
    margin-bottom: 2px;
    padding-top: 3px;
    border-bottom: 3px solid var(--column-rule);
}

.masthead-rule.bottom {
    border-top: 3px solid var(--column-rule);
    margin-top: 2px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--column-rule);
}

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

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--headline-ink);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masthead-title.visible {
    opacity: 1;
}

.masthead-left,
.masthead-right {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.7rem;
    color: var(--faded-ink);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Main Content */
#front-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

/* Headlines */
.main-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: 0.02em;
    color: var(--headline-ink);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.sub-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--body-ink);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--headline-ink);
    text-align: center;
    margin-bottom: 1.5rem;
}

.feature-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--headline-ink);
    margin-bottom: 1rem;
}

.column-head {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--headline-ink);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--column-rule);
    padding-bottom: 0.3rem;
}

/* Ornamental Rules */
.ornamental-rule {
    position: relative;
    height: 8px;
    margin: 2rem 0;
    border-top: 1px solid var(--column-rule);
    border-bottom: 2px solid var(--column-rule);
}

.diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--column-rule);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Three Column Layout */
.three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.column {
    text-align: justify;
    hyphens: auto;
}

.column p {
    margin-bottom: 0.8rem;
}

.lead-column {
    border-right: 1px solid rgba(139, 115, 85, 0.5);
    padding-right: 24px;
}

.center-column {
    border-right: 1px solid rgba(139, 115, 85, 0.5);
    padding-right: 24px;
}

/* Drop Cap */
.drop-cap-text::first-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 0.8;
    float: left;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--headline-ink);
}

.feature-drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 0.8;
    float: left;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--headline-ink);
}

/* Edition List */
.edition-list {
    list-style: none;
    padding: 0;
}

.edition-list li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px dotted var(--column-rule);
    text-align: left;
}

/* Feature Article - Two Columns */
.two-columns {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 24px;
}

.column-wide {
    text-align: justify;
    hyphens: auto;
}

.column-wide p {
    margin-bottom: 0.8rem;
}

.sidebar-timeline {
    border-left: 1px solid rgba(139, 115, 85, 0.5);
    padding-left: 24px;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--headline-ink);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-entry {
    display: flex;
    gap: 12px;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--column-rule);
    align-items: baseline;
}

.timeline-date {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--red-accent);
    white-space: nowrap;
}

.timeline-event {
    font-size: 0.85rem;
    color: var(--body-ink);
}

/* Gallery of Days */
.gallery-of-days {
    padding: 2rem 0;
}

.clippings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.clipping {
    background: var(--aged-paper);
    border: 1px solid var(--column-rule);
    padding: 16px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clipping.visible {
    opacity: 1;
    transform: translateY(0);
}

.clipping:hover {
    transform: translateY(-3px);
    border-color: var(--body-ink);
    box-shadow: 2px 2px 6px rgba(44, 24, 16, 0.2);
}

.clipping-date {
    font-size: 0.7rem;
    color: var(--red-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.clipping-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--headline-ink);
    line-height: 1.3;
}

/* Classified Footer */
#classified-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 3px solid var(--column-rule);
    margin-top: 2rem;
}

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

.classified-col {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.classified-col.visible {
    opacity: 1;
}

.classified-col h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--headline-ink);
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--column-rule);
    padding-bottom: 0.2rem;
}

.classified-col p {
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--faded-ink);
}

/* Responsive */
@media (max-width: 768px) {
    .three-columns {
        grid-template-columns: 1fr;
    }

    .lead-column,
    .center-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(139, 115, 85, 0.5);
        padding-bottom: 1rem;
    }

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

    .sidebar-timeline {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(139, 115, 85, 0.5);
        padding-top: 1rem;
    }

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

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

/* Fade-in sections */
.hero-section,
.feature-article {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-section.visible,
.feature-article.visible {
    opacity: 1;
}
