/* Post covers: the gradient panel that stands in for a picture, with the Altigrid symbol in the middle.
   One set of looks shared by the homepage Insights cards, the blog listing cards (static/posts.js) and
   the cover at the top of each post (static/blog-post.css), so a post looks the same in all three.
   A post's look is the "cover" field in blog/posts.json; each post page uses the same class.
   The symbol is altigrid-logo-footer.svg used as a mask, so its color follows --cover-mark:
   white on the dark looks, black on the light one. */

.cover {
    --cover-mark: #ffffff;
    display: grid;
    place-items: center;
    background-color: #000000;
}

/* The symbol: about 5% of the cover's width (16px on a phone-width cover, about 38px on a wide one), never below 16px */
.cover::after {
    content: "";
    grid-area: 1 / 1;
    width: max(1rem, 4.8%);
    aspect-ratio: 80.925 / 71.5;
    background-color: var(--cover-mark);
    -webkit-mask: url("altigrid-logo-footer.svg") center / contain no-repeat;
    mask: url("altigrid-logo-footer.svg") center / contain no-repeat;
}

.cover--grey-black { background-image: linear-gradient(160deg, #6b6b70 0%, #0a0a0a 100%); }
.cover--black-white { background-image: linear-gradient(135deg, #000000 0%, #000000 35%, #f2f2f2 100%); }
.cover--black { background-image: none; }
.cover--black-grey { background-image: linear-gradient(to bottom, #000000 0%, #52525b 100%); }
.cover--glow { background-image: radial-gradient(circle at 50% 50%, #3f3f46 0%, #000000 70%); }

.cover--white-grey {
    --cover-mark: #000000;
    background-image: linear-gradient(160deg, #ffffff 0%, #c4c4c8 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); /* a faint edge, so the light end doesn't melt into the page */
}
