/* mujun.xyz / 矛盾 / brutalist anti-design experiment
   fonts: Bebas Neue, Space Grotesk, Caveat (Google Fonts)
   palette:
     #f0f0f0 concrete gray
     #111111 raw black
     #ff3300 warning red
     #0000ff system blue
     #ffff00 caution yellow
     #ffffff stark white
     #cccccc rebar gray
*/

* {
    box-sizing: border-box;
}

html {
    background: #f0f0f0;
}

body {
    margin: 0;
    padding: 0;
    background: #f0f0f0;
    color: #111111;
    font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #0000ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}

a:hover {
    background: #ffff00;
    color: #111111;
}

::selection {
    background: #ffff00;
    color: #111111;
}

/* ========== TOP BAR ========== */
.top-bar {
    border-bottom: 8px solid #111111;
    background: #f0f0f0;
}

.top-bar-inner {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 0.9rem 1.5rem;
    border-bottom: 2px solid #111111;
}

.brand-mark {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    color: #111111;
}

.brand-han {
    font-size: 1.3rem;
    color: #ff3300;
    font-weight: 700;
    transform: translateY(2px);
}

.top-nav {
    margin-left: 4%;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-nav a {
    font-family: "Space Grotesk", monospace;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    color: #111111;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.top-nav a:nth-child(2n) {
    margin-top: 6px;
}

.top-nav a:nth-child(3n) {
    margin-left: 12px;
}

.top-nav a:hover {
    background: #ffff00;
    color: #111111;
    border-bottom-color: #111111;
}

.top-status {
    margin-left: auto;
    font-family: monospace;
    font-size: 0.75rem;
    background: #111111;
    color: #ffff00;
    padding: 4px 8px;
    border: 2px inset #cccccc;
}

.ticker {
    overflow: hidden;
    background: #111111;
    color: #ffff00;
    border-bottom: 4px solid #ff3300;
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    padding: 6px 0;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    animation: tickerScroll 60s linear infinite;
    will-change: transform;
}

.ticker-track span {
    padding: 0 2.4rem;
    border-right: 1px solid #cccccc;
}

.ticker-track span:nth-child(2n) {
    color: #ff3300;
}

.ticker-track span:nth-child(3n) {
    color: #ffffff;
    background: #0000ff;
}

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

/* ========== HERO ========== */
.hero {
    position: relative;
    padding: 4rem 1.5rem 6rem;
    min-height: 92vh;
    overflow: hidden;
}

.hero-pretitle {
    margin: 0 0 2rem 5%;
    font-family: "Caveat", cursive;
    font-size: 1.6rem;
    color: #ff3300;
    transform: rotate(-2deg);
    max-width: 460px;
}

.stutter-stack {
    position: relative;
    margin: 1rem 0 0 0;
    padding-left: 2%;
    height: clamp(6rem, 16vw, 14rem);
}

.stutter {
    margin: 0;
    padding: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}

.stutter-1 {
    position: relative;
    z-index: 3;
    font-size: clamp(3rem, 11vw, 7rem);
    color: #111111;
}

.stutter-2 {
    position: absolute;
    top: 10px;
    left: calc(2% + 20px);
    z-index: 2;
    font-size: clamp(2.4rem, 8vw, 5rem);
    color: #ff3300;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.stutter-3 {
    position: absolute;
    top: 20px;
    left: calc(2% + 40px);
    z-index: 1;
    font-size: clamp(1.6rem, 5vw, 3rem);
    color: #0000ff;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.annotation {
    font-family: "Caveat", cursive;
    font-size: 1.1rem;
    color: #ff3300;
    line-height: 1.1;
}

.annotation-hero {
    position: absolute;
    top: -8px;
    right: 4%;
    transform: rotate(-6deg);
    color: #ff3300;
    font-size: 1.4rem;
    max-width: 220px;
    text-align: right;
}

.annotation-hero-2 {
    position: absolute;
    bottom: -10px;
    left: 30%;
    transform: rotate(3deg);
    color: #0000ff;
    font-size: 1.25rem;
}

.annotation-inline {
    display: inline-block;
    margin-left: 0.4rem;
    color: #ff3300;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.hero-sub {
    margin: 6rem 0 1rem 0;
    max-width: 540px;
    font-size: 1.4rem;
    line-height: 1.45;
    padding-left: 0;
}

.hero-sub-2 {
    margin: 0 0 2.5rem 15%;
    max-width: 480px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contradict {
    background: #ffff00;
    padding: 0 4px;
    color: #111111;
    font-weight: 500;
}

.hl-strike {
    background: #ffff00;
    padding: 0 4px;
    color: #111111;
    text-decoration: line-through;
    text-decoration-color: #ff3300;
    text-decoration-thickness: 3px;
}

.strike-hl {
    background: #ffff00;
    padding: 0 6px;
    text-decoration: line-through;
    text-decoration-color: #111111;
    text-decoration-thickness: 4px;
}

.system-box {
    margin: 2rem 0 0 30%;
    max-width: 460px;
    border: 2px inset #cccccc;
    background: #ffffff;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #111111;
}

.system-box p {
    margin: 0.2rem 0;
}

.system-box p:first-child {
    color: #ff3300;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ========== RULES ========== */
.rule {
    border: 0;
    border-top: 8px solid #111111;
    height: 0;
    margin: 3rem 0;
    background: none;
}

.rule-thick {
    border-top-width: 8px;
}

.rule-offset-left {
    width: 70%;
    margin-left: 0;
}

.rule-offset-right {
    width: 60%;
    margin-left: 35%;
}

/* ========== SECTIONS GENERAL ========== */
section {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.section-tag {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: #111111;
    display: inline-block;
    padding: 4px 10px;
    margin: 0 0 1.4rem 0;
    border-left: 6px solid #ff3300;
}

.section-title {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 0.95;
    margin: 0 0 2.5rem 0;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    max-width: 14ch;
}

.section-title-shifted {
    margin-left: 28%;
    text-align: right;
}

/* ========== MANIFESTO ========== */
.manifesto {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.manifesto-grid {
    position: relative;
}

.m-block {
    position: relative;
    background: #ffffff;
    border: 3px solid #111111;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    max-width: 520px;
}

.m-block h3 {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.6rem;
    margin: 0 0 0.6rem 0;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    color: #111111;
}

.m-block p {
    margin: 0;
}

.m-block-a {
    margin-left: 0;
    width: 480px;
    max-width: 92%;
    border-color: #111111;
}

.m-block-b {
    margin-left: 30%;
    width: 420px;
    max-width: 92%;
    background: #ffff00;
    border-color: #111111;
    transform: rotate(-0.6deg);
}

.m-block-c {
    margin-left: 8%;
    width: 540px;
    max-width: 94%;
    background: #ffffff;
    border-left: 12px solid #ff3300;
    border-right: 3px solid #111111;
    border-top: 3px solid #111111;
    border-bottom: 3px solid #111111;
}

.m-block-d {
    margin-left: 22%;
    width: 380px;
    max-width: 90%;
    background: #111111;
    color: #f0f0f0;
    border-color: #ff3300;
    transform: rotate(0.4deg);
}

.m-block-d h3 {
    color: #ffff00;
}

.m-block-d em {
    color: #ff3300;
    font-style: normal;
    background: #ffff00;
    color: #111111;
    padding: 0 4px;
}

.m-block .annotation {
    position: absolute;
    right: -10px;
    bottom: -18px;
    font-size: 1.25rem;
    color: #ff3300;
    background: #f0f0f0;
    padding: 0 4px;
    transform: rotate(4deg);
}

.m-block-b .annotation {
    right: auto;
    left: -10px;
    top: -22px;
    color: #0000ff;
    transform: rotate(-6deg);
}

/* ========== DICTIONARY ========== */
.dictionary {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.dict-card {
    background: #ffffff;
    border: 3px solid #111111;
    padding: 1.6rem 1.8rem;
    margin-left: 5%;
    max-width: 640px;
    position: relative;
}

.dict-card::before {
    content: "DICTIONARY ENTRY · 矛盾";
    position: absolute;
    top: -14px;
    left: 12px;
    background: #ff3300;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 2px 8px;
}

.dict-headword {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 2.6rem;
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.dict-script {
    font-size: 2rem;
    color: #ff3300;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.dict-pron {
    margin: 0 0 1rem 0;
    font-family: monospace;
    color: #555555;
    font-size: 0.9rem;
}

.dict-defs {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}

.dict-defs li {
    margin-bottom: 0.6rem;
}

.dict-literal {
    background: #ffff00;
    padding: 0 4px;
}

.dict-example {
    border-top: 2px dashed #cccccc;
    padding-top: 0.8rem;
    margin: 0;
    font-style: italic;
    color: #111111;
}

.quote-mark {
    color: #ff3300;
    font-weight: 700;
}

.dict-side {
    margin-left: 35%;
    max-width: 280px;
    border: 2px inset #cccccc;
    background: #f0f0f0;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 0.9rem;
    transform: rotate(-1deg);
}

.dict-side-head {
    margin: 0 0 0.4rem 0;
    color: #ff3300;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.dict-side ul {
    margin: 0;
    padding-left: 1rem;
}

.dict-side .dict-pos {
    color: #0000ff;
}

/* ========== EXHIBITS ========== */
.exhibits {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.exhibit-list {
    position: relative;
    margin-top: 2rem;
}

.exhibit {
    position: relative;
    background: #ffffff;
    border: 3px solid #111111;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2.4rem;
    max-width: 600px;
}

.exhibit-1 { margin-left: 0;   transform: rotate(-0.3deg); }
.exhibit-2 { margin-left: 30%; transform: rotate(0.4deg); background: #ffff00; }
.exhibit-3 { margin-left: 12%; transform: rotate(-0.5deg); border-left: 12px solid #0000ff; }
.exhibit-4 { margin-left: 25%; transform: rotate(0.3deg); background: #111111; color: #f0f0f0; border-color: #ff3300; }

.exhibit-4 .exhibit-title { color: #ffff00; }
.exhibit-4 .exhibit-meta { color: #cccccc; }
.exhibit-4 a { color: #ffff00; }

.exhibit-num {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 56px;
    height: 56px;
    background: #ff3300;
    color: #ffffff;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #111111;
    transform: rotate(-4deg);
    letter-spacing: 0.05em;
}

.exhibit-title {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.8rem;
    margin: 0 0 0.3rem 0;
    line-height: 1.05;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.exhibit-meta {
    font-family: monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555555;
    margin: 0 0 0.8rem 0;
}

.exhibit-body {
    margin: 0 0 1rem 0;
    line-height: 1.55;
}

.brutal-btn {
    font-family: "Space Grotesk", monospace;
    font-size: 0.9rem;
    background: #111111;
    color: #ffff00;
    border: 3px solid #111111;
    padding: 8px 14px;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition: transform 0.05s linear;
}

.brutal-btn:hover {
    background: #ffff00;
    color: #111111;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #ff3300;
}

.brutal-btn:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 #ff3300;
}

.exhibit-4 .brutal-btn {
    background: #ffff00;
    color: #111111;
    border-color: #ffff00;
}

.exhibit-4 .brutal-btn:hover {
    background: #ff3300;
    color: #ffffff;
    box-shadow: 4px 4px 0 #0000ff;
}

.vitrine {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    background: #f0f0f0;
    color: #111111;
    border: 2px inset #cccccc;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.55;
}

.vitrine[hidden] {
    display: none;
}

.exhibit-4 .vitrine {
    background: #ff3300;
    color: #ffffff;
}

/* ========== COUNTER ========== */
.counter-section {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.counter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0 2rem 8%;
}

.counter-block {
    flex: 1 1 240px;
    background: #ffffff;
    border: 3px solid #111111;
    padding: 1rem 1.2rem;
    min-width: 220px;
    position: relative;
}

.counter-block:nth-child(1) { transform: rotate(-0.4deg); }
.counter-block:nth-child(2) { transform: rotate(0.4deg); background: #ffff00; }
.counter-block:nth-child(3) { transform: rotate(-0.2deg); background: #111111; color: #f0f0f0; }

.counter-block:nth-child(3) .counter-label { color: #cccccc; }
.counter-block:nth-child(3) .counter-value { color: #ffff00; }

.counter-label {
    font-family: monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem 0;
    color: #555555;
}

.counter-value {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 3.2rem;
    margin: 0;
    line-height: 1;
    color: #ff3300;
}

.counter-block:nth-child(2) .counter-value {
    color: #0000ff;
}

.counter-block .annotation {
    position: absolute;
    right: -10px;
    bottom: -22px;
    color: #ff3300;
    transform: rotate(4deg);
    background: #f0f0f0;
    padding: 0 4px;
}

.legacy-form {
    margin: 2rem 0 1rem 15%;
    max-width: 540px;
    border: 2px inset #cccccc;
    background: #ffffff;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 0.9rem;
}

.legacy-form legend {
    color: #ff3300;
    padding: 0 6px;
    background: #ffff00;
    border: 1px solid #111111;
}

.legacy-form label {
    display: block;
    margin: 0.4rem 0 0.3rem 0;
    color: #111111;
}

.legacy-form input {
    width: 100%;
    border: 2px inset #cccccc;
    padding: 4px 6px;
    font-family: monospace;
    font-size: 0.95rem;
    background: #f0f0f0;
}

.legacy-form button {
    margin-top: 0.6rem;
    border: 2px outset #cccccc;
    background: #cccccc;
    padding: 4px 14px;
    font-family: monospace;
    cursor: pointer;
}

.legacy-form button:active {
    border-style: inset;
}

.legacy-form output {
    display: block;
    margin-top: 0.6rem;
    padding: 6px 8px;
    background: #111111;
    color: #ffff00;
    font-family: monospace;
    font-size: 0.85rem;
    border: 2px inset #555555;
}

.legacy-log {
    margin: 1rem 0 0 15%;
    max-width: 540px;
    list-style: none;
    padding: 0;
    font-family: monospace;
    font-size: 0.85rem;
}

.legacy-log li {
    padding: 4px 8px;
    margin-bottom: 4px;
    background: #ffffff;
    border-left: 4px solid #0000ff;
}

.legacy-log li.contradicts {
    border-left-color: #ff3300;
    background: #ffff00;
    text-decoration: line-through;
    text-decoration-color: #111111;
}

/* ========== ARCHIVE ========== */
.archive {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.archive-list {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
    counter-reset: ar;
}

.ar-item {
    position: relative;
    counter-increment: ar;
    border-top: 2px solid #111111;
    padding: 1.2rem 1rem 1.2rem 6rem;
    background: #ffffff;
    max-width: 720px;
}

.ar-item::before {
    content: counter(ar, decimal-leading-zero);
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 2.4rem;
    color: #ff3300;
    line-height: 1;
}

.ar-item-a { margin-left: 0; }
.ar-item-b { margin-left: 18%; background: #ffff00; }
.ar-item-c { margin-left: 6%;  border-left: 8px solid #0000ff; }
.ar-item-d { margin-left: 22%; background: #111111; color: #f0f0f0; }
.ar-item-d::before { color: #ffff00; }
.ar-item-e { margin-left: 10%; }

.ar-item:last-child {
    border-bottom: 2px solid #111111;
}

.ar-date {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 1px 6px;
    background: #111111;
    color: #ffff00;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.ar-item-d .ar-date {
    background: #ffff00;
    color: #111111;
}

.ar-item p {
    margin: 0;
    line-height: 1.55;
}

/* ========== CONTACT ========== */
.contact {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-block {
    border: 3px solid #111111;
    padding: 1.4rem 1.6rem;
    background: #ffffff;
}

.contact-do {
    transform: rotate(-0.4deg);
    margin-left: 0;
}

.contact-dont {
    background: #111111;
    color: #f0f0f0;
    transform: rotate(0.4deg);
    margin-top: 1.5rem;
}

.contact-dont a {
    color: #ffff00;
}

.contact-block h3 {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.8rem;
    margin: 0 0 0.6rem 0;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.contact-block ul {
    margin: 0.6rem 0 0 1rem;
    padding: 0;
}

.contact-block li {
    margin-bottom: 0.3rem;
    font-family: monospace;
    font-size: 0.92rem;
}

.contact-footnote {
    margin: 2rem 0 0 25%;
    max-width: 480px;
    font-style: italic;
    line-height: 1.5;
}

/* ========== CLOSING ========== */
.closing {
    padding: 4rem 1.5rem 2rem;
    background: #111111;
    color: #f0f0f0;
    border-top: 8px solid #ff3300;
    border-bottom: 8px solid #ff3300;
    margin-top: 2rem;
    margin-bottom: 0;
    overflow: hidden;
}

.closing-line {
    margin: 0.4rem 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.line-1 { margin-left: 0;   color: #ffffff; }
.line-2 { margin-left: 18%; color: #ffff00; }
.line-3 { margin-left: 6%;  color: #f0f0f0; font-size: clamp(1.2rem, 3vw, 2rem); }

.closing-glitch {
    margin-top: 2rem;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(1.2rem, 4vw, 2.4rem);
    color: #ff3300;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-transform: lowercase;
}

/* ========== FOOTER ========== */
.footer {
    background: #f0f0f0;
    color: #111111;
    padding: 1.4rem 1.5rem 3rem;
    border-top: 4px solid #111111;
    font-family: monospace;
    font-size: 0.85rem;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: baseline;
}

.footer-row-2 {
    margin-top: 0.6rem;
    color: #555555;
}

.footer-han {
    margin-left: auto;
    color: #ff3300;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ========== FLOATING NOTE ========== */
.floating-note {
    position: fixed;
    right: 16px;
    bottom: 16px;
    max-width: 260px;
    background: #ffff00;
    color: #111111;
    border: 3px solid #111111;
    padding: 8px 12px;
    font-family: "Caveat", cursive;
    font-size: 1.15rem;
    line-height: 1.2;
    transform: rotate(-3deg);
    z-index: 50;
    box-shadow: 6px 6px 0 #ff3300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.floating-note.visible {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 760px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-status {
        margin-left: 0;
    }

    .stutter-stack {
        height: clamp(5rem, 22vw, 9rem);
    }

    .system-box,
    .hero-sub-2,
    .legacy-form,
    .legacy-log,
    .counter-wrap,
    .contact-footnote {
        margin-left: 0;
    }

    .m-block-a, .m-block-b, .m-block-c, .m-block-d,
    .ar-item-a, .ar-item-b, .ar-item-c, .ar-item-d, .ar-item-e {
        margin-left: 0;
    }

    .dict-card, .dict-side {
        margin-left: 0;
    }

    .section-title-shifted {
        margin-left: 0;
        text-align: left;
    }

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

    .floating-note {
        max-width: 200px;
        font-size: 1rem;
    }
}
