/* paraoligm.com - Dark Academia Editorial Deconstruction */
/* Colors: #12090e, #7d5a50, #c9a96e, #a67a7a, #b8973a, #f2e8d5, #4a1c2b */
/* Fonts: Playfair Display (700/900), Lora (400/400i), Source Code Pro (400) */

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

body {
    font-family: 'Lora', serif;
    background: #f2e8d5;
    color: #12090e;
    overflow-x: hidden;
}

/* Column */
.column {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 30px;
    transition: transform 0.8s ease, margin 0.8s ease;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    transition: background 0.6s ease;
}

/* Section 1 - Title Page */
.section-title {
    background: #f2e8d5;
    text-align: center;
    min-height: 100vh;
}

.journal-header {
    font-family: 'Source Code Pro', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: #7d5a50;
    text-transform: uppercase;
}

.title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1.1;
    color: #12090e;
    letter-spacing: 0.03em;
    margin: 40px 0 20px;
}

.author {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 20px;
    color: #7d5a50;
    margin-bottom: 40px;
}

/* Decorative Rules */
.decorative-rule {
    border: none;
    height: 1px;
    background: #7d5a50;
    width: 100%;
    margin: 20px 0;
}

.decorative-rule.broken {
    background: repeating-linear-gradient(90deg, #7d5a50 0, #7d5a50 20px, transparent 20px, transparent 30px);
    height: 1px;
}

.decorative-rule.shattered {
    background: repeating-linear-gradient(90deg, #a67a7a 0, #a67a7a 8px, transparent 8px, transparent 20px);
    height: 2px;
    transform: rotate(1deg);
}

.decorative-rule.restored {
    background: #b8973a;
    height: 1px;
}

/* Section Headings */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 36px;
    color: #12090e;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    transition: transform 0.5s ease;
}

.section-heading.tilted {
    transform: rotate(-1deg);
}

.section-heading.rotated {
    transform: rotate(-3deg) translateX(-10px);
}

.section-heading.inverted {
    color: #f2e8d5;
    transform: rotate(-5deg) translateX(-20px);
}

/* Body Text */
.body-text {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: #12090e;
}

.body-text.justified {
    text-align: justify;
    hyphens: auto;
}

.body-text.ragged {
    text-align: left;
}

.body-text.scattered {
    text-align: left;
    transform: translateX(10px);
}

.body-text.overlap-text {
    margin-top: -8px;
    opacity: 0.85;
}

.body-text.fragmented-text {
    color: #f2e8d5;
    transform: rotate(-1deg);
    margin-left: 20px;
}

.body-text.renewed-text {
    text-align: justify;
    color: #12090e;
}

/* Drop Caps */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 6px;
    color: #b8973a;
}

.drop-cap.cracked {
    color: #a67a7a;
    transform: rotate(-2deg);
    display: inline-block;
}

.drop-cap.broken-cap {
    color: #c9a96e;
    transform: rotate(-5deg) translateY(5px);
    display: inline-block;
    opacity: 0.8;
}

/* Margin Notes */
.margin-note {
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #7d5a50;
    padding: 12px 0;
    border-left: 2px solid #c9a96e;
    padding-left: 16px;
    margin: 24px 0;
    max-width: 300px;
    margin-left: auto;
}

.margin-note.intruding {
    margin-left: -20px;
    max-width: 100%;
    border-left-color: #a67a7a;
    font-size: 14px;
    color: #4a1c2b;
}

.margin-note.scattered-note {
    transform: rotate(2deg) translateX(30px);
    border-left-color: #12090e;
    color: #12090e;
}

/* Section Backgrounds - Progressive darkening */
.section-ordered {
    background: #f2e8d5;
}

.section-stability {
    background: #f2e8d5;
}

.section-cracks {
    background: #e8dcc8;
}

.section-disruption {
    background: #c9a96e;
}

.section-collapse {
    background: #4a1c2b;
}

.section-renewal {
    background: #12090e;
}

.section-renewal .column {
    text-align: center;
}

.section-renewal .section-heading {
    color: #f2e8d5;
}

.section-renewal .decorative-rule {
    max-width: 200px;
    margin: 20px auto;
}

.journal-footer {
    font-family: 'Source Code Pro', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #b8973a;
    display: block;
    margin-top: 60px;
}

/* Column shifts */
.shifting-left {
    margin-left: 5%;
    margin-right: auto;
}

.shifting-right {
    margin-left: auto;
    margin-right: 5%;
}

.collapsed {
    max-width: 500px;
    margin-left: 15%;
}

.renewed {
    max-width: 580px;
}

/* Fragmented section styling */
.fragmented .body-text {
    opacity: 0.9;
}

/* Scroll-triggered animations */
.section {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.section.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 42px;
    }

    .section-heading {
        font-size: 28px;
    }

    .body-text {
        font-size: 16px;
    }

    .drop-cap {
        font-size: 52px;
    }

    .column {
        padding: 40px 20px;
    }

    .shifting-left,
    .shifting-right,
    .collapsed {
        margin-left: auto;
        margin-right: auto;
    }
}
