/* bada.news - Vintage Maritime Newspaper */
/* Colors: #F5F0E8 #1A1A18 #8B7355 #A0845C #2C4A4E #8B2500 #6B6B4E #4A6670 */

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

body {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.7;
    background: #F5F0E8;
    color: #1A1A18;
    overflow-x: hidden;
}

/* ===== Halftone Pattern (subtle) ===== */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, #1A1A18 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* ===== Masthead ===== */
#masthead {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.masthead-rule { height: 5px; }

.top-rule {
    border-top: 2px solid #8B7355;
    border-bottom: 1px solid #8B7355;
    margin-bottom: 1rem;
}

.bottom-rule {
    border-top: 1px solid #8B7355;
    border-bottom: 2px solid #8B7355;
    margin-top: 0.75rem;
}

.masthead-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.masthead-left, .masthead-right {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B6B4E;
    min-width: 140px;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
    color: #1A1A18;
    line-height: 1;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.masthead-motto {
    font-family: 'Libre Baskerville', serif;
    font-variant: small-caps;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #4A6670;
    margin-top: 0.4rem;
}

.masthead-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.wave-icon { flex-shrink: 0; }

.weather-text {
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #6B6B4E;
}

/* ===== Newspaper Main ===== */
#newspaper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.news-section {
    padding: 1.5rem 0;
    position: relative;
}

/* ===== Section Dividers ===== */
.section-divider { margin: 0.5rem 0; }

.double-rule {
    border-top: 2px solid #8B7355;
    border-bottom: 1px solid #8B7355;
    height: 5px;
}

.single-rule {
    border-top: 1px solid rgba(139,115,85,0.4);
}

/* ===== Section Headers ===== */
.section-header {
    font-family: 'Libre Baskerville', serif;
    font-variant: small-caps;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #4A6670;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #8B7355;
}

/* ===== Ink Stamp Decorations ===== */
.ink-stamp {
    position: absolute;
    top: 1rem;
    right: 0;
    width: 50px;
    height: 50px;
    border: 2px solid #4A6670;
    border-radius: 50%;
    opacity: 0.12;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(8deg);
}

.ink-stamp span {
    font-family: 'Inconsolata', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: #4A6670;
}

/* ===== Front Page Layout ===== */
.front-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0;
}

.main-story {
    padding-right: 1.5rem;
    border-right: 1px solid rgba(139,115,85,0.25);
}

.front-sidebar {
    padding-left: 1.5rem;
}

.brief-divider {
    border-top: 1px solid rgba(139,115,85,0.25);
    margin: 1rem 0;
}

/* ===== Headlines ===== */
.headline {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #1A1A18;
    margin-bottom: 0.75rem;
}

.sub-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1A1A18;
    margin-bottom: 0.75rem;
}

.byline {
    display: flex;
    gap: 1.5rem;
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B6B4E;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(139,115,85,0.25);
}

/* ===== Story Text ===== */
.story-text {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.7;
    color: #1A1A18;
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
}

.story-text:last-child { margin-bottom: 0; }

.story-columns.two-col {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 1px solid rgba(139,115,85,0.25);
}

/* ===== Drop Caps ===== */
.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 0.05em;
    color: #2C4A4E;
    text-shadow: 1px 1px 0 #A0845C;
}

/* ===== Three Column Layout ===== */
.three-col-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.col-story {
    padding: 0 1.25rem;
    border-right: 1px solid rgba(139,115,85,0.25);
}

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

.col-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #1A1A18;
    margin-bottom: 0.75rem;
}

/* ===== Pull Quote ===== */
.pull-quote {
    border-left: 3px solid #2C4A4E;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    background: radial-gradient(circle, #1A1A18 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    background-color: transparent;
}

.pull-quote::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    color: #2C4A4E;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
}

.pull-quote blockquote {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2C4A4E;
    position: relative;
    z-index: 1;
}

.pull-quote cite {
    display: block;
    font-family: 'Inconsolata', monospace;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B6B4E;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ===== Feature ===== */
.feature-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.2;
    color: #1A1A18;
    margin-bottom: 1rem;
}

/* ===== Shipping Table ===== */
.shipping-table { width: 100%; }

.shipping-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139,115,85,0.15);
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    color: #1A1A18;
}

.header-row {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B6B4E;
    font-size: 0.7rem;
    border-bottom: 1px solid #8B7355;
}

/* ===== Classifieds ===== */
#classifieds { padding: 1.5rem 0; }

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.classified-item {
    font-family: 'Source Serif 4', serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #1A1A18;
    padding: 0.5rem;
    border: 1px solid rgba(139,115,85,0.15);
}

.classified-item strong {
    font-family: 'Inconsolata', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B2500;
}

.footer-rule {
    border-top: 2px solid #8B7355;
    border-bottom: 1px solid #8B7355;
    height: 5px;
    margin: 2rem 0 1rem;
}

.footer-credit {
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A0845C;
    text-align: center;
}

/* ===== Animations ===== */
.reveal-el {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .front-layout {
        grid-template-columns: 1fr;
    }

    .main-story {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(139,115,85,0.25);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .front-sidebar {
        padding-left: 0;
    }

    .story-columns.two-col {
        column-count: 1;
    }

    .three-col-layout {
        grid-template-columns: 1fr;
    }

    .col-story {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(139,115,85,0.25);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .col-story:last-child { border-bottom: none; }

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

    .masthead-content {
        flex-direction: column;
    }

    .shipping-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 600px) {
    .classifieds-grid {
        grid-template-columns: 1fr;
    }

    #newspaper {
        padding: 1rem;
    }

    #masthead {
        padding: 1rem 1rem 0;
    }
}
