/* masugomi.com — Anti-Design Newspaper Corruption */

:root {
    --print-black: #1a1a1a;
    --newsprint-cream: #e8e0d0;
    --newsprint-warm: #f0ead8;
    --dim-print: #6a6a6a;
    --strike-red: #c23030;
    --highlight-yellow: #f5e642;
    --deep-blue: #2a5090;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--newsprint-cream);
    color: var(--print-black);
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ====================== FRONT PAGE ====================== */
.front-page {
    min-height: 100vh;
    background: var(--newsprint-cream);
    padding: 30px 20px 60px;
    position: relative;
    overflow: hidden;
}

/* Halftone dot overlay */
.halftone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--dim-print) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.masthead {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
}

.masthead-date,
.masthead-edition {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--dim-print);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.masthead-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--print-black);
    letter-spacing: 0.02em;
    line-height: 1;
}

.masthead-rule {
    max-width: 1100px;
    margin: 10px auto;
    height: 3px;
    background: var(--print-black);
    position: relative;
    z-index: 2;
}

.masthead-tagline {
    text-align: center;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--dim-print);
    margin: 15px auto 40px;
    position: relative;
    z-index: 2;
}

/* Front page columns */
.front-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.front-col {
    border-right: 1px solid rgba(26, 26, 26, 0.2);
    padding-right: 20px;
}

.front-col:last-child {
    border-right: none;
    padding-right: 0;
}

.col-headline {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    color: var(--print-black);
    margin-bottom: 12px;
    line-height: 1.3;
}

.col-text {
    font-family: 'Merriweather', serif;
    font-size: 0.85rem;
    color: var(--print-black);
    line-height: 1.75;
}

/* Red X rejection marks */
.rejection-x {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    opacity: 0.18;
}

.x-arm {
    stroke: var(--strike-red);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    transition: stroke-dashoffset 0.4s ease;
}

.rejection-x.visible .x-arm {
    stroke-dashoffset: 0;
}

.x-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 8%;
    transform: rotate(8deg);
}

.x-2 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 12%;
    transform: rotate(-5deg);
}

.x-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 5%;
    transform: rotate(12deg);
}

/* ====================== CRITIQUE SECTION ====================== */
.critique-section {
    padding: 60px 20px;
    background: var(--newsprint-warm);
    position: relative;
    overflow: hidden;
}

.section-banner {
    max-width: 1100px;
    margin: 0 auto 40px;
    border-bottom: 2px solid var(--print-black);
    padding-bottom: 12px;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 3rem);
    color: var(--print-black);
    line-height: 1.2;
}

.section-sub {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--dim-print);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

/* Degraded columns */
.degraded-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.deg-col {
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.deg-col-1.visible {
    transform: rotate(-0.5deg);
}

.deg-col-2.visible {
    transform: translateY(15px) rotate(0.3deg);
}

.deg-col-3.visible {
    transform: translateX(-8px) rotate(-0.2deg);
}

.deg-headline {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--print-black);
    margin-bottom: 12px;
    line-height: 1.3;
}

.deg-text {
    font-family: 'Merriweather', serif;
    font-size: 0.85rem;
    color: var(--print-black);
    line-height: 1.75;
}

/* Strikethrough mark */
.strikethrough-mark {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 3px;
    background: var(--strike-red);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.deg-col.visible .strikethrough-mark {
    opacity: 0.5;
    transform: scaleX(1);
}

/* Margin note */
.margin-note {
    position: absolute;
    top: -10px;
    right: -20px;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 0.75rem;
    color: var(--strike-red);
    transform: rotate(-12deg);
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    cursor: default;
}

.deg-col.visible .margin-note {
    opacity: 0.7;
}

/* ====================== EVIDENCE SECTION ====================== */
.evidence-section {
    padding: 60px 20px;
    background: var(--print-black);
}

.dark-banner {
    border-bottom-color: var(--dim-print);
}

.light-title {
    color: var(--newsprint-cream);
}

.light-sub {
    color: var(--dim-print);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px 16px;
    border: 1px solid rgba(106, 106, 106, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--highlight-yellow);
    display: inline;
}

.stat-unit {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: var(--dim-print);
    margin-left: 4px;
}

.stat-label {
    display: block;
    font-family: 'Merriweather', serif;
    font-size: 0.8rem;
    color: var(--dim-print);
    margin-top: 10px;
    line-height: 1.5;
}

/* ====================== ALTERNATIVE SECTION ====================== */
.alternative-section {
    padding: 60px 20px;
    background: var(--newsprint-cream);
}

.alt-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.alt-block {
    padding: 30px;
    border: 1px solid rgba(26, 26, 26, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.alt-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.alt-heading {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

.alt-text {
    font-family: 'Merriweather', serif;
    font-size: 0.85rem;
    color: var(--print-black);
    line-height: 1.75;
}

/* ====================== FOOTER ====================== */
.site-footer {
    background: var(--print-black);
    position: relative;
}

.footer-tear {
    width: 100%;
    height: 20px;
    background: var(--newsprint-cream);
    clip-path: polygon(
        0 0, 3% 40%, 6% 10%, 10% 60%, 14% 20%, 18% 50%,
        22% 5%, 26% 45%, 30% 15%, 35% 55%, 40% 8%, 45% 50%,
        50% 12%, 55% 48%, 60% 5%, 65% 42%, 70% 18%, 75% 55%,
        80% 10%, 85% 45%, 90% 15%, 95% 50%, 100% 0
    );
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
}

.footer-domain {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--newsprint-cream);
}

.footer-jp {
    font-size: 0.9rem;
    color: var(--dim-print);
}

.footer-note {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--dim-print);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .masthead {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

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

    .front-col {
        border-right: none;
        border-bottom: 1px solid rgba(26, 26, 26, 0.2);
        padding-right: 0;
        padding-bottom: 20px;
    }

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

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

    .deg-col-1.visible,
    .deg-col-2.visible,
    .deg-col-3.visible {
        transform: none;
    }

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

    .rejection-x {
        display: none;
    }
}
