/* ==========================================================================
   Articles (/articles/): the index and every article page.
   Built by tools/build_articles.py; the format is in ARTICLES.md.
   ========================================================================== */

/* ---------- Article hero ---------- */
.art-hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.art-hero h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 900; line-height: .98; letter-spacing: -.03em; max-width: 20ch; }
.art-hero .lead { max-width: 58ch; color: var(--stone); }
.art-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 var(--s-5); font-size: var(--fs-small); }
.art-crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--stone); }
.art-crumbs a { color: var(--stone); text-underline-offset: 3px; }
.art-crumbs a:hover { color: var(--ink); }
.art-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; padding: 0; margin: var(--s-5) 0 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); color: var(--stone); }
.art-meta cite { font-style: normal; }

/* ---------- Layout: contents on the left, the article on the right ----------
   77px is the sticky site header's height. */
.art-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.art-side-h { font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; margin: 0 0 var(--s-3); color: var(--ink); }
.art-toc { position: sticky; top: calc(77px + var(--s-5)); max-height: calc(100vh - 77px - var(--s-6)); overflow-y: auto; border-left: 3px solid var(--gold); padding-left: var(--s-4); }
.art-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.art-toc a { display: block; padding: .4rem 0; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.art-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-body { max-width: 44rem; min-width: 0; }

@media (max-width: 1023px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-side { order: 0; }
  .art-toc { position: static; background: var(--linen); border-left: 0; border-top: 4px solid var(--gold); border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
  .art-toc ol { display: block; columns: 2; column-gap: var(--s-6); }
  .art-toc li { break-inside: avoid; }
  .art-body { max-width: none; }
}
@media (max-width: 767px) { .art-toc ol { columns: 1; } }

/* ---------- Key verse (dark block, gold focus ring via f39.css) ---------- */
.art-verse { margin: 0 0 var(--s-6); padding: clamp(1.25rem, 4vw, 2rem); background: var(--ink); color: var(--scroll);
  border-radius: var(--radius); border-left: 6px solid var(--gold); }
.art-verse blockquote { margin: 0; }
.art-verse .scripture { font-size: clamp(1.3rem, 3vw, 1.75rem); max-width: none; margin-bottom: var(--s-3); }
.art-verse .ref { color: var(--gold); }
.art-verse cite { font-style: normal; }

/* ---------- At a glance ---------- */
.art-glance { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: var(--s-5) var(--s-5) var(--s-3); margin-bottom: var(--s-7); }
.art-glance h2 { font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: .14em; margin-bottom: var(--s-3); }
.art-glance ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.art-glance li { display: grid; grid-template-columns: 1rem 1fr; gap: .6rem; }
.art-glance li::before { content: ""; width: .55em; height: .65em; margin-top: .5em; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- The prose ---------- */
.art-prose { font-size: 1.125rem; line-height: 1.7; }
.art-prose > p, .art-prose li { max-width: 68ch; }
.art-prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: var(--s-8) 0 var(--s-4); scroll-margin-top: calc(77px + var(--s-4)); }
.art-prose > h2:first-child { margin-top: 0; }
.art-faq, .art-deeper { margin-top: var(--s-8); }
.art-faq h2, .art-deeper h2 { margin-top: 0; }
.art-prose h3 { font-size: 1.25rem; margin: var(--s-6) 0 var(--s-2); }
.art-prose ul, .art-prose ol { padding-left: 1.3rem; margin: 0 0 var(--s-5); }
.art-prose li { margin-bottom: var(--s-3); }
.art-prose li::marker { color: var(--gold-deep); font-family: var(--font-display); font-weight: 700; }
.art-prose strong { font-weight: 650; }
.art-prose a, .art-body .art-note a { color: var(--accent); font-weight: 500; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.art-prose a:hover { color: var(--ink); }

/* Scripture quotes */
.art-quote { margin: var(--s-5) 0 var(--s-6); padding: var(--s-2) 0 var(--s-2) var(--s-5); border-left: 4px solid var(--gold); }
.art-quote blockquote { margin: 0; }
.art-quote p { font-family: var(--font-scripture); font-size: 1.3rem; line-height: 1.5; margin-bottom: var(--s-2); }
.art-quote .ref { color: var(--gold-deep); }
.art-quote cite { font-style: normal; }

/* Side boxes: word studies and the like */
.art-box { background: var(--linen); border-radius: var(--radius); padding: var(--s-5); margin: var(--s-5) 0 var(--s-6); font-size: 1.02rem; line-height: 1.6; }
.art-box-h { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s-2); }
.art-box p:last-child { margin-bottom: 0; }

/* Common questions */
.art-faq-q { border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-4); }
.art-faq-q h3 { margin-top: 0; }

/* Go deeper */
.art-deeper ul { list-style: none; padding: 0; }
.art-deeper li { padding: var(--s-3) 0; border-top: 1px solid var(--line); margin: 0; font-size: 1rem; }

/* ---------- Listen while you read (inline, after the intro) ---------- */
.art-listen { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center;
  background: var(--linen); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: var(--s-3) var(--s-4); margin: var(--s-6) 0; }
.art-listen-cover { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); display: block; }
.art-listen-txt { margin: 0; font-size: 1rem; line-height: 1.4; }
.art-listen-k { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: .15rem; }
.art-listen-t b { font-family: var(--font-display); }
.art-listen-t [data-song-time] { font-variant-numeric: tabular-nums; }
.art-listen-btn { min-height: 44px; min-width: 6.5rem; justify-content: center; }
.art-listen-btn.is-playing::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; background: currentColor; }
@media (max-width: 479px) {
  .art-listen { grid-template-columns: 48px minmax(0, 1fr); }
  .art-listen-cover { width: 48px; height: 48px; }
  .art-listen-btn { grid-column: 1 / -1; }
}

