/* Shared by the public homepage and the live Studio preview. */
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: var(--hero-height, 460px);
  background: var(--surface-2);
  isolation: isolate;
}
.hero-card__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center var(--hero-image-position, 50%);
  transition: transform 1.1s var(--ease), filter 0.5s var(--ease);
}
.hero-card:hover .hero-card__media { transform: scale(1.045); }
.hero-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 14, .72) 0%, rgba(8, 10, 14, .32) 50%, rgba(8, 10, 14, .08) 100%);
  opacity: var(--hero-shadow, 1);
  pointer-events: none;
  z-index: 1;
}
.hero-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: var(--hero-height, 460px);
  padding: clamp(22px, 3vw, 38px);
  color: #fff;
}
.hero-card__body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--hero-shadow, 1);
  /* Follow the content height: long titles must not rise above the dark fade. */
  background: linear-gradient(to top, rgba(8, 10, 14, .98) 0%, rgba(8, 10, 14, .90) 32%, rgba(8, 10, 14, .76) 60%, rgba(8, 10, 14, .35) 82%, rgba(8, 10, 14, 0) 100%);
}
.hero-card__body {
  text-shadow: 0 2px 6px rgba(0, 0, 0, calc(.95 * var(--hero-shadow, 1)));
}
.hero-card__top { position: absolute; top: clamp(18px, 2.4vw, 26px); left: clamp(18px, 2.4vw, 26px); display: flex; gap: 8px; z-index: 2; }
.hero-card .chip { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); color: #fff; backdrop-filter: blur(8px); }
.hero-card h2 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 22ch;
}
.hero-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  max-width: 52ch;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.92);
  padding-top: 4px;
}
.hero-card__meta .avatar { width: 32px; height: 32px; border: 2px solid rgba(255, 255, 255, 0.35); }


/* Shared latest-post sample and homepage list. */
.latest-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.latest-item--with-image { grid-template-columns: min(var(--latest-thumbnail-size, 64px), 18vw) minmax(0, 1fr); }
.latest-item__image { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.latest-item:last-child { border-bottom: 0; }
.latest-item__index {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-3);
  line-height: 1.3;
  transition: color 0.2s var(--ease);
}
.latest-item:hover .latest-item__index { color: var(--accent); }
.latest-item__body { min-width: 0; }
.latest-item__cat {
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 5px; display: block;
}
.latest-item h3 {
  font-size: 1rem;
  font-weight: 580;
  line-height: 1.32;
  letter-spacing: -0.012em;
  margin: 0 0 6px;
  transition: color 0.2s var(--ease);
}
.latest-item:hover h3 { color: var(--accent); }
.latest-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 0.76rem; color: var(--ink-3); }
.latest-item__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

