/* Base layout and typography */

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-size: 16.5px;
    line-height: 1.65;
    color: #222;
    background: #fff;
}

/* Global link style */

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and navigation */

header {
    margin-bottom: 15px;
    position: relative;
    text-align: center;
}

h1 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 6px;
}

nav a {
    margin-right: 15px;
    font-size: 14.5px;
    font-weight: 500;
}

/* Section headings */

h2 {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 600;
}

/* Grey divider under header */

.header-divider {
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

/* Profile layout container */

.profile-right {
    margin-top: 0;
    overflow: hidden;
}

/* Profile photo */

.profile-photo {
    float: right;
    width: 110px;
    height: 110px;
    object-fit: cover;
    margin-left: 25px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    position: relative;
    top: 25px;
}

/* Footer */

footer {
    margin-top: 0px;
    padding-top: 0px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

/* ========================= */
/* Mobile responsiveness    */
/* ========================= */

@media (max-width: 700px) {

    body {
        margin: 20px auto;
        padding: 0 15px;
        font-size: 16px;
    }

    h1 {
        font-size: 26px;
    }

    nav {
        text-align: center;
    }

    nav a {
        display: inline-block;
        margin-right: 12px;
        font-size: 14px;
    }

    footer {
        font-size: 0.85em;
    }
}

