html {
    font-size: 18px;
}

body {
    max-width: 936px;
    display: flex;
    margin: auto;
    flex-flow: row wrap;
    font-family: Helvetica, Arial, sans-serif;
    margin-bottom: 6rem;
    font-size: 1rem;
    line-height: 1.5em;
    color: #333;
    background: #fcfcfc;
    letter-spacing: 0.4px;
}

a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

h1 {
    font-size: 2.5rem;
    text-align: left;
    line-height: 1.5em;
    flex-basis: 100%;
    font-weight: 700;
    color: #333333;
    font-family: Helvetica, Arial, sans-serif;
}

h2 {
    font-size: 1.75rem;
    text-align: left;
    font-weight: 400;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.5em;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.5em;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.5em;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

h5 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5em;
    text-align: left;
    margin: 1.5em 0 0.5em 0;
}

h6 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5em 0 1em 0;
    text-align: left;
}

p {
    font-size: 1rem;
    line-height: 1.5em;
    margin: 0.75em 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    line-break: loose;
    letter-spacing: 0.4px;
}

ul, ol {
    padding: 0;
}

li {
    font-size: 1rem;
}

.underlined-link {
    text-decoration: underline;
}

.page-top-section {
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
}

.index-bg {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 80vh;
    width: 100%;
    z-index: -9999;
    overflow: hidden;
    max-width: 100%;
}

.index-bg-image {
    width: 100%;
    height: auto;
}

.page-intro-content {
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
}

header {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    flex-basis: 100%;
    max-width: 100%;
    margin: auto;
}

#hero-message h2 {
    margin-top: 0;
}

#hero-message h1 {
    font-size: 3rem;
    margin-top: 0.75em;
    margin-bottom: 0.25em;
}

#hero-message h2 {
    font-size: 1.5rem;
}

#hero-highlight {
    position: relative;
    padding-left: 0;
    box-shadow: 6px 0 0 #FED7E1, -6px 0 0 #FED7E1;
    background-color: #FED7E1;
}

@media(max-width:700px){
    #page-top-container{
        margin-bottom: 0.75rem;
    }

    .index-bg-image {
        height: 80vh;
        width: auto;
    }
}

@media(max-width: 500px) {
    .page-intro-content {
        margin-top: 1rem;
    }

    .page-top-section {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
}

#logo-container {
    flex-basis: 50%;
    text-align: left;
}

.highlighted-link {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #222;
    display: inline-block;
    position: relative;
}

.highlighted-link:after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #222;
    background: #FED7E1;
    bottom: 3px;
    z-index: -99;
}

#logo-image {
    height: 30px;
    width: auto;
}

#navigation {
    flex-basis: 50%;
    display: flex;
    justify-content: flex-end;
}

.nav-link {
    margin-left: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #222;
    display: inline-block;
    position: relative;
}

.nav-link:after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    width: 0;
    height: 10px;
    background-color: #222;
    background: #FED7E1;
    bottom: 2px;
    z-index: -99;
    transition: all 0.2s ease-in;
}

.nav-link:hover:after {
    width: 100%;
}

#index-hero {
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

#profile-picture-container {
    width: 100%;
    height: auto;
    position: relative;
    flex-basis: 35%;
}

#profile-picture {
    height: 250px;
    width: 250px;
    margin-top: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}

#profile-bg {
    position: absolute;
    top: -150px;
    right: 0px;
    height: 500px;
    z-index: -99;
}

.tag-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.tag-link {
    flex: 0 0 auto;
    margin-right: 0.75rem;
    padding: 12px 10px 10px 10px;
    border: 1px solid rgb(200, 180, 241);
    color: #6e599d;
    border-radius: 5px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.tag-active {
    border: 1px solid rgb(200, 180, 241);
    color: #4C3D6B;
    background: rgb(234, 229, 245);
}

.tag-link:hover {
    color: #4C3D6B;
    border: 1px solid #4C3D6B;
    text-decoration: none;
}

.tag-link:last-of-type {
    margin-right: 0;
}

#index-articles-container {
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
    margin-top: 2rem;
}

.preview-image-container {
    flex-basis: 34%;
}

.article-preview-container {
    display: flex;
    flex-flow: row nowrap;
}

