body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ── latest page ── */
.latest-main {
  flex: 1;
  margin: 72px auto 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 780px;
  padding: 3rem 2rem 5rem;
  box-sizing: border-box;
}

.latest-header {
  margin-bottom: 2.5rem;
}

.latest-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-nav);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00a846;
  margin-bottom: 0.6rem;
}

.latest-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00a846;
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

.latest-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.latest-sub {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  color: var(--fg);
  filter: opacity(0.38);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* ── featured card (most recent) ── */
.latest-featured {
  display: block;
  text-decoration: none;
  color: var(--fg);
  border: 1.5px solid #00a846;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: fadeSlideIn 0.5s ease both;
}

.latest-featured:hover {
  box-shadow: 0 6px 28px color-mix(in srgb, #00a846 18%, transparent);
  transform: translateY(-2px);
}

.latest-featured-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.latest-featured-body {
  padding: 1.6rem 1.8rem 1.8rem;
}

.latest-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-nav);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00a846;
  margin-bottom: 0.7rem;
}

.latest-featured-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00a846;
  animation: livePulse 1.8s ease-in-out infinite;
}

.latest-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.latest-featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.latest-featured-desc {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  filter: opacity(0.6);
  margin-bottom: 1rem;
}

.latest-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.latest-featured-date {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  filter: opacity(0.35);
}

.latest-featured-section {
  font-family: var(--font-nav);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00a846;
  border: 1.5px solid #00a846;
  padding: 0.2em 0.6em;
  border-radius: 2px;
}

/* ── list of older posts ── */
.latest-list-heading {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  filter: opacity(0.35);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0.75rem;
  border-radius: 3px;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 6%, transparent);
  transition: background-color 0.15s ease;
  animation: fadeSlideIn 0.4s ease both;
}

.latest-item:hover {
  background-color: color-mix(in srgb, var(--fg) 3%, transparent);
}

.latest-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.latest-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.latest-item-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.latest-item-desc {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  line-height: 1.5;
  filter: opacity(0.5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.latest-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.latest-item-date {
  font-family: var(--font-nav);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  filter: opacity(0.32);
  white-space: nowrap;
}

.latest-item-section {
  font-family: var(--font-nav);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00a846;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* stagger list items */
.latest-item:nth-child(1)  { animation-delay: 0.05s; }
.latest-item:nth-child(2)  { animation-delay: 0.10s; }
.latest-item:nth-child(3)  { animation-delay: 0.15s; }
.latest-item:nth-child(4)  { animation-delay: 0.20s; }
.latest-item:nth-child(5)  { animation-delay: 0.25s; }
.latest-item:nth-child(6)  { animation-delay: 0.30s; }
.latest-item:nth-child(7)  { animation-delay: 0.35s; }
.latest-item:nth-child(8)  { animation-delay: 0.40s; }

/* ── empty state ── */
.latest-empty {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  filter: opacity(0.4);
  text-align: center;
  padding: 3rem 0;
}

/* ── responsive ── */
@media (max-width: 600px) {
  .latest-main { padding: 2rem 1rem 4rem; }

  .latest-item {
    grid-template-columns: 1fr;
  }

  .latest-item-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .latest-featured-img { height: 180px; }
  .latest-featured-body { padding: 1.2rem; }
}
