/*  Fonts
-----
    font-family: 'IBM Plex Sans', sans-serif;
    font-family: 'Lora', serif;
    font-family: 'Marcellus', serif;
    font-family: 'Marcellus SC', serif;
    font-family: 'Playfair Display', serif;
    font-family: 'Raleway', sans-serif;

<style> @import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Marcellus&family=Marcellus+SC&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); </style>
*/

/* Colours
-----
*/

:root {
    --white: hsl(0, 0%, 100%); /* #FFFFFF */
    --widget-border-1: hsl(0, 0%, 92%); /* hex: EBEBEB was light-grey */
    --header-colour-1: hsl(0, 0%, 97%); /* hex: F8F8F8| ver 1.0 was named off-white */
    --accent-2: hsl(337, 74%, 45%); /* hex: #c71e5f | ver 1.0 was named medium-blue */
    --accent-1: hsl(16, 69%, 42%); /* hex: b44821 | ver 1.0 was named dark-blue */
    --accent-3: #be185d;
    --nav-accent-1: hsl(0, 0%, 44%); /* hex: 707070 | ver 1.0 was named medium-grey-1 */
    --medium-grey-2: hsl(0, 0%, 44%); /* hex: 717171 | ver 1.0 was named medium-grey-2 */

    --font-family-serif-1: 'Marcellus', serif;
    --font-family-serif-2: 'Lora', serif;
    --font-family-serif-3: 'Playfair Display', serif;
    --font-family-sans-1: 'Raleway', sans-serif;
    --font-family-sans-2: 'IBM Plex Sans', sans-serif;
    
}
/* #d4713f #c16537 #af5629*/
/* #d185a2 */


body {
    margin: 0;
    font-family: var(--font-family-sans-2);
    font-size: 1.125rem;
    font-weight: 300;
}

img {
    max-width: 100%;
    display: block;
}

.image-full {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 2em;
}

/* =================
Typography
================= */

.h1-brand {
    font-family: var(--font-family-serif-1);
    font-weight: 600;
    color: var(--accent-1);
    margin-top: 0;
    font-size: 3rem;
    margin: 0;
}

h1 {
    font-family: var(--font-family-sans-2);
    font-weight: 500;
    color: var(--accent-1);
    margin-top: 0;
    font-size: 2.25rem;
    align-content: center;
}


h2 {
    font-family: var(--font-family-sans-2);
    color: var(--accent-1);
    margin-top: 0;
    font-size: 2rem;
}

h3 {
    color: var(--accent-2);
    font-size: 1.75rem;
}
h3, h4 {
    font-family: var(--font-family-sans-2);
}

h4 {
    color: var(--accent-1);
    text-transform: uppercase;
}

a {
    color: var(--accent-3);
    font-weight: bolder;
}

a:hover,
a:focus {
    color: var(--accent-1);
    font-weight: bold;
    font-size: large;
}

hr {
    border: 0;
    border-top: 1px solid var(--nav-accent-1);
    margin: 2em 0;

}

strong {
    font-weight: 700;
}

ul {
    list-style: none;
}

article > ul {
    list-style: disc;
    line-height: 1.7rem;
}

article > ol {
    line-height: 1.7rem;
}

blockquote {
    border-left: 8px var(--accent-2) solid;
    padding-left: 2em;
    line-height: 1.5em;
    font-weight: bold;
    font-family: var(--font-family-sans-2);
}

.list-bullets {
    list-style: disc;
    line-height: 1.7rem;
}

/* h1 subtitle */
.subtitle {
    font-family: var(--font-family-serif-1);
    font-weight: 700;
    color: var(--accent-2);
    font-size: .80rem;
    margin: 0.5rem 0 0 0;
}

.article-title {
    font-size: 1.5rem;
}

.article-body {
    line-height: 1.7rem;
}

.article-read-more,
.article-info {
    font-size: .875rem;
}

.article-read-more {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 700;
}

.article-read-more:hover,
.article-read-more:focus {
    color: var(--accent-1);
    text-decoration: underline;
}

