@font-face {
    font-family: 'Barlow';
    src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

:root {
    color-scheme: light;
    --concrete: #d2d1cc;
    --marker: #d4006f;
    --anthracite: #2e3336;
    --slate: #4a5054;
    --gutter: clamp(1rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: var(--gutter);
    background: var(--concrete) url('/beton.svg') center top / 60rem 30rem;
    color: var(--anthracite);
    font-family: 'Barlow', 'DIN Alternate', 'Bahnschrift', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    margin: 0;
    font: inherit;
}

.lead {
    display: block;
    font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
    font-weight: 500;
    line-height: 1.15;
}

h1.lead {
    margin-bottom: 0.5rem;
}

.note {
    max-width: 46ch;
    text-wrap: balance;
    margin: 0;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
}

footer {
    margin-top: 2rem;
    color: var(--slate);
    font-size: 0.875rem;
}

a {
    color: inherit;
    text-decoration-color: var(--marker);
    text-decoration-thickness: 0.125em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--marker);
}

a:focus-visible {
    outline: 0.1875rem solid var(--marker);
    outline-offset: 0.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Die Absteckung: gestrichelte Kontur des Namens, gesprüht statt gesetzt. */
.stakeout {
    display: block;
    width: 100%;
    max-height: 64vh;
    max-height: 64svh;
    margin: clamp(0.5rem, 2vw, 1.5rem) 0;
    overflow: visible;
}

.stakeout path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.outline path {
    stroke: var(--marker);
    stroke-width: 15;
    stroke-dasharray: 38 30;
}

.reveal path {
    stroke: #fff;
    stroke-width: 40;
}

.stakes path {
    stroke: var(--marker);
    stroke-width: 24;
}

/* Auf kleinen Displays würde die Linie sonst zur Haarlinie schrumpfen. */
@media (max-width: 40rem) {
    .outline path {
        stroke-width: 26;
        stroke-dasharray: 52 44;
    }

    .reveal path {
        stroke-width: 60;
    }

    .stakes path {
        stroke-width: 34;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal path {
        stroke-dasharray: 1 1;
        animation: spray 0.75s cubic-bezier(0.45, 0, 0.3, 1) both;
    }

    .reveal path:nth-child(2) { animation-delay: 0.1s; }
    .reveal path:nth-child(3) { animation-delay: 0.2s; }
    .reveal path:nth-child(4) { animation-delay: 0.3s; }
    .reveal path:nth-child(5) { animation-delay: 0.4s; }
    .reveal path:nth-child(6) { animation-delay: 0.5s; }
    .reveal path:nth-child(7) { animation-delay: 0.6s; }
    .reveal path:nth-child(8) { animation-delay: 0.7s; }
    .reveal path:nth-child(9) { animation-delay: 0.8s; }
    .reveal path:nth-child(10) { animation-delay: 0.9s; }
    .reveal path:nth-child(11) { animation-delay: 1s; }
    .reveal path:nth-child(12) { animation-delay: 1.1s; }

    .stakes path {
        animation: stake 0.01s linear both;
    }

    .stakes path:nth-child(1) { animation-delay: 1.75s; }
    .stakes path:nth-child(2) { animation-delay: 1.9s; }
    .stakes path:nth-child(3) { animation-delay: 2.05s; }
    .stakes path:nth-child(4) { animation-delay: 2.2s; }
}

@keyframes spray {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes stake {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
