/* Adobe project ukl0drn: family names and weights supplied by the project owner. */
.festspiele-site {
    --festspiele-font-body: "aptos", "Segoe UI", sans-serif;
    --festspiele-font-narrow: "aptos-narrow", "aptos", "Segoe UI", sans-serif;
    --festspiele-h1-size: clamp(2rem, 4.5vw, 3rem);
    --festspiele-h2-size: clamp(1.65rem, 3vw, 2rem);
    --festspiele-body-size: 1.125rem;
    --festspiele-intro-size: 1.25rem;
    --festspiele-text-leading: 1.5;
    --festspiele-heading-leading: 1.25;
    --festspiele-body-leading: 1.65;
    --festspiele-intro-leading: var(--festspiele-body-leading);
    font-family: var(--festspiele-font-body);
    font-size: var(--festspiele-body-size);
    line-height: var(--festspiele-body-leading);
    /* Requested 200; the current Adobe project resolves this to its lightest face, 300. */
    font-weight: 200;
    :is(h1, h2, h3, h4, h5, h6), .festspiele-subtitle {
        font-family: var(--festspiele-font-body);
        line-height: var(--festspiele-heading-leading);
    }

    h1 {
        font-size: var(--festspiele-h1-size);
        font-weight: 700;
        text-transform: uppercase;
    }

    h2 { font-size: var(--festspiele-h2-size); }

    :is(h3, .festspiele-subtitle) {
        color: #6b6b70;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .festspiele-subtitle { text-transform: none; }

    a {
        color: var(--festspiele-primary, var(--festspiele-shell-blue));
        text-decoration: underline;
        text-underline-offset: .2em;
    }

    h3 a { color: inherit; }

    :is(button, input, select, textarea) {
        font-family: inherit;
        line-height: var(--festspiele-text-leading);
    }
    :is(nav, button, input, select, textarea, label) { font-weight: 400; }
    :is(strong, b) { font-weight: 700; }

    .content-text {
        color: var(--festspiele-text, var(--festspiele-shell-ink));
        font-size: var(--festspiele-body-size);
        line-height: var(--festspiele-body-leading);
        overflow-wrap: anywhere;

        :is(h1, h2, h3, h4, h5, h6) {
            margin-block: 0 .65em;
            text-wrap: balance;

            &:not(h3) {
                color: var(--festspiele-primary, var(--festspiele-shell-blue));
            }
        }

        .rte {
            > p { margin-block: 0 1em; }
            > :last-child { margin-block-end: 0; }
        }
    }

    :is(.festspiele-intro, .festspiele-detail__header) > h1 {
        margin-bottom: .1em;
    }

    :is(.festspiele-intro > .rte, .festspiele-detail__intro) {
        font-size: var(--festspiele-intro-size);
        line-height: var(--festspiele-intro-leading);
    }

    .festspiele-intro > .rte { max-inline-size: var(--festspiele-text-max-width, 800px); }
}
