/* ── Story hero ─────────────────────────────────────────── */
.story-hero {
  background: linear-gradient(
    160deg, var(--color-bg-dark) 0%, #252219 100%
  );
  padding: 52px 0 40px;
  position: relative;
  overflow: hidden;
}
.story-hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -30%;
  width: 50%;
  height: 220%;
  background: radial-gradient(ellipse,
    rgba(245,196,0,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.story-hero__inner { position: relative; }

.story-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-yellow-light);
}
.story-hero__trophy { font-size: 1.2rem; }
.story-hero__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240,237,216,0.35);
}
.story-hero__comp {
  color: var(--color-yellow);
  text-decoration: none;
  font-weight: 500;
}
.story-hero__comp:hover { text-decoration: underline; }

.story-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #F0EDD8;
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 16px;
  font-style: italic;
}

.story-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(240,237,216,0.6);
}
.story-hero__sep { opacity: 0.4; }

/* ── Layout ─────────────────────────────────────────────── */
.story-outer {
  background: var(--color-bg-page);
  padding: var(--space-12) 0 var(--space-16);
}
.story-layout {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr;
  gap: 0 var(--space-10);
  align-items: start;
}
@media (max-width: 900px) {
  .story-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Reading progress bar ───────────────────────────────── */
.reading-progress {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: var(--space-8);
  overflow: hidden;
}
.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-yellow);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ── Article ────────────────────────────────────────────── */
.story-article {
  max-width: 680px;
  padding-top: var(--space-4);
}

/* ── Story content typography ───────────────────────────── */
.story-content {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.95;
  color: var(--color-text-body);
  letter-spacing: 0.01em;
}

.story-content p {
  margin-bottom: 1.6em;
}

.story-content p:last-child {
  margin-bottom: 0;
}

/* Drop cap on first letter of first paragraph */
.drop-cap {
  float: left;
  font-family: var(--font-display);
  font-size: 4.2em;
  line-height: 0.78;
  padding-right: 8px;
  padding-top: 6px;
  color: var(--color-yellow-deep);
  font-weight: 700;
}

/* ── End mark ────────────────────────────────────────────── */
.story-end {
  text-align: center;
  margin: var(--space-10) 0 var(--space-8);
}
.story-end__mark {
  font-size: 1.4rem;
  color: var(--color-yellow);
  opacity: 0.6;
  letter-spacing: 0.3em;
}

/* ── Author card ─────────────────────────────────────────── */
.story-author-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-8);
}
.story-author-card__avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-text-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-author-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-ink);
  margin-bottom: 2px;
}
.story-author-card__note {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Share row ───────────────────────────────────────────── */
.story-share {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
}
.story-share__label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.story-share__btns {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.story-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.story-sidebar__note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 1.7;
  font-style: italic;
}

/* ── Sidebar stats ───────────────────────────────────────── */
.story-stat-row {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.story-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.story-stat__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-yellow-deep);
  line-height: 1;
}
.story-stat__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}
