@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=EB+Garamond&display=swap');

img {    
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#blured {
    filter: blur(15px);
    transform: scale(1.1);
}
.watermark {
    position: absolute;

    bottom: 10px;
    right: 10px;

    width: 25px;
    height: 25px;
    filter: invert(1);

    transition: transform 500ms ease;
    /* transform-origin: bottom right; */
}
.image-wrap img {
    width: 100%;
}

a {
    text-decoration: none;
    color: gray;
}

/* Header */
.logo-image { 
    transform: scale(0.4);
    height: 100px;
}
header {
    margin-top: 8px;
    text-align: center;
}
header a {
    color: black;
    transition: color 0.3s ease-in-out;
}
header a:hover {
    color:gray;
}

.main-logo {
    text-transform: uppercase;
    font-size: 30px;
}
.sub-logo {
    font-size: 20px;
}

/* Navigation */
nav {
    z-index: 1;

    display: flex;
    position: sticky;
    position: -webkit-sticky;
    margin-top: 45px;
    top: 0;

    justify-content: space-around;

    background-color: white;
    border-bottom: 1px solid lightgray;
}
nav a {
    color: black;
    padding: 10px 0px;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
nav a:hover {
    color: lightgray;
    border-bottom: 1px solid lightgray;
}

/* Quote */
.quote {
    text-align: center;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}
.quote a {
    color: black;
    font-style: italic;
    transition: color 500ms;
}
.quote a p {
    margin: 0;
}
.quote a:hover {
    color: gray;
}
.quote-by {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    margin: 10px 0px 0px 0px;
}

/* Body */
body {
    margin: 0px;
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    text-align: justify;

    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto auto 1fr auto;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    margin-top: 45px;
}
.article {
    padding: 0 10%;
}
.article figure img{
    width: 100%;
    height: auto;
}
.article-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    margin: 60px 25px 20px 25px;
    padding-bottom: 10px;

    border-bottom: 1px solid lightgray;
    transition: border-color 500ms ease;
}
.article-widget:hover {
    border-color: black;
}
.article-widget:hover img {
    transform: scale(1.1);
}
.article-widget-main-title {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: black;
}
.article-widget-sub-title{
    margin-top: 5px;
    font-size: 13px;
    color: black;
}

.thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 4px;
}
.thumbnail img:first-child { /* excluding the watermark */
    width: 100%;
    aspect-ratio: 16/9;
    transition: transform 500ms ease;
}

/* Content */
.title {
    font-size: 40px;
}
.subtitle {
    font-size: 25px;
    text-align: left;
}
.info {
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 30px;
    font-style: italic;
}
.text {
    hyphens: auto;
    
    column-count: 2;
    column-gap: 50px;
    column-rule: 1px solid black;

    font-size: 18px;
    line-height: 1.3;
}
.text p:first-child { /* Removes space of first paragraph*/
    margin-top: 0;
}
.image-wrap {
    padding: 30px 0 10px 0;
}
.copyright {
    font-size: 16px;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid lightgray;

    font-size: 15px;
    margin-top: 35px;
}
footer a {
    padding: 10px 0px 10px 0px;

    color: black;
    transition: color 0.4s;
}
footer a:hover {
    color: gray;
}

/* Desktop */
@media only screen and (min-width: 1000px) { 
    .hamburger-menu {
        display: none;
    }
    body {
        padding: 0 10% 0 10%;
    }
    .articles {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Tablet */
@media only screen and (min-width: 700px) and (max-width: 999px) {
    .hamburger-menu {
        display: none;
    }
    body {
        padding: 0 5% 0 5%;
    }
    .articles {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .article {
        padding: 0 5%;
    }

}

@media (max-width: 700px) {
    /* TODO refactoring */
    .navigation {
        display: none;
    }
    .hamburger-menu {
        z-index: 1;
        position:sticky;
        top: 0px;
        width: 100%;
        background-color: white;
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 62px;
    }
    .hamburger-menu .menu-items {
        display: flex;
    }
    .hamburger-menu .nav-container a {
        font-size: 20px;
        padding: 15px;
        margin: 0 5px 0 5px;

        color: black;
        border-bottom: 1px solid lightgray;
    }
    .nav-container a:first-child {
        margin-top: 60px;
    }
    .nav-container {
        display: block;
        position: relative;
        height: 60px;
    }
    .nav-container .checkbox {
        position: absolute;
        display: block;
        height: 32px;
        width: 32px;
        top: 10px;
        right: 20px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }
    .nav-container .hamburger-lines {
        display: block;
        height: 23px;
        width: 32px;
        position: absolute;
        top: 17px;
        right: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .nav-container .hamburger-lines .line {
        display: block;
        height: 1px;
        width: 100%;
        /* border-radius: 10px; */
        background: gray;
    }
    .nav-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
    .nav-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }
    .nav-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }
    .hamburger-menu .menu-items {
        background-color: white;
        height: 100vh;
        width: 100%;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;

        transition: transform 0.5s ease-in-out;
    }
    .nav-container input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }
    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(45deg);
    }
    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }
    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-45deg);
    }
    .nav-container input[type="checkbox"]:checked ~ .logo{
        display: none;
    }
    main {
        margin-top: 30px;
    }
    .article {
        padding: 0 23px;
    }
    .title {
        font-size: 28px;
    }
    .subtitle {
        margin-top: 5px;
        font-size: 20px;
    }
    .info {
        margin-bottom: 20px;
    }
    .text {
        font-size: 20px;
        column-count: 1;
    }
    .copyright {
        font-size: 12px;
    }
}