/* -----------------------------------------------------------
   FONT IMPORT 
   Uses Playfair Display for the book aesthetic.
   ----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* -----------------------------------------------------------
   BASIC PAGE SETUP (NO SCROLLING GOAL)
   ----------------------------------------------------------- */
body {
    height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    
    background-color: #1a1a1a; 
    background-image: url('https://i.pinimg.com/1200x/3f/30/e9/3f30e9992708c14fff3ae6a1c7499bd9.jpg'); 
    background-size: cover; 
    background-attachment: fixed;
    background-position: center; 
    
    font-family: 'Playfair Display', serif; 
    color: #000000; 
    line-height: 1.5;
    margin: 0;
    padding: 0;
    
    font-size: 13pt; 
    overflow: hidden; 
}

/* -----------------------------------------------------------
   THE PAGE CONTAINER (WIDER, FIT TO SCREEN HEIGHT)
   ----------------------------------------------------------- */
.page-container {
    width: 700px; 
    max-height: 90vh; 
    
    margin: 0; 
    /* TIGHTER INTERNAL PADDING TO SAVE VERTICAL SPACE */
    padding: 30px 50px; 
    
    background-color: #f8f0e3; 
    
    text-align: center; 

    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333; 
    
    box-sizing: border-box; 
    
    /* ELIMINATE INTERNAL SCROLLING */
    overflow-y: hidden; 
}

/* -----------------------------------------------------------
   TITLE PAGE STYLES (ACCURATE TYPOGRAPHY + TIGHT SPACING)
   ----------------------------------------------------------- */

/* Squiggle */
.squiggle {
    font-size: 2.4em;
    margin-bottom: -10px;
    color: #444;
    letter-spacing: 4px;
}

/* Section Titles */
.title-header {
    font-size: 1.6em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin: 0.6em 0 0.8em 0; /* Tight margin */
}

/* Horizontal Line */
.title-line {
    border-top: 1px solid #000;
    margin: 20px auto; /* TIGHTER MARGIN */
    width: 80%;
}

/* Base block margins - EXTREMELY TIGHT */
.title-block, .author-block, .publication-info, .edition-block {
    margin: 1.5em 0; /* Much smaller vertical spacing to prevent scroll */
}

/* PHILINTE — MASSIVE AND STRETCHED */
.title-block .large {
    font-size: 5.8em;           
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;      
    margin: 0.05em 0; /* Very tight vertical margin */
    line-height: 1.0;
}

/* Secondary titles (LE, DE MOLIÈRE etc.) */
.title-block .small {
    font-size: 1.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;  
    margin: 0.3em 0; /* Tight vertical margin */
}

/* Tiny subtitles */
.title-block .tiny {
    font-size: 1.2em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Signature Placeholder */
.signature {
    height: 1px; 
    border-bottom: 1px solid #000;
    width: 60%; 
    margin: 40px auto 10px auto; /* TIGHTER MARGIN */
}

/* PARIS */
.bottom {
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 20px;
}

/* -----------------------------------------------------------
   DIALOGUE & LINKS (Unchanged)
   ----------------------------------------------------------- */

.character-name {
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-size: 1.4em;
}

.dialogue {
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 20px;
    text-indent: 1.5em;
    text-align: justify;
    font-size: 14pt;
}

a {
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
}

a:hover {
    color: #666666;
    text-decoration: underline;
}