/* mystical.boo - Botanical Grimoire */
/* Colors: #C4727A, #F0E8D8, #FAF6F0, #7B5EA7, #7A6855, #D4C4A8, #2C1810, #6B7F5E */
/* Fonts: DM Serif Display, Lora, Caveat */

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

body {
    font-family: 'Lora', Georgia, serif;
    color: #2C1810;
    background: #FAF6F0;
    overflow-x: hidden;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(212, 196, 168, 0.05) 3px,
        rgba(212, 196, 168, 0.05) 4px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(212, 196, 168, 0.05) 3px,
        rgba(212, 196, 168, 0.05) 4px
    );
}

/* Spine Line */
.spine-line {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 1px;
    background: #D4C4A8;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    animation: spineExtend 1.5s ease 0.5s forwards;
}

/* Manuscript Sections */
.manuscript-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    overflow: hidden;
}

.manuscript-section--footer {
    min-height: 40vh;
}

.section-content {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.section-content--center {
    text-align: center;
    margin: 0 auto;
}

.section-content--left {
    margin-left: 10%;
    margin-right: auto;
}

.section-content--right {
    margin-right: 10%;
    margin-left: auto;
}

/* Typography */
.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 400;
    color: #2C1810;
    opacity: 0;
    animation: fadeIn 2s ease 2s forwards;
}

.hero-title em {
    font-style: italic;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #7A6855;
    margin-top: 12px;
    opacity: 0;
    animation: fadeIn 1.5s ease 2.8s forwards;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: #2C1810;
    margin-bottom: 20px;
}

.body-text {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #7A6855;
    margin-bottom: 32px;
}

.annotation {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: #7B5EA7;
    display: block;
    margin-bottom: 8px;
}

/* Botanical SVGs */
.botanical-svg {
    position: absolute;
    opacity: 0.25;
    pointer-events: none;
}

.botanical-svg--fern {
    top: 10%;
    right: 8%;
    width: 120px;
}

.botanical-svg--ginkgo {
    top: 15%;
    left: 6%;
    width: 80px;
}

.botanical-svg svg {
    width: 100%;
    height: auto;
}

/* Botanical Cards */
.botanical-card {
    background: #F0E8D8;
    border: 1px solid #D4C4A8;
    padding: 28px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.botanical-card__front svg {
    width: 80px;
    height: 110px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.botanical-card__name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #2C1810;
    margin-bottom: 8px;
}

.botanical-card__desc {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #7A6855;
}

/* Pressed flower decorations */
.botanical-card::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: #C4727A;
    opacity: 0.2;
    transform: rotate(45deg);
}

/* Footer */
.footer-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    font-style: italic;
    color: #D4C4A8;
    margin-top: 12px;
}

/* Scroll Reveal */
.grimoire-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s ease, transform 1s ease;
}

.grimoire-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes spineExtend {
    from { width: 0; }
    to { width: 60vw; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .section-content--left,
    .section-content--right {
        margin-left: auto;
        margin-right: auto;
    }

    .manuscript-section {
        padding: 60px 20px;
    }

    .botanical-svg {
        display: none;
    }
}
