/* mujun.day - Daily Paradox Broadsheet / 矛盾 */
/* Vintage newspaper layout meets kinetic typography */

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

:root {
    --newsprint: #f0e8d8;
    --aged-paper: #e8dcc8;
    --ink-black: #2a2a2a;
    --ink-brown: #4a3a2a;
    --rule-line: #c8b8a0;
    --tan: #d8c8a8;
    --accent-red: #c84030;
    --muted-gray: #6a6a5a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--newsprint);
    color: var(--ink-black);
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========== MASTHEAD ========== */

.masthead {
    padding: 1rem 2rem;
    text-align: center;
}

.masthead-rule-top {
    border-top: 2px solid var(--ink-black);
    border-bottom: 1px solid var(--ink-black);
    height: 5px;
    margin-bottom: 0.75rem;
}

.masthead-rule-bottom {
    border-top: 1px solid var(--ink-black);
    border-bottom: 2px solid var(--ink-black);
    height: 5px;
    margin-top: 0.5rem;
}

.masthead-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.masthead-title {
    font-family: 'Playfair Display SC', Georgia, serif;
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.05em;
    color: var(--ink-black);
    line-height: 1;
}

.masthead-date-west,
.masthead-date-jp {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--muted-gray);
}

.masthead-subtitle {
    margin-top: 0.3rem;
}

.masthead-subtitle span {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: var(--muted-gray);
}

/* ========== HEADLINE SECTION ========== */

.headline-section {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--rule-line);
    text-align: center;
}

.headline-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.headline-text {
    font-family: 'Playfair Display SC', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 4rem);
    letter-spacing: 0.03em;
    color: var(--ink-black);
    line-height: 1.15;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInHeadline 1.5s ease 0.3s forwards;
}

@keyframes fadeInHeadline {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.headline-subhead {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--accent-red);
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ========== TICKER BAR ========== */

.ticker-bar {
    overflow: hidden;
    background: var(--ink-black);
    padding: 0.5rem 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 2rem;
    animation: tickerScroll 30s linear infinite;
}

.ticker-item {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--newsprint);
    flex-shrink: 0;
}

.ticker-sep {
    color: var(--accent-red);
    font-size: 0.6rem;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========== COLUMNS SECTION ========== */

.columns-section {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--rule-line);
}

.columns-content {
    max-width: 800px;
    margin: 0 auto;
}

.column-text {
    columns: 3;
    column-gap: 2rem;
    column-rule: 1px solid var(--rule-line);
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    line-height: 1.75;
    color: var(--ink-black);
    text-align: justify;
    hyphens: auto;
}

.drop-cap {
    float: left;
    font-family: 'Playfair Display SC', Georgia, serif;
    font-weight: 900;
    font-size: 3.5em;
    line-height: 0.8;
    padding-right: 0.08em;
    padding-top: 0.05em;
    color: var(--accent-red);
}

/* ========== PAST EDITIONS ========== */

.past-editions {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--rule-line);
}

.editions-heading {
    font-family: 'Playfair Display SC', Georgia, serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.05em;
    color: var(--ink-black);
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule-line);
    padding-bottom: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.edition-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.edition-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted var(--rule-line);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.edition-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.edition-date {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--muted-gray);
    flex-shrink: 0;
    min-width: 4em;
}

.edition-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: var(--ink-brown);
}

/* ========== COLOPHON / FOOTER ========== */

.colophon {
    padding: 2rem 2rem 3rem;
    text-align: center;
}

.colophon-rule {
    border-top: 1px solid var(--ink-black);
    border-bottom: 2px solid var(--ink-black);
    height: 5px;
    margin-bottom: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.colophon-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    color: var(--muted-gray);
    margin-bottom: 0.5rem;
}

.colophon-domain {
    font-family: 'Playfair Display SC', Georgia, serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.1em;
    color: var(--ink-black);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .column-text {
        columns: 1;
        column-rule: none;
    }

    .masthead-content {
        flex-direction: column;
        gap: 0.3rem;
    }

    .masthead-date-west,
    .masthead-date-jp {
        display: block;
    }
}

@media (max-width: 480px) {
    .headline-section {
        padding: 2rem 1.5rem;
    }

    .columns-section {
        padding: 2rem 1.5rem;
    }
}
