/**
 * 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-regular: 400;
    --fw-bold: 700;
    --fw-black: 900;

}

/* general style */
@font-face {
    font-family: 'DIN Condensed';
    src: url('assets/fonts/DIN Condensed Bold.ttf') format('truetype');
    font-weight: normal;
    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;
}

/* bottom (news) */

.landing-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 8rem;
}

.news-column {
    text-transform: uppercase;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
}

/* 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: 4rem;
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
        justify-content: flex-start;
    }

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