@font-face {
    font-family: 'Myriad Pro Bold';
    src: url(../font/Myriad-Pro-Bold.ttf) format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro Semibold';
    src: url(../font/Myriad-Pro-Semibold.ttf) format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro Regular';
    src: url(../font/Myriad-Pro-Regular.ttf) format('truetype');
    font-weight: 500;
    font-style: normal;
}


body {
    font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
    font-weight: normal;
    font-weight: 400;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    font-size: 12pt;
    margin: 0;
    color: hsl(263, 100%, 97%);
    background-color: black;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body {
    background-image: url(../media/wallpaper/the-cliffs-small.jpg);
    background-image: image-set("../media/wallpaper/the-cliffs-small.avif" type("image/avif"), "../media/wallpaper/the-cliffs-small.webp" type("image/webp"), "../media/wallpaper/the-cliffs-small.jpg" type("image/jpeg"));
}


@media screen and (min-width: 1200px) {
    body {
        background-image: url(../media/wallpaper/the-cliffs.jpg);
        background-image: image-set("../media/wallpaper/the-cliffs.avif" type("image/avif"), "../media/wallpaper/the-cliffs.webp" type("image/webp"), "../media/wallpaper/the-cliffs.jpg" type("image/jpeg"));
    }
}


a {
    color: hsl(263, 66%, 75%);
    text-decoration: none;
}

    a:hover {
        color: hsl(263, 66%, 85%);
        filter: drop-shadow(0 0 1px hsl(263, 66%, 70%));
    }

h1 {
    margin: 0 0 12px 0;
}

h1 {
    font-size: 2.25rem;
}

    h1 > small {
        font-size: 14px;
        color: #808080;
    }

h1 {
    font-family: 'Myriad Pro Bold', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: hsl(263, 66%, 95%);
    filter: drop-shadow(0 0 1px hsl(263, 66%, 70%));
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.2;
    font-family: 'Myriad Pro Semibold', sans-serif;
}

#app {
    background-color: rgba(0, 0, 0, 0.33);
}

    #app > div {
        background-color: hsl(263, 25%, 8%);
        padding: 16px 32px;
        min-height: calc(100vh - 32px);
        display: block;
        max-width: 864px;
        margin: 0 auto;
        overflow-x: hidden;
        box-shadow: 0 0 16px hsl(263, 66%, 70%);
    }

header {
    position: relative;
    z-index: 100;
    margin: -16px -32px 24px -32px;
    padding: 32px 32px 0 32px;
    background-image: linear-gradient(to bottom, hsl(263, 66%, 55%, 0.35), hsla(263, 66%, 55%, 0) 200px);
    box-shadow: 0 0 8px hsl(263, 66%, 70%);
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0 -32px 0 -32px;
}

    .nav-links > li {
        display: flex;
        flex: 1;
        justify-content: flex-start;
        margin: 0;
    }

        .nav-links > li > a {
            flex: 1;
            font-size: 1.1rem;
            font-weight: 500;
            padding: 8px 32px 14px 32px;
            border-bottom: 2px solid transparent;
            font-family: 'Myriad Pro Semibold', sans-serif;
        }

            .nav-links > li > a:hover, .nav-links > li > a.active {
                border-bottom: 2px solid hsl(263, 66%, 75%);
            }

.blog-post-header-details {
    margin-bottom: 20px;
}

.posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.post {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 0;
    text-decoration: none;
    color: #d3c0f2;
    filter: drop-shadow(0 0 2px hsl(263, 66%, 70%));
    background-color: #130f19;
    position: relative;
    overflow: clip;
    color: hsl(263, 66%, 95%);
}

    .post .background {
        position: absolute;
        top: 0;
        left: 34%;
        object-fit: cover;
        object-position: center;
        width: 66%;
        height: 100%;
        z-index: -100;
    }

    .post .content {
        padding: 16px 20px;
        background-image: radial-gradient(circle at top left, rgba(53, 32, 91, 1) 35%, rgba(53, 32, 91, 0.90) 50%, rgba(53, 32, 91, 0.2) 100%);
    }

    .post h3 {
        margin: 0 0 0px 0;
        font-size: 1.33rem;
    }

        .post h3 a {
            color: hsl(263, 66%, 95%);
        }

    .post h4 {
        margin: 0 0 0px 0;
        font-size: 1.1rem;
    }

    .post p {
        margin: 0;
        font-size: 1rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* number of lines to show */
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }


    .post .actions{
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .post .meta {
        opacity: 0.8;
    }

    .post .summary {
        margin-top: 8px;
    }


.blog-post {
    margin-top: -8px;
}

    .blog-post .header {
        padding: 24px 32px 16px 32px;
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
    }

        .blog-post .header h1 {
            margin: 20px 0 0 0;
        }

        .blog-post .header h2 {
            margin: 4px 0 2px 0;
        }

        .blog-post .header .details {
            margin: 0;
        }

        .blog-post .header .actions {
            position: absolute;
            top: 0px;
            right: 16px;
        }


    .blog-post .header-container {
        position: relative;
        margin: -16px -32px;
    }

        .blog-post .header-container.has-image .header {
            min-height: 250px;
            background-image: linear-gradient(0deg, hsl(264 35% 15% / 1) 20%, hsl(264 35% 15% / .9) 50%, hsl(264 35% 15% / 0) 100%);
        }

        .blog-post .header-container .image {
            position: absolute;
            top: -8px;
            left: 0;
            object-fit: cover;
            object-position: center;
            width: 100%;
            height: calc(100% + 8px);
        }

    .blog-post .content {
        margin-top: 32px;
    }

        .blog-post .content img {
            max-width: 100%;
            max-width: calc(100% + 32px);
            margin: 0 -16px;
        }

        .blog-post .content pre {
            max-width: calc(100% + 64px);
            margin: 0 -32px;
            padding: 16px 32px;

            overflow-y: auto;
            background-color: rgba(0,0,0,0.4);
        }