/* Newsletter issue */
.newsletter-issue {
  font-family: var(--font-body);
}
.issue-header {
  margin-bottom: 2rem;
}
.issue-series {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin: 0 0 0.5rem;
}
.issue-series a {
  color: inherit;
  text-decoration: none;
}
.issue-series a:hover {
  text-decoration: underline;
}
.issue-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin: 0 0 0.75rem;
}
.issue-meta {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  margin: 0.5rem 0 0;
}
.issue-body h2,
.issue-body h3,
.issue-body h4 {
  font-family: var(--font-ui);
  letter-spacing: 0.01em;
  margin: 2.25rem 0 0.75rem;
}
.issue-body h1 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
}
.issue-body h2 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.issue-body h3 {
  font-size: 1.05rem;
}
.issue-body h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.issue-body p {
  margin: 0 0 1rem;
}
.issue-body ul,
.issue-body ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.issue-body li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}

/* Shared blocks — used by pageBuilder Matrix on landingPage AND nested entries
   inside the body CKEditor field on newsletterIssue / podcastEpisode / basicPage. */
.block:first-child {
  margin-top: 0;
}
.block:last-child {
  margin-bottom: 0;
}
.block .block-heading {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.block .block-summary {
  color: var(--color-fg-muted);
  margin: 0 0 1rem;
}

/* entryListBlock */
.block-entry-list .entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-rule);
}
.block-entry-list .entry-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-rule);
}
.block-entry-list .entry-list-item a {
  font-weight: 600;
  text-decoration: none;
}
.block-entry-list .entry-list-item a:hover {
  text-decoration: underline;
}
.block-entry-list .entry-list-item time {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-fg-muted);
}
.block-entry-list .entry-list-item p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--color-fg-muted);
}
.block-entry-list .entry-list-empty {
  color: var(--color-fg-muted);
  font-style: italic;
}

/* calloutBlock */
.block-callout {
  padding: 1rem 1.25rem;
  background: #f6f6f4;
  border-left: 3px solid var(--color-fg);
}
.block-callout .callout-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin: 0 0 0.4rem;
}
.block-callout .callout-body > *:first-child {
  margin-top: 0;
}
.block-callout .callout-body > *:last-child {
  margin-bottom: 0;
}

/* ctaBlock */
.block-cta {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.block-cta:has(.cta-image) {
  grid-template-columns: minmax(0, 8rem) 1fr;
  align-items: center;
}
.block-cta .cta-image {
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 2px;
}
.block-cta .cta-headline {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.005em;
}
.block-cta .cta-summary {
  color: var(--color-fg-muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.block-cta .cta-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--color-fg);
  color: var(--color-bg);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
}
.block-cta .cta-link:hover {
  background: #000;
  text-decoration: none;
}

/* pullQuoteBlock + raw <blockquote> in body content */
.issue-body blockquote,
.episode-body blockquote,
.page-body blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 3px solid var(--color-fg);
  font-style: italic;
}
.issue-body blockquote p,
.episode-body blockquote p,
.page-body blockquote p {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-body);
}

/* update entry */
.update {
  font-family: var(--font-body);
}
.update-header {
  margin-bottom: 1.5rem;
}
.update-kind {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin: 0 0 0.5rem;
}
.update-kind a {
  color: inherit;
  text-decoration: none;
}
.update-kind a:hover {
  text-decoration: underline;
}
.update-meta {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  margin: 0.5rem 0 0;
}
.update-topics {
  margin-left: 0.5rem;
}
.update-thumbnail {
  margin: 1.5rem 0;
}
.update-cta {
  margin: 1.5rem 0 0;
}
.update-cta a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-fg);
  color: var(--color-bg);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 2px;
}

/* mediaEmbedBlock */
.block-media-embed {
  margin: 2rem 0;
}
.block-media-embed .media-frame {
  position: relative;
}
.block-media-embed .media-frame--youtube,
.block-media-embed .media-frame--video {
  aspect-ratio: 16 / 9;
}
.block-media-embed .media-frame--audio {
  aspect-ratio: auto;
  min-height: 170px;
}
.block-media-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.block-media-embed .media-frame--audio iframe {
  height: 170px;
}
.block-media-embed .media-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.block-media-embed .media-caption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  margin: 0.5rem 0 0;
}

