/* Base Styles */
/* Variable Regular */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMaristVariable-Trial.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Variable Italic */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMaristVariableItalic-Trial.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Regular */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Regular Italic */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-RegularItalic-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Book */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-Book-Trial.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Book Italic */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-BookItalic-Trial.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-Medium-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Medium Italic */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-MediumItalic-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* SemiBold */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-SemiBold-Trial.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* SemiBold Italic */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-SemiBoldItalic-Trial.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-Bold-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Bold Italic */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-BoldItalic-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Black */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-Black-Trial.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Black Italic */
@font-face {
  font-family: "ABC Marist";
  src: url("/fonts/ABCMarist-BlackItalic-Trial.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}



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

body {
    font-family: "ABC Marist", sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

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

h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
}

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

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

.intro strong {
    font-weight: 600;
}

p strong {
    font-weight: 600;

}

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

a:hover {
  text-decoration: underline;
}


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

.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: 400;
}

.project-tag {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

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

.project-images {
    width: 100%;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    cursor: pointer;
}

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

.project-image.device {
    flex: 0 0 auto;
    max-width: 100%;   /* allow full width */
    width: 100%;       /* force full width */
    flex: 1 1 100%;    /* take full row width */
}

.project-image.widget {
    flex: 0 0 auto;
    max-width: 100%;   /* allow full width */
    width: 100%;       /* force full width */
    flex: 1 1 100%;    /* take full row width */
}

/* Mobile styles */
@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;   /* center horizontally */
        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;
    }
}