/* Imports */
@import url("font.css");

/* 
========================
layout
========================
*/

* {
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Ronzino-Regular';
    font-size : 100% ;
    color : #111 ;
    padding: 1em;
    box-sizing: border-box;
    display : block ;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.small {
    font-size: 75%;
    margin-left: 1em;
}

.garamond {
    font-family: 'EB-Garamond';
}

.layout {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.layout-left {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.layout-left main {
    flex: 1;
    flex: 1 0 auto;
}

.layout-left footer {
    flex-shrink: 0;
    flex-grow: 0;
    align-self: flex-start;
    display: flex;
    gap: 0.4em;
    margin-top: 1em;
}

.layout-left footer a {
    margin: 0;
    line-height: 1;
    font-size: 75%;
    text-decoration: none;
    color: black;
}

.layout-right {
    flex: 1;
    min-width: 0;
    position: sticky;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.layout-right .arena-gallery {
    flex: 1 0 auto;
    align-content: start;
}

.gallery-note {
    flex-shrink: 0;
    font-size: 75%;
    margin-top: 1em;
}

.gallery-note p {
    margin: 0;
}

.imprint .layout-left {
    flex: none;
    width: 50%;
}

@media (max-width: 600px) {
    body {
        padding: 1em;
        overflow: scroll;
        height: auto;
    }

    .layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 2em);
        min-height: calc(100dvh - 2em);
        gap: 1em;
    }

    .layout-left {
        display: contents;
    }

    .layout-left footer {
        order: 1;
        margin-top: auto;
    }

    .layout-right {
        position: static;
        top: auto;
        height: auto;
        flex: 1 0 auto;
        padding: 0;
    }

    .layout-left main {
        flex: none;
        margin-bottom: 1em;
    }

    .arena-gallery {
        grid-template-columns: 1fr;
    }
}

/* 
========================
text styling
========================
*/

p {
    margin-top: 0;
    margin-bottom: 1em;
}

em {
    font-family: 'Ronzino-Oblique';
    font-style: oblique;
}

.arrow {
    color: back;
    font-size: 75%;
}

strong {
    font-family: 'Garamondt-Italic';
    font-size: 125%;
    padding-right: 0.1em;
    font-weight: normal;
}

h2 {
    font-family: 'Ronzino-Regular';
    font-size: 100%;
    font-weight: 100;
}

article {
    margin: 0 0 0.2em;
}

.last-updated {
    font-family: 'Ronzino-Oblique';
    font-style: oblique;
    font-size: 75%;
}

a:link    { color : blue ; text-decoration : none ;      }
a:hover   { color : blue ; text-decoration : underline ; }
a:visited { color : blue ;                               }

h1 a { color : inherit !important }
h2 a { color : inherit !important }
h3 a { color : inherit !important }
h4 a { color : inherit !important }
h5 a { color : inherit !important }
h6 a { color : inherit !important }

/* 
========================
are.na integration
========================
*/

.arena-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 1em;
}

.arena-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.arena-gallery figure {
    margin: 0;
}

.arena-title {
    font-family: 'Ronzino-Regular';
    font-size: 75%;
    margin: 0.3em 0 0;
}

.arena-description {
    font-family: 'Ronzino-Regular';
    font-size: 75%;
    margin: 0 0 0.2em;
}

.arena-meta {
    font-family: 'Ronzino-Oblique';
    font-style: oblique;
    font-size: 75%;
    margin: 0;
}

/* 
========================
post toggles
========================
*/

article summary {
    list-style: none;
    cursor: pointer;
    color: blue;
}

article details[open] summary {
    margin-bottom: 0.8em;
}

article summary::-webkit-details-marker {
    display: none;
}

article summary::marker {
    content: "";
}

article summary:hover {
    text-decoration: underline;
}


article details.alt summary {
    color: black;
}

article details.alt summary:hover {
    text-decoration: underline;
    color: black;
}

article details.alt[open] summary {
    margin-bottom: 0.5em;
}