.article-info {
    margin: 2em 0;
}

.widget-title,
.widget-recent-post-title {
    font-size: 1rem;
}

article > p {
    line-height: 1.7rem;
}

.widget-title {
    font-family: var(--font-family-serif-1);
    font-weight: 700;
}

.widget-recent-post-title {
    color: var(--accent-1);
}

.widget-underline {
    border-bottom: 1px solid var(--nav-accent-1);
    margin-bottom: 1em;
    padding-top: 1em;
}

.widget-subheading {
    font-family: var(--font-family-sans-1);
    font-weight: 550;
    color: var(--accent-1);
}

/* .twitter-feed {
    padding-bottom: 2rem;
} */

.footer-font {
    font-family: var(--font-family-serif-1);
}

.footer-link {
    color: var(--white);
    text-decoration: underline;
}


footer a:hover, a:focus {
    background-color:var(--widget-border-1);
    border-radius: 5px;
    
}

/* .linkedin svg {
    color: blue;
} */

.widget-icon {
    max-width: 50%;
    margin: auto;
  }
  

/* =================
Layout
================= */

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.container-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header {
    background: var(--header-colour-1);
    padding: 2em 0;
    text-align: center;
    margin-bottom: 3em;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent-1);
    color: white;
    text-align: center;
    padding: 3em 0;
}

.link-reverse-colour{
    color: var(--header-colour-1);
}

.logo-img {
    max-height: 70px;
    max-width: 70px;
    border-radius: 50%;
    margin-bottom: 0.75em;
}

h4 ~ img {
    max-height: 0.5vh;
}

.img-smaller {
    max-height: 65vh;
}

@media (min-width: 675px) {
    header {
        text-align: left;
    }
    
    .container-flex {
        flex-direction: row;
    }

    h1 {
        margin: 0 0 0 2rem;
    }
    
    main {
        width: 70%;
    }
    
    aside {
        width: 25%;
        min-width: 200px;
        margin-left: 1em;
    }

    .full-article {
        width: 85%;
        min-width: 600px;
    }
}

/* navigation */

nav ul {
    font-family: var(--font-family-serif-1);
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin-left: 2em;
}

nav a {
    text-decoration: none;
    color: var(--nav-accent-1);
    font-weight: 700;
    padding: .25em 0;
}

nav a:hover,
nav a:focus {
    color: var(--accent-2);
}

.current-page {
    border-bottom: 2px solid var(--nav-accent-1);
    color: var(--accent-1);
}

.current-page:hover {
    color: var(--nav-accent-1);
}

@media (max-width: 674px) {
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: .5em 0;
    }

    h1 {
        font-size: 2.5rem;
        margin: 0;
    }
}

/* articles */

.article-featured {
    border-bottom: var(--nav-accent-1) 1px solid;
    padding-bottom: 2em;
    margin-bottom: 2em;
}

.article-recent {
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
    margin-right: 1.7em;
}

.article-recent-main {
    order: 2;

}

.article-recent-secondary {
    order: 1;
}

@media (min-width: 675px) {
    .article-recent {
        flex-direction: row;
        justify-content: space-between;
        margin-right: 0.8em;
    }
    
    .article-recent-main {
        width: 68%;
        margin-left: 1.2em;
    }
    
    .article-recent-secondary {
        width: 30%;
    }
    
    .article-featured {
        display: flex;
        flex-direction: column;
        min-width: 90%;
    }
    
    .article-image {
        order: -2;
        min-height: 150px;
        min-width: 150px;
        object-fit: cover;
        filter: drop-shadow(1px 1px 1px rgba(13, 13, 13, 0.89));
        /* object-position: left; */
    }
    
    .article-info {
        order: -1;
    }
}

/* widgets */

.sidebar-widget {
    border: 20px solid var(--widget-border-1);
    margin-bottom: 2em;
    padding: 1em;
}

.widget-recent-post {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--nav-accent-1);
    margin-bottom: 1em;
}

.widget-recent-post:last-child {
    border: 0;
    margin: 0;
}

.widget-image {
    order: -1;
}