:root {
    --theme-color: #ffc370;
    --theme-text: #ffa11f;
    --theme-color-transparent: rgba(255, 195, 112, 0.2);
    --theme-hover: rgba(255, 195, 112, 0.4);
    --background: #fffcf7;
    --foreground: black;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: auto;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    display: grid;
    grid-template-areas: 'header'
        'main'
        'footer';

    background-color: var(--background, unset);
    color: var(--foreground, unset);
    align-items: center;
}

header {
    background-color: var(--theme-color);
    color: black;
    padding: 1ch 5ch;
    position: sticky;
    top: 0;
    user-select: none;
}
.header-title {
    font-weight: bold;
    font-size: 1.5rem;
}

article {
    min-width: min-content;
    max-width: min(max(800px, 50vw), 100vw);
    /* max-width: 800px; */
    padding: 2ch;
    justify-self: center;
    box-sizing: border-box;
    display: flex;
    background-color: #00000010;
    flex-wrap: wrap;
    border-radius: 1ch;
    box-shadow: 0px 0px 6px 0px #0000003b;
    flex-direction: row;
    gap: 1ch;
}

svg {
    display: inline-block;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
}

#page-title {
    font-size: 1rem;
    background-color: var(--theme-color, ButtonFace);
    color: black;
    padding: 1ch;
    border-radius: 1ch;
    user-select: none;
    white-space: nowrap;
    text-align: center;
    flex: 100% 1;
    margin-block-end: 0.5em;
}

.small {
    font-weight: lighter;
}

.large {
    font-weight: bold;
    font-size: 3em;
}

@media (max-width: 500px) {
    #page-title > .large {
        font-size: 2em;
    }
}

.links {
    gap: 1ch;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.links > a {
    flex: fit-content 1 0;
}

.links > .full {
    flex: 100% 1 1;
}

.button, .language {
    display: inline-block;
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis;
    padding: 0.3em;
    border-radius: 0.3em;
    user-select: none;
    text-align: center;
    background-color: var(--theme-color-transparent, ButtonFace);
    transition: background-color 250ms ease-in-out;
    color: var(--theme-text, ButtonFace);
}
.language {
    margin-block: 0.2em;
}
.button:is(:hover, :focus, :active) {
    background-color: var(--theme-hover, ButtonFace);
}
:is(.button, .language) > * {
    vertical-align: middle;
}

a.button {
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
}

.entry {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    flex: 100% 1;
}

.entry.minimal {
    flex: max-content 1 1;
    width: fit-content;
}

.entry > .title {
    font-weight: bold;
}

.entry > .value {

}


@media (prefers-color-scheme: dark) {
    :root {
        --background: #0a0908;
        --foreground: white;
    }

    article {
        background-color: #ffffff12;
        box-shadow: 0px 0px 6px 0px #ffffff0f;
    }
}

@supports (font-size: 1lh) {
    svg {
        height: 1lh;
    }

    .language {
        margin-block: 0.2lh;
    }

    #page-title {
         margin-block-end: 0.5lh;
     }
}
