/* --- Variables --- */
:root {
    --primary-color: #0077c2; 
    --text-color: #333;
    --highlight-color: #7F7F7F;
    --background-color: #fdfdfd;
    --light-gray: #f0f0f0;
    --font-family: 'Lato', sans-serif;
    --content-width: 800px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* --- Typography --- */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-top: 2rem;
}

h2 {
    font-size: 2em;
    margin-top: 3rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5em;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1em;
    font-weight: 300;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00558b;
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    margin-left: 0;
    padding-left: 1.5rem;
    font-style: italic;
    color: #555;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    background: var(--background-color);
    border-bottom: 1px solid var(--light-gray);
    z-index: 1000;
    padding: 0.5rem 0;
}

.site-header .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-nav a {
    margin: 0 0.75rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8em;
}

/* --- Layout --- */
.wrapper {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

main {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

section {
    padding: 2rem 0;
}

hr {
    border: none;
    border-top: 1px solid var(--light-gray);
    margin: 3rem 0;
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.site-title:hover {
    text-decoration: none;
}

.site-nav {
    margin-top: 1rem; /* space below the title */
    margin-bottom: 0.5rem; /* space above main content */
    font-size: 0.9em;
}
.site-nav a {
    margin: 0 0.5rem;
    font-weight: 400;
    display: inline-block;
    padding: 0.125rem 0;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--light-gray); /* Adds a subtle line to separate it from the content */
    font-size: 1.3em;
}

.site-footer p {
    margin: 0;
    font-size: 0.9em;
    font-weight: 300;
}

/* --- Call to Action Section --- */
.cta {
    background-color: var(--light-gray);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    text-align: center;
}

.cta p {
    font-size: 1.2em;
    margin: 0;
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    
    .site-title { margin-bottom: 0.5rem; }
    .site-nav {
        width: 100%;
        display: none;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
        position: absolute; /* Add this line */
        top: 5rem; /* Set this to the header height */
        left: 0;
        z-index: 99; /* Ensures the menu is on top of other content */
        background-color: var(--background-color); /* Add a background color to the menu */
    }
    .site-nav a {
        margin: 0.25rem 0; /* Change this line */
        display: block;
        text-align: center;
    }
    .site-header.active .site-nav {
        display: flex;
    }
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        background: none;
        border: none;
    }
}

@media screen and (min-width: 769px) {
    .menu-toggle { display: none; }
}