/* ==========================================================================
   masugomi.com — Vintage newspaper layout for media criticism
   Palette: #f5f0e8 #1a1a1a #c41e1e #2a2a2a #e8e0d0 #6b6b6b #d4cec2
   Fonts:   Noto Serif JP, Noto Sans JP, Shippori Mincho
            Fallbacks: Georgia (serif), Helvetica (sans)
   ========================================================================== */

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

html {
    background: #e8e0d0;
}

body {
    background: #f5f0e8;
    color: #2a2a2a;
    font-family: "Noto Sans JP", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 1320px;
    padding: 0 2.5rem 0;
    position: relative;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(196, 30, 30, 0.025) 0, transparent 36%),
        radial-gradient(circle at 88% 78%, rgba(26, 26, 26, 0.04) 0, transparent 40%),
        repeating-linear-gradient(0deg, rgba(26, 26, 26, 0.012) 0 1px, transparent 1px 4px);
}

a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: #c41e1e;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

em {
    font-style: italic;
}

strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* ===== Paper edges ====================================================== */
.paper-edge {
    position: relative;
    height: 14px;
    margin: 0 -2.5rem;
    background:
        repeating-linear-gradient(90deg,
            transparent 0 6px,
            rgba(26, 26, 26, 0.18) 6px 7px,
            transparent 7px 13px);
    opacity: 0.55;
}
.top-edge { margin-bottom: 1.25rem; }
.bottom-edge { margin-top: 1.25rem; }

/* ===== Masthead ========================================================= */
.masthead {
    text-align: center;
    padding: 0.5rem 0 1.25rem;
}

.masthead-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    color: #6b6b6b;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.4rem 0.25rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px dotted #d4cec2;
}

.masthead-meta {
    white-space: nowrap;
}

.masthead-rule {
    background: #1a1a1a;
    width: 100%;
}
.masthead-rule-top    { height: 1px; }
.masthead-rule-bottom { height: 3px; }

