*, *:before, *:after { box-sizing: border-box; }

html {
    color: #000;
    background-color: #fff3f5;
}
body {
    font-family: sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
    -webkit-text-size-adjust: none;
    font-size: 20px;
    padding: 15px;
    margin: 0;
}

a { color: #000; 
    text-underline-offset:0.22em;
    text-decoration-thickness:0.05em;
}

/* Header */
header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 80px;
    gap: 20px;
    justify-items: right;
}
header p {
    font-size: 20px;
    line-height: 30px;
    margin-top: 0;
    margin: initial;
    width: 100%;
    margin-top: -5px;
}

/* Navigation */
nav {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: left;
    width: max-content;
    margin: 0 auto;
}
nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    width: max-content;
}
nav a:hover {
    opacity: .85;
}
nav a.active {
    background-color: #ffffffa5;
}
/* Nav items */
nav a::before {
    content: '';
    width: 10px;
    height: 15px;
    display: inline-block;
}
/* About */
nav a:nth-child(1)::before {
    background-color: #9e53b3;
}
/* Services */
nav a:nth-child(2)::before {
    background-color: #035A82;
}
/* Testimonals */
nav a:nth-child(3)::before {
    background-color: #8571b4;
}
/* Clients */
nav a:nth-child(4)::before {
    background-color: #81b85b;
}
/* Contact */
nav a:nth-child(5)::before {
    background-color: #9c9c9c;
}
/* Availability */
nav a:nth-child(6)::before {
    background-color: #dddd07;
}

/* Announcement */
.announcements {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 20px;
    margin-top: -5px;
}
.announcements p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
}
.pin {
    filter: grayscale(100%);
    display: inline-block;
}

/* Headings */
h1, h2, h3, h4, h5, h6, p, blockquote, figure, code, ul, ol, iframe, .media-container, .content-width {
    margin: 25px auto;
    max-width: 800px;
}
h2 {
    font-size: 30px;
    line-height: 32px;
}
h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    line-height: 30px;
}

/* Writing */
p, li {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6rem;
}
ul, ol {
    padding: 0;
    padding-left: 18px;
}
li {
    margin-bottom: 8px;
    list-style-type: disc;
}
.small {
    font-size: 14px;
    line-height: 16px;
}
hr {
    border: 0;
    border-bottom: 1px solid white;
    margin: 25px 0;
}
blockquote {
    border-left: 5px solid rgba(215, 215, 215, 0.382);
    background-color: #ffffff2c;
    padding-left: 10px;
}
figure img {
    width: 100%;
}
figcaption {
    font-size: 12px;
    line-height: 16px;
}

.info-field, code {
    font-family: monospace;
    font-size: 14px;
    line-height: 24px;
    background-color: #ffffffa5;
    border: 1px solid #0000003c;
    border-radius: 3px;
    padding: 3px 6px;
    outline: none;
}
.info-field {
    display: inline;
}
code {
    display: block;
}

/* Projects */
#projects {
    display: flex;
    align-items: left;
    flex-flow: row wrap;
    gap: 20px;
    margin-bottom: 90px;
    margin: 25px auto;
    max-width: 800px;
}
#projects a {
    font-size: 20px;
    text-decoration: none;
    display: flex;
    flex-flow: column;
    max-width: 200px;
}
#projects a span.label {
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
    -webkit-text-size-adjust: none; 
    font-size: 14px;
    max-width: max-content;
    margin-bottom: 5px;
}
#projects a span.title {
    line-height: 25px;
}
#projects a img {
    width: 100%;
    margin-bottom: 10px;
}
#projects a .project-caption {
    color: #000;
    padding: 10px;
}

/* Footer */
footer {
    margin-top: 100px;
}
footer p {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
}

/* Mobile */
@media(max-width: 700px) {
    header {
        grid-template-columns: 1fr;
    }
    header p {
        margin-top: 0;
    }
    #projects {
        gap: 25px;
    }
    #projects a {
        max-width: 100%;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    html {
        color: #fff;
        background-color: #121212;
    }
    a {
        color: #fff;
    }
    .info-field, code {
        background-color: #575757a5;
        border-color: #9d9d9d3c;
    }
    nav a.active {
        background-color: #ffffff2f;
    }

}