/* mosun.xyz - Brutalist Anti-Design Experiment */
/* Raw contradiction as systems-level phenomenon */

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

:root {
    --white: #ffffff;
    --yellow: #ffcc00;
    --system-gray: #d4d0c8;
    --visited-purple: #551a8b;
    --link-blue: #3399ff;
    --red: #cc0000;
    --default-blue: #0000ee;
    --black: #000000;
}

body {
    background-color: var(--system-gray);
    color: var(--black);
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.65;
}

/* ========== HERO - THE STATEMENT ========== */

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--system-gray);
    border-bottom: 2px solid var(--black);
}

.hero-inner {
    max-width: 640px;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--black);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.hero-hangul {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--black);
    margin-bottom: 2rem;
}

.hero-desc {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    line-height: 1.8;
    color: var(--black);
    text-align: left;
    margin-bottom: 1.5rem;
}

.hero-desc em {
    font-style: italic;
}

.hero-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--visited-purple);
}

/* ========== CONTENT BLOCKS ========== */

.content-block {
    border: 2px solid var(--black);
    margin: 0;
    padding: 2rem;
    background: var(--white);
}

.content-block + .content-block {
    border-top: none;
}

.block-heading {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--black);
    margin-bottom: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ========== CONTRADICTION TABLE ========== */

.contradiction-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
}

.contradiction-table th,
.contradiction-table td {
    border: 2px solid var(--black);
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

.contradiction-table th {
    background: var(--black);
    color: var(--white);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.contradiction-table tbody tr:nth-child(even) {
    background: var(--system-gray);
}

.status-unresolved {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--red);
    letter-spacing: 0.05em;
}

.status-resolved {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--default-blue);
    letter-spacing: 0.05em;
}

/* ========== OVERPRINT ZONE ========== */

.overprint-zone {
    position: relative;
    min-height: 400px;
    border: 2px solid var(--black);
    border-top: none;
    background: var(--white);
    overflow: hidden;
}

.overprint-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem 2rem;
}

.overprint-a {
    background: rgba(255, 255, 255, 0.85);
    z-index: 2;
    transition: opacity 0.5s ease;
}

.overprint-b {
    background: rgba(0, 0, 0, 0.88);
    color: var(--white);
    z-index: 1;
}

.overprint-zone:hover .overprint-a {
    opacity: 0.15;
}

.overprint-block h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.overprint-block p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    line-height: 1.8;
    max-width: 580px;
}

/* ========== DEFINITIONS ========== */

.definition-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.definition {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--system-gray);
}

.definition:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.def-term {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--black);
    flex: 0 0 140px;
}

.def-body {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    line-height: 1.7;
}

.strikethrough {
    text-decoration: line-through;
    color: var(--red);
    opacity: 0.7;
}

/* ========== COUNTER BLOCK ========== */

.counter-block {
    text-align: center;
}

.counter-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.counter-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--black);
}

.counter-value {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--red);
    border: 2px solid var(--black);
    outline: 2px solid var(--black);
    outline-offset: 3px;
    padding: 0.3rem 1rem;
    min-width: 3em;
    display: inline-block;
}

.counter-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--visited-purple);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* ========== SOURCE BLOCK ========== */

.source-block {
    background: var(--black);
    color: var(--white);
}

.source-block .block-heading {
    color: var(--white);
}

.source-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    padding: 1rem;
    border: 1px solid var(--visited-purple);
    background: rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    white-space: pre;
}

.source-code code {
    color: var(--link-blue);
}

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

.site-footer {
    border-top: 2px solid var(--black);
    padding: 2rem;
    background: var(--system-gray);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--black);
}

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

@media (max-width: 600px) {
    .content-block {
        padding: 1.5rem;
    }

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

    .def-term {
        flex: none;
    }

    .counter-display {
        flex-direction: column;
        gap: 0.75rem;
    }

    .overprint-zone {
        min-height: 500px;
    }
}
