@import url('https://fonts.googleapis.com/css2?family=Junge&family=Prata&display=swap');

body {
    font-family: Prata, Georgia, "Times New Roman", Times, serif;
    font-size: 16pt;
    color: #000000;
    font-weight: 400;
    background: #000000;
    background: linear-gradient(328deg, rgba(0, 0, 0, 1) 0%, rgba(122, 122, 122, 1) 50%, rgba(0, 0, 0, 1) 100%);
    padding: 2% 5%;
    margin: 0; /* Reset default body margin */
}

#wrapper {
    max-width: 1200px;
    /* Fallback for older browsers if image fails */
    background-color: #f0f0f0; 
    background-image: url(../../images/bkg/1200x798_orcho.jpg);
    background-attachment: scroll;
    background-position: center top;
    background-size: cover; /* Changed from 100% 100% to cover for better scaling */
    background-repeat: repeat-y;
    border: 1px solid #C3CDB8;
    margin: 2% auto 5%;
    padding: 20px 20px 30px; /* Added internal padding so content doesn't touch edges on small screens */
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
}

/* Main content container */
.content1 {
    padding: 15px;
    width: 100%;
    max-width: 600px; /* Limits width on large screens but allows shrinking */
    margin: 5% auto; /* Centered with bottom margin instead of <br> */
    line-height: 1.5; /* Improves readability */
}

/* Typography helpers */
.larger {
    font-size: 20pt;
    display: block; /* Ensures line breaks work cleanly inside span */
    margin-bottom: 10px;
}

.drop-cap {
    font-size: 20pt; /* Matches the 'larger' class for the first letter effect */
    font-weight: bold;
}

.attribution {
    font-size: 11pt;
    font-style: italic;
    text-indent: 20px;
    text-align: left;
    margin: 5%;
    margin-left: 20%;
    max-width: 600px;

}

/* Back link styling */
.back-link {
    text-align: right;
    margin-right: 5%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.link1 {
    font: 10pt Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: #D8E4D5;
    transition: color 0.2s ease;
}

a.link1:visited {
    color: #D8E4D5;
}

a.link1:hover {
    color: #000000;
    text-decoration: underline;
}

a.link1:active {
    color: #FFCCCC;
}

/* Responsive Adjustments for smaller screens */
@media (max-width: 768px) {
    body {
        font-size: 14pt; /* Slightly smaller base font for mobile */
        padding: 1% 3%;
    }

    .larger, .drop-cap {
        font-size: 18pt; /* Reduced from 20pt */
    }

    #wrapper {
        background-attachment: scroll; /* 'fixed' often causes issues on mobile browsers */
        margin: 5% auto;
        padding: 15px;
    }
    
    .content1 {
        padding: 10px;
    }
}