:root {
    --body-max-width: 1300px;
    --dark-accent-lighter: rgb(52, 55, 81);
    --dark-accent-lighter-translucid: rgb(52, 55, 81, 0.9);
    --dark-accent: rgb(29, 32, 48);
    --light-accent: hsl(20, 26%, 91%);
    --link-color: rgb(126, 35, 245);
    --link-color-dark-bg: hsl(266, 100%, 85%);

    --serif: 'Noto Serif';
    --sans-serif: Montserrat, sans-serif;
    --global_line_height: 1.3em;
}

body {
    margin: 0;
    margin-top: 8px;
    font-family: var(--sans-serif);
    line-height: var(--global_line_height);
}

main {
    font-size: 0.93em;
    padding-bottom: 2em;
}


section,
article {
    padding-bottom: 3em;
    text-align: justify;
}


a {
    color: var(--link-color);
    text-decoration: none;
    border-left: solid transparent;
}

a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 1.21em;
}

#about_section h3 {
    margin: 0;
}

img {
    max-width: 100%
}


main>div>div,
main>section>header,
main>section>div,
main>article>div {
    --padding_value: 3vw;
    padding-left: var(--padding_value);
    padding-right: var(--padding_value);
}


#heading_container,
main>div>*,
main>section>*,
main>article>* {
    max-width: var(--body-max-width);
    margin-left: auto;
    margin-right: auto;
}




/* to switch between white and beige sections */
main>section:nth-child(even),
main>article:nth-child(even) {
    background-color: var(--light-accent);
}



section>h2,
article>h2 {
    max-width: 100%;
    margin-bottom: 2em;
    margin-top: 0;
    padding: 0.4em;
    text-align: center;
    background-color: var(--dark-accent-lighter);
    color: white;
}




/* so that links to h3 in sections lead to the h3 title, not a bit below it on screen*/
section h3,
article h3 {
    padding-top: 3em;

}

/* ----------------- heading ------------------- */

#heading_container {
    display: grid;
    grid-template-columns: 1fr auto;

    font-family: var(--serif);
    margin-bottom: 1em;

}

#heading_logo_title {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: min-content;
}

#logo {
    background-image: url("logo_ephyra_dark.svg");
    background-repeat: no-repeat;
    background-size: contain;
    width: 3.5em;
}

/* EPHYRA PUBLISHING on two lines */
#heading_global_title {
    display: grid;
    grid-auto-columns: min-content;
}

/* EPHYRA is bigger than PUBLISHING on two lines */
#heading_global_title span:nth-child(1) {
    font-size: 1.53em;
}


#top_links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: end;
    font-size: 1.05em;
    justify-items: center;
}

body>header a {
    color: black;
}





/* ----------------- footer ------------------- */

body>footer {
    background-color: var(--dark-accent);
    color: white;
    text-align: center;
    padding: 0.4em;

}

body>footer>div {
    max-width: var(--body-max-width);
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 0.33em;
}

body>footer>div>span {
    flex-grow: 1;
    min-width: 250px;
}

body>footer>div>#footer_contact {
    flex-basis: min-content;
}


body>footer a {
    color: white;
}


.centered_icon_in_page {
    display: block;
    font-size: 2em;
    margin: auto;
}


.a_with_icon {
    display: flex;
    align-items: center;
}
.a_with_icon>span {
    margin-right: 0.25em;
}


#flyer_image {

    width: 100%;
    margin: auto;
    display: block;
    padding-top: 4em;
    padding-bottom: 4em;

}


/* ---------------------------------- DESKTOP ------------------------------------ */




@media only screen and (min-width: 691px) {

    /* ----------------- heading ------------------- */


    /* ----------------- footer ------------------- */

    body>footer {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
    }



    /* ----------------- news --------------------- */


    #news_section > div.news_article > div:nth-child(1){
        text-align: right;
    }
    #news_section > div.news_article > div:nth-child(2){
        text-align: left;
    }

    .news_article {
        display: grid;
        column-gap: 2em;
        align-items: center;
    }

    #news_section > div.news_article:nth-child(even){
        grid-template-columns: minmax(16em, 2fr) 1fr;
    }

    #news_section > div.news_article:nth-child(odd){
        grid-template-columns: minmax(16em, 1fr) 2fr;
    }

    .news_article img {
        max-height: 10em;
        max-width: 100%
    }



    /* ----------------- about section --------------------- */


    /* two-columns about page */
    main #about_section header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2em;
    }


    #flyer_image {

        width: 70%;
    }

}





/* ------------------------ links styled as buttons ------------------------ */

button.pretty_button,
a.pretty_button {
    border: none;
    border-radius: 8px;
    padding: 0.25em 0.5em;
    background-color: var(--dark-accent-lighter);
    color: white;
    /* transition-duration: 0.4s; */
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px;
    text-wrap: nowrap;
    font-size: 1.25em;
    display: inline-block;
}

button.pretty_button:hover,
a.pretty_button:hover {
    cursor: pointer;
    background-color: var(--dark-accent);
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px;
}



#crossrefLogo {
    width: 6em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    transform: translateY(0.35rem);
}


summary{
    cursor: pointer;
}