*/* Reset text rendering and hyphenation on common text elements */
body, p, h1, h2, h3, h4, h5, h6, a, li, span {
    text-rendering: optimizeLegibility;
    hyphens: none;
}

/* Ensure full viewport height */
body, html {
    min-height: 100vh;
}

/* Colour variables */
:root {
    --bg: #111;
    --text: #ddd;
}

/* Base background */
html {
    background: var(--bg);
}

/* Body base styles */
body {
    margin: 0.0 auto;
    padding: 0.0em;
    font-size: 100.0%;
    font-family: sans-serif;
    color: var(--text);
}

/* Main content container */
main {
    width: auto;
    margin: 0.0 auto;
    border: 0.0;
    padding: 1.0em 2.0em 2.0em 2.0em;
}

/* Contact section spacing and alignment */
#contact {
    margin: 3.0em 0.0 0.0 0.0;
    text-align: center;
}

/* Aside styling */
aside {
    width: 100vw;
    max-width: calc(100vw - 2.0em);
    margin: 0.0 auto;
    padding: 1.0em 0.0 0.0 0.0;
    background-color: transparent;
    object-fit: cover;
}

/* Footer styling */
footer {
    margin: 0.0 0.0 1.0em 1.0em;
    text-transform: uppercase;
}

/* Headings */

/* Main heading */
h1 {
    color: #fff;
    font-size: 1.0em;
    font-family: sans-serif;
    font-weight: 800;
}

/* Secondary headings (email, social, telephone) */
h2 {
    color: var(--text);
    font-size: 0.9em;
    line-height: 1em;
    margin: 2.0em 0.0 0.0 0.0;
    font-family: sans-serif;
    text-transform: none;
}

/* Paragraphs */
p {
    color: var(--text);
    font-size: 0.9em;
    font-weight: 400;
    text-transform: none;
    line-height: 1.25;
}

/* Links */
a {
    color: var(--text);
    text-decoration: none;
    padding: 0.0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
}

a:hover {
    background: #444;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.60);
}

/* Images */
img {
    display: inline;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Styles */

/* Medium screens and up */
@media only screen and (min-width: 800px) {
    main {
        padding: 2.0em 4.0em 2.0em 4.0em;
    }

    footer {
        margin-left: 4.0em;
    }
}

/* Larger screens and up */
@media only screen and (min-width: 900px) {
    body {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-start;
    }

    aside {
        width: 100vw;
        height: calc(100vh - 4.0em);
        max-height: 100vh;
        background-color: transparent;
        object-fit: cover;
        padding: 2.0em 2.0em 0.0 0.0;
        margin: 0.0;
        flex: 1;
    }

    main {
        padding: calc(100% / 12 * 1) 4.0em 4.0em 4.0em;
        margin: 0.0;
        text-align: left;
        flex: 1;
    }

    footer {
        position: fixed;
        bottom: 50%;
        left: -9.0em;
        background-color: transparent;
        transform: rotate(270deg);
    }
}

/* Extra large screens */
@media only screen and (min-width: 1500px) {
    #bio {
        max-width: 80ch;
        margin: 0.0 auto;
        text-align: left;
    }

    footer {
        position: fixed;
        bottom: 0.0em;
        left: -2.0em;
        background-color: transparent;
        transform: initial;
    }

    main {
        padding: calc(100% / 12 * 1) 4.0em 4.0em 4.0em;
    }
}