@font-face {
    font-family: "Grenze";
    src: url(../fonts/Grenze/Grenze-VariableFont_wght.ttf), format(truetype);
}

@font-face {
    font-family: "Sora";
    src: url(../fonts/Sora/Sora-VariableFont_wght.ttf), format(truetype);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ### CUSTOM PROPERTIES ### */
:root {
    --header-color: hsl(40, 60%, 85%);
    --card-title: hsl(40, 60%, 80%);
    --card-bg: hsl(40, 60%, 75%);
    --bg-color: hsl(40, 60%, 65%);
    --border: 1px solid #00000030;
    --shadow:
    inset 0 1px 2px #ffffff70,
    0px 4px 4px #00000030,
    0px 12px 12px #00000015;
}

/* ### BASE / BODY TYPOGRAPHY ### */
html {
    font-size: 16px;
}

body {
    font-family: "Sora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--bg-color);
}

h1 {
    font-family: "Grenze", serif;
    font-size: clamp(1.5rem, 4vw, 7rem);
    text-align: center;
    text-box: trim-both cap alphabetic;
    padding: 2rem 0;
}

h2 {
    font-size: 1rem;
}

/* ### MEDIA DEFAULTS ### */
img {
    user-select: none;
}

/* ### PAGE BACKGROUND WRAPPER ### */
.page-bg {
    background-color: var(--bg-color);
}

/* ### SITE HEADER ### */
header {
    background-color: var(--header-color);
    width: 100%;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    padding: 0.5rem 3rem;
    z-index: 100;
}

/* ### NAVIGATION ### */
nav div.navbar, .links-container {
    display: flex;
    list-style-type: none;
    justify-content: end;
    align-items: center;
}

nav ul li {
    padding: 0 1rem;
}

nav .home {
    margin-right: auto;
}

nav svg {
    fill: hsl(0, 0%, 0%);
}

#sidebar-active, .open-sidebar-button, .close-sidebar-button {
    display: none;
}

/* ### LOGO / HOME LINK ### */
.homelink {
    width: clamp(3rem, 4vw, 4rem);
    display: block;
}

/* ### LINKS ### */
a {
    text-decoration: none;
    color: black;
}

a:hover,
a:focus {
    text-decoration: underline;
}

a:focus-visible {
    text-decoration: none;
    outline: var(--border);
    outline-offset: 2px;
}

a:active {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ### HERO SECTION ### */
.hero {
    display: grid;
    grid-auto-columns: 3fr 1fr;
    grid-auto-rows: auto;
    justify-items: left;
    align-items: center;
    padding: 2rem 4rem;
    background-image: url(../img/naufragiu.JPG);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    grid-template-areas: "hero-left hero-right";
}

.hero-item {
    border-radius: 1rem;
    color: rgb(0, 0, 0);
    text-align: center;
}

#hero-left {
    padding: 0.5rem 4rem;
}

/* Glassmorphism panel variant */
div.hero-item {
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.192);
    border-right: 1px solid rgba(255, 255, 255, 0.192);
    background-color: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.img-hero-item {
    display: block;
    width: 100%;
    border-radius: 1rem;
    border: var(--border);
    box-shadow: var(--shadow);
}

/* ### ARTICLES / CARDS ### */
article ul li {
    border-bottom: var(--border);
    padding: 0.75rem;
    list-style-type: none;
    font-size: 0.875rem;
    color: hsl(0, 0%, 15%);
}

article ul li:last-child {
    border-bottom: none;
}

article.remove-padding h3 {
    font-size: 0.875rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: var(--shadow);
    display: block;
    padding: 0.75rem 0;
    background: var(--card-title);
    color: hsl(0, 0%, 10%);
}

.article-title {
    text-box: trim-both cap alphabetic;
    position: sticky;
    top: clamp(3rem, 4vw, 4rem);
    text-align: center;
    padding: 1.25rem 0;
    background-color: var(--header-color);
    box-shadow: var(--shadow);
    z-index: 10;
    margin: 1.5rem 0;
}

