@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --celtic-gold: #D4AF37;
    --irish-green: #228B22;
    --parchment: #F4F1E8;
    --deep-forest: #1B4332;
    --mist-grey: #B8BDB5;
    --ink-black: #2D3748;
}

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

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, var(--parchment) 0%, #F8F5F0 100%);
    color: var(--ink-black);
    line-height: 1.7;
    font-size: 18px;
    min-height: 100vh;
}

.manuscript {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--parchment);
    box-shadow: 
        0 0 20px rgba(0,0,0,0.1),
        inset 0 0 60px rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.manuscript::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        var(--celtic-gold) 0%, 
        var(--irish-green) 33%, 
        var(--celtic-gold) 66%, 
        var(--irish-green) 100%);
}

.manuscript::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    pointer-events: none;
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2em;
    font-weight: 600;
    color: var(--deep-forest);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1em;
    font-style: italic;
    color: var(--mist-grey);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.main-subtitle {
    font-size: 1.3em;
    color: var(--deep-forest);
}

.ornament {
    text-align: center;
    font-size: 1.5em;
    color: var(--celtic-gold);
    margin: 40px 0;
    letter-spacing: 8px;
}

.content {
    position: relative;
    z-index: 1;
}

p {
    margin-bottom: 24px;
    text-align: justify;
    text-indent: 1.5em;
    hyphens: auto;
}

.content p:first-of-type {
    text-indent: 0;
}

.content p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4em;
    font-weight: 600;
    float: left;
    line-height: 0.8;
    margin: 8px 8px 4px 0;
    color: var(--deep-forest);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-break {
    text-align: center;
    margin: 50px 0;
    font-size: 1.2em;
    color: var(--celtic-gold);
    letter-spacing: 12px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--irish-green);
    margin: 40px 0 20px 0;
    text-align: center;
    letter-spacing: 1px;
}

.gaelic-phrase {
    font-style: italic;
    color: var(--irish-green);
    font-weight: 600;
}

.emphasis {
    font-style: italic;
    color: var(--deep-forest);
}

.closing {
    text-align: center;
    margin-top: 60px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1em;
    color: var(--mist-grey);
    letter-spacing: 2px;
}

.subtle-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--mist-grey);
}

.subtle-link:hover {
    color: var(--irish-green);
    border-bottom-color: var(--irish-green);
}

.story-photo {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tooltip {
    border-bottom: 1px dotted var(--mist-grey);
    cursor: help;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media print {
    body {
        background: white;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .manuscript {
        box-shadow: none;
        border: none;
        max-width: none;
        margin: 0;
        padding: 20px;
        background: white;
    }
    
    .manuscript::before,
    .manuscript::after {
        display: none;
    }
    
    .title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .ornament {
        font-size: 1.2em;
        margin: 20px 0;
    }
    
    p {
        margin-bottom: 16px;
    }
    
    .section-break {
        margin: 30px 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .manuscript {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .title {
        font-size: 1.8em;
    }
    
    p:first-of-type::first-letter {
        font-size: 3em;
        margin: 6px 6px 2px 0;
    }
}