:root {
    --background: #070707;
    --first-level-border: #666666;
    --second-level-border: #222222;
    --first-level-background: #0b0b0b;
    --second-level-background: #080808;
    --first-level-text: #f7f7f7;
    --second-level-text: #a0a0a0;
    --third-level-text: #434343;
    --button-background: #171717;
    --button-border: #333333;
}

.text-light {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: var(--second-level-text);
}

.text-regular {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--first-level-text);
}

.text-medium {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 500;
    font-style: normal;
}

html,
body {
    background: var(--background);
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--first-level-text);
}

main {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0 16px;
    padding-top: min(7%, 200px);
    flex-grow: 1;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-family: "Megrim", system-ui;
    font-weight: 400;
    font-style: normal;
    color: var(--first-level-text);
    font-size: 3.5rem;
    text-align: center;
}

h1~p {
    font-size: 1.5rem;
    text-align: center;
}

h2 {
    color: var(--first-level-text);
    font-size: 1.5rem;
    white-space: nowrap;
}

h3 {
    color: var(--second-level-text);
    font-size: 1.5rem;
    margin-top: 35px;
    text-align: start;
    align-self: flex-start;
}

.c-1 a,
.c-2 a {
    background: var(--button-background);
    border: 1px solid var(--button-border);
    color: var(--first-level-text);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    text-decoration: none;

    span {
        font-size: 1rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        margin-top: -3px;
    }

    div {
        margin: 0 !important;
        background: url(/external-link.svg);
        width: 16px;
        height: 16px;
    }
}

.b-1 {
    padding: 8px 16px;
}

.c-1,
.c-2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--second-level-border);
    background-color: var(--second-level-background);
    border-radius: 8px;
    padding: 16px;

    p {
        color: var(--second-level-text);
        font-size: 1.125rem;
        text-align: center;
    }

    div {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
}

.c-1 {
    border: 1px solid var(--first-level-border);
    border-radius: 16px;
    padding: 16px 24px;
    align-self: stretch;
    background: var(--first-level-background);

    div {
        margin-top: 8px;
    }

    a>div {
        background: url(/rocket.svg);
    }
}

.group {
    margin-top: 32px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;

    .c-2:nth-child(1) {
        flex: 1;
    }

    .c-2:nth-child(2) {
        flex: 1;
    }

    .c-2:last-child {
        flex: 1;
    }
}

@media only screen and (max-width: 650px) {
    .group {

        .c-2:nth-child(1) {
            flex: 1;
        }

        .c-2:nth-child(2) {
            flex: 1;
        }

        .c-2:last-child {
            flex: 2;
        }
    }
}

h3~.group {
    margin-top: 10px;
}

.quote {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    height: 100px;
    margin-bottom: 24px;

    p {
        font-size: 1.375rem;
    }

    svg:first-child {
        transform: translateY(20px);
        align-self: start;
    }

    svg:last-child {
        align-self: end;
        transform: translate(-4px, -20px);
    }
}

.connections {
    margin-top: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    height: 26px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 24px;
    align-items: center;

    a {
        width: 24px;
        height: 24px;
        background-repeat: no-repeat;
    }

    a:nth-child(1) {
        background-image: url(/linkedin.svg);
    }

    a:nth-child(2) {
        background-image: url(/instagram.svg);
    }

    a:nth-child(3) {
        background-image: url(/substack.svg);
        background-position: 3px 1.5px;
    }

    a:nth-child(4) {
        background-image: url(/mastodon.svg);
        height: 26px;
    }
}

.copyright {
    padding-top: 32px;
    padding-bottom: 4px;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: var(--second-level-text);
    font-size: 0.75rem;
    text-align: center;
}