/* Moonbrim — /stories/ section stylesheet (generator-owned).
   Loaded ALONGSIDE /assets/style.css, which supplies every shared token and
   base component this file reuses (--navy-*/--gold*/--ink*, .page, .card,
   .social-pill, .back-link, .hint, the serif heading font). Regenerated
   deterministically by pipeline/site_gen.py on every run — hand edits here
   will be overwritten on the next generate. */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1080px;
  margin-bottom: 2.5rem;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 200, 121, 0.5);
  box-shadow: 0 10px 30px rgba(242, 200, 121, 0.12);
}

.story-card h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.story-card .tease {
  margin: 0;
  flex: 1;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.02);
}

.badge.is-live {
  color: var(--gold-soft);
  border-color: rgba(242, 200, 121, 0.45);
}

.narration p {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 0 0 1.2rem;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  margin: 1.75rem auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.75rem 0;
}
