:root {
    --text-color: wheat;
    --main-bg-color: #333;
    --panel-bg-color: #444;
}

body {
    margin: 0 auto;
    padding: 2rem;
    max-width: 600px;    
    font-weight: 100;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--main-bg-color);
    line-height: 133%;
}

h1 {
    margin: 0 0 0 3.25rem;
    font-size: 1.25rem;
    line-height: normal;
    font-weight: 100;
    font-family: 'Roboto', sans-serif;
}

h1::before {
    content: '';
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    border: 1px solid var(--text-color);
    margin-right: 4.25rem;
    margin-bottom: 0.125rem;
}

p, ul {
    margin: 1rem 0 1rem 3.5rem;
    padding-left: 4.5rem;
    border-left: 1px dashed var(--text-color);
}

b {
    opacity: .9;
    font-weight: 500;
}

li {
    margin-bottom: .5rem;
}

li:last-child {
    margin-bottom: 0;
}

a, a:link, a:visited, a:active {
    color: var(--text-color);
    text-decoration-line: underline;
    text-decoration-style: dotted;
}

#header {
    margin-bottom: 1rem;
    display: grid;
    column-gap: calc(1rem - 2px);
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "A B D E"
        "A C D E";
}

#header-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    border: 2px solid var(--text-color);
    grid-area: A;
}

#header-title {
    grid-area: B;
    align-self: self-end;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    font-size: 2rem;
    line-height: 100%;
}

#header-subtitle {
    grid-area: C;
    font-size: 1.25rem;
    font-weight: 100;
    line-height: normal;
}

#header-email {
    grid-area: D;
    align-self: center;
    margin-top: 0.5rem;
    display: block;
}

#header-telegram {
    grid-area: E;
    align-self: center;
    margin-top: 0.5rem;
    display: block;
}

#header-email img {
    width: 1.8rem;
    height: 1.8rem;
}

#header-telegram img {
    width: 2rem;
    height: 2rem;
}

.project {
    margin: .5rem 0 1rem 0;
    border-radius: .5rem;
    display: grid;
    grid-template-columns: 50% 50%;
    background-color: var(--panel-bg-color);
    overflow: hidden;
}

.project div {
    padding: .5rem .75rem;
    font-size: smaller;
}

@media print {
    :root {
        --text-color: #000;
        --main-bg-color: #fff;
        --panel-bg-color: #eee;
    }
    #header-email img,
    #header-telegram img {
        display: none;
    }
}
