/* The contact page on the mail host. A static file served by mailcow's nginx,
   so it cannot read the portal's theme.css: these are the theme's light values
   written out (ink #16181d, ink-soft #5c6370, line #dfe2e8, paper #fff,
   ground #f4f5f7, accent #1f5fd0, radius 10px) and the three stripes of the
   logo. When the theme changes, this changes with it. */

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f5f7;
    color: #16181d;
    font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.stripe {
    height: 3px;
    background: linear-gradient(90deg, #002b7f 0 33.4%, #fcd116 33.4% 66.7%, #ce1126 66.7%);
}

main {
    max-width: 38rem;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #dfe2e8;
    border-radius: 10px;
}

h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    margin: 1.5rem 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c6370;
}

.lede {
    margin: 0;
    color: #5c6370;
}

address {
    font-style: normal;
}

address p,
dl,
dd {
    margin: 0;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    font-size: 0.92rem;
}

dt {
    color: #5c6370;
}

a {
    color: #1f5fd0;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #101318;
        color: #e7e9ee;
    }

    main {
        background: #191c22;
        border-color: #2c313a;
    }

    h2,
    .lede,
    dt {
        color: #9aa2b1;
    }

    a {
        color: #5b91f5;
    }
}

@media (max-width: 46rem) {
    main {
        margin: 1rem;
        padding: 1.25rem;
    }
}
