/* Template Overrides */
:root 
{
    --color-primary: #cc3366;
}
@media (prefers-color-scheme: dark) {
    :root
    {
        --color-primary: #DD789A;
    }
}
footer
{
    margin: 1rem 0;
}
footer ul > li::before
{
   content: "";
}
footer ul > li
{
    margin: 0;
    font-weight: 300;
    font-size: .8rem;
}
footer ul
{
    margin: 0;
}

/* Homepage Widgets */
.ascii
{
    font-size: 1rem;
    font-weight: 300;
}
.emoji
{
    font-size: 2rem;
    font-style: normal;
}
.sticker
{
    max-width: 8rem;
    max-height: 10rem;
}

/* Publications */
section article.article-index header
{
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
}
section article.article-index > header > a:has(h2)
{
    display: inline;
    padding-left: .5rem;
    order: 3;
    flex-basis: 100%;
}
section article.article-index > header > .external-label
{
    line-height: 1.5rem;
    text-style: italic;
    margin-left: 1rem;
    order: 2;
}
section article.article-index > header > a > h2
{
    font-size: 1.2rem;
    margin: 0;
}
section article.article-index > header > *
{
    display: inline-block;
}
section article.article-index > header > time,
section article.article-index > header > .external-label
{
    flex-shrink: 0;
}

section article.article-index header time
{
    order: 1;
}

section article.article-index > header > a:has(h2)
{
    padding-left: 0;
}

/* Columned Sections, used for sticker placement */
.columned
{
    width: 100%;
    display: flex;
    flex-direction: row;
}
.columned.reversed
{
    flex-direction: row-reverse;
}
.columned > .sticker
{
    align-self: center;
    padding: 0 1rem;
}
.columned > .content
{
    align-self: flex-start;
    flex-grow: 1;
}
section > *.columned > *.content > :first-child
{
    margin-top: 0;
}

/* Page header/footers */
body > header p
{
    text-align: center;
}
body > footer,
h1.logo > pre
{
    text-align: center;
}
h1.logo
{
    font-size: 2rem;
    margin-bottom: 2rem;
}

@media(max-width: 840px) {
    .columned
    {
        display: block;
    }
    .columned > .sticker
    {
        display: none;
    }
    .columned > .sticker.retain
    {
        display: block;
        margin: 0 auto;
    }
    .ascii {
        font-size: 1.75vw;
    }
}

@media print {
    .subtitle-info
    {
        margin: .2em 0;
    }
    .emoji,
    .sticker
    {
        display: none!important;
    }
    .footer
    {
        margin: 0;
        margin-top: 1rem;
    }
    body > footer
    {
        margin-top: 2rem;
    }
}
