/* Variable Font Declarations */
@font-face {
    font-family: 'HeaderText';
    src: url('../fonts/Oswald-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 1 999;  /* Full weight range */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HeaderText';
    src: url('../fonts/Oswald-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 1 999;  /* Full weight range */
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BodyText';
    src: url('../fonts/SourceSans3-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 900;  /* Weight range for Source Sans 3 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BodyText';
    src: url('../fonts/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 900;  /* Weight range for Source Sans 3 */
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'FrillyText';
    src: url('../fonts/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 900;  /* Weight range for Source Sans 3 */
    font-style: italic;
    font-display: swap;
}

/* Base Styles */
:root {
    --rustic-brown: #ff7a00;
    --warm-cream: #f9f3e9;
    --soft-rose: #98b4b8;
    --deep-burgundy: #000000d1;
    --charcoal: #333333;
    --light-gray: #f5f5f5;
}

/* Rest of the CSS file remains unchanged */

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

body {
    font-family: 'BodyText';
    background-color: var(--warm-cream);
    color: var(--charcoal);
    line-height: 1.6;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/UIAHBFA.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    background-color: rgba(249, 249, 249, 0.75);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'HeaderText';
    font-weight: 700;
}

.author-name {
    font-size: 3rem;
    color: var(--rustic-brown);
    text-align: center;
    margin-bottom: 0.5rem;
}

.series-name {
    font-size: 1.5rem;
    font-family: 'FrillyText';
    color: var(--deep-burgundy);
    text-align: center;
    font-style: italic;
    margin-bottom: 3rem;
}

.book-title {
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    margin-bottom: 1.5rem;
}

/* Header Section */
header {
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--soft-rose);
}

/* Book Section */
.book-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

.book-cover-container {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.book-cover {
    width: 100%;
    height: auto;
    display: block;
    animation: fadeIn 1.5s ease-in-out, floatUp 2s ease-out;
}

.book-details {
    flex: 1;
}

.book-blurb {
    font-size: 1.1rem;
    color: var(--charcoal);
    line-height: 1.8;
}

.book-blurb p {
    margin-bottom: 1rem;
}

/* Sign-up Section */
.signup-section {
    background-color: rgba(50, 40, 30, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.signup-section h4 {
    font-size: 1.8rem;
    color: var(--rustic-brown);
    margin-bottom: 1.5rem;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

input[type="text"],
input[type="email"] {
    width: 25em;
    padding: 0.5rem;
    border: 1px solid var(--soft-rose);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--deep-burgundy);
    box-shadow: 1 1 1 3px rgba(114, 47, 55, 0.1);
}

.signup-button {
    background-color: var(--deep-burgundy);
    width: 25em;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 0.6rem;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}

.signup-button:hover {
    background-color: var(--rustic-brown);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding-top: 2rem;
    border-top: 1px solid var(--soft-rose);
    font-size: 0.9rem;
    color: #777;
}

.privacy-policy {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .book-section {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }
    
    .book-cover-container {
        flex: 0 0 40%;
        margin-bottom: 0;
    }
    
    .book-details {
        padding-top: 0;
    }
    
    .form-group {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .author-name {
        font-size: 2.5rem;
    }
    
    .series-name {
        font-size: 1.2rem;
    }
    
    .book-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .container {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 5px;
    }
    
    input[type="text"],
    input[type="email"],
    .signup-button {
        width: 100%;
        max-width: 25em;
    }
}
