/* ============================================================
   S778 dnevnik (blog): index cards + article template.
   Liquid port: templates/blog.liquid + templates/article.liquid.
   The journal register is the site's analog collage language:
   photos sit on the paper like prints laid on a desk (one-sun
   shadow, slight per-card tilt), never web-flat thumbnails.
   ============================================================ */

.blog-band {
  justify-content: flex-start;
  padding-top: clamp(8rem, 16vh, 11rem);   /* clear the resting pill nav */
  padding-bottom: clamp(9rem, 18vh, 13rem);
}
.blog-head {
  width: min(1200px, 100%);
  margin: 0 auto;
}
.blog-head h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  margin: .4rem 0 1rem;
}
.blog-lead { opacity: .8; max-width: 44ch; }

.blog-cards {
  width: min(1200px, 100%);
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
}
.bcard {
  display: block;
  color: inherit;
  text-decoration: none;
}
/* the print: white paper mat + the house one-sun object shadow; each card
   lands at its own slight tilt like a photo laid on the desk. The tilt is
   TRANSFORM (rotate in a hover-transition pair), not the individual
   rotate: property - house rule 6, stacking contexts. */
.bcard-photo {
  display: block;
  padding: 10px 10px 12px;
  background: var(--paper);
  box-shadow: var(--sun-shadow-soft);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .5s var(--ease-settle);
}
.bcard:nth-child(1) .bcard-photo { --tilt: -1.4deg; }
.bcard:nth-child(2) .bcard-photo { --tilt: .9deg; }
.bcard:nth-child(3) .bcard-photo { --tilt: 1.8deg; }
.bcard:hover .bcard-photo { transform: rotate(0deg) translateY(-4px); }
.bcard-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.bcard-kicker {
  display: block;
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.bcard-title {
  display: block;
  margin-top: .45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .04em;
  line-height: 1.25;
}
.bcard-excerpt {
  display: block;
  margin-top: .5rem;
  font-size: .92rem;
  opacity: .72;
  max-width: 34ch;
}
.bcard-more {
  display: inline-block;
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: .35em;
}
.bcard:hover .bcard-title { color: var(--bronze-deep); }
@media (max-width: 900px) {
  .blog-cards { grid-template-columns: 1fr; gap: 3.2rem; }
  .bcard { max-width: 30rem; }
}

/* ---------- article ---------- */
.article {
  width: min(680px, 100%);
  margin: 0 auto;
}
.article-back {
  display: inline-block;
  margin-bottom: 2.2rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: .65;
}
.article-back::before { content: "\2190\00a0"; }
.article-back:hover { opacity: 1; color: var(--bronze-deep); }
.article h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.12;
  margin: .4rem 0 1.2rem;
}
.article-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  opacity: .85;
  max-width: none;
}
.article > p { max-width: none; margin: 1.4rem 0; }
.article-figure {
  margin: clamp(2.2rem, 5vh, 3.4rem) 0;
  /* the print treatment again: paper mat + one-sun shadow + a breath of
     tilt, so the article photo belongs to the same desk as the cards */
  padding: 10px 10px 12px;
  background: var(--paper);
  box-shadow: var(--sun-shadow-soft);
  transform: rotate(-.8deg);
}
.article-figure img { display: block; width: 100%; }
.article-figure figcaption {
  padding-top: .7rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  opacity: .6;
  text-align: center;
}
.article-quote {
  margin: clamp(2.2rem, 5vh, 3.2rem) 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--bronze);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .05em;
  line-height: 1.4;
}
.article-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
}
@media (prefers-reduced-motion: reduce) {
  .bcard-photo { transition: none; }
}
