html {
    font-size: 100%;
}

:root {
    -webkit-font-smoothing: antialiased; /* Chrome/Safari (mostly macOS) */
    -moz-osx-font-smoothing: grayscale; /* Firefox macOS */
    text-rendering: optimizeLegibility; /* Enables kerning/ligatures */

    color-scheme: light dark;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        avenir next,
        avenir,
        segoe ui,
        helvetica neue,
        Adwaita Sans,
        Cantarell,
        Ubuntu,
        roboto,
        noto,
        helvetica,
        arial,
        sans-serif;

    padding: 0px;
    margin: 0px;
}

p {
    margin: 0px;
    font-family:
        Iowan Old Style,
        Apple Garamond,
        Baskerville,
        Times New Roman,
        Droid Serif,
        Times,
        Source Serif Pro,
        serif,
        Apple Color Emoji,
        Segoe UI Emoji,
        Segoe UI Symbol;

    font-size: 1.1rem;
    line-height: 1.5rem;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1.1rem;
}

a {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        avenir next,
        avenir,
        segoe ui,
        helvetica neue,
        Adwaita Sans,
        Cantarell,
        Ubuntu,
        roboto,
        noto,
        helvetica,
        arial,
        sans-serif;
}

button {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        avenir next,
        avenir,
        segoe ui,
        helvetica neue,
        Adwaita Sans,
        Cantarell,
        Ubuntu,
        roboto,
        noto,
        helvetica,
        arial,
        sans-serif;
}

body {
    font-size: 1rem;
    line-height: 1.5;
    background:
        linear-gradient(
            to bottom,
            light-dark(cyan, #150554),
            light-dark(white, black) 50%
        ),
        black;
    background-repeat: no-repeat;
    color: light-dark(black, white);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.top-header {
    background-color: light-dark(lightblue, rgba(40, 56, 74, 0.75));
    backdrop-filter: blur(12px);
    border-top: solid rgba(255, 255, 255, 0.5) 1px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 1;
}

.top-header__logo {
    margin: 0px;
    display: none;
}

.top-header__links {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
    padding: 16px;

    > li {
        list-style-type: none;

        > a {
            padding: 16px;
            text-decoration: none;
            color: light-dark(black, white);
        }
    }
}

img {
    width: 100%;
    border-radius: 24px;
}

table,
th,
td {
    border: 1px solid;
}

table {
    border-spacing: 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    padding: 8px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.title {
    font-size: 54px;
}

footer {
    text-align: center;
    padding: 16px;
}

.projects__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px;
}

.projects__item {
    background-color: darkslateblue;
    border-radius: 32px;
    border-top: solid rgba(255, 255, 255, 0.5) 1px;
    transition: transform 0.2s;
}

.projects__item:hover {
    transform: translate(0px, -2px);
    transition: none;
}

.project-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 0px;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-card__main-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 12px;
    gap: 16px;
}

.project-languages {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0px;
}

.project-languages__item {
    border-radius: 999px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.25);
    line-height: 1;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media screen and (min-width: 1024px) {
    .top-header {
        position: inherit;
        background-color: transparent;
        backdrop-filter: none;
        border: none;
        border-radius: 0px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 900px;
        margin: 0 auto;
        padding: 0 16px;
        padding-top: 16px;
        align-self: center;
    }

    .top-header__logo {
        display: inherit;
        width: 192px;
        height: auto;
        border-radius: 0px;
    }

    .top-header__links {
        justify-content: start;

        :hover {
            text-decoration: underline;
        }
    }

    .projects__list {
        flex-direction: row;
        gap: 8px;
        padding: 0px;
    }
}
