/* The interim page's whole stylesheet. Colours, sizes and spacing are the webapp's (daisyUI's dark theme, the
   homepage's Tailwind classes), measured off the running homepage, so both read the same. */
:root {
    --base-100: oklch(25.33% 0.016 252.42);
    --base-200: oklch(23.26% 0.014 253.1);
    --content: oklch(97.807% 0.029 256.847);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--base-200);
    color: var(--content);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}

a {
    color: inherit;
}

.navbar {
    display: flex;
    align-items: center;
    min-height: 4rem;
    padding: 0.5rem;
    background: var(--base-100);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.brand {
    padding: 0.375rem 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Fixed behind the whole page, with the webapp's light veil that keeps the text readable over the clip */
.background {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
}

.background video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in oklab, var(--base-200) 27%, transparent);
}

/* Label-maker tape: every line on its own strip in the navbar's colour, a wrapped line too */
.tape {
    background: var(--base-100);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0.125rem 0.75rem;
}

h1 {
    margin: 1.5rem 0 2rem;
    font-size: 1.875rem;
    line-height: 1.45;
    font-weight: 700;
}

.tagline {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

footer {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: color-mix(in oklab, var(--content) 70%, transparent);
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (min-width: 40rem) {
    h1 {
        margin-top: 3rem;
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.5rem;
    }
}

/* Imprint and privacy policy, as the webapp's .legal */
.legal {
    max-width: 46rem;
    line-height: 1.65;
}

.legal h1 {
    margin: 1rem 0 0.25rem;
    font-size: 1.875rem;
}

.legal .as-of {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: color-mix(in oklab, var(--content) 70%, transparent);
}

.legal h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.25rem;
}

.legal p,
.legal ul,
.legal address,
.legal table {
    margin: 0.5rem 0;
}

.legal address {
    font-style: normal;
}

.legal ul {
    padding-left: 1.25rem;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.legal th,
.legal td {
    padding: 0.5rem;
    border-bottom: 1px solid color-mix(in oklab, var(--content) 15%, transparent);
    text-align: left;
    vertical-align: top;
}
