/* Storylinn Typography (v1.6 - Mobile Edge & Wrap Fix) */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400&family=Playfair+Display:wght@700;900&display=swap');

#stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Vertical Center */
    justify-content: center; /* Horizontal Center */
    padding: 0 5vw; /* Side safety buffer for mobile */
    overflow: hidden;
}

#headline {
    font-family: 'Playfair Display', serif;
    font-weight: 900; 
    line-height: 1.1;
    text-align: center;
    width: 100%;
    max-width: 100%;
    
    /* THE WRAP FIX:
       Ensures that words break correctly at hyphens (handled by JS) 
       or break mid-word only as a last resort to prevent layout overflow.
    */
    word-wrap: break-word;
    word-break: break-word; 
    hyphens: auto;
    
    /* Smooth transitions for the fluid-resize logic */
    transition: font-size 0.3s ease-out;
}

/* Reader View Adjustments */
.lightbox-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.reader-text {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.7;
    height: auto;
}

/* Metadata Styling */
.metadata-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.source-tag {
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    display: inline-block;
}

body[data-theme='light'] .source-tag { background: #000; color: #fff; }
body[data-theme='dark'] .source-tag { background: #fff; color: #000; }

.date-stamp {
    font-family: sans-serif;
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
}