/* yvesvekemans.com: the look of the former WordPress.com theme Cubic. Black and white, thin uppercase headings,
   square photo tiles with the title over the picture, teal links. */
:root {
  --brand: #1f9aa4;
  --brand-dark: #177a82;
  --brand-border: #177a82;
  --accent: #1f9aa4;
  --accent-dark: #177a82;
  --dark: #111;
  --text: #222;
  --heading: #111;
  --nav: #111;
  --body-size: 18px;
  --body-line: 1.6;
  --h2-size: 32px;
  --button-size: 14px;
}
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
main h1, main h2, .post__header h1 { font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--heading); }
.post__header, .post__header h1, .post__meta { text-align: center; }
.post__tags { justify-content: center; }
.post__header h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.3; }
.post__body, .post__header { max-width: 680px; margin-inline: auto; }
.post__body a, .text a, .list a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.post__cover { border-radius: 0; }
.post__body img { border-radius: 0; }

.site-header { background: #fff; box-shadow: none; border-bottom: 1px solid #e5e5e5; }
.site-header__logo img { width: 360px; height: auto; }
.site-nav a { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--nav); }
.site-header__login { border-radius: 0; background: var(--dark); color: #fff; text-shadow: none; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.button { border-radius: 0; text-shadow: none; letter-spacing: 1px; text-transform: uppercase; }

/* The post list: square tiles edge to edge, date and title over a dark band on the picture. */
.post-grid { gap: 0; }
.post-card { position: relative; aspect-ratio: 1 / 1; border-radius: 0; box-shadow: none; background: #111; }
.post-card img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.post-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 22px; gap: 6px; text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.45) 70%, rgba(0,0,0,0)); }
.post-card h2 { order: 2; color: #fff; font-weight: 400; font-size: 21px; letter-spacing: 1.5px; text-transform: uppercase; }
.post-card__meta { order: 1; color: #fff; font-size: 15px; }
.post-card__intro, .post-card__tags { display: none; }
.post-card:hover h2 { text-decoration: none; }
.post-card:hover img { opacity: .85; }

/* The newest posts on the home page: the same tiles, the whole tile is the link. */
.card-grid:has(.article-card) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.article-card { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #111; border-radius: 0; box-shadow: none; padding: 0; }
.article-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.article-card h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 20px 22px; text-align: center; color: #fff;
  font-weight: 400; font-size: 20px; letter-spacing: 1.5px; text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.45) 70%, rgba(0,0,0,0)); }
.article-card .button { position: absolute; inset: 0; z-index: 1; opacity: 0; }
.article-card:hover img { opacity: .85; }
@media (max-width: 900px) { .card-grid:has(.article-card) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid:has(.article-card) { grid-template-columns: 1fr; } }

.site-footer { background: var(--dark); }
.site-footer__columns { display: block; padding: 32px 24px; color: #fff; font-size: 14px; text-align: center; }
.site-footer__columns a { color: #fff; text-decoration: underline; }
.site-footer__columns .site-footer__legal { text-align: center; }
.site-footer__columns > div:first-child, .site-footer__right { display: none; }

@media (max-width: 680px) {
  :root { --h2-size: 26px; --body-size: 17px; }
  .site-header__logo img { width: 210px; }
  .post-card h2 { font-size: 18px; }
}
