/* ══════════════════════════════════════════════════════════════════
   MYFC Blog Post — shared styles for /blog/<slug>.html
   Linked by every individual post page so the reading experience is
   consistent: dark navy base, Fraunces serif for essay prose, Inter
   for UI/meta, Garage33-ported FAQ at the bottom, sticky Join pill.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #070558;
  --navy-deep:   #040330;
  --cyan:        #0BADFF;
  --cyan-soft:   #7FDFFF;
  --purple:      #B020F8;
  --purple-soft: #D57FFB;
  --white:       #ffffff;
  --off:         #e8e4df;
  --muted:       rgba(255, 255, 255, 0.6);
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scrollbar-gutter: stable; }
html, body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
}
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(11, 173, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 85% 110%, rgba(176, 32, 248, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #060340 0%, #070558 50%, #050335 100%);
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.16 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--cyan); color: var(--navy); }

/* Back-home + blog-home pills */
.nav-pills {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 120;
  display: flex;
  gap: 8px;
}
.nav-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  background: rgba(7, 5, 88, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(11, 173, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(4, 3, 35, 0.28);
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}
.nav-pills a:hover, .nav-pills a:focus-visible {
  background: rgba(11, 173, 255, 0.22);
  border-color: rgba(11, 173, 255, 0.65);
  color: #ffffff;
  outline: none;
}
.nav-pills a:active { transform: translateY(1px); }
.nav-pills svg { display: block; }
@media (max-width: 767px) {
  .nav-pills { top: 12px; left: 12px; }
  .nav-pills a { padding: 8px 12px 8px 9px; font-size: 10px; letter-spacing: 0.14em; }
  .nav-pills a .label-home { display: none; }
}

/* Post hero — title + meta + hero image */
article.post {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 112px 32px 24px;
}
.post-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 173, 255, 0.18);
  border: 1px solid rgba(11, 173, 255, 0.48);
  color: var(--cyan);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
article.post h1 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: clamp(38px, 5.2vw, 68px);
  letter-spacing: 0.004em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}
.post-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}
.post-hero-img {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 40px;
  border: 1px solid rgba(11, 173, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.post-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(4, 3, 35, 0.45) 100%);
  pointer-events: none;
}

/* TL;DR summary block — sits between post-meta and the hero image.
   Dual purpose: readable "in short" for humans skimming, and a
   speakable/quotable target for AI answer engines (see JSON-LD
   SpeakableSpecification cssSelector). */
.post-tldr {
  max-width: 680px;
  margin: 8px auto 32px;
  padding: 18px 22px 20px;
  background:
    linear-gradient(180deg, rgba(11, 173, 255, 0.08) 0%, rgba(11, 173, 255, 0.03) 100%);
  border: 1px solid rgba(11, 173, 255, 0.22);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.post-tldr .post-tldr-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(11, 173, 255, 0.92);
  margin-bottom: 6px;
}
.post-tldr p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
@media (max-width: 640px) {
  .post-tldr {
    padding: 14px 16px 16px;
    border-radius: 12px;
    margin: 6px auto 24px;
  }
  .post-tldr p { font-size: 14px; }
}

/* Prose — body text for the actual post content.
   Essays use Fraunces serif for a more reading-destination feel;
   news posts use Inter with the same rhythm. Opt-in via .prose-essay. */
