:root {
    scroll-behavior: smooth;
    --primary-color: #EA3E00;
    --surface: #F3F3F3;
}


* {
    font-weight: 300;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--surface);
    font-size: 20px;
}

img, video {
    width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

h2 svg {
    stroke: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    letter-spacing: 0.1rem;
}

ul {
    padding-inline-start: 1.3rem;
    max-width: 60ch;
}

strong {
    font-weight: 600;
}

article {
    margin-bottom: 2rem;
    padding-bottom: rem;
    border-bottom: 1px solid rgb(190, 190, 190);
}

#about, footer {
    border-top: 1px solid black;
    padding: 2rem;
    padding-top: 3rem;
}


#about h4 {
    line-height: 1;
    margin: 0;
    margin-block: 1em;
}


#about h5 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color);
}

#about p {
    padding: 0;
    margin: 0;
}

/* UTILITY */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.overflow-scroll {
    overflow: scroll;
}

.overflow-clip {
    overflow: clip;
}

.text-align-end {
    text-align: end;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.col-asym {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.centered {
    justify-content: center;
    margin: 0 auto;
}

.space-between {
    justify-content: space-between;
}

.img-fill {
    height: 100%;
    object-fit: cover;
}

.clear-style {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* NAV */
nav {
    padding-block: 1rem;
}

nav ul{
    width: 100%;
    justify-content: space-between;
}

/* INTRO */
.hero-more p{
    padding: 0;
}

/* OTHER */

.selected-work-button {
    width: 100%;
    margin-top: 6rem;
}

.selected-work-button summary {
    padding-bottom: 1rem;
    border-bottom: 1px solid black;
}

.selected-work-button summary span {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.selected-work {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.25rem;
    margin-top: 3rem;
}

.selected-work a {
    text-decoration: none;
    color: inherit;
}

.selected-work a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

/* ARROWS */
.selected-work-button svg{
    rotate: 90deg;
    transition: all 0.3s ease;
}

.selected-work-button[open] svg{
    rotate: 0deg;
    transition: all 0.3s ease;
}

.arrow {
    transition: all 0.3s ease;
}

details[open] .arrow {
    rotate: 90deg;
    transition: all 0.3s ease;
}

details[open] .preview-summary-button {
    transform: translateY(100%)!important;
}

main {
    display: grid;
    grid-template-columns: 4fr 8fr;
    width: 100%;
    max-width: 2600px;
    margin: 0 auto;
}

main aside {
    height: min-content;
    min-width: 20vw;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: sticky;
    top: 0;
    padding: 2rem;
    padding-inline-end: 3rem;
    padding-block-end: 0;
    padding-block-start: 0;
    box-sizing: border-box;
    height: max-content;
}

main .work {
    width: 100%;
    overflow: hidden;
}

section p, 
section ul {
    padding-right: 2rem;
}

/* WORK */

summary img,
summary video  {
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

summary {
    list-style: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

summary:hover img,
summary:hover video  {
    filter: brightness(1);
    scale: 1.1;
    transition: all 0.3s ease;
}

summary span {
    transition: all 0.3s ease;
}

summary:hover span {
    letter-spacing: 0.1rem;
}

summary:hover h2 {
    color: var(--primary-color);
}

summary:hover h2 path {
    stroke: var(--primary-color)!important;
}

summary * {
    margin: 0;
}

#about h5 {
    font-size: 1.5rem;
    margin: 0;
}

.logo {
    color: var(--primary-color);
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 4vw, 5rem);
    display: flex;
}

.logo-part-a1, .logo-part-a2{
    font-style: italic;
}

summary:hover .preview-summary-button {
    transform: translateX(0);
}

.preview-summary-info {
    background-color: var(--surface);
}

.preview-summary-button {
    position: absolute;
    transition: all 0.3s ease;
    transform: translateY(100%);
    bottom: 0;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding: 1rem;
    background-color: var(--primary-color) ;
    font-size: 1.25rem;
}

details {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

details .preview-summary-info {
    padding-block: 1rem;
}

details .preview-summary-info .year {
    font-size: 1rem;
    color: #888;
}

section p,
details .preview-text {
    padding-block: 1rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.5;
}

section p, 
.preview-text p {
    max-width: 60ch;
}

details .preview-details-info {
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 6rem;

}

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* COMPONTENT - COLOR CARD */
.color-card {
    width: 100%;
    min-height: 50vh;
    display: flex;
    font-size: 0.75rem;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    gap: 0.5rem;
    transition: width 0.3s ease;
    overflow: clip;
}

.color-card p {
    margin: 0;
    transform: translateX(150%);
    transition: all 0.3s ease;
    font-size: 0.75rem;
    padding: 0;
}

.color-card:hover {
    width: 120%;
}

.color-card:hover p {
    transform: translateX(0);
}

/* CLADDING */

.cladding-col-1 {
    background-color: #53241D;
    color: white;
}

.cladding-col-2 {
    background-color: #F29D48;
    color: white;
}

.cladding-col-3 {
    background-color: #FFEED5;
}

.cladding-col-4 {
    background-color: #ffffff;
}

.cladding-col-5 {
    background-color: #101010;
    color: white;
}

/* ATHINA DOMIKI */
.athina-col-1 {
    background-color: #C91E1D;
    color: white;
}

.athina-col-2 {
    background-color: #F29D48;
}

.athina-col-3 {
    background-color: #FFEED5;
}

.athina-col-4 {
    background-color: #ffffff;
}

.athina-col-5 {
    background-color: #101010;
    color: white;
}

/* PLANTELLE */
.plantelle-illustrations svg {
    height: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.plantelle-illustrations {
    align-items: end;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: white;
}

/* CUCINE LUBE */
.cl-website-view {
    max-height: 80vh;
}

/* ABOUT ME */
.experience-card {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(190, 190, 190);
}

.experience-card:last-child {
    margin-bottom: 0rem;
}

.experience-card li {
    font-size: 1rem;
    line-height: 1.4;
}

.experience-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.role {
    font-size: 1.25rem;
}

.about-section {
    margin-top: 4rem;
}

@media (max-width: 1340px) {
    .col-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    
    h1 {
        font-size: clamp(1rem, 4vw, 2rem);
    }
    
    main {
        grid-template-columns: 1fr;
    }

    main aside {
        position: static;
        padding: 1rem;
    }

    details  .preview-summary-info,
    details  .preview-text  {
      padding-inline: 1rem;
    }
	
	article {
	    margin-bottom: 0;
		border-bottom: transparent;
	}
    section p, section ul {
        padding-right: 0rem;
    }
	
	nav li {
	    font-size: 1rem;
		padding-block: 0.75rem;
	}

    #about, footer {
        padding: 1rem;
    }

    .col-2, 
    .col-asym {
        grid-template-columns: 1fr;
        margin-block: 0.5rem;
    }

    .selected-work-button {
        border: 1px solid black;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
        z-index: 10000;
        width: 95%;
        box-sizing: border-box;
        background-color: white;
        margin: 0;
    }

    .selected-work-button:hover {
        background-color: var(--primary-color);
        color: white;
        border: var(--primary-color) solid 1px;
        transition: all 0.3s ease;
    }

    .selected-work-button:hover svg {
        stroke: white;
        transition: all 0.3s ease;
    }

    .selected-work-button summary {
        padding: 1rem 1.5rem;
    }

    .selected-work-button li {
        display: flex;
    }

    .selected-work-button ul a {
        padding: 0.5rem 2rem;
        width: 100%;
    }

    .selected-work {
        gap: 0;
    }

    details .preview-details-info {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
   
    }

    .preview-summary-button {
        position: absolute;
        color: white;
        background-color: #101010;
        right: 0;
        width: 100%;
        font-size: 1rem;
        transform: translateY(100%);
    }

    details[open] .preview-summary-button {
        transform: translateY(100%)!important;
    }

    .color-card-wrapper {
        flex-direction: column;
    }

    .color-card {
        min-height: 20vh;
    }

    .cl-website-view {
        max-height: 50vh;
    }
	
    footer {
	    margin-bottom: 4rem;
	}
.footer-contact {
	flex-direction: column;
	gap:0.5rem;
	margin-bottom: 2rem;
}
}