.article-preview-link {
    display: block;
    padding: 12px 0;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.article-preview-link:hover {
    background: #f2f2f2;
}

.article-preview-content {
    margin-left: 1rem;
    align-self: center;
    flex-basis: 66%;
}

.article-preview-image {
    max-width: 100%;
}

.article-preview-title, .article-preview-summary {
    margin: 0;
}

.article-preview-summary {
    margin-top:0.25rem;
}

.article-preview-mobile-cue-link {
    display: none;
}

.main-button {
    padding: 0;
    border: none;
    border-radius: 5px;
    display: block;
    margin-top: 2rem;
}

.main-button a {
    padding: 0.75rem 1rem;
    background: #fcfcfc;
    border: 2px solid #222;
    color: #333;
    letter-spacing: 0.8px;
    font-weight: 700;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: all 0.1s ease-in;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-button-icon {
    height: 0.75rem;
    width: auto;
    margin-left: 0.25rem;
    transition: margin-left 0.1s ease-in;
}

.main-button a:hover .main-button-icon {
    margin-left: 0.75rem;
}

.main-button a:hover {
    background: #FF758C;
    border: 2px solid #FF758C;
}

.main-button a:active {
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
}

.main-button-text {
    font-size: 1rem;
}

@-moz-document url-prefix() {
    .main-button a {
        padding: 15px 18px 12px 18px;
    }

    .main-button-icon {
        margin-top: -3px;
    }
}

#secondary-bio-section {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: top;
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
    margin-top: 6rem;
}

#secondary-bio-message {
    flex-basis: 55%;
}

#secondary-bio-message h3 {
    margin-top: 0;
}

footer {
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
    margin-top: 6rem;
}

footer h4 {
    text-align: center;
}

footer p {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.5em;
    text-align: center;
}

.social-list {
    list-style-type: none;
    margin: auto;
    text-align: center;
    font-size: 1rem;
}

.social-list li {
    display: inline-block;
    margin: 0 0.75rem;
}

/* .social-list a {
    display: inline-block;
    position: relative;
    font-weight: 700;
} */

/* .social-list a:after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #222;
    background: #FED7E1;
    bottom: 3px;
    z-index: -99;
} */

.one-line {
    display: inline-block;
}

/* Home page media queries */

@media (max-width: 930px) {

    #profile-picture-container {
        flex-basis: 32%;
    }

    #secondary-bio-message {
        flex-basis: 58%;
    }

    .nav-link {
        margin-left: 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    article h2 {
        font-weight: 700;
    }

    h3 {
        font-size: 1.25rem;
    }

    article h4 {
        font-size: 1.25rem;
        font-weight: 400;
    }

    article h5 {
        font-size: 1rem;
    }

    footer {
        margin-top: 6rem;
    }
}

@media (max-width: 700px) {

    header {
        flex-flow: column;
    }

    header, footer, #index-hero, #index-articles-container, #secondary-bio-section {
        flex-basis: 80%;
    }

    #hero-message h1 {
        font-size: 2rem;
    }

    #index-articles-container {
        max-width: 80%;
    }

    #secondary-bio-message {
        flex-basis: 100%;
        margin: auto;
        order: 2;
    }

    /* #profile-bg {
        transform: rotate(-90deg);
        top: -50px;
        right: -90px;
        height: 320px;
    } */

    #navigation {
        justify-content: center;
        margin-top: 1rem;
    }

    #logo-container {
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .nav-link {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .nav-link:after {
        display: none;
    }

    #index-hero {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
        flex-flow: row wrap;
    }

    #profile-picture-container {
        margin: auto;
        order: 1;
        margin-bottom: 1.5rem;
    }

    #profile-picture {
        margin: auto;
        margin-top: 0;
    }

    .article-preview-container {
        flex-flow: row wrap;
    }

    .article-preview-content {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .preview-image-container {
        flex-basis: 100%;
    }

    .main-button {
        margin: auto;
    }

    .footer-email {
        font-size: 1.1rem;
    }

    .social-list li {
        margin: 0.75rem 0.5rem;
    }

    .social-list a {
        padding: 6px;
    }

    .social-list a:after {
        bottom: 6px;
    }
}

@media(max-width: 501px) {
    header, footer, #index-hero, #index-articles-container, #secondary-bio-section {
        flex-basis: 96%;
    }

    #index-articles-container {
        max-width: 96%;
    }

    /* #profile-bg {
        top: -50px;
        right: -50px;
    } */

    .article-preview-image, .preview-image-container {
        display: none;
    }

    .article-preview-mobile-cue-link {
        display: inline-block;
        margin-bottom: 1.5rem;
        margin-top: -0.25rem;
    }

    .nav-link {
        margin: auto;
        letter-spacing: 0;
    }

    footer {
        margin-top: 2rem;
    }

    .article-preview-link:last-of-type {
        margin-bottom: 0;
    }

    .main-button {
        margin-top: 1rem;
    }
}

@media (max-width: 373px) {

    #hero-message h1 {
        font-size: 1.5rem;
    }

    #hero-message h2 {
        font-size: 1.25rem;
    }
/*
    #profile-bg {
        display: none;
    } */
}

/* work page styles */

.work-tag-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.grid {
    display: flex;
    flex-flow: row wrap;
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
    justify-content: space-between;
}

.grid-item-container {
    flex-basis: 443px;
    height: 286px;
    overflow: hidden;
}

.grid-item-container {
    background: #e0e0e0;
    margin-bottom: 0.75rem;
    position: relative;
}

