/* ============================================================================
   blog.css — guides index + article prose. Reuses tokens.css + the nav/footer
   from main.css. Editorial measure, brand serif headings, flesh links.
   ========================================================================== */

.article-wrap { max-width: 760px; margin-inline: auto; padding-inline: var(--screen-h); }

/* ---- breadcrumb ----------------------------------------------------- */
.crumb { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--pith); margin-block: var(--sp-xl) 0; letter-spacing: 0.02em; }
.crumb a { color: var(--pith); } .crumb a:hover { color: var(--flesh); }
.crumb .sep { opacity: 0.5; }

/* ---- article header ------------------------------------------------- */
.article-head { padding-block: var(--sp-lg) var(--sp-xl); border-bottom: 0.75px solid var(--whisper);
  margin-bottom: var(--sp-xl); }
.article-head h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.1; margin: 14px 0 16px; }
.article-head .dek { color: var(--pith); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-family: var(--font-display); font-style: italic; margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--pith); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--whisper); }

/* ---- article hero image --------------------------------------------- */
.article-hero { margin: var(--sp-xl) 0 var(--sp-lg); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-lg); border: 0.75px solid var(--whisper); box-shadow: var(--elev-card);
  background: var(--mist); display: block; }
.article-hero figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--pith); text-align: right; }
.article-hero figcaption a { color: var(--pith); text-decoration: underline;
  text-decoration-color: var(--whisper); text-underline-offset: 2px; }
.article-hero figcaption a:hover { color: var(--flesh); }

/* ---- quick answer (AEO TL;DR) --------------------------------------- */
.quick-answer { background: var(--mist); border: 0.75px solid var(--whisper);
  border-left: 3px solid var(--flesh); border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-xl); margin: var(--sp-xl) 0; }
.quick-answer .qa-label { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--flesh); margin: 0 0 8px; }
.quick-answer p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }

/* ---- prose ---------------------------------------------------------- */
.prose { font-size: var(--t-body); line-height: 1.72; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  letter-spacing: -0.01em; line-height: 1.18; margin-top: 2em; margin-bottom: 0.1em;
  scroll-margin-top: 80px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-top: 1.6em;
  scroll-margin-top: 80px; }
.prose p { margin: 0; }
.prose a { color: var(--flesh); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px; text-decoration-color: var(--flesh-35); transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--flesh); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; }
.prose li { margin-top: 0.4em; }
.prose li::marker { color: var(--pith); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--rind);
  color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--pulp);
  border: 0.75px solid var(--whisper); border-radius: 5px; padding: 1px 6px; }
.prose hr { border: 0; border-top: 0.75px solid var(--whisper); margin: 2em 0; }
.prose .allcaps { text-transform: uppercase; letter-spacing: 0.02em; }

/* ---- comparison table ----------------------------------------------- */
.prose .table-scroll { overflow-x: auto; margin: 1.4em 0; border: 0.75px solid var(--whisper);
  border-radius: var(--r-md); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 0.75px solid var(--whisper);
  vertical-align: top; }
.prose thead th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--pith); background: var(--mist); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--mist) 45%, transparent); }

/* ---- app pick card -------------------------------------------------- */
.pick { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start;
  background: var(--mist); border: 0.75px solid var(--whisper); border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-xl); margin: 1.4em 0; }
.pick__badge { grid-row: span 2; align-self: center; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--flesh-08); color: var(--flesh);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.pick__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0; }
.pick__name a { text-decoration: none; }
.pick__role { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--rind); }
.pick__body { grid-column: 2; margin: 6px 0 0; font-size: 0.96rem; color: var(--ink); }
.pick__meta { grid-column: 2; margin-top: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--pith); }

/* ---- callout (tip / note) ------------------------------------------- */
.callout { background: var(--rind-15); border: 0.75px solid color-mix(in srgb, var(--rind) 35%, transparent);
  border-radius: var(--r-md); padding: var(--sp-lg) var(--sp-xl); margin: 1.4em 0; font-size: 0.98rem; }
.callout strong { color: var(--rind); }

/* ---- key takeaways -------------------------------------------------- */
.takeaways { background: var(--pulp); border: 0.75px solid var(--whisper); border-radius: var(--r-lg);
  padding: var(--sp-xl); margin: var(--sp-xl) 0; }
.takeaways h2 { margin-top: 0 !important; font-size: 1.2rem !important; }
.takeaways ul { margin: 12px 0 0; }

/* ---- FAQ ------------------------------------------------------------ */
.faq { margin-top: var(--sp-section); }
.faq h2 { font-family: var(--font-display); font-size: var(--t-title); margin-bottom: var(--sp-lg); }
.faq details { border-bottom: 0.75px solid var(--whisper); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  gap: 16px; align-items: center; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--flesh); font-size: 1.3rem; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 2px; color: var(--pith); line-height: 1.65; }

/* ---- in-article app CTA (Watermelon) -------------------------------- */
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px var(--sp-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--flesh-15), transparent 60%),
    var(--mist);
  border: 0.75px solid var(--whisper); border-radius: var(--r-lg); padding: var(--sp-xl);
  margin: var(--sp-section) 0 var(--sp-xl); }
.app-cta img { width: 56px; height: 56px; flex: none; }
.app-cta__txt { flex: 1; min-width: 220px; }
.app-cta__txt h3 { font-family: var(--font-display); margin: 0 0 4px; font-size: 1.15rem; }
.app-cta__txt p { margin: 0; color: var(--pith); font-size: 0.9rem; }

/* ---- author / footer note ------------------------------------------- */
.article-foot { margin-top: var(--sp-section); padding-top: var(--sp-lg);
  border-top: 0.75px solid var(--whisper); color: var(--pith); font-size: 0.85rem; }
.article-foot em { font-style: normal; color: var(--ink); }

/* ---- related -------------------------------------------------------- */
.related { margin-top: var(--sp-section); }
.related h2 { font-family: var(--font-display); font-size: var(--t-title); margin-bottom: var(--sp-lg); }
.related__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- guides index --------------------------------------------------- */
.blog-hero { padding-block: var(--sp-section) var(--sp-xl); text-align: center; }
.blog-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-display);
  letter-spacing: -0.015em; margin: 14px 0 14px; }
.blog-hero p { color: var(--pith); max-width: 56ch; margin: 0 auto; font-size: 1.1rem; }
.post-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding-bottom: var(--sp-section); }
.post-card { display: flex; flex-direction: column; background: var(--mist);
  border: 0.75px solid var(--whisper); border-radius: var(--r-lg); padding: var(--sp-xl);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.3s var(--ease-standard); height: 100%; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--elev-card); }
.post-card .tag { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--flesh); margin-bottom: 10px; }
.post-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2;
  margin: 0 0 10px; }
.post-card p { color: var(--pith); font-size: 0.92rem; margin: 0 0 16px; flex: 1; }
.post-card .read { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; }
.post-card .read svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-snap); }
.post-card:hover .read svg { transform: translateX(3px); }
.post-card .meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--pith); margin-top: 12px; }
