@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #fefdfb;
  --bg-subtle: #f8f6f3;
  --ink: #1c1917;
  --text: #1c1917;
  --text-secondary: #78716c;
  --text-tertiary: #a8a29e;
  --accent: #c2410c;
  --accent-warm: #ea580c;
  --accent-gold: #d97706;
  --accent-soft: rgba(194, 65, 12, 0.08);
  --border: rgba(28, 25, 23, 0.08);
  --border-strong: rgba(28, 25, 23, 0.15);
  --selection: rgba(194, 65, 12, 0.15);
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'DM Sans', -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --content-width: 480px;
  --content-padding: 24px;
  --timeline-slider-width: 36px;
}

[data-theme="dark"] {
  --bg: #171412;
  --bg-subtle: #1f1b18;
  --ink: #fafaf9;
  --text: #fafaf9;
  --text-secondary: #a8a29e;
  --text-tertiary: #78716c;
  --accent: #fb923c;
  --accent-warm: #fdba74;
  --accent-gold: #fbbf24;
  --accent-soft: rgba(251, 146, 60, 0.08);
  --border: rgba(250, 250, 249, 0.06);
  --border-strong: rgba(250, 250, 249, 0.12);
  --selection: rgba(251, 146, 60, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
}

::selection {
  background: var(--selection);
}

/* ═══════════════════════════════════════
   ARTICLE CONTAINER — Centered, full viewport
   ═══════════════════════════════════════ */
#app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px var(--content-padding);
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 56px);
  padding-left: var(--content-padding);
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════
   ARTICLE
   ═══════════════════════════════════════ */
.article {
  max-width: var(--content-width);
  width: 100%;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.article-body {
  cursor: pointer;
}

.article.bump-out {
  transform: translateX(-14px);
  opacity: 0;
}

.article.bump-in {
  transform: translateX(10px);
  opacity: 0;
  transition: none;
}

/* ═══════════════════════════════════════
   READING PROGRESS BAR
   ═══════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
  z-index: 1000;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   READING TIME
   ═══════════════════════════════════════ */
.article-header__read-time {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.article-header {
  padding: 0;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-header__year {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 22px;
}

.article-header__lede {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #6b6560;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-style: italic;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .article-header__lede {
  color: var(--text-secondary);
}

.article-header__ornament {
  display: none;
}

/* ═══════════════════════════════════════
   BODY TEXT
   ═══════════════════════════════════════ */
.article-body > p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text);
  letter-spacing: -0.003em;
  margin-bottom: 24px;
}

.article-body > p:first-of-type {
  margin-top: 4px;
}

/* Drop cap */
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.4em;
  line-height: 0.8;
  padding: 4px 6px 0 0;
  font-weight: 600;
  color: var(--text);
}

/* End mark after last paragraph */
.article-body > p:last-of-type::after {
  content: ' \25A0';
  color: var(--accent);
  font-size: 9px;
  vertical-align: middle;
  margin-left: 4px;
}

.article-body > p strong {
  font-weight: 600;
  color: var(--text);
}

.article-body em {
  font-style: italic;
}

/* ═══════════════════════════════════════
   SECTION HEADINGS (h2)
   ═══════════════════════════════════════ */
.article-body > h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 20px;
  padding-top: 0;
  opacity: 1;
  transform: none;
}

.article-body > h2::after {
  display: none;
}

.article-body > h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   OPTIONS MENU — Fixed bottom-right
   ═══════════════════════════════════════ */
.options-menu {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  right: 16px;
  z-index: 50;
}

.options-menu__trigger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: color 0.2s ease, opacity 0.2s ease;
  letter-spacing: 2px;
}

.options-menu__trigger:hover {
  color: var(--text);
  opacity: 0.8;
}

