.reading-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.reading-article h1 {
  letter-spacing: -.04em;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-family: Instrument Serif, Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
}

.reading-article h1:after {
  display: none;
}

.reading-article h2 {
  letter-spacing: -.03em;
  color: var(--text-color);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-family: Instrument Serif, Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.reading-article h3 {
  letter-spacing: -.01em;
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
  font-family: Instrument Serif, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.reading-article h3:after {
  display: none;
}

.reading-article p {
  letter-spacing: .008em;
  color: var(--text-color);
  opacity: .95;
  -webkit-font-smoothing: antialiased;
  margin-bottom: 1.75rem;
  font-family: Georgia, Times New Roman, serif;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.85;
}

.reading-article .article-body > p:first-of-type:first-letter {
  float: left;
  color: var(--text-color);
  margin-top: .1em;
  margin-right: .1em;
  font-family: Instrument Serif, Georgia, serif;
  font-size: 3.5em;
  font-weight: 400;
  line-height: .8;
}

.reading-article blockquote, .reading-article .pull-quote {
  border-left: 2px solid var(--text-color);
  color: var(--text-color);
  opacity: .4;
  margin: 2.5rem 0;
  padding: .5rem 0 .5rem 1.75rem;
  font-family: Georgia, Times New Roman, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.75;
}

.reading-article blockquote p {
  opacity: 1;
  margin-bottom: 0;
}

.reading-article .section-break {
  background: linear-gradient(90deg, #0000, #80808026, #0000);
  border: none;
  height: 1px;
  margin: 3.5rem 0;
}

.article-header {
  text-align: center;
  border-bottom: 1px solid #0000000f;
  margin-bottom: 3rem;
  padding: 4rem 0 2rem;
}

body.dark-mode .article-header {
  border-bottom-color: #ffffff0f;
}

.article-header .category-label {
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-color);
  opacity: .3;
  margin-bottom: 1.5rem;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.article-meta-bar {
  color: var(--text-color);
  opacity: .5;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: .85rem;
  display: flex;
}

.article-meta-bar span {
  align-items: center;
  gap: .4rem;
  display: flex;
}

.read-listen-toggle {
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  display: flex;
}

.toggle-btn {
  color: var(--text-color);
  cursor: pointer;
  background: none;
  border: 1px solid #0000001a;
  border-radius: 25px;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.5rem;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .3s;
  display: inline-flex;
}

.toggle-btn.active, .toggle-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.toggle-btn.listen-toggle.active, .toggle-btn.listen-toggle:hover {
  background: var(--gold-accent, #d4a843);
  border-color: var(--gold-accent, #d4a843);
  color: #111;
}

body.dark-mode .toggle-btn {
  border-color: #ffffff1a;
}

.audio-player-bar {
  z-index: 1000;
  backdrop-filter: blur(20px);
  opacity: 0;
  background: #fffffff2;
  border-bottom: 1px solid #0000000f;
  align-items: center;
  gap: 1rem;
  padding: .875rem 2rem;
  transition: all .5s;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
}

body.dark-mode .audio-player-bar {
  background: #06070beb;
  border-bottom-color: #ffffff0a;
}

.audio-player-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

.audio-play-btn {
  background: var(--gold-accent, #d4a843);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  transition: all .2s;
  display: flex;
}

.audio-play-btn:hover {
  background: var(--gold-accent-hover, #e8c460);
  transform: scale(1.08);
}

.audio-play-btn svg {
  fill: #111;
  margin-left: 2px;
}

.audio-play-btn.playing svg {
  margin-left: 0;
}

.audio-player-title {
  color: var(--text-color);
  opacity: .6;
  font-family: Instrument Serif, Georgia, serif;
  font-size: .875rem;
}

.audio-progress-wrap {
  cursor: pointer;
  background: #00000014;
  border-radius: 2px;
  flex: 1;
  min-width: 100px;
  height: 3px;
  position: relative;
}

body.dark-mode .audio-progress-wrap {
  background: #ffffff0f;
}

.audio-progress-fill {
  background: linear-gradient(90deg, var(--gold-accent, #d4a843), var(--gold-accent-hover, #e8c460));
  border-radius: 2px;
  width: 0%;
  height: 100%;
  transition: width .3s linear;
  position: relative;
}

.audio-progress-fill:after {
  content: "";
  background: var(--gold-accent, #d4a843);
  opacity: 0;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transition: opacity .2s;
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
}

.audio-progress-wrap:hover .audio-progress-fill:after {
  opacity: 1;
}

.audio-player-time {
  color: var(--text-color);
  opacity: .3;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-size: .75rem;
}

.reading-mode-light {
  color: #1a1a1a;
  background-color: #fafaf8;
}

.reading-mode-dark {
  color: #e8e6e3;
  background-color: #06070b;
}

.reading-article .section-highlight {
  border-radius: 4px;
  padding: .25rem 0;
  transition: background-color .5s;
}

.reading-article .section-highlight.active {
  background-color: #d4a84314;
}

@media print {
  .audio-player-bar, .read-listen-toggle, header, footer, .search-container, #back-to-top {
    display: none !important;
  }

  .reading-article {
    max-width: 100%;
    padding: 0;
    font-size: 12pt;
    line-height: 1.5;
  }

  .reading-article h1 {
    font-size: 24pt;
  }

  .reading-article h2 {
    font-size: 18pt;
  }

  .reading-article p {
    color: #000;
    opacity: 1;
    font-size: 12pt;
  }
}

@media (width <= 768px) {
  .reading-article {
    padding: 0 1.25rem 4rem;
  }

  .article-header {
    padding: 2.5rem 0 1.5rem;
  }

  .audio-player-bar {
    gap: .625rem;
    padding: .625rem 1rem;
  }

  .audio-player-title {
    display: none;
  }

  .read-listen-toggle {
    flex-direction: column;
    align-items: center;
  }
}
