
@font-face {
    font-family: "Ubuntu";
    src: url(/fonts/Ubuntu-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Outfit";
    src: url(/fonts/Outfit-VariableFont_wght.ttf) format("truetype");
}

:root {
    /* 
     * Colors generated from realtimecolors.com:
     * https://www.realtimecolors.com/?colors=eeece7-110f0c-c6beae-476657-86a2aa&fonts=Poppins-Poppins
     */
    
    --text: hsl(43, 17%, 85%);
    --text-hs: 43, 17%;
    --text-hs80: hsl(var(--text-hs), 80%);
    --background: hsl(36, 17%, 6%);
    --primary: hsl(40, 17%, 73%);
    --secondary: hsl(151, 18%, 34%);
    --accent: hsl(193, 17%, 60%);
    --accent-hs: 193, 17%;
    --accent-hs70: hsl(var(--accent-hs), 70%);
    
    --linearPrimarySecondary:   linear-gradient(to right, hsl(40, 17%, 73%), hsl(151, 18%, 34%));
    --linearPrimaryAccent:      linear-gradient(to right, hsl(40, 17%, 73%), hsl(193, 17%, 60%));
    --linearSecondaryAccent:    linear-gradient(to right, hsl(151, 18%, 34%), hsl(193, 17%, 60%));
    --radialPrimarySecondary:   radial-gradient(hsl(40, 17%, 73%), hsl(151, 18%, 34%));
    --radialPrimaryAccent:      radial-gradient(hsl(40, 17%, 73%), hsl(193, 17%, 60%));
    --radialSecondaryAccent:    radial-gradient(hsl(151, 18%, 34%), hsl(193, 17%, 60%));
    
    --ff-body: "Ubuntu";
    --ff-header: "Outfit";
    
    --page-center-width: 1080px;
    --page-padding: 1em;
    --page-top-height: 150px;
    --page-font-size: 18px;
}

@media (prefers-color-scheme: light) {
    :root {
        --text: hsl(43, 17%, 8%);
        --text-hs: 43, 8%;
        --text-hs80: hsl(var(--text-hs), 20%);
        --background: hsl(36, 16%, 94%);
        --primary: hsl(40, 17%, 27%);
        --secondary: hsl(151, 18%, 66%);
        --accent: hsl(192, 17%, 40%);
        --accent-hs: 192, 17%;
        --accent-hs70: hsl(var(--accent-hs), 30%);
    }
}

html, body {
    background: var(--background);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: var(--page-font-size);
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    display: block;
    font-family: var(--ff-header);
    font-weight: bold;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: .5em;
}

h1 {
    font-size: 3rem;
    margin: 2rem 0 2rem 0;
}

h2 {
    margin-top: .6em;
    font-size: 2.3rem;
    color: var(--text-hs80);
}

h3 {
    margin-top: .6em;
    font-size: 1.9rem;
    color: var(--text-hs80);
}

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

a:hover {
    color: var(--accent-hs70);
    text-decoration: none;
}

.cnt-txt-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: .5em;
}

.cnt-txt-img img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: .5em;
}

.cnt-txt-img p {
    color: var(--primary);
    font-size: .8rem;
    text-align: center;
    margin-top: .8em;
}

i {
    font-style: italic;
}

p {
    line-height: 1.8;
}

sup {
    font-size: .7em;
    vertical-align: top;
}

.quote {
    color: var(--primary);
    font-size: 1.2em;
}

.quote .text {
    padding-left: 1em;
    border-left: 3px solid var(--accent);
    line-height: 1.7;
}

.quote .reference {
    margin-top: -0.5em;
    font-style: italic;
    font-size: .75em;
    color: var(--accent);
}

.page-top {
    display: none;
}

.page-top a {
    font-family: var(--ff-header);
    color: var(--accent);
    display: flex;
    width: fit-content;
    align-items: center;
    padding: 1em .5em .5em .5em;
}

.page-top span {
    padding-right: .5em;
}

p.txt-date {
    color: var(--primary);
    font-size: .8rem;
}

p.txt-editor-note {
    color: var(--primary);
    font-size: .9rem;
}

.ctn-centralized {
    display: flex;
    max-width: var(--page-center-width);
    margin: auto;
    padding: var(--page-padding);
}

.ctn-sidebar {
    font-size: 16px;
    min-width: 250px;
    max-width: 250px;
    --padding-top: calc(var(--page-top-height) + 3rem);
    padding-right: 3em;
}

.ctn-sidebar .portrait {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
}

.ctn-sidebar .portrait .toggle-real {
    margin-top: 1em;
    opacity: .3;
    width: max-content;
    height: max-content;
    background: transparent;
    color: var(--text);
    border: none;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    place-self: normal;
}

.ctn-sidebar .portrait .toggle-real:hover {
    opacity: .6;
}

.ctn-sidebar .portrait img {
    max-width: 100%;
    opacity: 0 !important;
    transition: opacity ease 600ms;
    grid-column: 1 / -1;
    grid-row: 1 / -1;

}

.ctn-sidebar .portrait img.show {
    opacity: 1 !important;
}

.ctn-sidebar .website-name {
    color: var(--accent);
    font-family: var(--ff-header);
    font-size: 1.3rem;
    margin: .5em 0 1.0em 0;
    text-align: center;
    width: 100%;
}

.ctn-sidebar .header {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: bold;
    font-size: .9em;
    margin-bottom: 1em;
}

.ctn-sidebar .header i.fa {
    font-size: 1.1em;
}

.ctn-sidebar .header a:hover {
    color: var(--accent-hs70);
}

.ctn-sidebar .items {
    margin: 0 0 2em 1em;
    color: var(--text-hs80);
}

.ctn-sidebar .item {
    display: flex;
    line-height: 1.4;
    margin-bottom: .4em;
}

.ctn-sidebar .item i.fa {
    padding-top: .3em;
    margin-right: .5em;
}

.ctn-sidebar .item a:hover {
    color: var(--text);
}

.ctn-sidebar .sites-section a:hover {
    text-decoration: underline;
}

.ctn-content {
    line-height: 1.6;
}

.ctn-content p {
    margin-bottom: 1rem;
}

.page-curriculo .card {
    display: flex;
    gap: 1.5em;
    margin-bottom: 1em;
    align-items: center;
}

.page-curriculo .card .logo {
    max-width: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
}

.page-curriculo .card .logo img {
    max-width: 100%;
    width: auto;
    height: auto;
}

.page-curriculo .card h3 {
    font-size: 1.3em;
    margin: 0 0 .2em 0;
}

.page-curriculo .card p {
    margin-bottom: 0;
    line-height: 1.4;
}

.page-curriculo .card p.period {
    font-size: .85em;
    color: var(--accent);
}

.page-curriculo .section {
    margin-bottom: 3.5em;
}

.page-curriculo .sct-about {
    display: grid;
    grid-template-columns: 20fr 80fr;
    gap: .3em 1em;
    line-height: 1.4;
}

.page-curriculo .sct-about > :nth-child(2n+1) {
    color: var(--accent);
    font-size: .85em;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .ctn-sidebar .toggle-real {
        display: none;
    }

    :not(.page-home) > .ctn-centralized > .ctn-sidebar {
        display: none;
    }

    .page-top {
        display: block;
    }

    h1, h2 {
        margin-top: .6em;
        font-size: 2rem;
    }
}

