:root {
    --color_theme_text: #000;
    --color_theme_line: #888;
    --color_theme_background: #fff;
    --color_theme_side: #eef;

    --font_size: 12pt;
    --aside_width: 256px;
}

html,
body {
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    display: flex;
    color: var(--color_theme_text);
    background-color: var(--color_theme_background);
}

body {
    z-index: -1;
    overflow-y: scroll;
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    font-style: normal;
    font-weight: normal;
    font-size: var(--font_size);
}
body::before {
    content: '';
    display: block;
}
body::after {
    content: '';
    display: block;
}

button,
input,
textarea {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    appearance: none;
    color: inherit;
    background-color: transparent;
}

aside {
    position: relative;
    flex-shrink: 0;
    width: var(--aside_width);
    margin: 0;
    padding: 0;
    background-color: var(--color_theme_side);
    transition: 0.25s;
}
aside::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 4px;
    height: 100%;
    border-right: solid 1px var(--color_theme_text);
    background-color: var(--color_theme_background);
}

aside > ul {
    list-style-type: none !important;
    margin: calc(var(--font_size) * 4) var(--font_size);
    padding: 0;
}

aside > ul > li {
    position: relative;
    margin: calc(var(--font_size) * 2) 0 calc(var(--font_size) * 2) calc(var(--font_size) * 2);
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
}
aside > ul > li:first-of-type {
    margin-top: 0;
}
aside > ul > li:last-of-type {
    margin-bottom: 0;
}
aside > ul > li::before {
    content: '';
    position: absolute;
    display: block;
    top: calc(var(--font_size) * 0.25);
    left: calc(var(--font_size) * -1.5);
    width: var(--font_size);
    height: var(--font_size);
    border-radius: 50%;
    background: var(--color_theme_text);
}
aside > ul > li:nth-child(1)::before {
    background: #ff8888;
}
aside > ul > li:nth-child(2)::before {
    background: #ffff88;
}
aside > ul > li:nth-child(3)::before {
    background: #88ff88;
}
aside > ul > li:nth-child(4)::before {
    background: #88ffff;
}
aside > ul > li:nth-child(5)::before {
    background: #8888ff;
}
aside > ul > li:nth-child(6)::before {
    background: #ff88ff;
}

aside > .ribbon {
    cursor: pointer;
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    word-break: keep-all;
    border-top: solid 1px var(--color_theme_line);
    border-left: solid 1px var(--color_theme_line);
    border-bottom: solid 1px var(--color_theme_text);
    border-right: solid 1px var(--color_theme_text);
    background-color: var(--color_theme_side);
    transition: 0.25s;
}
aside > .ribbon:hover {
    background-color: var(--color_theme_line);
}

@media screen and (max-width: 1023px) {
    aside {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
    }
    aside.close {
        left: calc(-1 * (var(--aside_width) + 4px + 1px));
    }

    aside > .ribbon {
        display: block;
    }
    aside.close > .ribbon {
        left: calc(100% + 4px + 4px + 1px);
    }
}

main {
    z-index: -2;
    position: relative;
    flex-grow: 1;
    width: calc(100% - var(--font_size) * 2);
    margin: 0;
    padding: calc(var(--font_size) * 2) var(--font_size);
}
main::before {
    z-index: -1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    opacity: 0.25;
}

main h1,
main h2 {
    margin: calc(var(--font_size) * 2) 0;
    padding: 0;
    font-family: inherit;
    font-weight: bold;
    text-align: center;
}
main h1 {
    font-size: calc(var(--font_size) * 2);
}
main h2 {
    font-size: calc(var(--font_size) * 1.5);
}
main h2.small {
    font-size: var(--font_size);
    font-weight: normal;
}

main p {
    margin: calc(var(--font_size) * 2) 0;
    padding: 0;
}

main hr {
    display: block;
    width: 100%;
    height: 0;
    margin: calc(var(--font_size) * 2) 0;
    padding: 0;
    border: none;
    border-top: solid 1px var(--color_theme_line);
}

main .bold,
main b {
    font-style: inherit;
    font-weight: bold;
    font-size: inherit;
    color: inherit;
}

main .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

main .content > * {
    width: 720px;
    max-width: 100%;
}

main table {
    border-top: solid 1px var(--color_theme_line);
    border-left: solid 1px var(--color_theme_line);
    border-bottom: solid 1px var(--color_theme_text);
    border-right: solid 1px var(--color_theme_text);
}

main table th,
main table td {
    margin: 1px;
    padding: 1px;
    text-align: left;
    vertical-align: top;
    word-break: break-all;
    font-weight: normal;
    border-top: solid 1px var(--color_theme_text);
    border-left: solid 1px var(--color_theme_text);
    border-bottom: solid 1px var(--color_theme_line);
    border-right: solid 1px var(--color_theme_line);
}
main table th.center,
main table td.center {
    text-align: center;
}

main table thead.hide th,
main table thead.hide td {
    margin: 0;
    padding: 0;
    border: none;
}

main table.clear,
main table.clear th,
main table.clear td {
    border: solid 1px transparent;
}
main table.clear th,
main table.clear td {
    padding: var(--font_size) 0;
}
main table.clear tr:first-of-type th,
main table.clear tr:first-of-type td {
    padding-top: 0;
}
main table.clear tr:last-of-type th,
main table.clear tr:last-of-type td {
    padding-bottom: 0;
}

main table table,
main table.clear table {
    width: auto;
    border: none;
    margin: -2px;
}

main table table th,
main table table td,
main table.clear table th,
main table.clear table td {
    margin: 0;
    padding: 0;
    border: none;
}

main ul {
    list-style-type: none !important;
    margin: calc(var(--font_size) * 2) 0;
    padding: 0;
}

main ul > li {
    position: relative;
    margin: 0 0 0 calc(var(--font_size) * 2);
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
}
main ul > li::before {
    content: '';
    position: absolute;
    display: block;
    top: calc(var(--font_size) * 0.5);
    left: calc(var(--font_size) * -1.25);
    width: calc(var(--font_size) * 0.5);
    height: calc(var(--font_size) * 0.5);
    border-radius: 50%;
    background: var(--color_theme_text);
}

main img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

#profile {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

#profile > #portfolio {
    flex-shrink: 0;
    width: 256px;
    height: 384px;
    margin-right: 8px;
    object-fit: cover;
    filter: grayscale(100%);
}
#profile > #information {
    flex-grow: 1;
    width: 100%;
}
