@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter.ttf") format("truetype supports variations"),
    url("../fonts/Inter.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-display: swap;
}


html {
    color: white;
    background-color: black;
    font-family: "Inter", sans-serif;
}

h1 {
    font-weight: bold;
}

footer {
    padding-top: 24px;
}

details[open] summary ~ * {
    animation: sweep .15s ease-in-out;
}

details > summary::-webkit-details-marker {
    display: none;
}

@keyframes sweep {
    0% {
        opacity: 0;
        transform: translateX(-12px)
    }
    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

/*------------------------------------*\
  #OBJECTS
\*------------------------------------*/

/*
    Objects: Row
    ---
    Creates a horizontal row that stretches the viewport and adds padding around children
*/

.o-row {
    overflow: auto;
    position: relative;
    padding: 24px 24px 0;
}

/* color modifiers */

.o-row--neutral-x-light {
    background-color: #F7F7FA;
}

.o-row--gradient-1 {
    background: linear-gradient(to top right, #5051DB, #3887F7);
    color: #fff;
}

/* size modifiers */

.o-row--lg {
    padding: 48px 24px 24px;
}

@media (min-width: 768px) {
    .o-row {
        padding-left: 48px;
        padding-right: 48px;
    }

    .o-row--md {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .o-row--lg {
        padding-top: 72px;
        padding-bottom: 48px;
    }
}

/* padding clear modifiers */

.o-row--clear-top {
    padding-top: 0;
}

/*
    Objects: Container
    ---
    Creates a horizontal container that sets de global max-width
*/

.o-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 56.4em; /* 56.4 * 20px = 1128px */
}

/*
    Objects: section
    ---
    Creates vertical whitespace between adjacent sections inside a row
*/

.o-section {
    position: relative;
}

.o-section + .o-section {
    padding-top: 24px;
}

@media (min-width: 768px) {
    .o-section--lg + .o-section--lg,
    .o-section--xl + .o-section--xl {
        padding-top: 48px;
    }
}

@media (min-width: 1200px) {
    .o-section--xl + .o-section--xl {
        padding-top: 72px;
    }
}

/*
    Objects: Layout
    ---
    The layout object provides us with a column-style layout system. This object
    contains the basic structural elements, but classes should be complemented
    with width utilities
*/

.o-layout {
    display: flex;
    flex-wrap: wrap;
}

.o-layout__item {
    width: 100%;
}

/* gutter modifiers, these affect o-layout__item too */

.o-layout--gutter {
    margin: 0 -12px;
}

.o-layout--gutter > .o-layout__item {
    padding: 0 12px;
}

.o-layout--gutter-sm {
    margin: 0 -6px;
}

.o-layout--gutter-sm > .o-layout__item {
    padding: 0 6px;
}

.o-layout--gutter-lg {
    margin: 0 -24px;
}

.o-layout--gutter-lg > .o-layout__item {
    padding: 0 24px;
}

/* reverse horizontal row modifier */

.o-layout--row-reverse {
    flex-direction: row-reverse;
}

/* Horizontal alignment modifiers*/

.o-layout--justify-start {
    justify-content: flex-start;
}

.o-layout--justify-end {
    justify-content: flex-end;
}

.o-layout--justify-center {
    justify-content: center;
}

.o-layout--justify-space-around {
    justify-content: space-around;
}

.o-layout--justify-space-evenly {
    justify-content: space-evenly;
}

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

/* Vertical alignment modifiers */

.o-layout--align-start {
    align-items: flex-start;
}

.o-layout--align-end {
    align-items: flex-end;
}

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

.o-layout--align-baseline {
    align-items: baseline;
}

/* Vertical alignment modifiers that only work if there is one than one flex item */

.o-layout--align-content-start {
    align-content: start;
}

.o-layout--align-content-end {
    align-content: end;
}

.o-layout--align-content-center {
    align-content: center;
}

.o-layout--align-content-space-around {
    align-content: space-around;
}

.o-layout--align-content-space-between {
    align-content: space-between;
}

/*
    Objects: List
    ---
    Small reusable object to remove default list styling from lists
*/

.o-list {
    list-style: none;
    padding: 0;
}

/*
    Object: Button reset
    ---
    Small button reset object
*/

.o-button-reset {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    background: transparent;

    /* inherit font & color from ancestor */
    color: inherit;
    font: inherit;

    /* Normalize `line-height`. Cannot be changed from `normal` in Firefox 4+. */
    line-height: normal;

    /* Corrects font smoothing for webkit */
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;

    /* Corrects inability to style clickable `input` types in iOS */
    -webkit-appearance: none;
}

.o-link-reset {
    text-decoration: none;
    color: inherit;
}

.c-projects {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 12px;
}

@media (min-width: 768px) {
    .c-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .c-projects {
        grid-template-columns: repeat(3, 1fr);
    }
}

.c-project-card {
    position: relative;
    border: 1px solid #ffffff20;
    height: 200px;
    background-position: center;
    background-size: cover;
}

.c-project-card__image {
    height: 100%;
    width: 100%;
}

.c-project-card__overlay {
    height: 55px;
    background-color: #000000aa;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: height .150s ease-in-out;
    overflow: hidden;
}

.c-project-card:hover > .c-project-card__overlay {
    height: 110px;
}

.c-project-card__title {
    text-align: center;
}

.c-project-card__year {
    text-align: center;
}

.c-project-card__line {
    width: 20px;
}

.c-link-cta {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    padding-bottom: 2px;
    transition: color .175s ease-in;
    cursor: pointer;
}

.c-link-cta,
.c-link-cta:visited,
.c-link-cta:active {
    color: white;
}

.c-link-cta::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: white;
    transform: scaleX(.5);
    transform-origin: left;
    transition-property: transform, background-color;
    transition-duration: .175s;
    transition-timing-function: ease-in;
}

.c-link-cta:hover {
    color: #7373F5;
}

.c-link-cta:hover::after {
    transform: scaleX(1);
    background-color: #7373F5;
}

.c-skills > li + li {
    margin-top: 16px;
}

.c-skill[open] > .c-link-cta::after {
    transform: scaleX(1);
}

.c-contact-link {
    display: inline-block;
    text-decoration: none;
    transition: color .175s ease-in;
}

.c-contact-link,
.c-contact-link:visited,
.c-contact-link:active {
    color: white
}

.c-contact-link:hover {
    color: #7373F5;
}

.c-contact-link + .c-contact-link {
    margin-left: 24px;
}

.c-me-img {
    width: 50%;
}

.c-chips {
    display: flex;
    flex-wrap: wrap;
}

.c-chip {
    font-size: 14px;
    color: black;
    background-color: white;
    padding: 8px 8px 6px;
    border-radius: 20px;
    margin-bottom: 8px;
    margin-right: 8px;
}

.c-project-img {
    width: 100%;
}

@media (min-width: 768px) {
    .c-project-img {
        width: 70%;
    }
}

@media (min-width: 1200px) {
    .c-project-img {
        width: 50%;
    }
}

.c-authors > li + li {
    margin-top: 16px;
}

.c-author__img {
    width: 80px;
    border-radius: 100%;
    margin-right: 12px;
}
