/* ===== tāstium — article / blog post layout ===== */

/* Breadcrumb */
.crumb {
  padding-top: clamp(28px, 4vw, 44px);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ink-55);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.crumb a { text-decoration: none; color: var(--ink-55); transition: color .15s ease; }
.crumb a:hover { color: var(--plum); }
.crumb .sep { opacity: 0.5; }
.crumb .here { color: var(--ink); }

/* Article hero */
.art-hero { padding-top: clamp(20px, 3vw, 32px); padding-bottom: 0; }
.art-hero .tagrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-55);
  margin-bottom: 22px;
}
.art-hero .cat {
  background: var(--sage-soft); color: var(--sage);
  padding: 5px 12px; border-radius: 99px; font-weight: 600;
}
.art-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  max-width: 18ch; text-wrap: balance;
}
.art-hero .standfirst {
  font-family: var(--sans);
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5;
  color: var(--ink-70); max-width: 56ch; margin-top: 24px;
  text-wrap: pretty;
}
.art-byline {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-55);
}
.art-byline .avatar {
  width: 38px; height: 38px; border-radius: 99px; flex: none;
  background: var(--plum); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 17px;
}
.art-byline b { color: var(--ink); font-weight: 600; }
.art-byline .dot { width: 3px; height: 3px; border-radius: 99px; background: var(--ink-35); }

.art-cover {
  margin-top: clamp(32px, 4vw, 52px);
  width: 100%; border-radius: 28px; overflow: hidden;
  background: var(--bg-sink); border: 1px solid var(--hairline);
}
.art-cover .image-slot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; }

/* Article body layout: reading column + optional aside */
.art-wrap {
  max-width: 760px; margin: 0 auto; padding: 0 var(--gutter);
}
.art-body { padding: clamp(44px, 6vw, 72px) 0 0; }
.art-body > * + * { margin-top: 22px; }
.art-body p {
  font-size: 18.5px; line-height: 1.68; color: rgba(22,24,29,0.82);
  max-width: 68ch; text-wrap: pretty;
}
.art-body h2 {
  font-size: clamp(25px, 2.6vw, 33px);
  margin-top: clamp(44px, 5vw, 64px); text-wrap: balance;
  scroll-margin-top: 90px;
}
.art-body h2 + p { margin-top: 16px; }
.art-body h3 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(21px, 2vw, 25px); color: var(--ink);
  margin-top: clamp(32px, 3.5vw, 44px);
  scroll-margin-top: 90px;
}
.art-body h3 + p { margin-top: 14px; }
.art-body strong { font-weight: 650; color: var(--ink); }
.art-body a:not(.btn) { color: var(--plum); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--purple-soft); transition: text-decoration-color .15s ease; }
.art-body a:not(.btn):hover { text-decoration-color: var(--plum); }

/* Answer-first lead box */
.answer-box {
  background: var(--surface); border: 1px solid var(--hairline);
  border-left: 3px solid var(--sage);
  border-radius: 16px; padding: 24px 28px;
  box-shadow: 0 10px 26px rgba(62,44,86,0.05);
}
.answer-box .alabel {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage); font-weight: 600;
  display: block; margin-bottom: 10px;
}
.answer-box p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); max-width: none; }

/* Lists */
.art-body ul, .art-body ol {
  margin-top: 18px; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.art-body ul li, .art-body ol li {
  position: relative; padding-left: 30px;
  font-size: 18px; line-height: 1.6; color: rgba(22,24,29,0.82);
  max-width: 66ch;
}
.art-body ul li::before {
  content: ""; position: absolute; left: 6px; top: 11px;
  width: 7px; height: 7px; border-radius: 99px; background: var(--sage);
}
.art-body ol { counter-reset: step; }
.art-body ol li { counter-increment: step; }
.art-body ol li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--plum); color: var(--bg);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  display: grid; place-items: center;
}
.art-body li strong { color: var(--ink); }

