
:root {
    --Background: white;
    --MenuBackground: #444;
    --MenuHighlight: #666;
    --ItemHighlight: #5fd068;
    --text: black;
    --menu-text: white;
}

@media (prefers-color-scheme: dark) {
    :root {
        --Background: #131516;
        --MenuBackground: #333;
        --MenuHighlight: #555;
        --ItemHighlight: #5fd068;
        --text: white;
        --menu-text: white;
    }
}

* {
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    color: var(--text);
}

html {
    line-height: 1.15;
}

:where(:not(:defined)) {
    display: block;
}

body {
    margin: 1rem;
    background-color: var(--Background);
}

rg-title {
    font-size: 4rem;
    font-weight: bold;
    font-family: "Times New Roman", Times, serif;
}

rg-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

body > p {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    margin-bottom: 1rem;
}

body > hr {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

rg-info {
    text-align: right;
}

rg-grid {
    display: block;
    column-count: 2;
    column-width: 30ch;
    column-gap: 1ch;
    padding-top: 0rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

rg-grid > * {
    margin-bottom: 1rem;
}

rg-grid > * {
    break-inside: avoid;
    page-break-inside: avoid;
}

body {
    /*background-color: orange;*/
}

a {
    color: var(--text);
}

a:hover {
    text-decoration-line: underline;
    text-decoration-style: dashed;

    transition: background-color, 100ms;
}

a:active {
    text-decoration-line: underline;
    text-decoration-style: dotted;
}

a::after {
    color: transparent;
    text-shadow: 0 0 0 var(--text);
    font-size: 0.6em;
    vertical-align: 0.22em;
    content: " 🔗";
}

.card {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.role {
    font-style: italic;
}

hr {
    border: 0;
    border-top: 2px solid;
}

hr.medium {
    margin-top: 0.5rem;
    width: 7ch;
}

hr.small {
    margin-bottom: 0.5rem;
    width: 5ch;
}

br.small {
    display: block;
    margin-bottom: 0.5rem;
}

h5 {
    font-weight: normal;
    font-size: 1rem;
    font-style: italic;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    rg-intro {
        flex-direction: column;
    }

    rg-info {
        text-align: center;
    }

    rg-title {
        text-align: center;
        line-height: 1;
    }

    body > p {
        text-align: justify;
    }
}

@media print {
    @page {
        margin: 0.5in;
        margin-top: 0.25in;
    }
    
    a::after {
        color: var(--text);
        content: " [↗]";
        vertical-align: 0.3em;
    }

    html {
        font-size: 10.5pt; /* or 12pt depending on your preference */
    }
}