/* ---------- The song note (end of the article) ---------- */
.art-song { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-5); align-items: start;
  background: var(--ink); color: var(--scroll); border-radius: var(--radius); padding: var(--s-5); margin: var(--s-8) 0 var(--s-6); }
.art-song-cover { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius); display: block; }
.art-song-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-2); }
.art-song-t { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: var(--s-1); }
.art-song-meta { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); color: var(--muted-on-dark); margin-bottom: var(--s-3); }
.art-song p { color: var(--muted-on-dark); }
.art-song .row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.art-song .btn--sm { min-height: 44px; }
.art-song [data-song].is-playing::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; background: currentColor; }
@media (max-width: 479px) {
  .art-song { grid-template-columns: 1fr; }
  .art-song-cover { width: 120px; height: 120px; }
}

/* ---------- Share ---------- */
.art-share { margin: 0 0 var(--s-6); }
.art-share ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: 0; }
.art-share .btn--sm { min-height: 44px; }
.art-copied:empty { display: none; }
.art-copied { margin-top: var(--s-2); color: var(--stone); }
.art-note { border-top: 1px solid var(--line); padding-top: var(--s-4); max-width: 68ch; }

/* ---------- Series: previous / next and the full list ---------- */
.art-pns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-6); }
.art-pn { display: block; background: var(--scroll); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  text-decoration: none; color: var(--ink); margin: 0; max-width: none; }
.art-pn small { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: var(--s-1); }
.art-pn b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; }
a.art-pn:hover b { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-pn--next { grid-column: 2; text-align: right; }
.art-pn--soon { border-style: dashed; color: var(--stone); }
@media (max-width: 767px) { .art-pns { grid-template-columns: 1fr; } .art-pn--next { grid-column: auto; text-align: left; } }

.art-series-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-6); counter-reset: none; }
.art-series-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s-3); align-items: baseline; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.art-series-list .art-no { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--gold-deep); }
.art-series-list a, .art-series-list b, .art-soon-t { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.art-series-list a { text-underline-offset: 3px; }
.art-series-list a:hover { color: var(--accent); }
.art-series-list small { display: block; color: var(--stone); font-size: var(--fs-small); margin-top: .15rem; }
.art-series-list .is-soon .art-soon-t { color: var(--stone); font-weight: 600; }
.art-series-list .is-current { background: var(--scroll); margin-inline: calc(var(--s-3) * -1); padding-inline: var(--s-3); }
@media (max-width: 767px) { .art-series-list { grid-template-columns: 1fr; } }

.art-cta h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.art-cta .row, .art-follow .row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.art-preview { margin: 0; padding: var(--s-3) var(--gutter); background: var(--clay); color: #fff; font-weight: 600; text-align: center; max-width: none; }

/* ---------- Index page ---------- */
.art-latest-grid > div { max-width: 52rem; }
.art-latest h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.art-latest h2 a { color: inherit; text-decoration: none; }
.art-latest h2 a:hover { color: var(--gold); }

.art-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.art-card { display: flex; flex-direction: column; background: var(--scroll); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.art-card-body { padding: var(--s-5); border-top: 4px solid var(--gold); }
.art-card-k { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s-2); }
.art-card h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: var(--s-2); }
.art-card h3 a { color: var(--ink); text-decoration: none; }
.art-card h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-card p:last-child { margin-bottom: 0; color: var(--stone); font-size: .98rem; }
.art-card.is-soon { background: transparent; border-style: dashed; }
.art-card.is-soon .art-card-body { border-top: 0; }
.art-card.is-soon h3 { color: var(--stone); font-size: 1.1rem; }
.art-card.is-soon .art-card-k { color: var(--stone); }
@media (max-width: 1023px) { .art-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .art-cards { grid-template-columns: 1fr; } }

.art-follow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); }
.art-follow h2 { margin-bottom: var(--s-2); }
.art-follow p { margin: 0; }

/* Buttons inside the prose keep their own colors (not the link color). */
.art-prose .btn { color: var(--ink); font-weight: 600; text-decoration: none; }
.art-prose .btn:hover { color: var(--ink); }

/* Time left (js/reading.js counts it down as you read; without JS it's the reading time). */
.art-left { margin: 0 0 var(--s-3); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); color: var(--stone); font-variant-numeric: tabular-nums; }
