/* --- Global Styles --- */
body {
    background-color: #FEFEFD; /* Light off-white background for the page */
    font-family: 'Courier New', Courier, monospace; /* Typewriter-style serif font for body */
    color: #333333; /* Dark grey text color for body */
    margin: 0;
    padding: 20px; /* Add some padding around the entire page */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the main container horizontally */
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    box-sizing: border-box;
    text-align: center; /* Default text alignment to center for the whole body */
    font-size: 16px; /* Default base font size */
}

/* --- Main Content Container --- */
.container {
    width: 90%; /* Responsive width */
    max-width: 800px; /* Maximum width for readability */
    background-color: transparent; /* Container is transparent against the body background */
    padding: 30px 40px; /* Padding for content spacing within the container */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- Header (Names) --- */
header h1 {
    font-family: 'Georgia', serif;
    font-size: 2.8em; /* Relative to body font size */
    margin-bottom: 15px;
    color: #333333; /* Dark grey text color for the main heading */
    font-weight: bold;
}

/* Style for the H1 link to ensure it looks exactly like the H1 text */
header h1 a {
    color: inherit; /* Inherits color from the parent H1 (i.e., #333333) */
    text-decoration: none; /* Removes the underline */
    /* Ensure no other link-specific styles are applied */
    cursor: pointer; /* Optional: keeps the pointer cursor to indicate it's clickable,
                         but you can set to 'text' or 'default' if you want to hide that too,
                         though it might be confusing for users. */
}

/* Ensure no change on hover */
header h1 a:hover {
    color: inherit; /* Keeps the same color as the H1 on hover */
    text-decoration: none; /* Ensures no underline appears on hover */
}

/* --- Navigation Menu --- */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 45px 0; /* Top margin 20px, bottom margin 45px for spacing around nav */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 5px 15px; /* Spacing between navigation items */
}

nav ul li a {
    text-decoration: none;
    color: #333333; /* Dark grey text color for navigation links */
    font-weight: normal;
    font-size: 1em; /* Relative to body font size */
    padding: 6px 10px;
    border-bottom: 2px solid transparent; /* Transparent border for hover effect */
    transition: color 0.3s ease, border-bottom-color 0.3s ease; /* Smooth transition for hover */
}

nav ul li a:hover,
nav ul li a.active {
    color: #000000; /* Black text color for strong contrast on hover/active */
    border-bottom-color: #000000; /* Black border bottom on hover/active */
}

/* --- Main Content Area --- */
.content {
    text-align: center; /* Center-aligns text within the main content area */
}

/* --- RSVP Button Style --- */
.rsvp-button-link {
    display: inline-block;
    padding: 12px 28px;
    background-color: #03311C; /* Dark green background for RSVP button */
    color: #FDFBF6;      /* Light text color for RSVP button */
    font-family: 'Georgia', serif;
    font-size: 1.5em; /* Relative to body font size */
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 40px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition for hover effects */
}

.rsvp-button-link:hover {
    background-color: #055437; /* Darker green background on hover for RSVP button */
    color: #FDFBF6; /* Light text color on hover for RSVP button */
    transform: translateY(-2px); /* Slight upward movement on hover */
}


.content h2 {
    font-family: 'Georgia', serif;
    font-size: 1.8em; /* Relative to body font size */
    color: #333333; /* Dark grey text color for section titles (H2) */
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 20px; /* Space for the dotted line below */
    position: relative; /* For positioning the ::after pseudo-element */
}

.content h2::after {
    content: "";
    display: block;
    width: 75%;
    border-top: 1px dotted #cccccc; /* Light grey dotted separator line */
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Center the line */
}

.content h3 {
    font-family: 'Georgia', serif;
    font-size: 1.4em; /* Relative to body font size */
    color: #333333; /* Dark grey text color for sub-section titles (H3) */
    margin-top: 25px;
    margin-bottom: 10px;
}

.content p {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1em; /* Relative to body font size */
    color: #333333; /* Dark grey text color for paragraphs */
}

/* --- Content Links (e.g., for venue) --- */
.content-link {
    color: #03311C; /* Dark green color for content links, matching button base */
    text-decoration: underline; /* Standard link underline */
    font-weight: bold; /* Makes content links bold */
    /* Font size will be inherited from parent <p> or other text element */
}

.content-link:hover {
    color: #055437; /* Darker green color for content links on hover, matching button hover */
    text-decoration: underline; /* Keeps underline on hover, can be 'none' */
}

/* --- Footer --- */
footer {
    margin-top: 40px;
    padding-top: 25px; /* Space for the dotted line above */
    font-size: 0.9em; /* Relative to body font size */
    color: #333333; /* Dark grey text color for footer */
    position: relative; /* For positioning the ::before pseudo-element */
}

footer::before {
    content: "";
    display: block;
    width: 75%;
    border-top: 1px dotted #cccccc; /* Light grey dotted separator line above footer */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Center the line */
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    body {
        font-size: 14px; /* Reduced base font size for mobile */
    }
    header h1 {
        font-size: 2.2em; /* Smaller font size for main heading on small screens (relative to new mobile body font-size) */
    }
    nav ul {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: center;
    }
    nav ul li {
        margin: 8px 0; /* Adjust margin for stacked navigation items */
    }
    nav ul li a {
        font-size: 1em; /* Adjusted nav link font size for mobile (relative to new mobile body font-size) */
    }
    .container {
        padding: 20px 15px; /* Reduce padding for container on small screens */
        width: 95%; /* Increase width slightly for small screens */
    }
    .rsvp-button-link {
        font-size: 1.2em; /* Smaller font size for RSVP button on mobile (relative to new mobile body font-size) */
        padding: 10px 20px; /* Adjust padding for RSVP button */
        margin-bottom: 30px; /* Adjust bottom margin for RSVP button */
    }
    .content h2 {
        font-size: 1.6em; /* Smaller font size for section titles (H2) (relative to new mobile body font-size) */
        padding-bottom: 15px; /* Adjust padding for H2 */
    }
    .content h2::after, footer::before {
        width: 85%; /* Wider separator line on small screens */
    }
    .content h3 {
        font-size: 1.25em; /* Smaller font size for sub-section titles (H3) (relative to new mobile body font-size) */
    }
    .content p {
        font-size: 0.95em; /* Smaller font size for paragraphs on mobile (relative to new mobile body font-size) */
    }
    footer {
        padding-top: 20px; /* Adjust padding for footer */
        font-size: 0.85em; /* Smaller font size for footer on mobile (relative to new mobile body font-size) */
    }
}