.prose {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0 auto;
}
.prose.prose-essay {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  line-height: 1.78;
  font-weight: 400;
}
.prose p { margin-bottom: 1.3em; }
.prose h2 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.008em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 2em;
  margin-bottom: 0.7em;
  line-height: 1.1;
}
.prose h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(11, 173, 255, 0.4);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.prose a:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 22px;
  margin: 1.6em 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
}
.prose ul, .prose ol {
  margin-bottom: 1.3em;
  padding-left: 1.4em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose strong { color: var(--white); font-weight: 600; }
.prose em { color: rgba(255, 255, 255, 0.92); }

/* Wiki-link — internal cross-reference to another blog post.
   Subtle cyan treatment with a tiny arrow icon that appears on hover,
   distinguishing it from external links. */
.wiki-link {
  display: inline;
  color: var(--cyan);
  border-bottom: 1px dashed rgba(11, 173, 255, 0.55);
  padding-bottom: 1px;
  position: relative;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.wiki-link::before {
  content: '→ ';
  opacity: 0;
  transition: opacity 220ms var(--ease);
  color: var(--cyan-soft);
}
.wiki-link:hover,
.wiki-link:focus-visible {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
  border-bottom-style: solid;
}
.wiki-link:hover::before,
.wiki-link:focus-visible::before { opacity: 1; }

/* Post footer — back to blog + subscribe prompt */
.post-footer {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 72px auto 0;
  padding: 0 32px;
  text-align: center;
}
.post-footer .divider {
  width: 80px;
  height: 2px;
  margin: 0 auto 32px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(11, 173, 255, 0.4);
}
.post-footer .back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 220ms var(--ease);
}
.post-footer .back-to-blog:hover {
  background: rgba(11, 173, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -12px rgba(11, 173, 255, 0.55);
}

/* Optional per-post FAQ section — same pattern as gallery.html FAQ
   (Garage33 port) but scoped to .post-faq so it doesn't collide. */
.post-faq {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 80px auto 0;
  padding: 0 32px;
}
.post-faq .head {
  text-align: center;
  margin-bottom: 32px;
}
.post-faq .head .sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.post-faq .head h2 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.post-faq-item {
  background: rgba(7, 5, 88, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.post-faq-item[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 56px -20px rgba(0, 0, 0, 0.6);
}
.post-faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}
.post-faq-q .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--cyan);
  transition: transform 200ms var(--ease);
}
.post-faq-q .plus svg { display: block; }
.post-faq-item[aria-expanded="true"] .plus { transform: rotate(45deg); }
.post-faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms var(--ease), opacity 300ms var(--ease);
}
.post-faq-item[aria-expanded="true"] .post-faq-a {
  max-height: 400px;
  opacity: 1;
}
.post-faq-a-inner {
  padding: 0 22px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

/* Subscribe strip — compact version of the blog.html block */
.post-subscribe {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 72px auto 0;
  padding: 32px 32px 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(11, 173, 255, 0.1) 0%, rgba(7, 5, 88, 0.72) 50%, rgba(176, 32, 248, 0.1) 100%);
  border: 1px solid rgba(11, 173, 255, 0.24);
  border-radius: 20px;
}
.post-subscribe h3 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.post-subscribe p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.post-subscribe form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.post-subscribe input {
  flex: 1 1 240px;
  min-width: 200px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 3, 35, 0.6);
  color: var(--white);
  font-size: 14px;
  outline: none;
}
.post-subscribe input:focus { border-color: var(--cyan); }
.post-subscribe button {
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms var(--ease), filter 220ms var(--ease);
}
.post-subscribe button:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Footer */
footer.post-foot {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 64px auto 0;
  padding: 40px 40px 60px;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* Sticky Join pill — identical pattern across gallery/blog/posts */
.sticky-join {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11, 173, 255, 0.96) 0%, rgba(110, 72, 242, 0.96) 50%, rgba(176, 32, 248, 0.96) 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    0 24px 48px rgba(11, 173, 255, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  transform: translateY(72px) rotate(-8deg) scale(0.55);
  transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 500ms ease;
  pointer-events: none;
}
.sticky-join .ball {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.sticky-join svg { display: block; }
body.post-scrolled .sticky-join {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
  pointer-events: auto;
}
.sticky-join:hover, .sticky-join:focus-visible {
  transform: translateY(-3px) rotate(0) scale(1.04);
  filter: brightness(1.08);
  outline: none;
}
@media (max-width: 767px) {
  .sticky-join { right: 16px; bottom: 16px; padding: 13px 20px; font-size: 12px; gap: 9px; }
  .sticky-join .ball { font-size: 18px; }
  .sticky-join .arrow { display: none; }
  article.post { padding: 88px 20px 18px; }
  .prose { font-size: 16px; line-height: 1.72; }
  .prose.prose-essay { font-size: 17px; line-height: 1.76; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-join { transform: none; transition: opacity 200ms linear; }
  body.post-scrolled .sticky-join { transform: none; }
}
