/* mores.dev - Brutalist Anti-Design Experiment */

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

html {
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    line-height: 1.75;
    color: #A8A4A0;
    background: #1B1B1F;
}

/* ===== Grid Overlay ===== */
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(to right, #3A3A3A 0px, #3A3A3A 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(to bottom, #3A3A3A 0px, #3A3A3A 1px, transparent 1px, transparent 60px);
    opacity: 0.15;
}

.grid-overlay-light {
    background:
        repeating-linear-gradient(to right, #3A3A3A 0px, #3A3A3A 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(to bottom, #3A3A3A 0px, #3A3A3A 1px, transparent 1px, transparent 60px);
    opacity: 0.08;
}

/* ===== Section Counter ===== */
.section-counter {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #A8A4A0;
    z-index: 50;
}

/* ===== Statute Sections ===== */
.statute {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.statute-dark {
    background: #1B1B1F;
    color: #A8A4A0;
}

.statute-light {
    background: #E8E4DD;
    color: #1A1A1A;
}

.statute-light .body-text p {
    color: #1A1A1A;
}

/* ===== Crop Marks ===== */
.crop-mark {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 5;
}

.crop-tl { top: 1rem; left: 1rem; border-top: 1px solid #3A3A3A; border-left: 1px solid #3A3A3A; }
.crop-tr { top: 1rem; right: 1rem; border-top: 1px solid #3A3A3A; border-right: 1px solid #3A3A3A; }
.crop-bl { bottom: 1rem; left: 1rem; border-bottom: 1px solid #3A3A3A; border-left: 1px solid #3A3A3A; }
.crop-br { bottom: 1rem; right: 1rem; border-bottom: 1px solid #3A3A3A; border-right: 1px solid #3A3A3A; }

.crop-tl-inner { top: 2.5rem; left: 2.5rem; border-top: 1px solid #3A3A3A; border-left: 1px solid #3A3A3A; }
.crop-tr-inner { top: 2.5rem; right: 2.5rem; border-top: 1px solid #3A3A3A; border-right: 1px solid #3A3A3A; }
.crop-bl-inner { bottom: 2.5rem; left: 2.5rem; border-bottom: 1px solid #3A3A3A; border-left: 1px solid #3A3A3A; }
.crop-br-inner { bottom: 2.5rem; right: 2.5rem; border-bottom: 1px solid #3A3A3A; border-right: 1px solid #3A3A3A; }

/* ===== Ghost Glyphs ===== */
.ghost-glyph {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(15rem, 40vw, 50rem);
    opacity: 0.04;
    line-height: 0.8;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    left: 5%;
}

.ghost-glyph-right {
    left: auto;
    right: 5%;
}

.ghost-glyph-center {
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== Statute Content ===== */
.statute-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    width: 100%;
}

.statute-left {
    max-width: 45%;
    margin-left: 8.33%;
}

.statute-right {
    max-width: 45%;
    margin-left: 55%;
}

.statute-center {
    max-width: 60%;
    margin: 0 auto;
    text-align: center;
}

/* ===== Hero ===== */
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 12rem);
    color: #E8E4DD;
    letter-spacing: 0.02em;
    line-height: 1.0;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    color: #A8A4A0;
    margin-top: 2rem;
}

/* ===== Section Number ===== */
.section-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 4rem);
    color: #C23B22;
    text-transform: uppercase;
    margin-bottom: 2rem;
    line-height: 1;
}

.statute-light .section-number {
    color: #C23B22;
}

/* ===== Body Text ===== */
.body-text p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    line-height: 1.75;
    color: #A8A4A0;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.body-text p:last-child {
    margin-bottom: 0;
}

/* ===== Redaction Bars ===== */
.redaction {
    background: currentColor;
    color: transparent;
    cursor: pointer;
    transition: background 150ms linear, color 150ms linear;
    padding: 0 0.1em;
}

.redaction:hover {
    background: transparent;
    color: #C23B22;
}

.statute-light .redaction:hover {
    color: #C23B22;
}

/* ===== Warning Marker ===== */
.warning-marker {
    color: #D4910D;
    font-style: normal;
}

/* ===== Rule Lines ===== */
.rule-line {
    width: 25%;
    height: 1px;
    background: #3A3A3A;
    margin: 2rem 0;
}

.violation-rule {
    width: 100vw;
    height: 1px;
    background: #C23B22;
    margin: 2rem 0;
    margin-left: -8.33vw;
}

/* ===== Enumeration ===== */
.enumeration {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    line-height: 2;
    color: #A8A4A0;
}

.enum-item {
    padding: 0.25rem 0;
}

.enum-num {
    color: #C23B22;
    font-weight: 400;
    margin-right: 1rem;
}

.highlight-item {
    color: #E8E4DD;
}

/* ===== Diff Block ===== */
.diff-block {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    line-height: 1.9;
}

.diff-line {
    padding: 0.1rem 0.5rem;
}

.diff-add {
    color: #5B8C5A;
}

.diff-remove {
    color: #C23B22;
}

.diff-context {
    color: #3A3A3A;
}

/* ===== Pullquote ===== */
.pullquote {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    line-height: 1.6;
    color: #1A1A1A;
    max-width: 50ch;
    margin: 0 auto 3rem;
}

/* ===== Domain Link ===== */
.ratification-link {
    margin-top: 2rem;
}

.domain-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #3D5A80;
    text-decoration: none;
    border-bottom: 2px solid #3D5A80;
    padding-bottom: 0.2rem;
}

/* ===== Margin Annotations ===== */
.margin-annotation-right,
.margin-annotation-left {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
}

.margin-annotation-right {
    right: 3rem;
    writing-mode: vertical-rl;
}

.margin-annotation-left {
    left: 3rem;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
}

.annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #A8A4A0;
    opacity: 0.5;
    letter-spacing: 0.01em;
}

/* ===== Colophon ===== */
.colophon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.colophon-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #A8A4A0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.colophon-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #3A3A3A;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .statute-left,
    .statute-right {
        max-width: 90%;
        margin-left: 5%;
    }

    .statute-center {
        max-width: 90%;
    }

    .margin-annotation-right,
    .margin-annotation-left {
        display: none;
    }

    .ghost-glyph {
        font-size: clamp(8rem, 30vw, 20rem);
    }

    .violation-rule {
        margin-left: -5vw;
    }
}
