@import './_a11y.css';
@import './_reset.css';

@font-face {
    font-family: Inter;
    font-display: swap;
    src: url('../fonts/inter/Inter-VariableFont_opsz,wght.ttf');
}
@font-face {
    font-family: InterItalic;
    font-display: swap;
    src: url('../fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf');
    font-style: italic;
}

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-alice-blue: #F0F6FF;
    --color-royal-blue: #0061EF;
    --color-concrete: #f2f2f2;
    --color-dim-gray: #6c6c6f;
}

body {
    font-family: Inter, arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-weight: 300;
}

header {
    background-color: var(--color-alice-blue);
    color: var(--color-black);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: 2rem 1rem;

    /* mobile */
    @media screen and (max-width: 499px) {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.header--item {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;

    &.icon--large {
        width: 2rem;
        height: 2rem;
    }
}

.main__container {
    padding: 2rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;

    /* mobile */
    @media screen and (max-width: 699px) {
        padding: 2rem 1rem;
    }
}

.main__container, .header__container, .footer__container {
    /* desktop */
    @media screen and (min-width: 700px) {
        width: min(800px, 100%);
    }
}

section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

footer {
    background-color: var(--color-concrete);
    color: var(--color-black);
    display: flex;
    justify-content: center;
}
.footer__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .75rem;
    padding: 3rem 1rem;

    p {
        font-size: .8rem;
    }
}

p {
    line-height: 1.5rem;
}

li {
    list-style-type: '- ';
    margin-left: 1rem;
    line-height: 1.5rem;
}

a {
    color: var(--color-royal-blue);
    text-decoration: underline;
}

h1 {
    font-size: 2rem;
    text-align: center;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 3rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 400;
    display: flex;
    gap: .75rem;
    align-items: center;
}

h4 {
    text-transform: uppercase;
    color: var(--color-dim-gray);
    font-weight: 400;
}

.button {
    padding: .5rem 1.5rem;
    background-color: var(--color-royal-blue);
    border: 1px solid var(--color-royal-blue);
    border-radius: 1rem;
    display: flex;
    color: var(--color-white);
    justify-content: center;
    align-items: center;
    gap: .5rem;
    text-decoration: none;

    /* mobile */
    @media screen and (max-width: 699px) {
        padding: .5rem 1rem;
    }

    &:hover {
        cursor: pointer;
        text-decoration: underline;
    }

    span {
        font-weight: 400;
    }

    &.button--bordered {
        background-color: var(--color-white);
        color: var(--color-royal-blue);
    }
}
.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.mobile-only {
    /* desktop */
    @media screen and (min-width: 700px) {
        display: none !important;
    }
}
.desktop-only {
    /* mobile */
    @media screen and (max-width: 699px) {
        display: none !important;
    }
}

/* timeline */
.timelines {
    display: flex;
    flex-direction: column;
}
.timeline {
    display: flex;
    gap: 1.5rem;

    /* mobile */
    @media screen and (max-width: 699px) {
        gap: .5rem;
    }
}
.timeline--info {
    display: flex;
    gap: .33rem;
    align-items: center;
}
.timeline:not(:last-child) .timeline--content {
    margin-bottom: 2rem;
}
.timeline--content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}
.timeline--date {
    font-size: 1.25rem;
    font-weight: 400;
    text-align: right;
    width: 9rem;
}
.timeline--title {
    font-size: 1.5rem;
    font-weight: 400;
}
.timeline--middle {
    width: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timeline--dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--color-royal-blue);
}
.timeline--line {
    width: 2px;
    background-color: var(--color-royal-blue);
    flex: 1;
}

/* tags */
.tags {
    display: flex;
    gap: .33rem;
}
.tag {
    font-size: .6rem;
    padding: 0.33rem;
    border-radius: .33rem;
    background-color: var(--color-royal-blue);
    color: var(--color-white);

    &.tag--vuejs {
        background-color: #41B883;
    }
    &.tag--node {
        background-color: #303030;
    }
    &.tag--postgresql {
        background-color: #336791;
    }
    &.tag--docker {
        background-color: #1D63ED;
    }
    &.tag--php {
        background-color: #777BB3;
    }
    &.tag--python {
        background-color: #FFD43B;
        color: var(--color-black);
    }
    &.tag--wordpress {
        background-color: #585C60;
    }
    &.tag--mysql {
        background-color: #00758F;
    }
    &.tag--angular {
        background-color: #A130FC;
    }
    &.tag--git {
        background-color: #F14D32;
    }
}