.options-menu__dropdown {
  position: absolute;
  bottom: 48px;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 4px 0;
  min-width: 150px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.options-menu__dropdown--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[data-theme="dark"] .options-menu__dropdown {
  background: #1e1a17;
  border-color: rgba(250, 250, 249, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.options-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s ease, color 0.1s ease;
  text-align: left;
}

.options-menu__item:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.options-menu__icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.options-menu__item--active {
  color: var(--text);
}

.options-menu__divider {
  height: 1px;
  background: var(--border-strong);
  margin: 4px 0;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   UNLOCK MODAL (long-press year)
   ═══════════════════════════════════════ */
.article-header__year {
  -webkit-touch-callout: none;
  user-select: none;
}

.sort-toggle {
  display: none;
  color: var(--accent);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════
   NOTES (legacy, hidden)
   ═══════════════════════════════════════ */
.article-notes {
  display: none;
}

/* ═══════════════════════════════════════
   TIMELINE BAR — Vertical left rail
   ═══════════════════════════════════════ */
.timeline-bar {
  position: fixed;
  top: 200px;
  bottom: 200px;
  left: max(0px, calc(50% - var(--content-width) / 2 - var(--timeline-slider-width) - 8px));
  width: var(--timeline-slider-width);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.timeline-bar.loaded {
  opacity: 1;
}

.timeline-track {
  position: relative;
  width: 1.5px;
  height: 100%;
  background: var(--border-strong);
  border-radius: 1px;
}

.timeline-range {
  position: absolute;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, var(--accent) 0%, var(--accent-gold) 100%);
  border-radius: 1px;
  bottom: 0;
  top: 0;
  opacity: 0.7;
}

.timeline-handle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.timeline-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.timeline-handle:hover,
.timeline-handle:focus {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.timeline-handle:active {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.1);
}

.timeline-handle-min {
  bottom: 0;
  border-color: var(--accent);
}

.timeline-handle-max {
  top: 0;
  bottom: auto;
  border-color: var(--accent-gold);
}

.timeline-current-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--accent), 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: bottom 0.3s ease, opacity 0.3s ease;
}

.timeline-current-dot.hidden {
  opacity: 0;
}

/* Hide article content while dragging slider */
.article.drag-hidden {
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Drag summary — shown in place of article while dragging */
.drag-summary {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 90;
}

.drag-summary.visible {
  opacity: 1;
}

.drag-summary-range {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.drag-summary-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 600px) {
  :root {
    --content-padding: 20px;
  }

  #app {
    padding-left: max(var(--content-padding), calc(var(--timeline-slider-width) + 8px));
  }

  .article-header__year {
    font-size: 40px;
  }

  .article-header h1 {
    font-size: 24px;
    font-weight: 500;
  }

  .article-header__lede {
    font-size: 16px;
  }

  .article-body > p {
    font-size: 16px;
    line-height: 1.68;
  }

  .article-body > p:last-child {
    padding-bottom: 20px;
  }
}

@media (min-width: 768px) {
  :root {
    --content-padding: 48px;
    --content-width: 600px;
  }

  /* Subtle page background so article lifts off the surface */
  body {
    background: var(--bg-subtle);
  }

  /* ── Article treatment on tablet / desktop ── */
  .article {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 44px;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.04),
      0 4px 12px rgba(0, 0, 0, 0.03),
      0 12px 32px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .article:hover {
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.06),
      0 6px 16px rgba(0, 0, 0, 0.05),
      0 16px 40px rgba(0, 0, 0, 0.03);
    border-color: var(--border-strong);
  }

  [data-theme="dark"] .article {
    background: #1e1a17;
    border-color: rgba(250, 250, 249, 0.08);
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 12px 32px rgba(0, 0, 0, 0.15);
  }

  [data-theme="dark"] .article:hover {
    border-color: rgba(250, 250, 249, 0.12);
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.35),
      0 6px 16px rgba(0, 0, 0, 0.25),
      0 16px 40px rgba(0, 0, 0, 0.18);
  }

  /* Lede border sits inside the article — no need for full-width line */
  .article-header__lede {
    border-bottom-color: var(--border);
  }

  /* ── Constrain timeline slider to article height ── */
  .timeline-bar {
    top: 50%;
    bottom: auto;
    height: min(420px, 60vh);
    transform: translateY(-50%);
  }

  .article-header__year {
    font-size: 52px;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .article-header__lede {
    font-size: 18px;
  }

  .article-body > p {
    font-size: 18px;
    line-height: 1.75;
  }

  .article-body > h2 {
    font-size: 23px;
  }

  .article-body > h3 {
    font-size: 23px;
  }
}

/* ═══════════════════════════════════════
   ONBOARDING HINT
   ═══════════════════════════════════════ */
.onboarding-hint {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.02em;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: hintIn 0.6s ease 0.6s both;
}

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

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

/* ═══════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════ */
.landing {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  animation: fadeIn 0.4s ease both;
}

.landing-masthead {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.landing-masthead__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.landing-masthead__tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
}

.landing-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
}

