/* ronri.xyz - 論理 (Logic) - Bauhaus Geometric */
/* Colors: #264653, #457B9D, #F4A261, #1D1D1B, #3D3D3B, #6B6B6B, #F5E6CC, #FAFAF5 */

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

body {
    background-color: #FAFAF5;
    color: #1D1D1B;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Section Layout */
.bento-section {
    min-height: 100vh;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1D1D1B;
    margin-bottom: 0.5rem;
}

.section-subheading {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    color: #6B6B6B;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

/* Punkt (Hero) */
#punkt {
    background-color: #FAFAF5;
    position: relative;
}

.punkt-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.punkt-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #264653;
    margin: 0 auto 3rem;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.punkt-circle:hover {
    transform: scale(1.1);
}

.punkt-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #1D1D1B;
    letter-spacing: 0.04em;
    line-height: 1;
}

.punkt-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    color: #457B9D;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.punkt-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    color: #6B6B6B;
    margin-top: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(80px, auto);
    gap: 2px;
    width: 100%;
    max-width: 1200px;
    background-color: #F5E6CC;
}

/* Module Sizes */
.bento-module {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.bento-module.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mod-1x1 { grid-column: span 3; grid-row: span 1; }
.mod-2x1 { grid-column: span 6; grid-row: span 1; }
.mod-1x2 { grid-column: span 3; grid-row: span 2; }
.mod-2x2 { grid-column: span 6; grid-row: span 2; }
.mod-3x2 { grid-column: span 6; grid-row: span 2; }

/* Module Colors */
.color-teal { background-color: #264653; color: #FAFAF5; }
.color-orange { background-color: #F4A261; color: #1D1D1B; }
.color-dark { background-color: #1D1D1B; color: #FAFAF5; }
.color-cream { background-color: #FAFAF5; color: #1D1D1B; }

/* Module Content */
.module-symbol {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.module-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.module-line {
    width: 60%;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
    margin-top: 1rem;
}

/* Proof Blocks */
.argument-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.proof-block {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    text-align: left;
    width: 100%;
    max-width: 300px;
}

.proof-line {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.line-num {
    color: #457B9D;
    min-width: 2rem;
}

.color-cream .line-num { color: #264653; }

.rule {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.6;
}

.proof-divider {
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
    margin: 0.5rem 0;
}

.proof-line.conclusion {
    font-weight: 500;
}

/* Truth Grid */
.truth-grid {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    width: 100%;
}

.tg-header {
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(250, 250, 245, 0.3);
    text-align: center;
}

.tg-row {
    display: flex;
    justify-content: space-around;
    padding: 0.3rem 0;
}

.val-t { color: #FAFAF5; font-weight: 500; }
.val-f { color: #F4A261; font-weight: 500; }

/* Geometric Composition SVG */
.geometric-composition {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-svg {
    width: 80px;
    height: 80px;
}

/* Komposition Section */
#komposition {
    background-color: #FAFAF5;
}

.komposition-canvas {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    position: relative;
    border: 2px solid #1D1D1B;
    background: #FAFAF5;
    overflow: hidden;
}

.komp-element {
    position: absolute;
    transition: transform 0.6s ease;
}

.komp-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #264653;
    background: none;
}

.komp-circle.komp-small {
    width: 40px;
    height: 40px;
    background: #F4A261;
    border: none;
}

.komp-line-h {
    width: 120px;
    height: 3px;
    background: #F4A261;
}

.komp-line-h.komp-long {
    width: 200px;
}

.komp-line-v {
    width: 3px;
    height: 120px;
    background: #1D1D1B;
}

.komp-rect {
    width: 100px;
    height: 60px;
    border: 3px solid #1D1D1B;
    background: none;
}

.komp-rect.komp-wide {
    width: 160px;
    height: 40px;
    background: #264653;
    border: none;
}

.komp-formula {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    color: #3D3D3B;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-section {
        padding: 4rem 1.5rem;
    }

    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .mod-1x1 { grid-column: span 3; }
    .mod-2x1 { grid-column: span 6; }
    .mod-1x2 { grid-column: span 3; }
    .mod-2x2 { grid-column: span 6; }
    .mod-3x2 { grid-column: span 6; }

    .punkt-circle {
        width: 140px;
        height: 140px;
    }

    .komposition-canvas {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .mod-1x1, .mod-2x1, .mod-1x2, .mod-2x2, .mod-3x2 {
        grid-column: span 1;
    }
}
