/* Fond — journaling article stylesheet. Loaded AFTER styles.css, so it inherits
   the Warm Journal palette + Newsreader serif tokens defined there (:root vars).
   Reading-optimized prose for the /journaling/ content hub. No build step, no JS. */

/* ---------- reading column ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.article-wide { max-width: 1080px; }

/* ---------- breadcrumb ---------- */
.crumbs {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13.5px;
  color: var(--text-faint);
  font-family: var(--sans);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--line); }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current="page"] { color: var(--text-faint); }

/* ---------- article header ---------- */
.article-head { padding: 18px 0 8px; }
.article-kicker {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; font-weight: 700; color: var(--accent-text); margin: 0 0 12px;
}
.article-head h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.1; margin: 0 0 16px;
}
.article-dek {
  font-family: var(--serif); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5;
  color: var(--text-dim); margin: 0 0 20px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-family: var(--sans); font-size: 13.5px; color: var(--text-faint);
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-meta .by { color: var(--text-dim); }
.article-meta .by b { color: var(--text); font-weight: 600; }
.article-meta .dot { color: var(--line); }

/* ---------- TL;DR / key takeaways (GEO + featured-snippet bait) ---------- */
.tldr {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius);
  padding: 22px 26px; margin: 28px 0;
}
.tldr h2 {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12.5px; font-weight: 700; color: var(--accent-text);
  margin: 0 0 12px; border: 0; padding: 0;
}
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 0 0 8px; color: var(--text); }
.tldr li:last-child { margin-bottom: 0; }
.tldr p { margin: 0; color: var(--text); }

/* ---------- table of contents (anchor links, no JS) ---------- */
.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 20px; margin: 28px 0;
}
.toc summary {
  cursor: pointer; list-style: none; padding: 12px 0;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12.5px; font-weight: 700; color: var(--text-dim);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "＋"; float: right; color: var(--text-faint); font-weight: 400; }
.toc[open] summary::after { content: "－"; }
.toc ol { margin: 4px 0 16px; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 8px; break-inside: avoid; font-size: 15px; }
.toc a { color: var(--text-dim); }
.toc a:hover { color: var(--accent-text); }

/* ---------- prose ---------- */
.prose { font-size: 18px; line-height: 1.72; color: var(--text); }
.prose > p { margin: 0 0 22px; color: var(--text); }
.prose h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(24px, 3.4vw, 31px); line-height: 1.2;
  margin: 52px 0 14px; padding-top: 8px; scroll-margin-top: 84px;
}
.prose h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 23px); line-height: 1.3;
  margin: 34px 0 10px; scroll-margin-top: 84px;
}
.prose h4 {
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  letter-spacing: .01em; margin: 26px 0 8px; color: var(--text);
}
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 26px; }
.prose li { margin: 0 0 10px; }
.prose li > ul, .prose li > ol { margin: 10px 0 4px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5;
  color: var(--text-dim);
}
.prose blockquote p { margin: 0 0 8px; }
.prose blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--text-faint); margin-top: 8px; }

/* code / kbd (rare, but keep legible under script-src none) */
.prose code { background: var(--accent-soft); color: var(--accent-text); padding: 1px 6px; border-radius: 5px; font-size: 15px; }

/* ---------- tables (comparison content; AI engines love clean tables) ---------- */
.prose .table-scroll { overflow-x: auto; margin: 26px 0; }
.prose table {
  width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15.5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--surface-alt); font-weight: 700; color: var(--text); }
.prose tbody tr:last-child td { border-bottom: 0; }

/* ---------- callout cards ---------- */
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 18px 22px; margin: 28px 0;
}
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin: 0; }
.callout .label {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em;
  font-size: 11.5px; font-weight: 700; color: var(--accent-text); display: block; margin-bottom: 6px;
}
.callout.tip { border-left-color: var(--accent); }
.callout.note { border-left-color: var(--text-faint); }

/* a literary aside / "Fond note" tying the warm-serif thread through */
.fond-aside {
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; margin: 30px 0;
  font-family: var(--serif); font-size: 18.5px; line-height: 1.6; color: var(--text-dim);
}
.fond-aside em { color: var(--accent-text); }

/* big pull quote */
.pullquote {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(22px, 3.4vw, 30px); line-height: 1.35; letter-spacing: -0.01em;
  color: var(--text); text-align: center; margin: 40px auto; max-width: 620px;
}

/* ---------- FAQ (native details, schema-mirrored) ---------- */
.faq { margin: 48px 0 8px; }
.faq > h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 31px);
  margin: 0 0 18px; scroll-margin-top: 84px;
}
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 0 20px; margin: 0 0 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--serif); font-weight: 600; font-size: 18.5px; color: var(--text);
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--accent-text); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "－"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 14px 0 20px; color: var(--text-dim); font-size: 16.5px; line-height: 1.65; }
.faq .faq-a p { margin: 0 0 12px; }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- author / E-E-A-T box ---------- */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 48px 0;
}
.author-box .avatar {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(130% 130% at 30% 24%, var(--accent) 0%, color-mix(in srgb, var(--accent) 78%, #000 6%) 72%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 26px; color: #FBF7EF;
}
.author-box .who { font-family: var(--sans); }
.author-box .who b { font-size: 15.5px; color: var(--text); }
.author-box .who .role { font-size: 13px; color: var(--text-faint); margin: 2px 0 8px; }
.author-box .who p { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }

/* ---------- related reading ---------- */
.related { margin: 48px 0; }
.related h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3vw, 27px);
  margin: 0 0 18px;
}
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; color: var(--text);
}
.related-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.related-card .rc-kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; color: var(--accent-text); }
.related-card .rc-title { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.25; margin-top: 6px; display: block; }

/* ---------- soft product CTA ---------- */
.article-cta {
  text-align: center; background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; margin: 52px 0 8px;
}
.article-cta .glyph { width: 46px; height: 46px; border-radius: 13px; display: inline-block; margin-bottom: 12px; }
.article-cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 3.2vw, 30px); margin: 0 0 10px; border: 0; }
.article-cta p { color: var(--text-dim); max-width: 480px; margin: 0 auto 8px; }
.article-cta .keep { font-family: var(--serif); font-style: italic; color: var(--accent-text); }

/* ---------- hub / cluster index pages ---------- */
.hub-hero { text-align: center; padding: 72px 24px 32px; }
.hub-hero h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; font-size: clamp(34px, 6vw, 56px); line-height: 1.06; margin: 0 0 16px; }
.hub-hero p { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-dim); max-width: 620px; margin: 0 auto; }
.cluster-block { margin: 48px 0; }
.cluster-block > h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 6px; }
.cluster-block > .cluster-sub { color: var(--text-dim); margin: 0 0 20px; max-width: 680px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.idx-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px; color: var(--text);
}
.idx-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.idx-card.pillar { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.idx-card .ic-kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; color: var(--accent-text); }
.idx-card h3 { font-family: var(--serif); font-weight: 600; font-size: 19.5px; line-height: 1.25; margin: 8px 0 8px; }
.idx-card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .toc ol { columns: 1; }
  .related-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
}
