/* ===== lordly.dev - Aristocratic Avant-Garde ===== */

:root {
    --charred-wood: #1E1610;
    --flax-white: #EDE4D3;
    --mahogany: #3B2416;
    --aged-brass: #8B7355;
    --burnt-sienna: #A0522D;
    --crimson-seal: #8B3A2F;
    --forest-shadow: #5A6B4A;
    --deep-forest: #3A4A32;
}

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

body {
    background: var(--charred-wood);
    color: var(--flax-white);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

/* ===== Grand Sections ===== */
.grand-section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.section-inner {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    position: relative;
}

/* Section color variants */
.section-dark { background: var(--charred-wood); }
.section-sienna { background: var(--burnt-sienna); }
.section-oak { background: var(--mahogany); }
.section-forest { background: var(--deep-forest); }
.section-crimson { background: var(--crimson-seal); }

/* ===== Monumental Headlines ===== */
.monumental {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: var(--flax-white);
    width: 100%;
    padding: 0 2vw;
}

#title-word {
    font-size: clamp(5rem, 12vw, 12rem);
    text-align: center;
}

.secondary {
    font-size: clamp(3rem, 8vw, 7rem);
}

.closing-word {
    font-size: clamp(4rem, 10vw, 10rem);
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== Text Columns ===== */
.text-column {
    padding: 0 4vw;
}

.left-column {
    text-align: left;
}

.right-column {
    text-align: right;
}

/* ===== Body Text ===== */
.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.9;
    color: var(--flax-white);
    max-width: 50ch;
    margin-top: 2rem;
    opacity: 0.85;
}

.right-column .body-text {
    margin-left: auto;
}

.left-column .body-text {
    margin-right: auto;
}

.closing-text {
    text-align: center;
    max-width: 45ch;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Marginal Notes ===== */
.marginal-note {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--aged-brass);
    display: block;
    margin-top: 1.5rem;
    opacity: 0.6;
}

/* ===== Rules (Lines) ===== */
.rule-horizontal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--aged-brass);
    opacity: 0.3;
}

.rule-horizontal.short {
    position: relative;
    width: 60px;
    margin: 2rem auto 0;
}

.rule-vertical {
    position: absolute;
    top: 10%;
    right: 50%;
    width: 1px;
    height: 80%;
    background: var(--aged-brass);
    opacity: 0.2;
}

/* ===== Opening Animation States ===== */
#opening .section-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.title-letter.visible {
    opacity: 1;
}

#title-word.scaling {
    transition: transform 2s ease-out, opacity 2s ease-out;
    transform: scale(1.15);
    opacity: 0.3;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .text-column {
        padding: 0 6vw;
    }

    .right-column {
        text-align: left;
    }

    .right-column .body-text {
        margin-left: 0;
    }

    .secondary {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .rule-vertical {
        display: none;
    }
}