/* Native CKEditor inline content
   Native blocks emitted by the Body field's CKEditor toolbar (Image, Table,
   MediaEmbed). Twig oEmbed render emits the `.embed` wrapper divs around
   provider iframes — see `_partials/body.twig`. */

/* figure.image — native inline image with figcaption + alignment */
figure.image {
  margin: 2rem 0;
  text-align: center;
}
figure.image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
figure.image figcaption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  margin: 0.5rem 0 0;
}
figure.image-style-align-left,
figure.image-style-side {
  float: right;
  margin: 0.25rem 0 1rem 1.5rem;
  max-width: 50%;
}
figure.image-style-align-right {
  float: left;
  margin: 0.25rem 1.5rem 1rem 0;
  max-width: 50%;
}
figure.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}
figure.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

/* figure.media + .embed.embed-* — oEmbed iframe wrappers from Twig render.
   16:9 default; provider-specific overrides where the natural ratio differs. */
figure.media {
  margin: 2rem 0;
}
.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed.embed-spotify {
  aspect-ratio: auto;
  height: 152px;
  background: transparent;
}
.embed.embed-soundcloud {
  aspect-ratio: auto;
  height: 166px;
  background: transparent;
}
.embed.embed-twitter {
  aspect-ratio: auto;
  min-height: 200px;
  background: transparent;
}
.embed.embed-instagram {
  aspect-ratio: auto;
  min-height: 600px;
  max-width: 540px;
  margin-inline: auto;
  background: transparent;
}

/* figure.table — native CKEditor table, optionally captioned */
figure.table {
  margin: 2rem 0;
  overflow-x: auto;
}
figure.table > table,
.issue-body table,
.episode-body table,
.page-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
figure.table th,
figure.table td,
.issue-body th,
.issue-body td,
.episode-body th,
.episode-body td,
.page-body th,
.page-body td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-rule);
  text-align: left;
  vertical-align: top;
}
figure.table th,
.issue-body th,
.episode-body th,
.page-body th {
  font-weight: 600;
  border-bottom-width: 2px;
  border-bottom-color: var(--color-fg);
}
figure.table figcaption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  margin: 0.5rem 0 0;
  text-align: left;
}

/* Per-kind media blocks (audioBlock / videoBlock / imageBlock / oEmbedBlock).
   Used standalone inline in body CKE, OR wrapped by figureBlock in pageBuilder.
   Outer block margins live on the .block rule above; .block-figure resets the
   inner block's margin so the wrapper owns the spacing in the nested case. */
.block-audio audio,
.block-video video {
  display: block;
  width: 100%;
  max-width: 100%;
}
.block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Transcript — collapsible <details> block shared by audioBlock + videoBlock.
   Caption + credit live on the wrapping figureBlock, not on the per-kind
   block, so there's no .asset-media-caption rule here anymore. */
.asset-media-transcript {
  margin: 0.75rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.asset-media-transcript summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.4rem 0;
}
.asset-media-transcript[open] summary {
  color: var(--color-fg);
}
.asset-media-transcript .transcript-body {
  padding: 0.5rem 0 0.25rem 1rem;
  border-left: 2px solid var(--color-rule);
  color: var(--color-fg);
  line-height: 1.55;
}

