/* ===========================================================================
   Journal: hero with the featured article, the filter chips and the archive.
   The article layout itself is in news.css, which this page also loads when
   viewing a post.
   =========================================================================== */

.journal-hero {
  overflow: hidden;
  padding: clamp(56px, 7vw, 100px) clamp(18px, 4vw, 72px);
  background:
    radial-gradient(120% 90% at 10% 0%, #e4f1dd 0%, rgba(228, 241, 221, 0) 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(199, 242, 77, 0.22) 0%, rgba(199, 242, 77, 0) 70%),
    linear-gradient(180deg, #eaf3e7 0%, #f6faf4 55%, #ffffff 100%);
}

.journal-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
}

.journal-hero__text { max-width: 580px; }

/* ---- Featured ------------------------------------------------------------- */
.featured {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(12, 61, 32, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  box-shadow: 0 40px 70px -46px rgba(12, 61, 32, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.featured:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 50px 80px -46px rgba(12, 61, 32, 0.55);
}

.featured__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e4ece2;
}

.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.featured:hover .featured__media img { transform: scale(1.04); }

.featured__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-deep);
}

.featured__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 2.4vw, 32px);
}

.featured__title {
  margin-top: 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--page-ink);
}

.featured__excerpt {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted-alt);
  text-wrap: pretty;
}

.featured .link-more { margin-top: 18px; }

/* ---- Archive -------------------------------------------------------------- */
.archive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.archive__count {
  font-size: 15px;
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.chip {
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(12, 61, 32, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--page-ink);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chip:hover { border-color: rgba(12, 61, 32, 0.35); }

.chip[aria-pressed='true'] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2.4vw, 32px);
  margin-top: clamp(32px, 4vw, 48px);
}

.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
}

.post-card:hover { color: inherit; }

.post-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  border-radius: 22px;
  overflow: hidden;
  background: #e4ece2;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #143a26;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

.post-card__title {
  margin-top: 10px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--page-ink);
  text-wrap: balance;
}

.post-card__excerpt {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted-alt);
  text-wrap: pretty;
}

.post-card .link-more { margin-top: 16px; }

@media (max-width: 1080px) {
  .archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .journal-hero__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .archive__grid { grid-template-columns: minmax(0, 1fr); }
  .featured { border-radius: 22px; }
}