.sort-group {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
}

.sort-btn {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sort-btn:not(:last-child) {
  border-right: 1px solid var(--border-strong);
}

.sort-btn:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.sort-btn--active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   "CONTINUE READING" LINK
   ═══════════════════════════════════════ */
.continue-reading {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: 16px;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.continue-reading:hover {
  color: var(--accent-warm);
  transform: translateX(2px);
}

.continue-reading:active {
  transform: translateX(1px);
}

/* ═══════════════════════════════════════
   FULL-STORY OVERLAY
   ═══════════════════════════════════════ */
.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.story-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.story-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .story-overlay__backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.story-overlay__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

.story-overlay--open .story-overlay__wrap {
  transform: translateY(0);
}

.story-overlay__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
  z-index: 2010;
  transition: width 80ms linear;
  pointer-events: none;
  border-radius: 16px 16px 0 0;
}

.story-overlay__panel {
  background: var(--bg);
  border-radius: 16px;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 48px 36px 56px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

[data-theme="dark"] .story-overlay__panel {
  background: #231f1b;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .story-overlay__year {
  opacity: 0.85;
}

.story-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2020;
  transition: color 0.15s ease, background 0.15s ease;
}

.story-overlay__close:hover {
  background: var(--border-strong);
  color: var(--text);
}

.story-overlay__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.story-overlay__year {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.story-overlay__header h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}

.story-overlay__body > p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text);
  letter-spacing: -0.003em;
  margin-bottom: 24px;
}

.story-overlay__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.4em;
  line-height: 0.8;
  padding: 4px 6px 0 0;
  font-weight: 600;
  color: var(--text);
}

.story-overlay__body > p:last-of-type::after {
  content: ' \25A0';
  color: var(--accent);
  font-size: 9px;
  vertical-align: middle;
  margin-left: 4px;
}

.story-overlay__body > h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 20px;
}

.story-overlay__body > h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 16px;
}

/* ── Sources section ── */
.story-overlay__sources {
  margin-top: 40px;
  padding-top: 0;
}

.story-overlay__sources-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.story-overlay__sources-label::-webkit-details-marker {
  display: none;
}

.story-overlay__sources-label::after {
  content: ' +';
}

.story-overlay__sources[open] > .story-overlay__sources-label::after {
  content: ' \2212';
}

.story-overlay__sources > p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.story-overlay__drag-handle {
  display: none;
}

/* ── Overlay responsive ── */
@media (max-width: 600px) {
  .story-overlay__wrap {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    width: 100%;
    align-self: flex-end;
  }

  .story-overlay__panel {
    border-radius: 12px 12px 0 0;
    padding: 36px 22px 56px;
  }

  .story-overlay__progress {
    border-radius: 12px 12px 0 0;
  }

  .story-overlay__drag-handle {
    display: block;
    width: 32px;
    height: 4px;
    background: var(--border-strong);
    border-radius: 2px;
    margin: 0 auto 20px;
    flex-shrink: 0;
  }

  .story-overlay__year {
    font-size: 34px;
  }

  .story-overlay__header h1 {
    font-size: 22px;
  }

  .story-overlay__body > p {
    font-size: 16px;
    line-height: 1.68;
  }

  .story-overlay__body > h2 {
    font-size: 19px;
  }

  .story-overlay__body > h3 {
    font-size: 19px;
  }
}