.grid-summary-container {
    position: absolute;
    width: 100%;
    background: rgba(20,20,20,0.8);
    color: #fff;
    padding: 0.75rem;
    height: auto;
    bottom: 0;
    box-sizing: border-box;
}

.grid-link:hover .grid-summary-container {
    transform: none;
}

.grid-summary {
    display: none;
}

.grid-title {
    margin: 0.25rem 0;
}

#work .grid-summary-container {
    height: 100%;
    bottom: -12rem;
    transition: all 0.2s ease-in-out;
}

.grid-link {
    display: block;
    height: 100%;
}

#work .grid-summary {
    display: block;
}

#work .grid-link:hover .grid-summary-container {
    transform: translateY(-12rem);
}

#work .grid-title {
    bottom: 0;
    margin:0.25rem 0 0.5rem 0;
}

@media(max-width: 1000px) {
    .grid-item-container {
        flex-basis: 49.2%;
    }
}

@media(max-width: 900px) {
    #work .grid-summary-container {
        height: auto;
        bottom: 0;
    }

    #work .grid-link:hover .grid-summary-container {
        transform: none;
    }

    #work .grid-summary {
        display: none;
    }

    #work .grid-title {
        margin-bottom: 0.25rem;
    }
}

#work-button-container {
    display: block;
}

@media(max-width:700px){
    .grid {
        max-width: 100%;
    }

    .grid-item-container {
        flex-basis: 100%;
    }

    #work-intro-container {
        margin-bottom: 0.75rem;
        margin-top: 3rem;
    }
}


/* Contact page styles */

#contact-content-container {
    max-width: 620px;
}

.mail-link {
    font-weight: 700;
}

.mail-link:hover {
    text-decoration: underline;
}

#contact-content-container .social-list {
    text-align: left;
    font-size: 1.5rem;
}

#contact-content-container .social-list li:first-child {
    margin-left: 0;
}

@media(max-width:700px){

    #contact-content-container .social-list li:first-child {
        margin-left: 0.75rem;
    }
}


/* articles list page styles */


#articles-list-container {
    flex-basis: 936px;
    max-width: 96%;
    margin: auto;
}

#articles-list-container:first-child {
    margin-top: 0;
}

@media(max-width:700px){

    #articles-list-intro-container {
        margin-bottom: 0.75rem;
        margin-top: 3rem;
    }
}

/* Individual post page styles — i.e. articles and projects pages */

.page-full-width-container {
    flex-basis: 100%;
    margin: auto;
    margin-top: 6rem;
    display: flex;
    flex-flow: row wrap;
    color: #333;
}

.post-content-container {
    flex-basis: 40rem;
    max-width: 96%;
    margin: auto;
    color: #333;
}

.date {
    font-size: 0.75rem;
    color: #555;
}

.post-content-container .date {
    margin: -1.5em 0 0 0;
}

.post-featured-image {
    max-width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

article .tag-container {
    margin-top: 1rem;
}

article img {
    width: auto;
    display: block;
    max-width: 100%;
    margin: 1.5em auto;
}

article ul, article ol {
    padding-left: 1rem;
    box-sizing: border-box;
}

article li {
    padding-left: 0.25rem;
    line-height: 1.5em;
    margin: 0.75em 0;
    font-size: 1rem;
}

article a {
    color: #203997;
}

article a:hover {
    text-decoration: underline;
    color: #1f1e60;
}

article img+em {
    color: #555;
    font-size: 0.75rem;
    display: block;
    text-align: center;
    margin-bottom: 2em;
    line-height: 1.5em;
    font-style: normal;
    margin-top: -1em;
}

article img+em a {
    color: #555;
    font-size: 0.75rem;
    text-decoration: underline;
}

article iframe {
    margin: 2em auto;
    display: block;
    max-width: 100%;
}

/* Maybe you want to remove the .quote (but not blockquote!)... */
blockquote{
    margin: 1.5rem 2rem;
}

blockquote p {
    font-style: italic;
    font-size: 1rem;
    color: #555;
    font-weight: 300;
}

@media(max-width: 930px) {
    .post-content-container .date {
        margin: -0.5em 0 0 0;
    }
}

@media(max-width: 500px) {
    blockquote{
        margin: 1.5rem 0.75rem;
    }

    blockquote p {
        font-size: 1rem;
    }
}

/* Single project page styles */

.back-button-container {
    flex-basis: 100%;
    margin: auto;
    margin-top: 4rem;
}

.back-button-container .main-button {
    margin: auto;
}

.back-button-container .main-button-icon {
    margin: 0 0.75rem 0 0;
    transform: rotate(180deg);
    transition: all 0.1s ease-in;
}

.back-button-container .main-button a:hover .main-button-icon {
    margin: 0 1rem 0 0;
}

.poem {
    color: #c4585e;
    font-size: 0.75rem;
    margin: 0.25rem 0;
}

.poem-container {
    margin-top: 2em;
}
