/* style.css – Ultimate Typesetting Authority × JP Brutalism/Manga
 * Lineage: 1967 Swiss Design Annual × Japanese Architecture Monograph × Manga Dynamics
 * Principles: Absolute Grid Visibility / Pure Black & White / Ma (Silence) / Brutal Kanji
 * Discipline: 12 Columns / No Decoration / Ruthless Left Alignment
 */

:root {
    /* Pure Contrast */
    --bg-color: #FFFFFF;
    --ink-color: #000000;
    --accent-red: #E10600;
    /* Institutional Swiss Red */

    /* Typography System */
    --font-primary: 'Inter', "Helvetica Neue", "Neue Haas Grotesk", "Akzidenz-Grotesk", sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;

    /* Intentional Scale Jumps */
    --text-micro: 9px;
    /* 9-10pt equivalent */
    --text-body: 16px;
    /* 14-16pt equivalent */
    --text-subhead: 32px;

    /* massive typography strictly mathematical to fit 8 columns (66vw) without overflow */
    --text-massive: clamp(40px, 6vw, 110px);

    /* Structural Grid System */
    --cols: 12;
    --margin-outer: 4vw;
    --gap: 2vw;
}

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

body {
    background-color: var(--bg-color);
    color: var(--ink-color);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
}

/* 
 * ==========================================
 * JAPANESE BRUTALISM: THE ARCHITECTURAL KANJI
 * ==========================================
 * Now operating at full RED opacity to structurally brutalize the layout.
 * Not hidden in the background, but acting as a massive physical object.
 */
.brutalist-kanji {
    position: fixed;
    bottom: -10vh;
    /* Anchored to bottom right like a chaotic seal */
    right: -2vw;
    font-family: var(--font-jp);
    font-size: 90vh;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-red);
    opacity: 1;
    /* MAX VISIBILITY */
    mix-blend-mode: multiply;
    /* Burns into the layout beneath text */
    z-index: 5;
    pointer-events: none;
    user-select: none;
}

/* 
 * MANGA HALFTONE SCREEN TONE (Subtle print degradation)
 */
.manga-halftone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--ink-color) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.03;
    /* Barely visible texture */
    pointer-events: none;
    z-index: 999;
}

/* 
 * MANGA PANELING BORDERS (Harsh defining lines)
 */
.manga-panel {
    border: 3px solid var(--ink-color);
    padding: 1rem;
    background-color: var(--bg-color);
}

.manga-sfx {
    font-family: var(--font-jp);
    font-size: 15vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink-color);
    position: absolute;
    right: -2vw;
    top: 5rem;
    transform: rotate(15deg);
    z-index: 20;
    pointer-events: none;
}

.manga-number-block {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border: 3px solid var(--ink-color);
    background-color: var(--bg-color);
}

.manga-number-block.invert {
    background-color: var(--ink-color);
    color: var(--bg-color);
}

.manga-number-block.border-red {
    border-color: var(--accent-red);
}

.manga-screentone-bg {
    background-image:
        repeating-linear-gradient(45deg, var(--ink-color) 25%, transparent 25%, transparent 75%, var(--ink-color) 75%, var(--ink-color)),
        repeating-linear-gradient(45deg, var(--ink-color) 25%, var(--bg-color) 25%, var(--bg-color) 75%, var(--ink-color) 75%, var(--ink-color));
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    opacity: 0.8;
    /* Harsh shading tone */
}

/* Overriding background color on text blocks inside the screentone area */
.bg-white {
    background-color: var(--bg-color);
}

/* 
 * The Journal Frame
 */
