/* Reset */
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; }
img { border: 0; display: block; }
ol, ul, dl { list-style: none; }
article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, mark, time { display: block; }
table { border-spacing: 0; border-collapse: collapse; }
input, select, textarea { border-radius: 0; font-family: inherit }
* { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
*, *:before, *:after { box-sizing: border-box; }

/* Global */
:root {
    --bg-width: clamp(3rem, 18vw, 40rem);
    --content-padding: clamp(2rem, 8vw, 10rem);
}

body, html {
    height: 100%;
    font-size: 16px;  
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Mulish", sans-serif;
    color: #fff;
    font-weight: 400;
}

body {
    position: relative;
    background-color: #000c22;
}

b, strong, th  {
    font-weight: 900;
}

h1 {
    font-family: "Krona One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(2.5rem, 4vw + 0.25rem, 5rem);
    line-height: 1em;
    margin-left: -0.1em;
    margin-bottom: 0.5em;
}

h2 {
    font-weight: 800;
    font-size: clamp(1.625rem, 2.25vw + 0.25rem, 2.5rem);
    line-height: 1em;
    letter-spacing: 0.04em;
    margin-bottom: 0.75em;
}

:is(p, ol, ul, table) + :is(h1, h2, h3) {
    margin-top: 1.5em;
}

table,
p {
    font-size: clamp(1rem, 1vw + 0.25rem, 1.25rem);
    line-height: 1.5em;
    margin-bottom: 1.5em;
}

table tbody tr {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

table:not(.as-list) tbody tr:last-child {
    border-bottom: none;
}

table th,
table td {    
    padding: 0.375em 2.5em 0.375em 0;
}

table th {
    text-align: left;
}

table td a {
    color: inherit;
}

table td a:hover,
table td a:focus-visible {
    color: #ff378a;
    transition: color 250ms ease-in-out;
    border-color: transparent;
}

table.as-list {
    display: block;
}

table.as-list tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem 5rem;
}

table.as-list th {
    padding: 0.375em 1.5em 0.375em 0;
}

table.as-list td {
    padding: 0.375em 0;
}

a {
    color: #ff378a;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 250ms ease-in-out;
}

a:hover,
a:focus-visible {
    border-color: inherit;
}

.button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #fff;
    font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem);
    text-align: center;
    font-weight: 400;
    color: #fff;
    padding: 0.625em 2em;
    border-radius: 100vw;
    margin: 0.5em 0;
    transition: background-color 250ms ease-in-out, border-color 250ms ease-in-out;
}

.button:hover,
.button:focus-visible {
    background-color: #ff378a;
    border-color: #ff378a;
}

.site {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.bg {
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(80px, 20vw, 400px);
    height: 100%;
}

.bg .wavy-thing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300%;
    background-image: url(assets/images/bg.svg);
    background-size: 100% 100%;
    animation: wavyThing 12s ease-in-out alternate infinite;
}

@keyframes wavyThing {
    from {
        transform: translateY(0) scaleX(1);
    }

    to {
        transform: translateY(calc(-90% + 100vh)) scaleX(2);
    }
}

.content {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: clamp(4rem, 7vw, 10rem);
    padding: var(--content-padding);
    padding-right: calc(var(--bg-width) * 0.85);    
}

.cv-content {
    flex: 0 0 60%;
}

.image {
    flex: 1;
    max-width: 600px;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top right;
    mix-blend-mode: screen;
}

.bio {
    margin-bottom: clamp(4rem, 20vw, 10rem);
}

.bio .about-text {
    margin-bottom: 5rem;
}

.bio .about-text p {
    font-size: clamp(1.125rem, 1.25vw + 0.25rem, 1.5rem);
    max-width: 50ch;
    font-style: italic;
    margin-bottom: 1em;
}

.bio .about-text em {
    font-style: inherit;
    color: #ff378a;
}

section {
    margin-bottom: clamp(5rem, 10vw, 8rem);
}

.section-title {
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1em;
    width: 4px;
    height: 100%;
    background-color: #ff378a;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 27vw, 410px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cards .card {
    background-color: #fff;
    border-radius: 1.5rem;
    padding: 1.375rem 1.75rem;
    color: #000c22;
}

.cards .card .card__title {
    font-weight: 900;
    font-size: clamp(1.125rem, 1vw + 0.25rem, 1.25rem);
    margin-bottom: 0.375em;
}

.cards .card .card__body {
    font-weight: 400;
    font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem);
}

@media only screen and (min-width : 2000px) {
    .content {
        padding-left: calc((100% - 2000px) / 2 + var(--content-padding));
    }
}

@media only screen and (max-width : 992px) {
    table:not(.as-list),
    table:not(.as-list) * {
        display: block;
    }

    table:not(.as-list) tr {
        padding: 0.75em 0;
    }

    table:not(.as-list) th,
    table:not(.as-list) td {
        padding: 0;
    }

    table.as-list th {
        width: 110px;
    }

    .content {
        flex-wrap: wrap;
        padding-right: var(--content-padding);
    }

    .content .cv-content {
        order: 2;
        flex: 0 0 100%;
        padding-top: 15rem;
    }

    .bio {
        padding-right: var(--bg-width);
    }

    .content .image {
        order: 1;
        position: absolute;
        padding-right: var(--content-padding);
        max-width: 100%;
    }

    .section-title {
        margin-bottom: 1.25em;
    }

    .section-title::before {
        position: absolute;
        top: auto;
        bottom: -0.75rem;
        left: 0;
        display: block;
        width: 50px;
        height: 2px;
    }
}