/*! RelaxingJazz.com · post.css · one "From the studio" post (/news/{slug}/, news/post.php)
 * Every rule is scoped under .page--post (the next page's stylesheet loads a moment before the router swaps
 * <main>). Colours come only from rj.css tokens, so Night and Day both work. It reads like the featured post on
 * /news/ (news.css §3): a Saint Lucia dateline, the gold horizon, one calm prose column.
 *
 *  1. Hero (back link to the studio notes, eyebrow, title, dateline)
 *  2. The post (picture, text, Read more / Write back)
 *  3. More from the studio
 */

/* ============================================================== 1. Hero ============================= */
/* "‹ All notes from the studio", as the artist pages' back link */
.page--post .post-back { padding-top: var(--space-4); }
.page--post .post-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  color: var(--text-2);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.page--post .post-back__link:hover { color: var(--gold); }
.page--post .post-back__link .icon { transition: transform var(--dur-1) var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .page--post .post-back__link:hover .icon { transform: translateX(-3px); }
}
/* Shared hero rhythm (contract C2): the back link takes the first ~3.75rem of the top padding, as on artist pages */
.page--post .post-hero {
  padding-top: max(var(--space-4), calc(var(--page-hero-pad-top, clamp(3rem, 2rem + 4vw, 6rem)) - 3.75rem));
  padding-bottom: var(--page-hero-pad-bottom, clamp(2rem, 1.5rem + 2vw, 3rem));
}
.page--post .post-hero__title {
  margin-top: var(--space-3);
  font-size: var(--page-hero-title, var(--step-6));
  overflow-wrap: break-word;   /* "RelaxingJazz.com" is one long word on a phone */
}
.page--post .post-hero__dateline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
  color: var(--text-3);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}
.page--post .post-hero__dateline time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  letter-spacing: 0;
  color: var(--gold);
}
.page--post .post-hero__place { display: inline-flex; align-items: center; gap: 0.45em; }
.page--post .post-hero__place .icon { width: 1em; height: 1em; color: var(--gold); }

/* ============================================================== 2. The post ========================= */
.page--post .post__main {
  position: relative;
  padding-top: clamp(var(--space-6), 5vw, var(--space-7));
}
.page--post .post__main::before {
  /* the gold horizon between the title and the text */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--horizon);
  opacity: 0.7;
}
.page--post .post__figure { margin-bottom: var(--space-6); }
.page--post .post__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-m);
  background: var(--bg-sunken);
}
.page--post .post__body { max-width: 66ch; overflow-wrap: break-word; }   /* a pasted address never widens a phone */
.page--post .post__body h2 { font-size: var(--step-2); }
.page--post .post__body a.ext .icon--ext { margin-left: 0.2em; }
.page--post .post__foot {
  --cluster-gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.page--post .post__reply .icon { color: var(--gold); }

/* ============================================================== 3. More from the studio ============= */
.page--post .post-more { padding-bottom: clamp(var(--space-7), 8vw, var(--space-9)); }
.page--post .post-more .divider-horizon { margin-top: clamp(var(--space-7), 7vw, var(--space-8)); }
.page--post .post-more__title { margin-bottom: var(--space-4); font-size: var(--step-2); }
.page--post .post-more__list { border-top: 1px solid var(--border); }
.page--post .post-more__list a {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.page--post .post-more__name { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; color: var(--text); overflow-wrap: break-word; }
.page--post .post-more__date { font-size: var(--step--1); color: var(--text-3); }
.page--post .post-more__list a:hover .post-more__name { color: var(--gold); font-style: italic; }
.page--post .post-more__all { margin-top: var(--space-4); }