#about .article-title {
    margin: 0;
}

#exhibitions .article-title {
    margin-top: 0;
}

/* ### ABOUT SECTION ### */
.about {
    margin: 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-img {
    width: 45vh;
    border-radius: 1rem;
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.192);
    border-right: 1px solid rgba(255, 255, 255, 0.192);
    background-color: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

ul.about-item {
    width: 40%;
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
}

ul.about-item li {
    border: none;
    list-style-type: none;
    padding: 0;
    color: hsl(0, 0%, 0%);
}

#born {
    padding: 1.5rem 0;
}

#phd {
    text-box: trim-both cap alphabetic;
}

#member-of {
    text-box: trim-both cap alphabetic;
    color: hsl(0, 0%, 30%);
    font-size: 0.75rem;
}

.increase-padding {
    padding-top: 0.5rem !important;
}

/* ### MULTI-COLUMN LAYOUT (MASONRY-STYLE) ### */
.layout {
    margin: 0 4rem;
    columns: 500px;
}

.layout-item {
    border-radius: 1rem;
    display: inline-block;
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
}

.artworks {
    width: 100%;
    box-shadow: var(--shadow);
    margin: 0.5rem 0;
}

/* ### FOOTER ### */
footer {
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    background-color: var(--header-color);
}

/* ### UTILITIES ### */
.remove-padding {
    padding: 0;
}

.anchor-link-adjust {
    scroll-margin-top: clamp(3rem, 4vw, 4rem);
}

.glow {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.glow-brighter {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.bold {
    font-size: 1rem;
    font-weight: 700;
}

.icon {
    width: clamp(0.75rem, 5%, 1rem);
}

.increase-margin-top {
    margin-top: 1.5rem;
}

/* ### MEDIA QUERIES ### */
@media (max-width: 976px) {
    .hero {
        gap: 2rem;
        justify-items: center;
        grid-template-areas:
            "hero-left"
            "hero-right";
    }

    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .about-img {
        display: none;
    }

    .about {
        margin: 0;
        display: block;
        background-image: url(../img/carti-publicate.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    ul.about-item {
        border-radius: 0;
        width: auto;
        background-color: hsla(100, 100%, 100%, 0.6);
    }

    html {
        font-size: 12px;
    }

    .layout {
        margin: 0;
    }

    header {
        padding: 0.5rem 0.75rem;
    }

    ul.about-item {
        padding: 2rem 1.25rem;
    }

    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        width: 200px;
        height: 100%;
        justify-content: start;

        background-color: var(--header-color);
        box-shadow: -4px 0px 4px #00000030, -12px 0px 12px #00000015;
        transition: 0.5s ease-out;
    }

    .links-container li {
        width: 100%;
        height: auto;
        padding: 1rem 2rem;
        justify-content: flex-start;
    }

    .close-sidebar-button {
        padding: 0.5rem;
    }

    .open-sidebar-button, .close-sidebar-button {
        display: block;
    }

    #sidebar-active:checked ~ .links-container {
        right: 0;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
    }
}


/* ### CONTACT PAGE ### */
.contact-hero {
    display: grid;
    grid-auto-columns: 2fr 1fr;
    grid-auto-rows: auto;
    justify-items: center;
    align-items: center;
    padding: 8rem 2rem;
    background-image: url(../img/workshop.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    gap: 1em;
    grid-template-areas:
        "hero-left hero-right";
    min-height: 100vh;
}

@media(max-width: 976px) {
    .contact-hero {
        grid-template-areas:
            "hero-left"
            "hero-right";
    }
}

#contact {
    padding-left: 3rem;
    font-size: 2rem;
    text-align: left;
}

.contact-hero-item {
    border-radius: 1rem;
    color: rgb(0, 0, 0);
    text-align: left;
}

table tr td {
    padding: 0.5rem 0.5rem;
    text-align: left;
}

div.contact-hero-item {
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.192);
    border-right: 1px solid rgba(255, 255, 255, 0.192);
    background-color: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
