/* ===== 250 MORE YEARS — SHARED STYLES ===== */

:root {
  --ink: #1c1c1c;
  --paper: #faf9f6;
  --paper-dark: #f0eeea;
  --accent: #2c3e50;
  --accent-light: #3d5166;
  --muted: #666660;
  --rule: #d4d0c8;
  --highlight: rgba(44, 62, 80, 0.04);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', 'Libre Baskerville', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(44, 62, 80, 0.12);
  color: var(--ink);
}

/* ===== SITE NAV (top of every writing) ===== */
.site-nav {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background: var(--paper);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(44, 62, 80, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-rule {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: 2rem auto;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

.hero-scroll {
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.hero-scroll a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s;
}

.hero-scroll a:hover { color: var(--accent); }

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== STICKY NAV (appears on scroll) ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 2rem;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticky-nav.visible { transform: translateY(0); }

.sticky-nav-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.sticky-nav-back {
  position: absolute;
  left: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.sticky-nav-back:hover {
  color: var(--accent);
}

/* ===== ARTICLE ===== */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.article p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.82;
  color: #2a2520;
  hyphens: auto;
}

.article p.first-para::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.15em;
  padding-top: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

/* Section headers */
.section-header {
  margin: 5rem 0 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  position: relative;
}

.section-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Pull quotes */
.pull-quote {
  margin: 3.5rem -2rem;
  padding: 2.5rem 3rem;
  position: relative;
  background: var(--highlight);
  border-left: 3px solid var(--accent);
}

.pull-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.pull-quote .attribution {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}

/* Emphasis paragraph */
.emphasis {
  font-size: 1.25rem !important;
  font-weight: 500;
  color: var(--ink) !important;
  line-height: 1.7 !important;
}

/* The four demands */
.demand {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--rule);
}

.demand p {
  font-size: 1.1rem;
}

.demand-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* Final line */
.final-line {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.final-line p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.return-link {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.3s;
}

.return-link:hover {
  color: var(--accent);
}

.footer-share {
  margin-bottom: 2rem;
}

.footer-share-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.share-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.footer-note {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  max-width: 480px;
  margin: 2rem auto 0;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links .dot {
  color: var(--rule);
  font-size: 0.5rem;
}

/* ===== FRONTISPIECE ===== */
.frontispiece {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background: var(--paper);
}

.frontispiece::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(44, 62, 80, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.frontispiece-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.frontispiece-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.frontispiece-ethos {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

/* ===== WRITINGS LIST ===== */
.writings-list {
  max-width: 540px;
  width: 100%;
  margin: 3.5rem auto 0;
  text-align: left;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.writing-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem 0 2rem 0;
  border-top: 1px solid var(--rule);
  transition: padding-left 0.3s ease;
}

.writing-link:last-child {
  border-bottom: none;
}

.writing-link:hover {
  padding-left: 1rem;
}

.writing-link-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.writing-link-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  display: block;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.writing-link-subtitle {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  display: block;
  line-height: 1.5;
}

.frontispiece-footer {
  text-align: center;
  padding: 3rem 2rem;
}

/* ===== FEATURED LATEST ===== */
.featured-latest {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.featured-latest-inner {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.featured-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
  transition: padding-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-link:hover {
  padding-left: 1rem;
}

.featured-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
}

.featured-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  display: block;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.featured-link:hover .featured-title {
  color: var(--accent);
}

.featured-subtitle {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.featured-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

/* ===== COLLECTION ===== */
.collection-link {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.collection-see-all {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.3s, padding-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-see-all:hover {
  color: var(--ink);
  padding-left: 0.75rem;
}

/* ===== ORIGIN ESSAY (bookend) ===== */
.origin-essay {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.origin-essay-inner {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.origin-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1.25rem;
}

.origin-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.origin-link:hover {
  padding-left: 0.75rem;
}

.origin-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--ink);
  display: block;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}

.origin-link:hover .origin-title {
  color: var(--accent);
}

.origin-subtitle {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.origin-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  transition: color 0.3s;
}

.origin-link:hover .origin-cta {
  color: var(--accent);
}

/* ===== COLLECTION PAGE ===== */
.collection-page {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.collection-page-inner {
  padding-top: 1rem;
}

.collection-page .writings-list {
  margin: 0;
  opacity: 1;
  animation: none;
}

/* ===== LISTEN CTA ===== */
.listen-cta {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.listen-cta-inner {
  text-align: center;
}

/* ===== YOUTUBE LINKS (essay pages) ===== */
.youtube-links {
  margin-bottom: 2rem;
}

/* ===== YOUTUBE CTA (homepage) ===== */
.youtube-cta {
  max-width: 540px;
  width: 100%;
  margin: 3rem auto 0;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.youtube-cta-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.8rem 2rem;
  border: 1px solid var(--rule);
  transition: border-color 0.3s, background 0.3s;
}

.youtube-cta-link:hover {
  border-color: var(--accent);
  background: rgba(44, 62, 80, 0.03);
}

.youtube-cta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.youtube-cta-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  display: block;
  line-height: 1.5;
}

/* ===== SUBSCRIBE CTA ===== */
.subscribe-cta {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.subscribe-cta-inner {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  text-align: center;
}

.subscribe-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.subscribe-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.6rem 1rem;
  flex: 1;
  min-width: 0;
  outline: none;
  transition: border-color 0.3s;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--muted);
  font-style: italic;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
}

.subscribe-form button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.subscribe-form button:disabled {
  cursor: default;
  opacity: 0.6;
}

.subscribe-form button.sending {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  animation: sendPulse 1.4s ease-in-out infinite;
}

@keyframes sendPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.subscribe-confirm {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.subscribe-confirm.visible {
  opacity: 1;
  max-height: 3rem;
}

.subscribe-form.submitted {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease 0.1s;
}

/* Footer subscribe (essay pages) */
.footer-subscribe {
  margin: 2rem 0;
}

.footer-subscribe .subscribe-label {
  margin-bottom: 0.5rem;
}

.footer-subscribe .subscribe-sub {
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-form button {
    padding: 0.7rem 1.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem; }
  .article { padding: 0 1.5rem 4rem; }
  .article p { font-size: 1.05rem; line-height: 1.78; }
  .pull-quote { margin: 2.5rem -0.5rem; padding: 2rem 1.5rem; }
  .pull-quote p { font-size: 1.25rem; }
  .section-header { margin: 4rem 0 2rem; padding-top: 2.5rem; }
  .demand { margin: 1.5rem 0; }
  .share-buttons { flex-direction: column; align-items: center; }
  .frontispiece { padding: 5rem 1.5rem 3rem; }
  .featured-latest { padding: 0 1.5rem; }
  .collection { padding: 2.5rem 1.5rem 0; }
  .origin-essay { padding: 2.5rem 1.5rem 0; }
  .listen-cta { padding: 2.5rem 1.5rem 0; }
  .sticky-nav-back { display: none; }
  .audio-player { padding: 0 1rem; gap: 0.5rem; }
  .audio-skip { display: none; }
  .audio-progress-wrap { max-width: none; }
  .audio-speed { font-size: 0.6rem; padding: 0.15rem 0.35rem; }
  .audio-voice-pill .voice-pill-btn { font-size: 0.5rem; padding: 0.12rem 0.4rem; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.01em; }
  .article p { font-size: 1rem; }
  .audio-time { display: none; }
}

/* ===== AUDIO PLAYER ===== */

/* Hero listen section — circle play icon + label */
.hero-listen {
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-play-circle {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-play-circle:hover {
  color: var(--accent);
  transform: scale(1.08);
}

.hero-play-circle svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}

.hero-play-circle .play-tri {
  fill: currentColor;
  stroke: none;
}

.hero-listen-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Pill segmented voice toggle (hero) */
.voice-pill-track {
  display: inline-flex;
  position: relative;
  background: var(--rule);
  border-radius: 20px;
  padding: 3px;
  margin-top: 0.25rem;
}

.voice-pill-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.voice-pill-track[data-active="female"] .voice-pill-indicator {
  transform: translateX(100%);
}

.voice-pill-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem 0.9rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.voice-pill-btn.active {
  color: var(--accent);
}

/* Sticky audio player bar */
.audio-player {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
  height: 52px;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

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

/* SVG icon buttons */
.audio-btn {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.3s;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.audio-btn:hover { color: var(--accent); }

.audio-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Play/pause cross-fade */
.audio-playpause {
  width: 32px;
  height: 32px;
  padding: 0;
}

.audio-playpause svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.2;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.audio-playpause .icon-play { opacity: 1; transform: scale(1); }
.audio-playpause .icon-pause { opacity: 0; transform: scale(0.85); }

.audio-playpause.playing .icon-play { opacity: 0; transform: scale(0.85); }
.audio-playpause.playing .icon-pause { opacity: 1; transform: scale(1); }

.audio-playpause .play-tri {
  fill: currentColor;
  stroke: none;
}

/* Loading spinner (replaces play/pause during buffering) */
.audio-playpause .icon-spinner {
  opacity: 0;
  pointer-events: none;
}

.audio-playpause.loading .icon-play,
.audio-playpause.loading .icon-pause { opacity: 0; }

.audio-playpause.loading .icon-spinner {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skip buttons — circular arrow with "15" */
.audio-skip svg {
  width: 22px;
  height: 22px;
}

.audio-skip .skip-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 7px;
  font-weight: 600;
  fill: currentColor;
  stroke: none;
}

/* Custom div-based progress bar */
.audio-progress-wrap {
  flex: 1;
  max-width: 340px;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  touch-action: none;
}

.audio-progress-track {
  width: 100%;
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
  position: relative;
  transition: height 0.15s ease;
}

.audio-progress-wrap:hover .audio-progress-track {
  height: 4px;
}

.audio-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  width: 0%;
  position: relative;
}

.audio-progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.15s ease;
}

.audio-progress-wrap:hover .audio-progress-thumb {
  transform: translateY(-50%) scale(1);
}

.audio-progress-wrap.dragging .audio-progress-thumb {
  transform: translateY(-50%) scale(1);
}

.audio-progress-wrap.dragging .audio-progress-track {
  height: 4px;
}

/* Time display */
.audio-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 5.5em;
}

/* Speed button */
.audio-speed {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  transition: border-color 0.3s, transform 0.15s;
  white-space: nowrap;
}

.audio-speed:hover {
  border-color: var(--accent);
}

.audio-speed.pulse {
  animation: speedPulse 0.2s ease;
}

@keyframes speedPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* In-player voice pill toggle (compact) */
.audio-voice-pill {
  display: inline-flex;
  position: relative;
  background: var(--rule);
  border-radius: 12px;
  padding: 2px;
}

.audio-voice-pill .voice-pill-indicator {
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 10px;
}

.audio-voice-pill .voice-pill-btn {
  font-size: 0.55rem;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.1em;
}

/* Close button */
.audio-close {
  color: var(--muted);
}

.audio-close svg {
  width: 16px;
  height: 16px;
}

/* Divider bars between sections */
.audio-divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
  flex-shrink: 0;
}

/* Print styles */
@media print {
  .progress-bar, .sticky-nav, .hero-scroll, .hero-listen, .audio-player, .footer-share, .site-nav, .return-link { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  .article { max-width: 100%; }
  .reveal { opacity: 1; transform: none; }
}