.masthead-title {
    font-family: "Noto Serif JP", Georgia, serif;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 0.15em;
    line-height: 1.05;
    padding: 1.5rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.masthead-jp {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    letter-spacing: 0.45em;
    color: #c41e1e;
    text-indent: 0.45em; /* offset trailing letter-spacing */
}

.masthead-en {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    text-indent: 0.15em;
}

.masthead-tagline {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-top: 0.85rem;
}
.masthead-tagline em {
    color: #c41e1e;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* ===== Hero headline ==================================================== */
.hero-headline {
    margin: 2rem 0 0.5rem;
    padding: 0 0.25rem;
}

.kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.kicker-tag {
    background: #c41e1e;
    color: #f5f0e8;
    padding: 0.3rem 0.7rem 0.25rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.kicker-byline {
    color: #6b6b6b;
}

.hero-h2 {
    font-family: "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: clamp(2.2rem, 5.4vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.005em;
    margin-bottom: 1rem;
}
.hero-h2 em {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-weight: 800;
    font-style: italic;
    color: #c41e1e;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: #c41e1e;
    text-underline-offset: 6px;
}

.hero-deck {
    font-family: "Noto Serif JP", Georgia, serif;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: #2a2a2a;
    max-width: 64ch;
    margin-bottom: 1.25rem;
}

.hero-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
    border-top: 1px solid #d4cec2;
    border-bottom: 1px solid #d4cec2;
    padding: 0.6rem 0;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: #1a1a1a;
}
.hero-meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* ===== Red burst marker ================================================ */
.red-burst {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c41e1e;
    flex: 0 0 6px;
    box-shadow: 0 0 0 1.5px rgba(196, 30, 30, 0.18);
}
.margin-burst {
    margin-right: 0.5rem;
    transform: translateY(-2px);
}

/* ===== Section labels and rules ======================================== */
.section-rule {
    border: none;
    height: 3px;
    background: #1a1a1a;
    margin: 2.6rem 0 0.5rem;
}

.section-label {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: #6b6b6b;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: lowercase;
}

/* ===== Newspaper columns =============================================== */
.newspaper-columns {
    column-count: 3;
    column-gap: 2rem;
    column-rule: 1px solid #d4cec2;
    margin: 1.5rem 0 0;
    padding: 0 0.1rem;
}

.col-article {
    break-inside: avoid;
    margin-bottom: 1.6rem;
    display: inline-block;
    width: 100%;
}

.article-headline {
    font-family: "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.5rem;
    line-height: 1.18;
    margin-bottom: 0.35rem;
    letter-spacing: -0.005em;
}

.article-byline {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 0.85rem;
    border-bottom: 1px dotted #d4cec2;
    padding-bottom: 0.4rem;
}
.byline-author {
    color: #c41e1e;
    letter-spacing: 0.16em;
}

.col-article p {
    color: #2a2a2a;
    margin-bottom: 0.85rem;
    text-align: justify;
    hyphens: auto;
}

.flagged {
    background: linear-gradient(transparent 62%, rgba(196, 30, 30, 0.18) 62% 92%, transparent 92%);
    color: #1a1a1a;
    padding: 0 0.05em;
    font-style: italic;
}

.dropcap-paragraph {
    /* paragraph wrapping the drop cap */
}

.dropcap {
    float: left;
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-weight: 800;
    color: #c41e1e;
    font-size: 4rem;
    line-height: 0.85;
    padding: 0.35rem 0.5rem 0 0;
    margin-top: 0.1rem;
}

.ranked-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0.8rem;
    border-top: 1px solid #d4cec2;
}
.ranked-list li {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    column-gap: 0.55rem;
    border-bottom: 1px dotted #d4cec2;
    padding: 0.45rem 0;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.85rem;
}
.rank-num {
    font-family: "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    color: #c41e1e;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.rank-word {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
    font-style: italic;
}
.rank-note {
    color: #6b6b6b;
    font-size: 0.78rem;
    font-style: italic;
}

/* ===== Pull quote (full span) ========================================== */
.full-span {
    column-span: all;
}

.pull-quote-block {
    border-top: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    padding: 2rem 1rem 1.6rem;
    margin: 2.4rem 0 1.5rem;
    text-align: center;
    position: relative;
    background: #f5f0e8;
}

.quote-mark {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-size: 5rem;
    line-height: 0.5;
    color: #c41e1e;
    height: 1.5rem;
    margin-top: -2.6rem;
    margin-bottom: 0.6rem;
    background: #f5f0e8;
    display: inline-block;
    padding: 0 0.6rem;
}

.pull-quote-text {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.35;
    color: #1a1a1a;
    max-width: 38ch;
    margin: 0 auto;
    font-style: italic;
}

.pull-quote-attr {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    color: #6b6b6b;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 1rem;
}
.pull-quote-attr em {
    color: #c41e1e;
    text-transform: none;
    letter-spacing: 0.04em;
    font-style: italic;
}

/* ===== Dossier grid ==================================================== */
.dossier-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    margin-top: 1.2rem;
    border-top: 1px solid #d4cec2;
    border-left: 1px solid #d4cec2;
    background: #f5f0e8;
}

.dossier-card {
    padding: 1.25rem 1.4rem;
    border-right: 1px solid #d4cec2;
    border-bottom: 1px solid #d4cec2;
    background: #f5f0e8;
}
.dossier-card.dossier-large {
    grid-row: span 2;
    background: #e8e0d0;
}

.dossier-tag {
    display: inline-block;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c41e1e;
    border: 1px solid #c41e1e;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.dossier-headline {
    font-family: "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.45rem;
    line-height: 1.18;
    margin-bottom: 0.5rem;
}
.dossier-large .dossier-headline {
    font-size: 1.85rem;
}

.dossier-deck {
    font-family: "Noto Serif JP", Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #2a2a2a;
    margin-bottom: 1rem;
}

