/* ============================================================================
   VITARY · BENTO BLOG — editorial layer over bento.css
   ----------------------------------------------------------------------------
   A reading-first, magazine-grade surface built on the same lacquered bento
   grid. Fraunces-italic display for editorial voice, JetBrains "spec" mono for
   metadata, Plus Jakarta for the running text. Warm paper, deep-teal ink,
   one breath of coral. Designed to rank (SEO) and to be quoted (GEO).
   ==========================================================================*/

/* ---------- editorial masthead / hero ---------- */
.blog-hero { position: relative; padding-top: 128px; padding-bottom: clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.blog-hero .wrap { position: relative; z-index: 1; }
.masthead { max-width: 60rem; }
.masthead .spec { margin-bottom: 1.4rem; }
.masthead h1 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ink);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  text-wrap: balance;
}
.masthead h1 .em { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--teal); letter-spacing: -0.01em; }
.masthead .lead { margin-top: 1.5rem; max-width: 46rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.masthead-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.masthead-meta span { display: inline-flex; align-items: center; gap: .5em; }
.masthead-meta b { color: var(--teal); font-weight: 500; }

/* thin editorial rule */
.edrule { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* ---------- category filter bar ---------- */
.cat-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip {
  font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: -0.01em;
  color: var(--ink-2); padding: .5rem .95rem; border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px var(--hair-2); background: rgba(255,255,255,0.5);
  transition: color .2s, background .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--hair-2), var(--lift-1); }
.chip.is-active { color: #fff; background: var(--teal); box-shadow: var(--lift-teal); }

/* ---------- featured post ---------- */
.post-featured {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
  padding: 0; overflow: hidden; align-items: stretch;
}
.post-featured .pf-media { position: relative; min-height: 340px; overflow: hidden; }
.post-featured .pf-body { padding: clamp(1.8rem, 3.2vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.pf-body .post-title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.pf-body .post-excerpt { font-size: 1.05rem; }

/* editorial art surface (image-free, brandable) */
.art {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 85% -20%, rgba(var(--teal-2-rgb),0.65), transparent 60%),
    radial-gradient(90% 90% at 0% 120%, rgba(var(--coral-rgb),0.30), transparent 55%),
    linear-gradient(155deg, #0C3A34, var(--teal-ink) 72%);
  display: grid; place-items: center; overflow: hidden;
}
.art--coral {
  background:
    radial-gradient(120% 120% at 20% -20%, rgba(var(--coral-rgb),0.55), transparent 58%),
    radial-gradient(90% 90% at 100% 120%, rgba(var(--teal-2-rgb),0.32), transparent 55%),
    linear-gradient(155deg, #7A3320, #2A1712 74%);
}
.art--paper {
  background:
    radial-gradient(110% 90% at 12% -10%, rgba(var(--teal-2-rgb),0.16), transparent 55%),
    radial-gradient(90% 80% at 100% 10%, rgba(var(--coral-rgb),0.12), transparent 50%),
    linear-gradient(160deg, var(--tile), var(--paper-2));
}
.art__glyph {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(6rem, 16vw, 13rem); line-height: 1;
  color: rgba(255,255,255,0.14); user-select: none;
}
.art--paper .art__glyph { color: rgba(var(--teal-rgb),0.12); }
.art__grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.art__dots { position: absolute; inset: 0; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1.4px); background-size: 20px 20px; }
.art--paper .art__dots { background-image: radial-gradient(rgba(var(--teal-rgb),0.4) 1px, transparent 1.4px); }

/* category pill on art */
.post-cat {
  display: inline-flex; align-items: center; gap: .5em; align-self: flex-start;
  font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: rgba(var(--teal-rgb),0.09);
  padding: .34rem .7rem; border-radius: var(--pill);
}
.post-cat--coral { color: var(--coral); background: rgba(var(--coral-rgb),0.12); }
.post-cat--onart { color: #fff; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); position: absolute; top: 1.1rem; left: 1.1rem; }

/* ---------- article cards ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; }
.post-card .post-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .pc-body { padding: clamp(1.2rem, 2vw, 1.6rem); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.post-title { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); font-size: 1.28rem; text-wrap: balance; transition: color .2s; }
.post-card:hover .post-title { color: var(--teal); }
.post-excerpt { font-size: .96rem; line-height: 1.55; color: var(--ink-2); }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.post-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.post-card .link-arrow { margin-top: .2rem; }

/* small compact list item variant */
.post-row { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--hair); }
.post-row:first-child { border-top: 0; }
.post-row .pr-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; }
.post-row .pr-title { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; font-size: 1rem; line-height: 1.22; color: var(--ink); }
.post-row .pr-meta { margin-top: .3rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.post-row:hover .pr-title { color: var(--teal); }

/* link arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem; color: var(--teal); }
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.post-card:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(3px); }

/* section label with rule */
.rule-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.rule-head h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); }
.rule-head .spec { margin: 0; }

/* ---------- newsletter tile ---------- */
.news-tile { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.news-tile h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.08; color: #fff; }
.news-tile h3 .em { font-family: var(--display); font-style: italic; font-weight: 400; }
.news-form { display: flex; gap: .6rem; }
.news-form input { flex: 1; height: 48px; padding: 0 1rem; border-radius: var(--pill); border: 0; background: rgba(255,255,255,0.12); color: #fff; font: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.news-form input::placeholder { color: rgba(255,255,255,0.6); }
.news-form input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); }
.news-fine { margin-top: .8rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); }

/* ============================================================================
   ARTICLE (single post) — reading experience
   ----------------------------------------------------------------------------
   One reading axis: hero text, cover, prose, FAQ, share & author all share the
   same centered measure so every left edge lines up down the page.
   ==========================================================================*/
:root { --read: 46rem; --read-wide: 54rem; }
.article-hero { padding-top: 128px; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.article-hero > * { max-width: var(--read); margin-inline: auto; }
.breadcrumb { display: flex; align-items: center; gap: .5em; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.6rem; }
.breadcrumb a:hover { color: var(--teal); }
.article-hero h1 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; color: var(--ink); font-size: clamp(2.05rem, 4.2vw, 3.35rem); text-wrap: balance; }
.article-hero h1 .em { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--teal); letter-spacing: -0.01em; }
.article-dek { margin-top: 1.15rem; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.9rem; }
.byline-author { display: flex; align-items: center; gap: .7rem; }
.byline-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-style: italic; font-weight: 500; background: radial-gradient(120% 140% at 100% 0%, var(--teal-2), var(--teal) 55%, var(--teal-deep)); }
.byline-author b { display: block; font-family: var(--sans); font-weight: 700; font-size: .92rem; color: var(--ink); letter-spacing: -0.01em; }
.byline-author span { font-size: .82rem; color: var(--ink-3); }
.byline-meta { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-left: auto; }
.byline-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

