/* ===========================
   Reset + Base Layout
=========================== */
html, body {
    margin: 0;
    font-family: 'Cambria', serif;
    background-color: #fffef2;
    color: #000;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* Wrapper to allow sticky nav */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================
   Header
=========================== */
header {
    text-align: center;
    padding: 1em;
    background-color: #296374;
}

/* ===========================
   NAVBAR (Sticky after header)
=========================== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #629fad;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* wrap links on mobile */
}

nav li {
    margin: 0 1em;
    text-align: center;
}

/* Links */
a {
    text-decoration: none;
    font-weight: bold;
    color: #fffef2;
    transition: color 0.5s;
}

.link-nav:hover {
    color: #296374;
}

.link-contact {
    font-size: 175%;
}

.link-contact:hover {
    color: #629fad;
}

.link-legal {
    color:#629fad;
    font-size: 80%;
}

/* ===========================
   Main Content
=========================== */
main {
    flex: 1;
    padding-bottom: var(--footer-height);
    text-align: justify;
}

section {
    max-width: 1000px;
    margin: 2em auto;
    padding: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

section div {
    flex: 1;
}

/* Portrait / Icons */
.portrait {
    float: left;
    padding-right: 2em;
    padding-bottom: 1em;
    max-width: 250px;
    width: 100%;
    height: auto;
}

.icon {
    width: 16px;
    height: 16px;
}

/* ===========================
   Typography
=========================== */
h1, h2, h3 {
    font-family: 'Garamond', serif;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 300%;
    color: #fffef2;
}

h2 {
    color: #fff;
}

h3 {
    font-size: 200%;
    color: #296374;
}

p {
    line-height: 1.6;
    font-size: 20px;
}

ul {
    line-height: 1.6;
    font-size: 17px;
    list-style-type: square;
    padding-left: 1.2em;
}

li {
    margin-bottom: 0.5em;
}

/* ===========================
   Footer
=========================== */
:root {
    --footer-height: 150px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    text-align: center;
    padding: 1em;
    background-color: #296374;
    color: #fffef2;
    z-index: 1000;
}

/* ===========================
   Responsive / Mobile
=========================== */
@media screen and (max-width: 600px) {
    /* Layout adjustments */
    section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .portrait {
        float: none;
        padding-right: 0;
        padding-bottom: 1em;
        max-width: 150px;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 0.5em 0;
    }

    /* Font adjustments */
    h1 {
        font-size: 220%;
    }

    h2 {
        font-size: 180%;
    }

    h3 {
        font-size: 150%;
    }

    p {
        font-size: 16px;
    }

    ul {
        font-size: 15px;
    }

    .link-contact {
        font-size: 110%;

    }

    footer {
        font-size: 14px;
        height: auto;
        padding: 0.8em;
    }
}