/* simidiots.net — The Sim Idiots Gazette */
/* Palette: #FBF7F0 Newsprint, #F0EBE0 Aged Column, #1A1A1A Print Black,
   #3D3D3D Column Gray, #8B0000 Editor Red, #A08060 Faded Rule,
   #D4C5A9 Print Border, #666666 Byline Gray */

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

body {
    background: #FBF7F0;
    color: #3D3D3D;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---- Masthead ---- */
.masthead {
    text-align: center;
    border-top: 3px double #D4C5A9;
    border-bottom: 3px double #D4C5A9;
    padding: 1.5rem 2rem;
    max-width: 960px;
    margin: 2rem auto 0;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A1A1A;
    line-height: 1.15;
}

.dateline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #666666;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* ---- Section Headings ---- */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #8B0000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-rule {
    border: none;
    border-top: 1px solid #D4C5A9;
    max-width: 640px;
    margin: 0 auto 2rem;
    height: 1px;
    background: #D4C5A9;
}

/* ---- Front Page ---- */
.front-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.lead-article {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #D4C5A9;
    padding-bottom: 2.5rem;
}

.lead-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    color: #1A1A1A;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.byline {
    font-style: italic;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 1rem;
}

/* Newspaper three-column body text per DESIGN.md */
.newspaper-columns {
    column-count: 3;
    column-gap: 2rem;
    column-rule: 1px solid #D4C5A9;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.newspaper-columns p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Drop cap on lead article first paragraph */
.newspaper-columns p:first-child::first-letter {
    font-size: 3.2rem;
    float: left;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1;
    margin-right: 6px;
    margin-top: 4px;
    color: #8B0000;
}

/* ---- Story Columns ---- */
.stories-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.story {
    border-left: 1px solid #D4C5A9;
    padding-left: 1.25rem;
}

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

.story-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1A1A1A;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.story .byline {
    margin-bottom: 0.5rem;
}

.story-text {
    font-size: 0.875rem;
    color: #3D3D3D;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.65;
}

/* ---- Classifieds ---- */
.classifieds {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem;
    background: #F0EBE0;
    border-top: 2px solid #D4C5A9;
    border-bottom: 2px solid #D4C5A9;
}

.classified-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.classified-entry {
    border-bottom: 1px solid #D4C5A9;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.classified-category {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #8B0000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.classified-text {
    font-size: 0.875rem;
    color: #3D3D3D;
    line-height: 1.6;
}

.classified-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #A08060;
}

.ornament {
    display: block;
    text-align: center;
    color: #A08060;
    font-size: 0.8rem;
    padding: 0.15rem 0;
    line-height: 1;
}

/* ---- Letters to the Editor ---- */
.letters {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem;
}

.letter {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #D4C5A9;
    padding-bottom: 1.75rem;
}

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

.letter-text {
    font-style: italic;
    font-size: 0.95rem;
    color: #3D3D3D;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.editor-response {
    font-size: 0.875rem;
    color: #1A1A1A;
    padding-left: 1rem;
    border-left: 2px solid #8B0000;
    line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.footer-rule {
    border: none;
    height: 1px;
    background: #D4C5A9;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #1A1A1A;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.flink {
    font-size: 0.85rem;
    color: #8B0000;
    text-decoration: none;
    font-family: Georgia, serif;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #1A1A1A;
}

.footer-dot {
    color: #A08060;
    font-size: 0.6rem;
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #A08060;
}

/* ---- Fade-in Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .newspaper-columns {
        column-count: 2;
    }

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

    .story {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #D4C5A9;
        padding-top: 1rem;
    }

    .story:first-child {
        border-top: none;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .newspaper-columns {
        column-count: 1;
    }

    .masthead {
        padding: 1rem;
    }

    .front-page {
        padding: 1.5rem 1rem;
    }
}
