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

body {
    font-family: "Crimson Text", sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20vw;
}

h1 {
    font-family: "Chakra Petch", "Crimson Text", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #292E44;
}

h2 {
    font-family: "Chakra Petch", "Crimson Text", sans-serif;
    color: #292E44;
}

p {
    font-size: 1rem;
    font-weight: 400;
}

.intro {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 1rem; 
}

strong {
    font-weight: 600;
}

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

a:visited {}

a:focus {/* accessibility */}

a:active {}

a:hover {
    text-decoration: underline;
}

.featured {
    margin: 30px 0 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E499FF;
}

.featured p {
    font-size: 1rem;
}

.project {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10vh;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.project-tag {
    font-size: 0.9rem;
    color: #8D51E1;
    font-style: italic;
    font-weight: 300;
}

.project-description {
    font-size: 1rem;
    margin-bottom: 10px;
    max-width: 700px;
}

.project-images {
    width: 100%;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    cursor: pointer;
    background-color: #F8D9FF;
    padding:20px;
    border-radius: 8px;
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-image.device {
    flex: 0 0 auto;
    max-width: 100%;
    flex: 1 1 100;

}

.project-image.widget {
    flex: 0 0 auto;
    max-width: 100%;
    flex: 1 1 100;
     
}

/* mobile */

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .intro {
        font-size: 0.95rem;
    }

    .project-header {
        flex-direction: column;
        align-items: left; 
        gap: 5px;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-tag {
        font-size: 0.85rem;
    }

    .project-images {
        flex-direction: column;
        gap: 20px;
    }

    .project-image.device,
    .project-image.widget {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }
}