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

:root {
    --deep-burgundy: #5c1a2a;
    --oxblood: #8b2e3f;
    --antique-cream: #f5efe6;
    --parchment-gold: #c4a35a;
    --charcoal-ink: #2a2226;
    --blush-mist: #e8d5c4;
    --signal-white: #faf8f5;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Lora', serif;
    color: var(--charcoal-ink);
    background: var(--antique-cream);
    overflow-x: hidden;
}

/* HUD Overlay */
.hud {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 2000ms ease;
}
.hud.visible { opacity: 1; }

.hud-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(92, 26, 42, 0.15);
}
.hud-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--parchment-gold);
    transition: width 100ms linear;
}

.hud-corner {
    position: absolute;
    opacity: 0.4;
}
.hud-corner-tl { top: 12px; left: 12px; }
.hud-corner-tr { top: 12px; right: 12px; }
.hud-corner-bl { bottom: 12px; left: 12px; }
.hud-corner-br { bottom: 12px; right: 12px; }

.hud-section-indicator {
    position: absolute;
    bottom: 20px; left: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep-burgundy);
    opacity: 0.6;
}

/* Sections */
.decree-section {
    position: relative;
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
}

.section-dark {
    background: var(--deep-burgundy);
    color: var(--antique-cream);
}
.section-light {
    background: var(--antique-cream);
    color: var(--charcoal-ink);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.section-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Hero */
.section-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px;
}

.decree-title {
    font-family: 'Libre Caslon Text', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    letter-spacing: 0.01em;
    line-height: 1.12;
    color: var(--antique-cream);
}

.decree-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--parchment-gold);
    margin-top: 24px;
    opacity: 0.8;
}

.scroll-invite {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--parchment-gold);
}
.scroll-chevron {
    color: var(--parchment-gold);
    font-size: 1.2rem;
    animation: pulse-chevron 2s ease-in-out infinite;
}
@keyframes pulse-chevron {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* Headings */
.decree-heading {
    font-family: 'Libre Caslon Text', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    letter-spacing: 0.01em;
    line-height: 1.12;
    margin-bottom: 40px;
    transform: translateX(-40px);
    opacity: 0;
    transition: transform 800ms, opacity 800ms;
}
.decree-heading.animated {
    transform: translateX(0);
    opacity: 1;
}

/* Content with icon */
.content-with-icon {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.text-column { flex: 1; }
.icon-margin {
    flex-shrink: 0;
    width: 120px;
}

.text-column p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    max-width: 65ch;
    margin-bottom: 1.5em;
    opacity: 0;
    transition: opacity 600ms;
}
.text-column p.animated { opacity: 1; }

/* Icons */
.iso-icon {
    filter: drop-shadow(2px 4px 6px rgba(42, 34, 38, 0.2));
    transform: scale(0) rotate(-15deg);
    opacity: 0;
    transition: transform 600ms, opacity 600ms;
}
.iso-icon.animated {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* Dividers */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 8px;
}
.divider-dark {
    background: var(--deep-burgundy);
    color: var(--parchment-gold);
}
.divider-light {
    background: var(--antique-cream);
    color: var(--oxblood);
}
.divider-line {
    display: inline-block;
    width: 120px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
    transform: scaleX(0);
    transition: transform 400ms ease;
}
.divider-line.animated { transform: scaleX(1); }
.divider-diamond {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .content-with-icon {
        flex-direction: column;
    }
    .icon-margin {
        width: 80px;
        align-self: center;
    }
    .section-content {
        padding: 60px 24px;
    }
}
