:root {
    --landing-bg-color: #ffffff;
    --landing-fg-color: #ffffffcc;
    --landing-border-color: #c4c4c4;
    --landing-margin-length: 1.0rem;
    --landing-vertical-gap-length: 1.0rem;
}

html, body {
    background: var(--landing-bg-color);
}

body {
    margin: var(--landing-margin-length) 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: var(--landing-vertical-gap-length);
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: var(--landing-vertical-gap-length);
}


@media screen and (prefers-color-scheme: dark) {
    :root {
        --landing-bg-color: #191919;
        --landing-fg-color: #2925257a;
        --landing-border-color: #2f5066;
    }
}


/* ------------------------------------------------------------------------- */
/* CONTENT LAYOUT */
/* ------------------------------------------------------------------------- */

section.wrapper {
    display: contents;
}

section>.title, section article>.title {
    margin: 0 var(--landing-margin-length);
    background-color: unset;
    color: #757575;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 500;
    letter-spacing: 0.5rem;
    border-top: 0.5px solid;
    border-bottom: 0.5px solid;
    border-color: var(--landing-border-color);
    text-transform: uppercase;
}

section section .title, section article .title {
    font-weight: 200;
    color: #757575;
}

section.panel, article.panel {
    border: 0.5px solid;
    border-color: var(--landing-border-color);
    background-color: var(--landing-fg-color);
    margin: 0 var(--landing-margin-length);
    padding: 1rem;
}

li>p.layout {
    color: #4a4040;
    font-size: 1.1rem;
    font-weight: 200;
}

li>p.layout > a:first-child {
    border: 0.5px solid;
    border-color: #e3e3e3;
    padding: 0rem 0.2rem;
    border-radius: 3px;
    width: max-content;
    text-decoration: none;
    color: #234b9c;
    font-weight: 300;
    padding: 0.1rem 0.5rem;
    line-break: anywhere;
    overflow-wrap: anywhere;
    max-width: fit-content;
}

li>p.layout > a:first-child:visited {
    color: #234b9c;
}

.warning {
    border: 0.5px solid;
    padding: 0.5rem;
    color: #ff6060;
    border-color: #ff6060;
    margin: 0;
    text-align: center;
    font-weight: 100;
    font-size: 0.9rem;
}

.warning strong {
    font-weight: 400;
}



.contact-options {
    border-color: var(--landing-border-color);
    color: #5f4c4c;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 0.75rem;
    padding: 0.5rem;
    grid-auto-flow: row dense;
    letter-spacing: 0.1rem;
    font-size: clamp(22px, 3vw + 6px, 40px);
    list-style: none;
    padding: 0;
    margin: 0 var(--landing-margin-length);
    font-weight: 300;
}

.contact-options .contact {
    color: inherit;
    font-size: 1rem;
    border: 0.5px solid;
    border-color: inherit;
    width: 100%;

    min-width: 0;
    /* critical: let items shrink */
    margin: 0;
    padding: 0.6rem 0.8rem;
    text-align: center;
    overflow-wrap: anywhere;
    background-color: var(--landing-fg-color);
    font-family: var(--font-sans);
    font-size: inherit;
    font-weight: inherit;

    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-options>.contact code {
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.contact-options>.contact a {
    color: inherit;
    text-decoration: none;
}

/* hard collapse to one column on very narrow screens */
@media (max-width: 520px) {
    .contact-options {
        grid-template-columns: 1fr;
    }
}

@media screen and (prefers-color-scheme: dark) {
    section>.title, section article>.title {
        color: #ccc6c6;
    }

    li>p.layout {
        color: #d9d9d9;
    }

    li>p.layout > a:first-child {
        border-color: #59ffe666;
        color: #59ffe6;
    }

    li>p.layout > a:first-child:visited {
        color: #59ffe6;
    }

    .contact-options {
        color: #c6c6c6;
    }
}


