/* New shared footer and illustrated entry templates, version 5.3.1. */
.dj-header .dj-brand__note { text-transform: none; letter-spacing: 0.02em; }

.dj-blog { padding-block: clamp(2.5rem, 4vw, 4rem); }
.dj-blog .dj-archive-head {
  align-items: start;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: 0;
}
.dj-blog .dj-page-title { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.12; }
.dj-blog .dj-archive-head > p { margin: 0; max-width: 52ch; font-size: 1rem; line-height: 1.65; }
.dj-blog__topics { margin-bottom: 1rem; }
.dj-blog__topic-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.dj-blog__topic-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--dj-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.25em;
}
.dj-blog__topic-links a[aria-current="page"],
.dj-blog__topic-links a:hover { color: var(--dj-blue-dark); text-decoration: underline; }

.dj-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 1.75rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--dj-line);
}
.dj-entry--text-only { grid-template-columns: minmax(0, 1fr); }
.dj-entry__media { width: 100%; aspect-ratio: 3 / 2; }
.dj-entry__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.dj-entry__copy { min-width: 0; max-width: 72ch; }
.dj-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0 0 0.55rem;
  color: var(--dj-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.dj-entry__meta a { color: var(--dj-blue-dark); font-weight: 600; text-underline-offset: 0.2em; }
.dj-entry__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.dj-entry__title a { color: var(--dj-ink); text-decoration: none; }
.dj-entry__title a:hover { color: var(--dj-blue-dark); text-decoration: underline; text-underline-offset: 0.12em; }
.dj-entry__excerpt { margin: 0; color: var(--dj-muted); font-size: 0.94rem; line-height: 1.65; }

.dj-site-footer {
  padding-block: 2.5rem 0.75rem;
  border-top: 1px solid var(--dj-line);
  background: var(--dj-surface);
  color: var(--dj-muted);
}
.dj-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(9rem, 0.5fr);
  gap: 1.5rem 3rem;
  padding-bottom: 1.5rem;
}
.dj-site-footer__name {
  display: inline-block;
  color: var(--dj-ink);
  font-family: var(--dj-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.dj-site-footer__identity p { max-width: 29ch; margin: 0.65rem 0 0; font-size: 0.87rem; line-height: 1.65; }
.dj-site-footer__label { margin: 0 0 0.35rem; color: var(--dj-ink); font-size: 0.9rem; font-weight: 650; }
.dj-site-footer__nav ul { display: grid; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.dj-site-footer__pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dj-site-footer__nav a,
.dj-site-footer__base a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--dj-blue-dark);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 0.2em;
}
.dj-site-footer a:hover { color: var(--dj-ink); text-decoration: underline; }
.dj-site-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--dj-line);
  padding-top: 0.5rem;
}
.dj-site-footer__base p { margin: 0; font-size: 0.8rem; line-height: 1.5; }
.dj-site-footer__base a { gap: 0.35rem; font-size: 0.8rem; }
.dj-site-footer .dj-cookie-status:empty { display: none; }

@media (max-width: 820px) {
  .dj-header .dj-header__inner { display: flex; justify-content: space-between; min-height: 4.75rem; gap: 0.8rem; }
  .dj-header .dj-brand { text-align: left; }
  .dj-header .dj-brand__name { font-size: clamp(1.1rem, 3.8vw, 1.45rem); }
  .dj-header .dj-brand__note { font-size: 0.7rem; }
  .dj-menu { flex-shrink: 0; }
  .dj-menu__trigger { min-width: 3.75rem; min-height: 2.75rem; justify-content: end; }
  .dj-site-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(8rem, 0.7fr); gap: 1.4rem 2rem; }
  .dj-site-footer__identity { grid-column: 1 / -1; }
  .dj-site-footer__identity p { max-width: none; }
}
@media (max-width: 680px) {
  .dj-entry { grid-template-columns: 132px minmax(0, 1fr); gap: 1rem; }
  .dj-entry--text-only { grid-template-columns: minmax(0, 1fr); }
  .dj-entry__media .dj-ai-badge { padding: 0.3rem 0.4rem; font-size: 0.65rem; }
  .dj-entry__meta { font-size: 0.76rem; }
  .dj-site-footer { padding-top: 1.8rem; }
}
@media (max-width: 460px) {
  .dj-entry { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .dj-entry__media .dj-ai-badge { padding: 0.45rem 0.6rem; font-size: 0.72rem; }
  .dj-site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .dj-site-footer__identity { grid-column: auto; }
  .dj-site-footer__base { align-items: start; }
}
@media print {
  .dj-site-footer, .dj-entry__media { display: none; }
  .dj-entry { display: block; break-inside: avoid; }
}
