* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #fbfaf6;
    color: #17362e;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #176b55;
}

header {
    background-color: white;
    border-bottom: 1px solid #d8e3de;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.site-name {
    color: #17362e;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navigation-links a {
    color: #17362e;
    font-weight: bold;
    text-decoration: none;
}

.navigation-links a:hover {
    color: #176b55;
}

button,
.button {
    display: inline-block;

    padding: 12px 20px;

    background-color: #176b55;
    border: none;
    border-radius: 8px;

    color: white;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

button:hover,
.button:hover {
    background-color: #104f40;
}

.button.secondary {
    background-color: transparent;
    border: 1px solid #176b55;
    color: #176b55;
}

main {
    width: min(1100px, calc(100% - 40px));
    min-height: 70vh;

    margin: auto;
    padding: 60px 0;
}

.hero {
    padding: 70px 20px;
    text-align: center;
}

.hero h1 {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(50px, 8vw, 90px);
    font-weight: normal;
    line-height: 1;
}

.hero > p:not(.small-heading) {
    max-width: 650px;

    margin: 25px auto;

    color: #65746f;
    font-size: 18px;
    line-height: 1.7;
}

.small-heading {
    color: #176b55;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    margin-bottom: 70px;
}

.features article,
article {
    padding: 25px;

    background-color: white;
    border: 1px solid #d8e3de;
    border-radius: 15px;
}

.features h2,
article h2,
article h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.features p,
article p {
    color: #65746f;
    line-height: 1.6;
}

.notice {
    max-width: 800px;

    margin: auto;
    padding: 40px;

    background-color: #e5f2ec;
    border-radius: 18px;

    text-align: center;
}

.page-heading {
    max-width: 700px;
    margin-bottom: 35px;
}

.page-heading h1,
main > h1 {
    margin-bottom: 15px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(45px, 7vw, 75px);
    font-weight: normal;
}

form {
    display: grid;
    gap: 10px;

    max-width: 550px;

    margin: 25px 0;
    padding: 30px;

    background-color: white;
    border: 1px solid #d8e3de;
    border-radius: 15px;
}

label {
    margin-top: 8px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 12px;

    border: 1px solid #bdcec6;
    border-radius: 8px;

    font: inherit;
}

input:focus,
textarea:focus {
    border-color: #176b55;
    outline: 3px solid #d9eee5;
}

#registrationMessage,
#loginMessage,
#forumMessage,
#savedMessage {
    font-weight: bold;
}

#postsContainer,
#savedPostsContainer {
    display: grid;
    gap: 15px;
}

.map-container {
    width: 100%;
    height: 650px;

    overflow: hidden;

    background-color: #e5f2ec;
    border: 1px solid #d8e3de;
    border-radius: 15px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    display: flex;
    justify-content: space-between;

    max-width: 1100px;

    margin: auto;
    padding: 25px 20px;

    border-top: 1px solid #d8e3de;

    color: #65746f;
    font-size: 13px;
}

@media (max-width: 750px) {
    nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .navigation-links {
        flex-wrap: wrap;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .button-group {
        align-items: center;
        flex-direction: column;
    }

    .map-container {
        height: 500px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }
}
