@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto_Condensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto_Condensed-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --primary-color: #0064a4;
    --primary-color-lighter: color-mix(
        in srgb,
        var(--primary-color),
        white 50%
    );
    --secondary-color: #ccc;
    --background-color: #f9f8fe;
    --background-color-transparent: #f9f8feb9;
    --text-color: #111;
    --header-color: #555;
}

html[data-theme='dark'] {
    filter: invert(1) hue-rotate(180deg) brightness(100%) contrast(90%);
}

@media print {
    html {
        filter: none !important;
    }

    :root {
        --background-color: #fff;
        --text-color: #000;
        --primary-color: #0064a4;
    }

    body {
        width: 8.5in;
        margin: 0;
    }

    main {
        page-break-after: always;
    }

    nav {
        display: none !important;
    }
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 11pt;
    line-height: 1.5;

    color: var(--text-color);
    background-color: var(--background-color);
    @media screen and (min-width: 1500px) {
        background-image: url("assets/bg-image.svg");
        background-size: 100vw;
        background-repeat: no-repeat;
    }
    
    margin: 0;
    padding: 0;
    overflow-anchor: none;
}

header {
    margin: 100px 0 0 0;
    font-size: 48px;
}

main {
    max-width: 800px;
    margin: auto;
    padding: 0 20px;
}

@media screen and (min-width: 1100px) {
    main {
        border-left: 4px solid var(--primary-color);
        border-right: 4px solid var(--primary-color);
        padding: 100px;
        margin-top: 120px;
        margin-bottom: 100px;
    }
}

p {
    margin: 2px 0 0 0;
}

h1,
h2,
h3 {
    color: var(--header-color);
}

h1 {
    font-size: 35pt;
    font-weight: 900;
    letter-spacing: -0.02rem;
    margin: 0.5em 0 1em 0;
    line-height: 2.5rem;
}

h2 {
    font-size: 20pt;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0.8em 0;
    padding-bottom: 0em;

    border-bottom: 1px solid var(--secondary-color);
}

h2:hover {
    border-bottom: 1px solid var(--primary-color-lighter);
}

h3 {
    font-size: 16pt;
    margin: 0;
}

h4 {
    font-size: 10pt;
    font-style: italic;

    color: var(--primary-color);
    margin: 0;
}

ul,
ol {
    margin-bottom: 0.6em;
    padding: 0 1.6em;
}

li {
    list-style-type: '- ';
    margin-bottom: 0.3em;
}

a {
    color: var(--primary-color);
    text-decoration: dashed;
}

a:hover {
    text-decoration: underline;
}

.item-container {
    padding: 0.7em 0.8em;
    margin: 2.1em 0 0.5em 0;

    border-left: 3px solid var(--secondary-color);
    background-color: #55555509;
}

.item-container:hover {
    border-left-color: var(--primary-color-lighter);
}

tag {
    display: inline-block;
    background: #55555509;
    border: 1px solid var(--primary-color-lighter);
    font-size: .82rem;
    padding: .15rem .5rem;
    margin: .2rem 0.1rem;
    white-space: nowrap;
    color: var(--color-text);
}
