/* ============================================================================
   Flight Club Mastermind · blog
   Loaded after page.css on /blog and /blog/<slug>. The pages themselves are
   generated by scripts/build-blog.mjs from Sanity; this file only adds the
   pieces the inner pages do not have (post cards, the byline, the author box
   and video embeds). Key Takeaways and FAQ sections are part of the pasted
   body and use the standard .fc-prose heading and list styles.
   ========================================================================== */

/* ------------------------------------------------------------- post hero */
.fc-phero__kicker a { color: inherit; text-decoration-color: var(--sc-accent); }
/* Cover photos change per post and can be any colour, so on blog pages the
   bar wears its frosted "scrolled" look (.fc-bar.is-solid in styles.css) from
   the start instead of only after scrolling. The open mobile menu keeps its
   own opaque background. */
.fc-blog .fc-bar:not(.is-open) {
  background: color-mix(in oklab, var(--sc-canvas) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--sc-hairline);
}
.fc-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-2) var(--sc-5);
  margin-top: var(--sc-5); font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.fc-byline strong { color: var(--sc-ink); font-weight: 500; }
.fc-byline img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }
.fc-byline__who { display: inline-flex; align-items: center; gap: var(--sc-3); }
.fc-tags { display: flex; flex-wrap: wrap; gap: var(--sc-2); list-style: none; margin: 0; padding: 0; }
.fc-tags li {
  padding: 0.2rem 0.65rem; border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-pill);
  font-size: var(--sc-t-xs); letter-spacing: 0.02em; color: var(--sc-ink);
}

/* ----------------------------------------------------------- post body */
.fc-prose h2, .fc-prose h3, .fc-prose h4 { scroll-margin-top: calc(var(--fc-bar-h) + var(--sc-5)); }
.fc-prose blockquote {
  margin: var(--sc-7) 0; padding-left: var(--sc-5); border-left: 2px solid var(--sc-accent);
  color: var(--sc-ink); font-size: var(--sc-t-lg); line-height: 1.45;
}
.fc-prose li > ul, .fc-prose li > ol { margin-top: var(--sc-3); }
.fc-prose code {
  font-family: var(--sc-font-mono); font-size: 0.9em;
  padding: 0.1em 0.35em; border-radius: var(--sc-r-sm); background: var(--sc-surface);
}

/* Small uppercase label (the author box's "Written by"). */
.fc-section-label {
  font-family: var(--sc-font-display); font-size: var(--sc-t-xs); font-weight: 500;
  letter-spacing: var(--sc-track-wide); text-transform: uppercase; color: var(--sc-ink-soft);
}

/* Video embed. */
.fc-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sc-r-md); overflow: hidden; background: var(--sc-surface); }
.fc-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* About the author. */
.fc-author {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sc-5); align-items: start;
  margin-top: var(--sc-9); padding: var(--sc-5);
  background: var(--sc-surface); border: 1px solid var(--sc-hairline); border-radius: var(--sc-r-md);
}
.fc-author img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.fc-prose .fc-author p { margin-top: var(--sc-2); }
.fc-prose .fc-author .fc-author__name { margin-top: var(--sc-1); color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); }
.fc-author__links { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-4); font-size: var(--sc-t-sm); }
@media (max-width: 560px) { .fc-author { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- blog index */
.fc-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sc-7) var(--sc-6); }
@media (max-width: 760px) { .fc-posts { grid-template-columns: 1fr; } }
.fc-card {
  position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr;
  background: var(--sc-surface); border: 1px solid var(--sc-hairline); border-radius: var(--sc-r-md);
  overflow: hidden; box-shadow: var(--sc-edge);
  transition: border-color var(--sc-d-fast) var(--sc-ease-out), transform var(--sc-d-fast) var(--sc-ease-out);
}
.fc-card:hover, .fc-card:focus-within { border-color: var(--sc-hairline-strong); transform: translateY(-2px); }
.fc-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.fc-card__body { display: grid; align-content: start; gap: var(--sc-3); padding: var(--sc-5); }
.fc-card__meta { font-size: var(--sc-t-xs); letter-spacing: 0.02em; color: var(--sc-ink-soft); }
.fc-card__title { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); letter-spacing: var(--sc-track-snug); line-height: 1.25; text-wrap: balance; }
.fc-card__title a { color: var(--sc-ink); text-decoration: none; }
.fc-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.fc-card__title a:focus-visible { outline: none; }
.fc-card:has(a:focus-visible) { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.fc-card__excerpt { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); text-wrap: pretty; }
.fc-empty { color: var(--sc-ink-soft); }
@media (prefers-reduced-motion: reduce) { .fc-card { transition: none; } .fc-card:hover, .fc-card:focus-within { transform: none; } }
