/* Simple CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}




:root {
    --step--2: clamp(0.6944rem, 0.2681rem + 2.1315vw, 1.92rem);
    --step--1: clamp(0.8331rem, 0.2881rem + 2.725vw, 2.4rem);
    --step-0: clamp(1rem, 0.3043rem + 3.4783vw, 3rem);
    --step-1: clamp(1.2rem, 0.313rem + 4.4348vw, 3.75rem);
    --step-2: clamp(1.44rem, 0.3104rem + 5.6478vw, 4.6875rem);
    --step-3: clamp(1.7281rem, 0.2912rem + 7.1848vw, 5.8594rem);
    --step-4: clamp(2.0738rem, 0.2474rem + 9.1315vw, 7.3244rem);
    --step-5: clamp(2.4881rem, 0.1692rem + 11.5946vw, 9.155rem);
  }


:root {
    --space-3xs: clamp(0.25rem, 0.0761rem + 0.8696vw, 0.75rem);
    --space-2xs: clamp(0.5rem, 0.1522rem + 1.7391vw, 1.5rem);
    --space-xs: clamp(0.75rem, 0.2283rem + 2.6087vw, 2.25rem);
    --space-s: clamp(1rem, 0.3043rem + 3.4783vw, 3rem);
    --space-m: clamp(1.5rem, 0.4565rem + 5.2174vw, 4.5rem);
    --space-l: clamp(2rem, 0.6087rem + 6.9565vw, 6rem);
    --space-xl: clamp(3rem, 0.913rem + 10.4348vw, 9rem);
    --space-2xl: clamp(4rem, 1.2174rem + 13.913vw, 12rem);
    --space-3xl: clamp(6rem, 1.8261rem + 20.8696vw, 18rem);
  
    /* One-up pairs */
    --space-3xs-2xs: clamp(0.25rem, -0.1848rem + 2.1739vw, 1.5rem);
    --space-2xs-xs: clamp(0.5rem, -0.1087rem + 3.0435vw, 2.25rem);
    --space-xs-s: clamp(0.75rem, -0.0326rem + 3.913vw, 3rem);
    --space-s-m: clamp(1rem, -0.2174rem + 6.087vw, 4.5rem);
    --space-m-l: clamp(1.5rem, -0.0652rem + 7.8261vw, 6rem);
    --space-l-xl: clamp(2rem, -0.4348rem + 12.1739vw, 9rem);
    --space-xl-2xl: clamp(3rem, -0.1304rem + 15.6522vw, 12rem);
    --space-2xl-3xl: clamp(4rem, -0.8696rem + 24.3478vw, 18rem);
  
    /* Custom pairs */
    --space-s-l: clamp(1rem, -0.7391rem + 8.6957vw, 6rem);
  }



html {
    color: #2e2e2e;
    background-color: #f0f0f0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: var(--step-3);
    line-height: 1.2;
    margin-bottom: var(--space-3xs);
}

h2 {
    font-size: var(--step-0);
    line-height: 1.25;
    margin-bottom: var(--space-3xs);
    font-weight: 500;
}

p {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: var(--step--2);
    line-height: 1.5em;
}






#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 10% auto 0;
    max-width: 1440px;
}

#photo, #contact {
    flex-basis: 35%;
}

#photo {
    order: 2;
}

#contact {
    order: 1;
}

#photo img {
    width: 100%;
}


@media (max-width: 999px) {
    #container {
        flex-direction: column;
        margin-top: 0;
    }

    #photo, #contact {
        flex-basis: 100%;
        order: 0;
        margin-bottom: 1rem;
    }

    #contact {
        padding: 0 1rem;
    }
}