body {
    -webkit-font-smoothing: antialiased;
    padding: 5vh 10vw;
    background-color: rgba(238, 238, 238, 1);
    color: rgba(34, 40, 49, 1);
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

h1 {
    font-size: 4.5em;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1em;
    font-family: "Instrument Serif", serif;
}

p {
    font-size: 1.2em;
    font-weight: 300;
    line-height: 1.4;
    max-width: 28em;
    margin: 2em 0;
}

a {
    text-decoration: none;
    white-space: nowrap;
    color: rgba(57, 62, 70, 1);
    font-weight: bold;
    position: relative;
}

a:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 66%;
    left: -0.1em;
    right: -0.1em;
    bottom: 0;
    transition: top 200ms cubic-bezier(0, 0.8, 0.13, 1);
    background-color: rgba(0, 173, 181, 0.65);
}

a:hover:after {
    top: 0;
}

section {
    margin-top: 3em;
}

.skills {
    margin-top: 4em;
}

.skills h2 {
    font-size: 2.25em;
    font-weight: 500;
    margin-bottom: 1em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5em;
    max-width: 960px;
}

.skills-grid figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1em;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.skills-grid img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.75em;
}

.skills-grid figcaption {
    font-weight: 500;
}

@media (max-width: 1280px) {
    p {
        font-size: 1.1em;
    }
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
