/* ==========================================================================
   Article page (/bitcoin/)
   Header → long-form body → "Section II" band → video list → people
   marquee → profile grid → resources & tweets → "Section III" band →
   closing notes.
   ========================================================================== */

/* ---------- Article header ---------- */
.article-header {
  border-bottom: 1px solid var(--ink);
}
.article-header .container,
.article-body .container,
.video-list .container,
.closing .container {
  display: flex;
  justify-content: center;
}
.article-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.article-category {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  color: var(--ink);
  font-size: 30px;
  font-style: italic;
}
.article-category svg {
  width: 48px;
  height: 48px;
}
.article-header h1 {
  color: var(--ink);
  text-align: center;
}
.article-date {
  color: var(--ink);
}

/* ---------- Article body ---------- */
.prose > * + * {
  margin-top: 20px;
}
.prose > p + p {
  margin-top: 1.8em; /* blank line between paragraphs, as on the original */
}
.prose > .article__caption + p {
  margin-top: 20px;
}

.article__figure img {
  display: block;
}
.article__figure--center {
  width: fit-content;
  margin-inline: auto;
}

/* Responsive 16:9 embeds (YouTube, Spotify) */
.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tweets: X's widgets.js turns these into embedded posts. Until it loads
   (or if it is blocked) the quote is still readable in this simple style. */
blockquote.twitter-tweet {
  max-width: 550px;
  padding: 16px 20px;
  border: 1px solid #cfd9de;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}
blockquote.twitter-tweet p {
  margin-bottom: 8px;
  color: #0f1419;
}

/* Pull quotes */
.pull-quote blockquote p {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.4;
}
.pull-quote figcaption {
  display: flex;
  flex-direction: column;
}
.pull-quote__author {
  font-size: 18px;
}
.pull-quote__info {
  font-size: 12px;
}

/* ---------- Coloured "Section" bands ---------- */
.band {
  color: #fff;
}
.band--blue { background: #1267d0; }
.band--yellow { background: #f6b643; }
.band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.band h2 {
  color: #fff;
}
.band__cols {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.band__text,
.band__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 20px;
}
.band__text p {
  font-size: 18px;
}
.band__media img {
  display: block;
}

/* ---------- Video list ---------- */
.video-list__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- People marquee ("Join the party") ---------- */
.people {
  padding: 10px var(--gutter);
}
.people__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.people-marquee {
  --speed: 30s;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 800px;
  overflow: hidden;
}
.people-marquee__track {
  position: absolute;
  left: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  animation: people-slide var(--speed) linear infinite;
}
.people-marquee__track--delay {
  animation-delay: calc(var(--speed) / -2);
}
.people-marquee:hover .people-marquee__track {
  animation-play-state: paused;
}
.people-marquee__item {
  width: 33.3%;
}
.people-marquee__item:first-child { margin-left: 7.5px; }
.people-marquee__item:last-child { margin-right: 7.5px; }
@keyframes people-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.people-marquee img,
.profile-grid img {
  display: block;
  border-radius: 20px;
  box-shadow: 0 1px 20px 2px #dee1e3;
}

/* ---------- Profile grid ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  row-gap: 20px;
  padding: var(--section-pad) 0;
  list-style: none;
}
.profile-grid li {
  padding: 5px;
}

/* ---------- Resources & tweets ---------- */
.resources .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.resources__links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Closing notes ---------- */
.closing__buttons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  list-style: none;
}
.closing__buttons li {
  display: flex;
  flex-direction: column;
  width: 50%;
  padding: 20px;
}
.closing__buttons li:first-child {
  align-items: flex-end;
}
.closing__buttons li:last-child {
  align-items: flex-start;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 25px;
  color: #fff;
  text-align: center;
  transition: filter 0.2s;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn--binance {
  background: #f0ba43;
  border-color: #f0ba43;
}
.btn--coinbase {
  background: #044ff5;
  border-color: #044ff5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .people-marquee { height: 700px; }
}
@media (max-width: 991px) {
  .band__text,
  .band__media { width: 100%; }
  .band__media { align-items: center; }
  .people-marquee { height: 535px; }
}
@media (max-width: 767px) {
  .band h2 { text-align: center; }
  .people-marquee { height: 325px; }
}
@media (max-width: 479px) {
  .people h2 { text-align: center; }
  .people-marquee { height: 250px; }
}

/* Reduced motion: show both marquee rows as a static stack */
@media (prefers-reduced-motion: reduce) {
  .people-marquee {
    display: block;
    height: auto;
    padding: 20px 0;
  }
  .people-marquee__track {
    position: static;
    animation: none;
  }
  .people-marquee__track + .people-marquee__track {
    margin-top: 10px;
  }
}
