/* Code-Medizin coming-soon page. Colours and type are taken from the site's own tokens (cm-2026.css). */

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/lato-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/lato-latin-700-normal.woff2") format("woff2");
}

:root {
    --ink-950: #06121f;
    --ink-900: #0b1f33;
    --ink-800: #122c47;
    --paper: #faf7f1;
    --paper-soft: rgba(250, 247, 241, 0.78);
    --paper-quiet: rgba(250, 247, 241, 0.66);
    --rule: rgba(250, 247, 241, 0.14);
    --teal-light: #43cbc7;
    --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html {
    color: var(--paper);
    background: var(--ink-950);
    font-family:
        "Lato",
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 100%;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    background: radial-gradient(120% 70% at 50% 0%, var(--ink-800) 0%, var(--ink-900) 48%, var(--ink-950) 100%) fixed;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--teal-light);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---- main stage ---- */

.stage {
    align-self: center;
    width: 100%;
    max-width: 46rem;
    margin-inline: auto;
    padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
    text-align: center;
}

.logo {
    display: block;
    width: clamp(15rem, 52vw, 21rem);
    height: auto;
    margin-inline: auto;
}

.ekg {
    display: block;
    width: 100%;
    height: 3rem;
    margin-block: clamp(1.75rem, 5vh, 2.75rem) clamp(1.25rem, 3vh, 1.75rem);
    overflow: visible;
}

.ekg path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ekg-base {
    stroke: var(--teal-light);
    opacity: 0.22;
}

/* A short bright stretch travels along the line: the heartbeat of a page that is not live yet. */
.ekg-pulse {
    stroke: var(--teal-light);
    stroke-dasharray: 0.09 0.91;
    stroke-dashoffset: 1;
    animation: pulse-travel 3.6s linear infinite;
}

@keyframes pulse-travel {
    to {
        stroke-dashoffset: 0;
    }
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5.4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 em {
    display: block;
    font-style: normal;
    color: var(--teal-light);
}

.lead {
    max-width: 36rem;
    margin: 1.5rem auto 0;
    color: var(--paper-soft);
    font-size: clamp(1.0625rem, 2.1vw, 1.1875rem);
    text-wrap: pretty;
}

.lead strong {
    color: var(--paper);
}

.contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin: 2.25rem 0 0;
    color: var(--paper-quiet);
}

.mail {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-900);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mail:hover {
    background: #ffffff;
}

/* ---- legal footer ---- */

.legal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2.5rem;
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding: 1.75rem var(--gutter) 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--paper-quiet);
    font-size: 0.875rem;
    line-height: 1.6;
}

.legal h2 {
    margin: 0 0 0.4rem;
    color: var(--paper);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal p,
.legal address {
    margin: 0;
    font-style: normal;
}

.legal p + address {
    margin-top: 0.35rem;
}

.legal strong {
    color: var(--paper);
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}

@media (max-width: 48rem) {
    .legal {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ekg-pulse {
        display: none;
    }
}
