/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="3" fill="%238b0000" stroke="%23000" stroke-width="1.5"/></svg>') 8 8, auto;
}

body {
    background: #000000;
    color: #a09590; /* Dusty, aged paper text tone */
    font-family: 'EB Garamond', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 3rem 0;
}

/* Vignette (Very heavy and dark) */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.98) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Breathing Blood Mist */
.blood-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
    z-index: 4;
    animation: mist-breath 10s ease-in-out infinite alternate;
}

@keyframes mist-breath {
    0% { opacity: 0.3; }
    100% { opacity: 1; background: radial-gradient(circle, rgba(139, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 70%); }
}

/* Canvas for Blood Drips */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* Gothic/Ancient Manuscript Card */
.manuscript {
    background: rgba(8, 3, 3, 0.82);
    border: 1px solid rgba(139, 0, 0, 0.25);
    outline: 3px double rgba(139, 0, 0, 0.12);
    outline-offset: -8px;
    padding: 4.5rem 3.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 
                inset 0 0 30px rgba(139, 0, 0, 0.08);
    position: relative;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Ornaments */
.ornament {
    text-align: center;
    color: #8b0000;
    font-size: 1.1rem;
    letter-spacing: 12px;
    opacity: 0.6;
    user-select: none;
}

.header-ornament {
    margin-bottom: 1rem;
}

.footer-ornament {
    margin-top: 1.5rem;
}

/* Gothic Title: bleedish */
.title {
    font-family: 'Nosifer', cursive;
    font-size: 5rem;
    color: #8b0000;
    text-align: center;
    letter-spacing: 6px;
    margin-bottom: 0.2rem;
    user-select: none;
    text-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
    animation: heart-thump 4s ease-in-out infinite;
}

@keyframes heart-thump {
    0%, 100% { transform: scale(1); text-shadow: 0 0 15px rgba(139, 0, 0, 0.6); }
    15% { transform: scale(1.03); text-shadow: 0 0 25px rgba(139, 0, 0, 0.9), 0 0 5px rgba(255, 0, 0, 0.5); }
    30% { transform: scale(1); text-shadow: 0 0 15px rgba(139, 0, 0, 0.6); }
    45% { transform: scale(1.02); text-shadow: 0 0 20px rgba(139, 0, 0, 0.8); }
    60% { transform: scale(1); text-shadow: 0 0 15px rgba(139, 0, 0, 0.6); }
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
}

/* Dividers */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 15%, rgba(139, 0, 0, 0.4) 50%, transparent 85%);
    margin: 2rem 0;
    position: relative;
}

/* Content Body */
.content-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manifesto-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #9c918c;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Decorative Drop Cap */
.drop-cap {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 10px;
    margin-top: 4px;
    color: #8b0000;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

/* Closing / Warning Section */
.closing-section {
    text-align: center;
    margin: 2rem 0;
}

.warning-tagline {
    font-size: 1.35rem;
    font-style: italic;
    color: #960000;
    line-height: 1.5;
    letter-spacing: 1.5px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(150, 0, 0, 0.3);
}

.signatures {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.signature-line {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 4px;
    color: #6a605c;
    transition: all 0.4s ease;
}

.signature-line:hover {
    color: #8b0000;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

/* Audio Control */
.audio-control {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: #444;
    transition: all 0.5s ease;
    padding: 10px;
    text-align: center;
}

.audio-control:hover {
    color: #8b0000;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
    letter-spacing: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .manuscript {
        padding: 3rem 2rem;
    }
    
    .title {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }
    
    .manifesto-paragraph {
        font-size: 1.05rem;
    }
    
    .drop-cap {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 0.5rem;
    }
    
    .container {
        width: 100%;
    }
    
    .manuscript {
        padding: 2.2rem 1.2rem;
        margin-bottom: 1.5rem;
        outline-offset: -5px;
        text-align: left;
    }
    
    .title {
        font-size: 2.1rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }
    
    .divider {
        margin: 1.5rem 0;
    }
    
    .manifesto-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .drop-cap {
        font-size: 2.5rem;
        margin-top: 2px;
        margin-right: 6px;
    }
    
    .warning-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .signatures {
        gap: 0.5rem;
    }
    
    .signature-line {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .audio-control {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .ornament {
        font-size: 0.8rem;
        letter-spacing: 6px;
    }
}
