*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f7f2ea;
  --paper: #fffcf7;
  --ink: #2a2218;
  --muted: #6e6254;
  --accent: #b86a2e;
  --accent-light: #f4e6d6;
  --line: #dcc9b4;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff9f0 0%, var(--bg) 30%, #efe8dc 100%);
  line-height: 1.65;
}

.story {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.story-intro {
  text-align: center;
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.story-badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-intro h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
}

.story-lead {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-style: italic;
}

.story-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.75rem;
}

.chapter {
  position: relative;
  padding-left: 1.35rem;
  border-left: 3px solid var(--line);
}

.chapter::before {
  content: '';
  position: absolute;
  left: -0.55rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.chapter-num {
  margin: 0 0 0.25rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.2;
}

.chapter-text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.chapter-media {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(42, 34, 24, 0.08);
  box-shadow: 0 10px 32px rgba(42, 34, 24, 0.07);
}

.chapter-media img,
.chapter-media video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.chapter-media video {
  background: #1a1612;
  max-height: 480px;
  object-fit: contain;
}

.chapter-media figcaption {
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.chapter-media--video figcaption {
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}

.story-end {
  margin-top: 3rem;
  padding: 1.75rem 1.35rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--paper) 0%, var(--accent-light) 100%);
  border: 1px solid rgba(184, 106, 46, 0.2);
}

.story-end h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.story-end p {
  margin: 0;
  font-size: 1.02rem;
}

.story-end strong {
  color: var(--accent);
}

.story-end-note {
  margin-top: 0.6rem !important;
  font-size: 0.92rem !important;
  color: var(--muted);
  font-style: italic;
}

@media (min-width: 560px) {
  .story {
    padding-inline: 1.75rem;
  }

  .chapter {
    padding-left: 1.75rem;
  }
}
