/* work: existing family composition and intentional responsive variants. */
.work-post {
  background: var(--background);
}

.work-post :where(#work-case-content) {
  scroll-margin-top: 6rem;
}

.work-post-hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(var(--fs-space-10), 6vw, 5rem);
}

.work-post-hero__inner,
.work-post-content__inner,
.work-post-related__inner {
  width: 100%;
  max-width: var(--fs-container-site);
  margin-inline: auto;
}

.work-post-hero__inner {
  display: grid;
  gap: var(--fs-space-8);
  align-items: center;
}

.work-post-hero__copy {
  display: flex;
  min-width: 0;
  max-width: 48rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--fs-space-5);
}

.work-post-hero__eyebrow {
  color: var(--accent);
  font-size: var(--fs-font-xs);
  line-height: var(--fs-line-snug);
  font-weight: var(--fs-weight-semibold);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.work-post-hero__eyebrow:hover,
.work-post-hero__eyebrow:focus-visible {
  color: var(--foreground);
}

.work-post-hero__title {
  max-width: 58rem;
  margin: 0;
  color: var(--foreground);
  font-size: 2.5rem;
  line-height: 0.96;
  font-weight: var(--fs-weight-bold);
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.work-post-hero__excerpt {
  max-width: 42rem;
  margin: 0;
  color: var(--foreground);
  font-size: var(--fs-font-lg);
  line-height: var(--fs-line-relaxed);
  font-weight: var(--fs-weight-medium);
}

.work-post-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fs-space-3);
  margin-top: var(--fs-space-2);
}

.work-post-hero__media {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: var(--fs-radius-lg);
  background: var(--muted);
}

.work-post-hero__picture,
.work-post-hero__image {
  display: block;
  width: 100%;
}

.work-post-hero__image {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.work-post-hero--no-media .work-post-hero__inner {
  grid-template-columns: minmax(0, 1fr);
}

.work-post-hero--no-media .work-post-hero__copy {
  max-width: 58rem;
}

.work-post-content {
  padding-top: clamp(var(--fs-space-10), 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.work-post-content__inner {
  display: flex;
  justify-content: center;
}

.work-post-content__main {
  width: 100%;
  max-width: 48rem;
}

.work-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fs-space-2);
  margin: 0 0 clamp(var(--fs-space-8), 5vw, var(--fs-space-12));
  padding: 0 0 var(--fs-space-5);
  border-bottom: 1px solid var(--border);
}

.work-post-meta__item {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--fs-radius-pill);
  padding: var(--fs-space-2) var(--fs-space-4);
  color: var(--muted-foreground);
  font-size: var(--fs-font-xs);
  line-height: var(--fs-line-snug);
  font-weight: var(--fs-weight-semibold);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.work-post-meta__item:hover,
.work-post-meta__item:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.work-post-related {
  padding-top: clamp(var(--fs-space-10), 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.work-post-related__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--fs-space-4);
  margin-bottom: var(--fs-space-6);
  padding-bottom: var(--fs-space-5);
  border-bottom: 1px solid var(--border);
}

.work-post-related__header h2 {
  margin: 0;
  color: var(--foreground);
  font-size: var(--fs-font-heading-lg);
  line-height: var(--fs-line-heading);
  font-weight: var(--fs-weight-semibold);
}

.work-post-related__header a {
  color: var(--muted-foreground);
  font-size: var(--fs-font-sm);
  line-height: var(--fs-line-snug);
  font-weight: var(--fs-weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.work-post-related__header a:hover,
.work-post-related__header a:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.work-post-related__grid {
  display: grid;
  gap: var(--fs-space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

@media (max-width: 47.999rem) {
  .work-post-hero__actions {
    width: 100%;
  }

  .work-post-hero__actions > * {
    width: 100%;
  }

  .work-post-related__header {
    align-items: flex-start;
    flex-direction: column;
  }}

@media (min-width: 48rem) {
  .work-post-hero__title {
    font-size: 3.5rem;
  }}

@media (min-width: 64rem) {
  .work-post-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: clamp(var(--fs-space-8), 4vw, var(--fs-space-16));
  }

  .work-post-hero__copy {
    max-width: none;
  }

  .work-post-hero__title {
    font-size: 4rem;
  }}

.work-empty {
  margin-top: var(--fs-space-8);
}