/* Home */
.home {
  padding: 0 var(--hpad);
}
.home-section {
  margin: 0 0 2.5rem;
}
.home-section-name {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin: 0 0 0.5rem;
}
.home-section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-section-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-rule);
}
.home-section-list li:last-child {
  border-bottom: 0;
}
.home-section-list a {
  text-decoration: none;
}
.home-section-list a:hover {
  text-decoration: underline;
}
.home-section-more {
  margin: 0.6rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.home-section-more a {
  color: var(--color-fg-muted);
  text-decoration: none;
}
.home-section-more a:hover {
  color: var(--color-fg);
  text-decoration: underline;
}
.home-empty {
  color: var(--color-fg-muted);
}

/* Pagination (shared partial) */
.pagination,
.entry-list-pagination {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-rule);
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.pagination a,
.entry-list-pagination a {
  text-decoration: none;
  color: var(--color-fg);
}
.pagination a:hover,
.entry-list-pagination a:hover {
  text-decoration: underline;
}
.pagination .page-disabled,
.entry-list-pagination .page-disabled {
  color: var(--color-fg-muted);
  opacity: 0.5;
}
.pagination .page-status,
.entry-list-pagination .page-status {
  color: var(--color-fg-muted);
}

/* Work cards — three variants share base styles. Final visual treatment lives
   in Figma; this scoping just exposes structure cleanly. */
.work-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.work-card:hover .work-card-title {
  text-decoration: underline;
}
.work-card-media {
  position: relative;
  margin: 0 0 0.75rem;
  overflow: hidden;
  background: var(--color-rule);
}
.work-card-media img,
.work-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--color-fg);
  color: var(--color-bg);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.04em;
}
.work-card-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1.2;
}
.work-card-summary {
  margin: 0 0 0.5rem;
  color: var(--color-fg-muted);
  font-size: 0.95rem;
}
.work-card-disciplines {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
}
.work-card-disciplines li {
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  color: var(--color-fg-muted);
}
.work-card-services {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--color-fg-muted);
}
.work-card-services-more {
  font-style: italic;
}
.work-card-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Featured variant — hero-style block, full width with poster-aspect media. */
.work-card--featured .work-card-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}
.work-card--featured .work-card-title {
  font-size: 1.75rem;
}
.work-card--featured .work-card-summary {
  font-size: 1.125rem;
}

/* Medium variant — standard grid card with 3/2 media. */
.work-card--medium .work-card-media {
  aspect-ratio: 3 / 2;
}

/* Compact variant — homepage stream, smaller everything. */
.work-card--compact .work-card-media {
  aspect-ratio: 4 / 3;
}
.work-card--compact .work-card-title {
  font-size: 0.95rem;
}
.work-card--compact .work-card-disciplines {
  font-size: 0.7rem;
  gap: 0.25rem;
}
.work-card--compact .work-card-disciplines li {
  padding: 0 0.4rem;
  border-color: transparent;
}

/* /work index layouts. */
.work-index-featured {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 3rem;
}
.work-index-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 2rem 1.5rem;
}
.work-index-grid > li {
  margin: 0;
}

/* Homepage Work stream — compact cards in a horizontal row. */
.work-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
}

@media (max-width: 720px) {
  .work-card--featured .work-card-title {
    font-size: 1.4rem;
  }
  .work-card--featured .work-card-summary {
    font-size: 1rem;
  }
}

/* Mixed-channel feed (/feed). One column of typed cards; designed for casual
   scroll with strong type cues (the `.feed-card--{type}` modifiers) so users
   can tell case study from podcast at a glance. */
.feed {
  max-width: 44rem;
  margin: 0 auto;
}
.feed-header {
  margin: 0 0 2rem;
}
.feed-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}
.feed-intro {
  margin: 0;
  color: var(--color-fg-muted);
  font-size: 0.95rem;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-rule);
}
.feed-card:last-child {
  border-bottom: 0;
}

.feed-card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feed-card-type {
  font-weight: 600;
  color: var(--color-fg);
}
.feed-card-date {
  color: var(--color-fg-muted);
}

.feed-card-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1.3;
}
.feed-card-title a {
  color: inherit;
  text-decoration: none;
}
.feed-card-title a:hover {
  text-decoration: underline;
}
.feed-card-title small {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-fg-muted);
}

.feed-card-sub {
  margin: 0 0 0.25rem;
  color: var(--color-fg-muted);
  font-size: 0.95rem;
}
.feed-card-tags {
  margin: 0.25rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}
.feed-card-tags span {
  color: var(--color-fg-muted);
}

/* Work cards inside the feed: drop the outer work-card margin so they sit
   inside the feed-card frame cleanly. */
.feed-card--workProject .work-card {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: start;
}
.feed-card--workProject .work-card-media {
  aspect-ratio: 1;
  margin: 0;
}
.feed-card--workProject .work-card-body {
  align-self: center;
}
.feed-card--workProject .work-card-title {
  font-size: 1.125rem;
}
.feed-card--workProject .work-card-disciplines {
  margin: 0;
}

/* Sentinel — both the load-more loading state and the no-more state share
   a placeholder so the layout doesn't jump. */
.feed-sentinel {
  padding: 2rem 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-fg-muted);
}
.feed-sentinel.is-loading .feed-sentinel-status {
  opacity: 0.6;
}
.feed-sentinel.has-error .feed-sentinel-status {
  color: var(--color-fg);
}
