/* ==========================================================================
   Gumdrop Workflows — article.css
   Blog post pages: /blog/<slug>/

   Load order on a post page:
     base.css  →  layout.css  →  blog.css  →  article.css
   blog.css is included for the .topic post cards reused in "Recent posts".
   ========================================================================== */

/* ==========================================================================
   1. Post header
   ========================================================================== */

.post-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 2rem + 4vw, 4.5rem));
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  overflow: clip;
}

/* Shallow version of the site's horizon arc, so posts feel part of the set */
.post-head__arc {
  position: absolute;
  top: -8vw;
  left: 50%;
  translate: -50% 0;
  width: max(1400px, 190vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 61.4%, rgba(136, 85, 255, .22) 62%, transparent 64.5%);
  mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 70%);
}

.post-head__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.post-head h1 {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem);
  max-width: 20ch;
}

/* Byline / date / read time */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.post-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.post-meta svg  { width: 15px; height: 15px; color: var(--violet-soft); flex: none; }
.post-meta i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-4);
  display: none;
}
@media (min-width: 620px) { .post-meta i { display: block; } }

/* ==========================================================================
   2. Cover image
   ========================================================================== */

.post-cover {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: clamp(1.75rem, 1rem + 3vw, 3rem) auto 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(136, 85, 255, .1);
}

.post-cover img {
  width: 100%;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  display: block;
}

.post-cover figcaption {
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-4);
  text-align: center;
}

/* ==========================================================================
   3. Prose
   ========================================================================== */

.prose {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--text-2);
}

.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem);
  color: var(--text);
  margin-top: 2.4em;
  margin-bottom: -.35em;      /* the following * + * rule adds the rest */
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.prose h3 {
  font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem);
  color: var(--text);
  margin-top: 1.9em;
  margin-bottom: -.5em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.prose strong { color: var(--text); font-weight: 650; }

.prose a {
  color: var(--violet-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(169, 124, 255, .45);
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
.prose a:hover { color: #fff; text-decoration-color: #fff; }

/* Lists */
.prose ul, .prose ol { padding-left: 0; }

.prose li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: .55em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: .3rem; top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-lite);
  box-shadow: 0 0 8px 1px rgba(136, 85, 255, .55);
}

.prose ol { counter-reset: prose-ol; }
.prose ol > li { counter-increment: prose-ol; }
.prose ol > li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0; top: .12em;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  color: var(--violet-soft);
}

/* Blockquote */
.prose blockquote {
  margin-inline: 0;
  padding: 1.15rem 1.4rem;
  border-left: 2px solid var(--violet-lite);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: linear-gradient(90deg, rgba(136, 85, 255, .11), rgba(136, 85, 255, 0));
  color: var(--text);
  font-size: 1.08em;
  line-height: 1.6;
}
.prose blockquote p + p { margin-top: .7em; }

/* Code */
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .16em .42em;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: #DCCBFF;
}

.prose pre {
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .35);
  overflow-x: auto;          /* wide code scrolls in place, never the page */
  font-size: .88rem;
  line-height: 1.65;
}
.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: var(--text-2);
}

/* Inline figures */
.prose figure { margin-inline: 0; }
.prose figure img {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}
.prose figcaption {
  margin-top: .7rem;
  font-size: var(--fs-xs);
  color: var(--text-4);
  text-align: center;
}

/* Callout — for tips and warnings inside a post */
.prose .callout {
  display: flex;
  gap: .9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-hot);
  border-radius: var(--r-md);
  background: rgba(136, 85, 255, .08);
  font-size: .97em;
  color: var(--text-2);
}
.prose .callout svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--violet-soft); }
.prose .callout b { color: var(--text); }

/* Tables scroll rather than pushing the page wide */
.prose .table-wrap { overflow-x: auto; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95em;
}
.prose th, .prose td {
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prose th {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.prose hr {
  height: 1px;
  border: 0;
  margin-block: 2.4em;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* ==========================================================================
   4. Post footer — share + back
   ========================================================================== */

.post-foot {
  max-width: 68ch;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-foot__label { font-size: var(--fs-xs); color: var(--text-4); }

.post-share { display: flex; gap: .5rem; }

/* ==========================================================================
   5. Section heading used above "Recent posts"
   ========================================================================== */

.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.strip-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.strip-head a  { font-size: var(--fs-sm); color: var(--violet-soft); }
.strip-head a:hover { color: #fff; }

/* The FAQ block uses the same .faq / .acc markup and styles as the landing
   page — both now live in base.css, so nothing post-specific is needed here. */
