/**
 * Theme Name: Artist Portfolio
 * Author: Maxime Vignaud
 */

/* reset */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    margin-top: 0 !important; /* delete admin bar */
}

p, div {
    margin: 0;
    padding: 0;
}

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

/* font size and weight */
:root {
    /*--fs-small: clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
    --fs-mediumlarge: clamp(1rem, 0.95rem + 0.5vw, 1.5rem);
    --fs-large: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
    --fs-xl: clamp(2.5rem, 2rem + 2vw, 4rem);
    --fs-site-title: clamp(4rem, 6vw, 8rem);*§


    /* Font weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fw-black: 900;

}

/* general style */
@font-face {
    font-family: 'DIN';
    src: url('assets/fonts/DIN-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN';
    src: url('assets/fonts/DIN-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN';
    src: url('assets/fonts/DIN-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN';
    src: url('assets/fonts/DIN-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN';
    src: url('assets/fonts/DIN-BlackAlternate.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
  
body {
    font-family: 'DIN Condensed', sans-serif;
    color: black;
}

/* front page */
.landing {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('assets/background.jpg') center center no-repeat;
    background-size: cover;
    overflow: scroll;
}

/* background white image effect */
.landing::after {
    position: fixed;
    content: "";
    inset: 0;
    background: rgba(255,255,255,0.9);
}

/* content */
.landing-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    box-sizing: border-box;
}

/* top (artist name) */

.site-title {
    font-size: var(--fs-site-title);
    font-weight: var(--fw-black);
    margin: 0;
    text-transform: none;
    white-space: nowrap;
}

.landing-top {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
}
.landing-nav {
    margin-left: auto;
    margin-right: 2rem;
}
.landing-nav a {
    font-size: var(--fs-large);
}
@media (max-width: 768px) {
    .landing-top {
        flex-direction: column;
        gap: 1rem;
    }
    .landing-nav {
        margin-left: 0;
    }
}

/* bottom (news) */

.landing-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: start;
}

.news-column {
    text-transform: uppercase;
}

.landing-bottom > .news-column:first-child {
    font-size: var(--fs-large);
}

.news-column-header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 4rem;
}

/* news content */  
.entry-label {
    
    font-size: var(--fs-mediumlarge);
    text-align: center;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.entry-title {
    font-size: var(--fs-large);
    text-align: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-meta {
    font-size: var(--fs-mediumlarge);
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* mobile */
@media (max-width: 768px) {
    .landing-bottom {
        margin-top: 12rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-column {
        width: 100%;
        display: flex;
        flex-direction: column; 
        justify-content: flex-start;
        padding: 0;
    }

    .news-column-header {
        margin-bottom: 2rem;
    }
}

/* page about */
.page-id-148 .landing{
    background-image: url('assets/about-background.jpg');
}

.page-about-container {
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.page-about {
    font-size: clamp(1rem, 0.95rem + 0.5vw, 1.5rem);
    font-family: 'DIN';
    font-weight: 400;
    text-align: justify;
    width: 60%;
    margin: 0 auto;
}

.page-about img {
    max-width: 60%;
    margin: 0 auto 4rem;
    display: block;
}

.page-about p {
    margin-bottom: 1rem;
}

.page-about a {
    text-decoration: underline;
     font-style: italic;
     text-decoration-thickness: 2px;
}

.page-about a:hover {
    text-decoration-thickness: 4px;
}

/* mobile */
@media (max-width: 768px) {
    .page-about {
        width: 90%;
        padding: 0 1rem;
    }
    
    .page-about img {
        max-width: 100%;
    }
}
/* big screen */
@media (min-width: 1920px) {
    .entry-label, .entry-meta {
        font-size: 1.5rem;
    }

    .entry-title {
        font-size: 2.5rem;
    }

}