.journal-frame {
    width: 100%;
    max-width: 1600px;
    padding: var(--margin-outer);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* 
 * PRAXON / REPORT 01 - Page Framing
 */
.frame-top,
.frame-bottom {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    background-color: var(--bg-color);
}

.frame-bottom {
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.meta-left,
.meta-right {
    font-size: var(--text-micro);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* 
 * 12-Column Grid System Applied Strictly to Row Wrappers
 */
.grid-system {
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    column-gap: var(--gap);
    width: 100%;
    position: relative;
}

/* 
 * Structural Rules
 */
.rule-span {
    width: 100%;
    height: 1px;
    background-color: var(--ink-color);
}

.thick-rule {
    height: 4px;
    /* Mangas use thick defining gutter lines */
}

/* Common Text Handling */
h1,
h2,
h3,
p,
span,
div {
    text-align: left;
}

/*
 * TYPOGRAPHIC HIERARCHY
 */
.subhead {
    font-size: var(--text-subhead);
    font-weight: 500;
    /* Bumping weight to feel more comic-like */
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    max-width: 25ch;
}

.body-text {
    font-size: var(--text-body);
    font-weight: 500;
    line-height: 1.45;
    max-width: 55ch;
}

.section-label {
    font-size: var(--text-body);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* 
 * Metadata Density
 */
.metadata-block {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--ink-color);
    /* Thicker manga rules */
}

.meta-col {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: var(--text-micro);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.meta-val {
    font-size: var(--text-micro);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-color);
}

.page-marker {
    font-size: var(--text-subhead);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.accent-red {
    color: var(--accent-red);
}

/* 
 * ==========================================
 * GRID MODULES
 * ==========================================
 */

.module-hero {
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.hero-left {
    grid-column: 1 / 9;
    position: relative;
    /* the SFX anchors here */
}

.hero-right {
    grid-column: 9 / 13;
    display: flex;
    flex-direction: column;
}

.headline-stack {
    display: flex;
    flex-direction: column;
    font-size: var(--text-massive);
    font-weight: 900;
    /* MAX WEIGHT for manga aggression */
    line-height: 0.85;
    letter-spacing: -0.04em;
    word-break: break-word;
    overflow-wrap: break-word;
}

.word {
    display: block;
}

/* 
 * EXPOSITION SECTIONS 
 */
.module-exposition {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.col-marker {
    grid-column: 1 / 2;
}

.col-japanese {
    grid-column: 2 / 3;
    padding-top: 0.2rem;
}

.vertical-text {
    font-family: var(--font-jp);
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--ink-color);
}

.col-content {
    grid-column: 4 / 8;
}

.marginal-note {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--ink-color);
    max-width: 250px;
    display: flex;
    flex-direction: column;
}

.col-image {
    grid-column: 9 / 13;
    display: flex;
    flex-direction: column;
}

.image-crop {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 1rem;
}

.image-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Hard graphic novel threshold filter */
    filter: grayscale(100%) contrast(300%) brightness(0.9);
}

.caption {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Section II Variants */
.section-two .col-content {
    grid-column: 4 / 10;
}

.text-columns {
    column-count: 2;
    column-gap: var(--gap);
}

/* EXPOSITION III: MA APPLIED WITH DISCIPLINE */
.module-ma {
    padding-top: 15vh;
    padding-bottom: 15vh;
}

.module-ma .col-marker {
    grid-column: 1 / 2;
}

.col-content-ma {
    grid-column: 8 / 12;
}

/* 
 * Breakpoints
 */
@media (max-width: 1024px) {
    .brutalist-kanji {
        font-size: 100vw;
        right: -5vw;
        bottom: 0;
    }

    .hero-left {
        grid-column: 1 / 13;
        margin-bottom: 3rem;
    }

    .hero-right {
        grid-column: 1 / 10;
        margin-top: 0;
    }

    .col-content {
        grid-column: 4 / 9;
    }

    .col-image {
        grid-column: 9 / 13;
    }

    .col-content-ma {
        grid-column: 6 / 13;
    }

    .section-two .col-content {
        grid-column: 4 / 12;
    }
}

@media (max-width: 768px) {
    .grid-system {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .module-hero,
    .module-exposition,
    .module-ma {
        display: flex;
        flex-direction: column;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-left {
        margin-bottom: 3rem;
    }

    .col-marker {
        margin-bottom: 1rem;
    }

    .col-image {
        margin-top: 2rem;
    }

    .headline-stack {
        font-size: 14vw;
    }

    .metadata-block {
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    .manga-sfx {
        font-size: 25vw;
        right: 0;
    }

    .vertical-text {
        display: none;
    }

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

    .module-ma {
        padding-top: 10vh;
        padding-bottom: 5vh;
    }
}