/* Framework / highlight callout */
.framework {
  margin-top: clamp(36px, 4vw, 52px);
  background: var(--plum); color: var(--bg);
  border-radius: 24px; padding: clamp(32px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.framework::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 88% 12%, rgba(140,107,179,0.34) 0%, transparent 55%);
  pointer-events: none;
}
.framework .fw-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple-soft);
  position: relative;
}
.framework h3 {
  font-family: var(--serif); font-weight: 500; font-style: normal;
  color: var(--bg); font-size: clamp(24px, 2.6vw, 32px);
  margin-top: 12px; position: relative;
}
.framework ol {
  position: relative; margin-top: 24px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 0;
  counter-reset: fw;
}
.framework ol li {
  counter-increment: fw; padding: 18px 0 18px 56px; position: relative;
  font-size: 17.5px; line-height: 1.5; color: rgba(248,245,240,0.86);
  border-top: 1px solid rgba(255,255,255,0.12); max-width: none;
}
.framework ol li:first-child { border-top: 0; }
.framework ol li::before {
  content: counter(fw); position: absolute; left: 0; top: 16px;
  width: 34px; height: 34px; border-radius: 99px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: var(--bg); font-family: var(--serif); font-style: italic; font-size: 16px;
  display: grid; place-items: center;
}
.framework ol li b { color: var(--bg); font-weight: 600; }

/* Pull quote */
.pullquote {
  margin-top: clamp(40px, 5vw, 60px);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 2.8vw, 34px); line-height: 1.28;
  color: var(--plum); text-wrap: balance;
  padding-left: 26px; border-left: 3px solid var(--sage);
}

/* Inline tip / note */
.note {
  margin-top: 28px; background: var(--surface-2);
  border-radius: 14px; padding: 20px 24px;
  font-size: 16.5px; line-height: 1.55; color: var(--ink-70);
}
.note b { color: var(--ink); }

/* Divider */
.art-rule { margin: clamp(48px, 6vw, 72px) 0 0; border: 0; border-top: 1px solid var(--hairline-2); }

/* FAQ */
.faq { margin-top: clamp(48px, 6vw, 72px); }
.faq > h2 { margin-top: 0; }
.faq-list { margin-top: 28px; display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--hairline-2); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline-2); }
.faq-q {
  width: 100%; appearance: none; background: none; border: 0; cursor: pointer;
  text-align: left; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: clamp(19px, 1.9vw, 23px); font-weight: 500;
  color: var(--ink); line-height: 1.25;
}
.faq-q::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--plum), var(--plum)) center/12px 2px no-repeat,
    linear-gradient(var(--plum), var(--plum)) center/2px 12px no-repeat;
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
}
.faq-a-inner { padding: 0 44px 26px 0; }
.faq-a-inner p { font-size: 17px; line-height: 1.62; color: var(--ink-70); margin: 0; max-width: 62ch; }

/* Related posts */
.related { padding-top: clamp(56px, 7vw, 90px); }
.related h2 { font-size: clamp(24px, 2.6vw, 32px); }
.related-grid {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 860px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }
.rel-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.rel-card .rc-media {
  width: 100%; border-radius: 18px; overflow: hidden;
  background: var(--bg-sink); border: 1px solid var(--hairline);
}
.rel-card .image-slot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.rel-card .rc-cat {
  margin-top: 16px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-55);
}
.rel-card h3 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 20px; line-height: 1.18; margin-top: 8px; color: var(--ink);
  text-wrap: balance; transition: color .15s ease;
}
.rel-card:hover h3 { color: var(--plum); }

/* Article CTA band */
.art-cta {
  margin: clamp(56px, 7vw, 88px) var(--gutter) 0;
  background: var(--ink); color: var(--bg);
  border-radius: 32px; padding: clamp(44px, 6vw, 72px) clamp(32px, 5vw, 64px);
  position: relative; overflow: hidden; text-align: center;
}
@media (max-width: 600px) { .art-cta { border-radius: 24px; } }
.art-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 82% 16%, rgba(140,107,179,0.30) 0%, transparent 54%),
    radial-gradient(ellipse at 14% 88%, rgba(123,139,115,0.16) 0%, transparent 54%);
  pointer-events: none;
}
.art-cta-inner { position: relative; max-width: 540px; margin: 0 auto; }
.art-cta .kicker { color: var(--purple-soft); justify-content: center; }
.art-cta .kicker::before { background: var(--sage); }
.art-cta h2 { color: var(--bg); margin-top: 16px; font-size: clamp(26px, 3.2vw, 38px); }
.art-cta p { color: rgba(248,245,240,0.72); margin: 16px auto 0; font-size: 16.5px; line-height: 1.55; max-width: 44ch; }
.art-cta .btn { margin-top: 30px; background: var(--bg); color: var(--plum); }
.art-cta .btn:hover { background: #fff; }

/* progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--sage), var(--plum));
  z-index: 200; transition: width .1s linear;
}