.article-cover { position: relative; aspect-ratio: 21 / 9; max-width: var(--read-wide); margin-inline: auto; border-radius: var(--r-tile); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair), var(--lift-1); margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }

/* prose column */
.prose { max-width: var(--read); margin: 0 auto; color: var(--ink); font-size: 1.15rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.35em; }
.prose p { color: #26332F; }
.prose h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--ink); margin-top: 2.4em; }
.prose h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; font-size: 1.3rem; color: var(--ink); margin-top: 1.8em; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--teal-rgb),0.35); }
.prose a:hover { text-decoration-color: var(--teal); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6em; margin-top: .6em; }
.prose ul li::before { content: ""; position: absolute; left: .2em; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb),0.1); }
.prose ol { counter-reset: n; list-style: none; padding-left: 0; }
.prose ol li { position: relative; padding-left: 2.2em; margin-top: .7em; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .05em; width: 1.5em; height: 1.5em; display: grid; place-items: center; font-family: var(--mono); font-size: .75em; font-weight: 500; color: var(--teal); background: rgba(var(--teal-rgb),0.08); border-radius: 8px; }

/* drop cap */
.prose > p.lead-in:first-of-type::first-letter {
  font-family: var(--display); font-style: italic; font-weight: 400;
  float: left; font-size: 3.6em; line-height: .78; padding: .05em .12em 0 0; color: var(--teal);
}

