a {
    text-decoration: none;
}

/*
 * Index-page application cards.
 *
 * The picture is a generated background (core/vignettes.py) carrying no text,
 * and the card's title sits over it in HTML - so the title translates with the
 * page instead of being baked, once per language, into an image.
 */

.vignette {
    position: relative;
    overflow: hidden;
    /* Follows the card's own rounding, so the image reaches the border on
     * every side. Without it the picture sat in a visible frame of card
     * background down the left and right edges. */
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.vignette img {
    /* Block, not inline: an inline image sits on the text baseline and leaves
     * a strip of card showing underneath it. */
    display: block;
    width: 100%;
    height: auto;
}

/* Darkens the head of the picture so the title stays readable whichever of the
 * twelve palettes the application drew, without dimming the whole image. */
.vignette::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 62%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.vignette-title {
    position: absolute;
    top: 1.1rem;
    left: 1.25rem;
    /* Stops short of the right-hand third, which is where the vignette's glyph
     * is drawn: a long name wraps onto a second line instead of running
     * underneath it. */
    right: 38%;
    /* Above the scrim, which is drawn after the image. */
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}

.vignette-title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: .5rem;
    border-radius: 2px;
    background: rgba(255, 255, 255, .75);
}

/* An application the organization does not licence: the same picture, muted. */
.vignette-muted img {
    filter: grayscale(1);
    opacity: .55;
}