.dossier-stats {
    list-style: none;
    margin: 0.6rem 0 0.8rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-top: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
}
.dossier-stats li {
    padding: 0.85rem 0.7rem;
    border-right: 1px solid #d4cec2;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.dossier-stats li:last-child { border-right: none; }

.stat-num {
    font-family: "Noto Serif JP", Georgia, serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: #c41e1e;
    letter-spacing: -0.02em;
    display: inline-block;
}
.stat-unit {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    margin-left: -0.15em;
    align-self: flex-end;
    transform: translateY(-0.4rem);
    display: inline-block;
}
.stat-label {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.75rem;
    color: #6b6b6b;
    line-height: 1.4;
    margin-top: 0.15rem;
}

.dossier-foot {
    color: #2a2a2a;
    font-size: 0.85rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dotted #d4cec2;
}

.dossier-card p {
    margin-bottom: 0.7rem;
}

/* meter rows */
.meter-row {
    display: grid;
    grid-template-columns: 110px 1fr 36px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
    border-bottom: 1px dotted #d4cec2;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.78rem;
}
.meter-row:last-child { border-bottom: none; }
.meter-label { color: #6b6b6b; letter-spacing: 0.12em; text-transform: uppercase; }
.meter-bar {
    height: 10px;
    background: #e8e0d0;
    border: 1px solid #d4cec2;
    position: relative;
    overflow: hidden;
}
.meter-fill {
    display: block;
    height: 100%;
    background:
        repeating-linear-gradient(135deg,
            #1a1a1a 0 4px,
            #2a2a2a 4px 8px);
    transition: width 1.2s cubic-bezier(.2, .7, .1, 1);
}
.meter-fill.meter-red {
    background:
        repeating-linear-gradient(135deg,
            #c41e1e 0 4px,
            #a41818 4px 8px);
}
.meter-val {
    text-align: right;
    font-family: "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
}

/* corrections */
.correction-line {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: baseline;
    column-gap: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #d4cec2;
    font-size: 0.85rem;
    color: #2a2a2a;
}
.correction-line:last-child { border-bottom: none; }
.correction-date {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #c41e1e;
    font-weight: 700;
    text-transform: uppercase;
}

/* margin notes */
.margin-note {
    position: relative;
    padding: 0.55rem 0 0.55rem 0;
    border-bottom: 1px dotted #d4cec2;
    font-family: "Noto Serif JP", Georgia, serif;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #2a2a2a;
}
.margin-note:last-child { border-bottom: none; }
.margin-note em {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b6b6b;
    font-style: normal;
    display: inline-block;
    margin-right: 0.45rem;
}
.margin-note .initials {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-style: italic;
    color: #c41e1e;
    margin-left: 0.35rem;
}

/* ===== Classifieds ===================================================== */
.classifieds {
    background: #e8e0d0;
    padding: 1.4rem 1.4rem;
    margin-top: 1.2rem;
    border-top: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
}
.classifieds-inner {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 1px solid #d4cec2;
}
.classified-line {
    break-inside: avoid;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dotted #6b6b6b;
    font-family: "Noto Serif JP", Georgia, serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #2a2a2a;
}
.classified-line:last-child { border-bottom: none; margin-bottom: 0; }
.classified-line strong {
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    color: #c41e1e;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    text-transform: uppercase;
    margin-right: 0.25rem;
    font-weight: 700;
}

/* ===== Editorial block ================================================= */
.editorial-block {
    margin-top: 1.4rem;
    padding-top: 0.5rem;
}

.editorial-headline {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-weight: 800;
    color: #1a1a1a;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0.5rem;
}

.editorial-columns {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 1px solid #d4cec2;
}
.editorial-columns p {
    margin-bottom: 0.85rem;
    text-align: justify;
    hyphens: auto;
    font-family: "Noto Serif JP", Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2a2a2a;
}
.editorial-sign {
    font-style: italic;
    color: #1a1a1a;
    border-top: 1px dotted #d4cec2;
    padding-top: 0.5rem;
}
.editorial-sign strong { color: #c41e1e; }
.editorial-jp {
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    font-weight: 700;
    margin-left: 0.4rem;
}
.editorial-postscript {
    display: inline-block;
    margin-top: 0.4rem;
    color: #6b6b6b;
    font-style: normal;
    font-size: 0.85rem;
}

/* ===== Footer ========================================================== */
.paper-footer {
    margin-top: 3rem;
    padding-top: 1rem;
}
.footer-rule {
    height: 1px;
    background: #1a1a1a;
}
.footer-rule-bottom {
    height: 3px;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 1rem 0 0.5rem;
}
.footer-col {
    padding: 0.6rem 1rem;
    border-right: 1px solid #d4cec2;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #2a2a2a;
}
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child { border-right: none; padding-right: 0; }

.footer-label {
    display: block;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c41e1e;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.footer-imprint {
    text-align: center;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b6b6b;
    padding: 1rem 0 1.5rem;
}
.imprint-jp {
    color: #c41e1e;
    font-family: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
    letter-spacing: 0.4em;
    margin-right: 0.3em;
}

/* ===== Responsive ====================================================== */
@media (max-width: 980px) {
    .dossier-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dossier-card.dossier-large {
        grid-row: auto;
        grid-column: span 2;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:nth-child(2n) { border-right: none; }
    .footer-col:nth-child(1),
    .footer-col:nth-child(2) { border-bottom: 1px solid #d4cec2; }
}

@media (max-width: 768px) {
    body { padding: 0 1.25rem; }
    .paper-edge { margin: 0 -1.25rem; }

    .masthead-meta-row {
        gap: 0.4rem 1rem;
        font-size: 0.62rem;
    }
    .masthead-en {
        font-size: clamp(1.7rem, 9vw, 2.6rem);
    }

    .newspaper-columns {
        column-count: 1;
        column-rule: none;
    }
    .col-article {
        border-bottom: 1px dotted #d4cec2;
        padding-bottom: 1rem;
    }
    .col-article:last-child { border-bottom: none; }

    .dossier-grid {
        grid-template-columns: 1fr;
    }
    .dossier-card.dossier-large { grid-column: auto; }
    .dossier-card { border-right: none; }
    .dossier-stats {
        grid-template-columns: 1fr;
    }
    .dossier-stats li {
        border-right: none;
        border-bottom: 1px dotted #d4cec2;
    }
    .dossier-stats li:last-child { border-bottom: none; }

    .classifieds-inner {
        column-count: 1;
    }

    .editorial-columns {
        column-count: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col {
        border-right: none;
        border-bottom: 1px solid #d4cec2;
        padding: 0.7rem 0;
    }
    .footer-col:last-child { border-bottom: none; }
    .footer-col:first-child { padding-top: 0.7rem; }

    .hero-h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .meter-row {
        grid-template-columns: 90px 1fr 30px;
        font-size: 0.72rem;
    }
}

/* ===== Subtle animations =============================================== */
.fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.flagged.is-marking {
    animation: marking 0.6s ease forwards;
}
@keyframes marking {
    0%   { background-size: 0% 100%; }
    100% { background-size: 100% 100%; }
}

.dossier-card {
    transition: background-color 0.35s ease, transform 0.35s ease;
}
.dossier-card:hover {
    background: #e8e0d0;
}
.dossier-card.dossier-large:hover {
    background: #f5f0e8;
}

.col-article {
    transition: background-color 0.4s ease;
}
.col-article.is-active {
    background: rgba(196, 30, 30, 0.04);
    box-shadow: inset 3px 0 0 #c41e1e;
}

/* print-rotation feel for the hero */
.masthead-title {
    transform: rotate(-0.15deg);
}
.section-rule {
    transform: rotate(-0.1deg);
}
