/*
 * Public site: the intro of the home page — the promise of the brand, one line of what Kador makes, the main
 * button, and the character beside them (an <img> of web/img/hero/, rules.md §3.4).
 *
 * The height of the drawing is decided here and nowhere else: --app-hero-h, 200 on a screen, 132 on a phone.
 */

.app-intro {
    --app-hero-h: 200px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-5) calc(var(--space-6) + var(--space-3));
    padding: calc(var(--space-6) + var(--space-5)) 0 var(--space-6);
}

.app-intro__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-4);
    margin: 0 0 var(--space-5);
    font-size: var(--fs-page);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
}

.app-intro__brand {
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
}

.app-intro__sep {
    color: var(--border-2);
    font-size: 85%;
    font-weight: var(--fw-regular);
}

.app-intro__tagline {
    color: var(--text-2);
    font-weight: var(--fw-medium);
    letter-spacing: -0.01em;
}

.app-intro__lead {
    color: var(--text-2);
    font-size: var(--fs-card);
    line-height: var(--lh-text);
}

/* The titles of the principles under the lead: a row that wraps, each with a small mark (not links; the details are in the section below). */
.app-intro__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-size: var(--fs-text);
    font-weight: var(--fw-medium);
}

.app-intro__list li {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.app-intro__list li::before {
    content: '';
    flex: none;
    width: var(--space-1);
    height: var(--space-1);
    border-radius: 50%;
    background: var(--accent);
}

/* The description of a section under its title keeps the measure of a line of text. */
.app-intro .app-article__lead {
    max-width: var(--w-prose);
}

.app-intro__hero {
    display: block;
    flex: none;
    width: auto;
    max-width: 100%;
    height: var(--app-hero-h);
}

@container (max-width: 719px) {
    .app-intro {
        --app-hero-h: 132px;

        grid-template-columns: minmax(0, 1fr);
        padding: calc(var(--space-6) + var(--space-1)) 0 var(--space-5);
    }

    .app-intro__title {
        gap: 0 var(--space-3);
        font-size: var(--fs-value);
    }

    .app-intro__sep {
        display: none;
    }

    .app-intro__lead {
        font-size: var(--fs-text);
    }
}

/* The actions under the title of a service page (404): the main button and a quiet link on one line. */
.app-intro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
}

/* Touch target: the quiet link beside the button is at least --field tall (core.md §19.1). */
@container (max-width: 719px) {
    .app-intro__actions > a:not(.app-btn) {
        display: inline-flex;
        align-items: center;
        min-height: var(--field);
    }
}