/* pull quote */
.pullquote { margin: 2.2em 0; padding-left: 1.4rem; border-left: 3px solid var(--coral); }
.pullquote p { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.pullquote cite { display: block; margin-top: .8rem; font-family: var(--mono); font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* key-takeaway callout */
.callout { margin: 2em 0; padding: 1.4rem 1.6rem; border-radius: var(--r-in); background: linear-gradient(180deg, var(--tile-2), var(--paper-2)); box-shadow: inset 0 0 0 1px var(--hair); }
.callout .spec { margin-bottom: .7rem; }
.callout p { margin: 0; font-size: 1.02rem; color: var(--ink); }

/* scannable key-points / TL;DR box */
.keypoints { margin: 1.9em 0 2.2em; padding: 1.3rem 1.5rem 1.4rem; border-radius: var(--r-in); background: rgba(var(--teal-rgb),0.045); box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb),0.14); }
.keypoints .spec { margin: 0 0 .85rem; }
.keypoints ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.keypoints li { position: relative; padding-left: 1.7em; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.keypoints li::before { content: ""; position: absolute; left: .1em; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb),0.12); }

/* closing CTA tile */
.end-cta { margin: 2.4em 0 .5em; padding: clamp(1.4rem,3vw,1.9rem) clamp(1.5rem,3vw,2rem); border-radius: var(--r-in); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; background: linear-gradient(150deg, #0C3A34, var(--teal-ink) 78%); box-shadow: var(--lift-1); }
.end-cta .spec { margin-bottom: .55rem; color: rgba(255,255,255,0.66); }
.end-cta .spec::before { background: var(--teal-2); }
.end-cta p:not(.spec) { margin: 0; color: #fff; font-size: 1.06rem; line-height: 1.42; max-width: 34ch; }
.end-cta .btn { flex-shrink: 0; }

/* stat strip inside article */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border-radius: var(--r-in); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); margin: 2.2em 0; }
.stat-strip div { background: var(--tile); padding: 1.4rem 1.2rem; }
.stat-strip .v { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; color: var(--teal); letter-spacing: -0.02em; }
.stat-strip .k { margin-top: .5rem; font-size: .84rem; color: var(--ink-2); line-height: 1.35; }

/* share / end-of-article */
.article-end { max-width: var(--read); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding-top: 2rem; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.share-row { display: flex; align-items: center; gap: .6rem; }
.share-row .spec { margin: 0; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink-2); transition: color .2s, background .2s, transform .2s; }
.share-btn:hover { color: var(--teal); background: rgba(var(--teal-rgb),0.06); transform: translateY(-2px); }
.share-btn svg { width: 17px; height: 17px; }

/* author card */
.author-card { max-width: var(--read); margin: 2.5rem auto 0; display: flex; gap: 1.2rem; align-items: flex-start; }
.author-card .byline-avatar { width: 56px; height: 56px; font-size: 1.2rem; flex-shrink: 0; }
.author-card b { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.author-card p { margin-top: .4rem; font-size: .95rem; color: var(--ink-2); line-height: 1.55; }

/* visible FAQ block (also emitted as FAQPage JSON-LD) */
.faq-block { max-width: var(--read); margin: clamp(2.6rem,5vw,4rem) auto 0; }
.faq-item { border-top: 1px solid var(--hair); }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.32; color: var(--ink); transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); }
.faq-item summary::after { content: ""; flex-shrink: 0; width: 11px; height: 11px; margin-top: .38em; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease), border-color .2s; }
.faq-item[open] summary { color: var(--teal); }
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--teal); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0 0 1.15rem; padding-right: 2rem; font-size: 1.04rem; line-height: 1.6; color: var(--ink-2); }

/* reading progress (reuse .scroll-prog from bento) */

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .pf-media { min-height: 220px; }
  .news-tile { grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip div { text-align: center; }
  .byline-meta { margin-left: 0; width: 100%; }
  .end-cta { flex-direction: column; align-items: flex-start; }
  .end-cta .btn { width: 100%; justify-content: center; }
}
