/* ═══ Field Notes — shared styles for the /notes blog ═══════════════════════════
   Hand-maintained (the build never overwrites this). Scoped under .fn- plus the
   reused .story-content body typography (originally inline on the launch essay).
   Dark-theme tokens: --ink --slate --sky --orange --paper; card surface #131922. */

/* ── listing: category tabs (primary) ── */
.fn-cats { max-width: 1100px; margin: 0 auto 14px; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.fn-cat { font-family: "Space Grotesk", sans-serif; font-size: 0.98rem; font-weight: 600; color: var(--slate);
  background: transparent; border: none; border-bottom: 2px solid transparent; padding: 6px 6px 8px;
  cursor: pointer; transition: color .2s, border-color .2s; }
.fn-cat:hover { color: var(--ink); }
.fn-cat.is-active { color: var(--ink); border-bottom-color: var(--sky); }

/* ── listing: tag filter chips (secondary, combinable) ── */
.fn-filters { max-width: 1100px; margin: 0 auto 28px; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; align-items: center; }
.fn-filters-label { font-family: "Space Grotesk", sans-serif; font-size: 0.72rem; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.07em; margin-right: 2px; }
.fn-chip { font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; font-weight: 600;
  color: var(--slate); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 6px 15px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.fn-chip:hover { color: var(--ink); }
.fn-chip.is-active { color: var(--ink); border-color: var(--sky); background: rgba(74, 163, 255, 0.12); }
/* product chips carry their colour always; active = filled in that colour */
.fn-chip--desktop { color: #d46b2a; }
.fn-chip--desktop.is-active { color: #d46b2a; background: rgba(212, 107, 42, 0.14); border-color: rgba(212, 107, 42, 0.5); }
.fn-chip--perch { color: #5cc16f; }
.fn-chip--perch.is-active { color: #5cc16f; background: rgba(92, 193, 111, 0.14); border-color: rgba(92, 193, 111, 0.5); }
.fn-chip--cloud-compute { color: #4aa3ff; }
.fn-chip--cloud-compute.is-active { color: #4aa3ff; background: rgba(74, 163, 255, 0.14); border-color: rgba(74, 163, 255, 0.5); }
.fn-chip--milestone { color: #f5c518; }
.fn-chip--milestone.is-active { color: #f5c518; background: rgba(245, 197, 24, 0.14); border-color: rgba(245, 197, 24, 0.5); }
.fn-chip--news { color: #ef5350; }
.fn-chip--news.is-active { color: #ef5350; background: rgba(239, 83, 80, 0.14); border-color: rgba(239, 83, 80, 0.5); }

.fn-empty { text-align: center; color: var(--slate); padding: 44px 24px; font-family: "Space Grotesk", sans-serif; }
.fn-empty[hidden] { display: none; }

/* ── listing: card grid ── */
.fn-grid { max-width: 1100px; margin: 0 auto 64px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.fn-card { background: #131922; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px;
  overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.fn-card:hover { transform: translateY(-3px); border-color: rgba(74, 163, 255, 0.4); }
.fn-card[hidden] { display: none; }
.fn-card-link { display: block; text-decoration: none; color: inherit; }
.fn-card-hero { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.fn-card-body { padding: 18px 20px 20px; }
/* text-only cards (no hero): a little more top breathing room */
.fn-card--text .fn-card-body { padding-top: 20px; }
.fn-card-date { font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; color: var(--sky); margin: 0 0 6px; }
.fn-card-title { font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; color: var(--ink); margin: 0 0 9px; line-height: 1.3; }
.fn-card-excerpt { color: var(--slate); font-size: 0.92rem; line-height: 1.55; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fn-card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }

/* ── tag pills (shared by cards + post headers), colour-coded by product ── */
.fn-tag { font-family: "Space Grotesk", sans-serif; font-size: 0.68rem; font-weight: 600; line-height: 1.4;
  color: var(--slate); background: rgba(255, 255, 255, 0.06); border: 1px solid transparent;
  border-radius: 999px; padding: 3px 10px; }
.fn-tag a { color: inherit; text-decoration: none; display: block; }
.fn-post-tags .fn-tag:hover { filter: brightness(1.15); }
.fn-tag--desktop { color: #d46b2a; background: rgba(212, 107, 42, 0.12); border-color: rgba(212, 107, 42, 0.3); }
.fn-tag--perch { color: #5cc16f; background: rgba(92, 193, 111, 0.12); border-color: rgba(92, 193, 111, 0.3); }
.fn-tag--cloud-compute { color: #4aa3ff; background: rgba(74, 163, 255, 0.12); border-color: rgba(74, 163, 255, 0.3); }
.fn-tag--milestone { color: #f5c518; background: rgba(245, 197, 24, 0.12); border-color: rgba(245, 197, 24, 0.3); }
.fn-tag--news { color: #ef5350; background: rgba(239, 83, 80, 0.12); border-color: rgba(239, 83, 80, 0.3); }

/* ── post: header ── */
.fn-post { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.fn-post-head { margin-bottom: 8px; }
.fn-post-head .eyebrow a { color: var(--orange); text-decoration: none; }
.fn-post-head .eyebrow a:hover { text-decoration: underline; }
.fn-post-meta { font-family: "Space Grotesk", sans-serif; color: var(--slate); font-size: 0.95rem; margin: 6px 0 14px; }
.fn-post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 8px; padding: 0; }
.fn-post-tags .fn-tag { font-size: 0.74rem; padding: 4px 12px; transition: filter .2s; }

/* ── post: "soliciting feedback" banner (frontmatter `banner`) ── */
.fn-banner { max-width: 820px; margin: 8px auto 0; padding: 14px 20px;
  background: #131922; border: 1px solid rgba(212, 107, 42, 0.4); border-left: 4px solid var(--orange);
  border-radius: 10px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; line-height: 1.5; }

/* ── post: body typography (reused from the launch essay; now shared) ── */
.story-content { max-width: 820px; margin: 28px auto 56px; font-size: 1.18rem; line-height: 1.8; color: var(--slate); }
.story-content > p:first-of-type { font-size: 1.3rem; color: var(--ink); }   /* lead paragraph */
.story-content h2 { margin-top: 44px; color: var(--ink); }
.story-content h3 { margin-top: 32px; color: var(--ink); }
.story-content h4 { margin-top: 24px; color: var(--ink); }
.story-content em { font-style: italic; }
.story-content a { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; transition: opacity .2s ease; }
.story-content a:hover { opacity: 0.8; }
.story-content ul { padding-left: 22px; margin: 12px 0; }
.story-content li { margin-bottom: 8px; }
.story-content ul ul { margin: 6px 0; font-size: 0.92em; }
.story-content code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.86em;
  background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.story-content kbd { font-family: "Space Grotesk", sans-serif; font-size: 0.8em; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ink); }
.story-content blockquote { border-left: 4px solid var(--orange); padding-left: 24px; margin: 36px 0;
  font-style: italic; color: var(--ink); }
.story-content blockquote p { margin: 0 0 8px; }
.story-content img { max-width: 100%; border-radius: 12px; margin: 18px 0; border: 1px solid rgba(255, 255, 255, 0.1); }
/* legacy inline-classed bits carried over from migrated HTML bodies */
.story-content .blog-lead { font-size: 1.3rem; color: var(--ink); }
.story-content .blog-signoff { margin-top: 36px; font-style: italic; color: var(--ink); }
.story-content .quote-block { border-left: 4px solid var(--orange); padding-left: 24px; margin: 40px 0; font-style: italic; color: var(--ink); }
.story-content .quote-block p { margin: 0 0 8px; }

/* ── post: changelog download CTA ── */
.fn-post-cta { max-width: 820px; margin: 8px auto 0; padding: 0 24px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── post: reserved comments mount (only emitted when comments:true) ── */
.fn-comments { max-width: 820px; margin: 48px auto 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }

@media (max-width: 760px) {
  .fn-grid { grid-template-columns: 1fr; gap: 18px; }
  .story-content { font-size: 1.08rem; }
  .story-content > p:first-of-type { font-size: 1.18rem; }
}
