/* declarations */

@font-face {
    font-family: "Oranienbaum";
    src: url("./oranienbaum.ttf");
}

@font-face {
    font-family: "Metrophobic";
    src: url("./metrophobic.ttf");
}

:root {
    --background: #1e1e2e;
    --foreground: #cdd6f4;
    --accentuater: #b4befe;

    --serif: "Oranienbaum", Georgia, Times, 'Times New Roman', serif;
    --sans: "Metrophobic", Arial, Helvetica, sans-serif;
}

/* structure */

html {
    background-color: var(--background);
}

/* bg nonsense */

html::before {
    --bg-width: max(100vw, 1710px);
    --bg-x: left;
    --bg-sink: calc(var(--bg-width) * -0.15);

    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image:
        url("./background.png"),
        url("./sky.png");
    background-image:
        image-set(url("./bg.webp") type("image/webp"), url("./bg.png") type("image/png")),
        url("./sky.png");
    background-position: var(--bg-x) bottom var(--bg-sink), var(--bg-x) center;
    background-repeat: no-repeat;
    background-size: var(--bg-width) auto, var(--bg-width) 100%;
}

body {
    color: var(--foreground);
    background-color: var(--background);
    border: 1px solid var(--accentuater);
    border-top: none;
    border-left: none;
    border-radius: 0 0 12px 0;
    margin: auto 0rem;
    padding: 0 0 2rem 1rem;
    display: grid;
    max-width: 740px;
    zoom: 0.9;
}

header {
    border-bottom: 2px solid var(--accentuater);
    margin-bottom: 2rem;
    margin-right: 1rem;
    color: var(--accentuater);
}

main {
    display: flex;
    flex-direction: row;
    align-items: left;
    justify-content: left;
    gap: 3rem;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 0;
        margin-bottom: 0.5rem
    }

    p {
        margin: 0;
        margin-bottom: 1rem;
    }
}

/* constructs */

.avatar-div {
    margin: 0;
    align-self: left;
}

.avatar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    border: 4px solid var(--accentuater);
    width: 200px;
}

.avatar-caption {
    padding-top: 1rem;
    color: var(--foreground);
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: 0 !important;
}

.links {
    display: flex;
    gap: 1rem;
}

.links svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--accentuater);
}

/* raw elms */

* {
    font-family: var(--sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--accentuater);
    font-family: var(--serif);
    letter-spacing: 1.75px;
}

ul {
    display: flex;
    gap: .5rem;
    flex-direction: column;
    margin: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--accentuater);
    text-decoration: none;
}

/* viewport shrinkage */

@media (max-width: 550px) {
    main {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .links {
        justify-content: space-between;

    }

    html::before {
        content: none;
    }

    body {
        border: none;
        border-radius: 0;
        padding-right: 1rem;
        font-size: 1.15em;
    }

    header {
        margin-right: 0;
    }
}
