/* Body: page background, font, and default text colour */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #ADEEC5;
    color: #000000;
}

/* Header: linear gradient running left to right across the banner */
header {
    background: linear-gradient(to right, #0E331B, #285438);
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
}

/* Site name inside the header */
.site-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
}

/* Navigation list: removes bullets and centres the links in a forest green bar */
.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #285438;
    text-align: center;
}

/* Each list item sits side by side instead of stacking vertically */
.navbar li {
    display: inline-block;
}

/* Links: white text, no underline, padded so they are easy to tap */
.navbar a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
}

/* Hover and keyboard focus: background darkens so the user can see where they are */
.navbar a:hover,
.navbar a:focus {
    background-color: #0E331B;
}

/* Main content: centered column that shrinks on small screens */
main {
    max-width: 60rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Footer: angled linear gradient at 135 degrees, dark green to forest green */
footer {
    background: linear-gradient(135deg, #285438, #0E331B);
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Footer paragraphs: removes extra spacing so the bar stays compact */
footer p {
    margin: 0.25rem 0;
}

/* Footer links: white so they stay readable on the dark green background */
footer a {
    color: #FFFFFF;
}

/* Form container: sage background with a mid green border, fills the available width */
form {
    background-color: #A2BAAB;
    padding: 1rem;
    border: 2px solid #5B876B;
}

/* Labels sit on their own line above each field */
label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

/* Fields fill the width of the form, box-sizing keeps padding inside that width */
input,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

/* Submit button: forest green with white text */
button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #285438;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

/* Project cards: sage background with a mid green border, one per row on mobile */
.project-card {
    background-color: #A2BAAB;
    border: 2px solid #5B876B;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Profile photo: scales with the screen and never overflows its container */
.profile-photo {
    display: block;
    max-width: 100%;
    width: 15rem;
    height: auto;
    margin: 1rem auto;
}

/* Intro video: fluid width so it shrinks on small screens */
.intro-video {
    display: block;
    max-width: 100%;
    height: auto;
}