/* ══════════════════════════════════════════════════════════════════
   CAIRN ADVISORY — ARTICLE STYLES
   Long-form editorial. Web-native. Designed for considered reading.
   Inherits from tokens.css.
══════════════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────── */
body.cairn { background: var(--cairn-linen); }

.article-page {
  min-height: 100vh;
}

/* ── Site nav (slim, on every article + index) ──────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(248, 245, 240, 0.88);
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  border-bottom: var(--border-hair);
}
/* Nav logo, links, and CTA styles live in ../nav.css — shared with homepage */

/* ── Article container ─────────────────────────────────────── */
.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 48px 120px;
}

/* ── Back link ─────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cairn-umber); text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--dur-fast) var(--ease);
}
.back-link:hover { color: var(--cairn-ironwood); }
.back-link::before { content: "←"; margin-right: 2px; letter-spacing: 0; }

/* ── Eyebrow / metadata strip above the head ───────────────── */
.meta-strip {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cairn-amber);
  margin-bottom: 32px;
}
.meta-strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cairn-amber); opacity: 0.6; }
.meta-strip .reading { color: var(--cairn-slate); letter-spacing: 0.18em; font-weight: 400; }
.meta-strip a { color: inherit; text-decoration: none; }
.meta-strip a:hover { text-decoration: underline; }

/* ── Editorial header with integrated drop-numeral ─────────── */
.article-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: var(--border-hair);
  position: relative;
}
.article-header.with-numeral { grid-template-columns: 200px 1fr; }

.head-numeral {
  font-family: var(--font-display); font-weight: 300;
  font-size: 220px; line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--cairn-ironwood);
  position: relative;
  background:
    radial-gradient(circle at 32% 28%, rgba(var(--wc-amber-rgb), 0.45), transparent 58%),
    radial-gradient(circle at 70% 75%, rgba(var(--wc-sienna-rgb), 0.4), transparent 55%);
  background-clip: text; -webkit-background-clip: text;
  text-shadow:
    0 0 38px rgba(var(--wc-amber-rgb), 0.16),
    0 0 18px rgba(var(--wc-sienna-rgb), 0.1);
  user-select: none;
}
.article-header.cool .head-numeral {
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--wc-slate-rgb), 0.55), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(var(--wc-amber-rgb), 0.32), transparent 55%);
  background-clip: text; -webkit-background-clip: text;
  text-shadow:
    0 0 38px rgba(var(--wc-slate-rgb), 0.18),
    0 0 18px rgba(var(--wc-amber-rgb), 0.12);
}
.article-header.deep .head-numeral {
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--wc-sienna-rgb), 0.55), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(var(--wc-slate-rgb), 0.4), transparent 55%);
  background-clip: text; -webkit-background-clip: text;
  text-shadow:
    0 0 38px rgba(var(--wc-sienna-rgb), 0.18),
    0 0 18px rgba(var(--wc-slate-rgb), 0.12);
}

.head-text { padding-top: 0; }
.article-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: 52px; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--color-text); margin: 0 0 18px;
  text-wrap: balance;
}
.article-title em { font-style: italic; color: var(--cairn-umber); }
.article-deck {
  font-size: 18px; line-height: 1.7; color: var(--cairn-umber);
  margin: 0; font-weight: 300;
}
.byline {
  margin-top: 20px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cairn-slate);
}
.byline .name { color: var(--cairn-ironwood); font-weight: 500; }

/* ── Article banner: watercolor image + header content overlaid ── */
.article-banner {
  width: 100%;
  overflow: hidden;
  background-color: var(--cairn-linen);
}
.banner-img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 50%;
}
.banner-content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 48px 8px;
}
.article-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cairn-ironwood);
  margin-bottom: 20px;
}
.article-breadcrumb a {
  color: inherit; text-decoration: none; opacity: 0.65;
  transition: opacity var(--dur-fast) var(--ease);
}
.article-breadcrumb a:hover { opacity: 1; }
.article-breadcrumb .bc-sep { opacity: 0.35; letter-spacing: 0; font-size: 13px; }

/* ── Body prose ─────────────────────────────────────────────── */
.prose {
  font-family: var(--font-body);
  font-size: 18px; line-height: 1.78;
  color: var(--cairn-ironwood);
  font-weight: 400;
}
.prose > * { max-width: 680px; }
.prose > h2, .prose > h3 { max-width: 760px; }
.prose p { margin: 0 0 28px; }
.prose p strong { font-weight: 500; color: var(--cairn-obsidian); }
.prose p em { font-style: italic; color: var(--cairn-umber); }

.prose h2 {
  font-size: 0;
  margin: 48px 0 16px;
}
.prose h2 .h2-num {
  display: block;
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cairn-amber);
  margin-bottom: 0;
}

.prose h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--cairn-ironwood);
  margin: 40px 0 16px;
  text-transform: none;
}

/* ── First-paragraph drop cap (sparing) ────────────────────── */
.prose .lede-p {
  font-size: 18px;
  line-height: 1.78;
  color: var(--cairn-ironwood);
  font-weight: 400;
  margin-bottom: 28px;
}
.prose .lede-p::first-letter {
  font-family: var(--font-display); font-weight: 300;
  font-size: 76px; line-height: 0.82;
  float: left; padding: 8px 14px 0 0; margin-top: 6px;
  color: var(--cairn-amber);
  text-shadow: 0 0 16px rgba(var(--wc-amber-rgb), 0.2);
}

/* Painted rules removed — use whitespace, hairlines, or h2 eyebrows for section breaks. */

/* ── Pull quote ─────────────────────────────────────────────── */
.pull-quote {
  margin: 56px 0 56px -32px;
  padding: 0 0 0 32px;
  border-left: 2px solid var(--cairn-amber);
  font-family: var(--font-display); font-weight: 300;
  font-size: 24px; line-height: 1.35; letter-spacing: -0.01em;
  color: var(--cairn-ironwood);
  max-width: 680px;
  text-wrap: balance;
}
.pull-quote em { font-style: italic; color: var(--cairn-umber); }

/* ── Heuristic / list callout (the boxed three-points blocks) ── */
.callout {
  margin: 48px 0 56px;
  padding: 44px 48px 40px;
  background: var(--cairn-white);
  border: var(--border-hair);
  border-radius: var(--r-xl);
  position: relative;
  max-width: 700px;
}
.callout::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--wc-wash-amber);
  opacity: 0.32; pointer-events: none;
  border-radius: inherit;
}
.callout.slate::before { background: var(--wc-wash-slate); opacity: 0.32; }
.callout > * { position: relative; }
.callout-eyebrow {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cairn-amber);
  margin-bottom: 14px; display: block;
}
.callout.slate .callout-eyebrow { color: var(--cairn-slate); }
.callout-title {
  font-family: var(--font-display); font-weight: 400; font-size: 20px;
  line-height: 1.32; letter-spacing: -0.005em; color: var(--cairn-ironwood);
  margin: 0 0 22px; text-wrap: balance;
}
.callout-list { margin: 0; padding: 0; list-style: none; counter-reset: c-list; }
.callout-list li {
  position: relative;
  padding: 14px 0 14px 56px;
  border-top: 0.5px solid rgba(var(--wc-amber-rgb), 0.35);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--cairn-ironwood);
  counter-increment: c-list;
}
.callout-list li:first-child { border-top: none; }
.callout-list li::before {
  content: counter(c-list, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--cairn-amber);
}
.callout.slate .callout-list li::before { color: var(--cairn-slate); }
.callout-list li strong { font-weight: 500; color: var(--cairn-obsidian); }

/* Plain bullet list inside prose */
.prose ul {
  margin: 0 0 28px; padding: 0; list-style: none;
}
.prose ul li {
  position: relative;
  padding: 0 0 12px 24px;
  font-family: inherit; font-size: inherit; line-height: inherit;
  color: inherit;
}
.prose ul li::before {
  content: ""; position: absolute;
  left: 0; top: 0.85em;
  width: 8px; height: 1px; background: var(--cairn-amber);
}

/* ── Closing block ─────────────────────────────────────────── */
.close-line {
  margin: 72px 0 0;
  padding-top: 32px;
  border-top: 0.5px solid rgba(var(--wc-amber-rgb), 0.35);
  font-family: var(--font-display); font-weight: 300;
  font-size: 24px; line-height: 1.35; letter-spacing: -0.01em;
  color: var(--cairn-ironwood);
  max-width: 600px;
  text-wrap: balance;
}
.close-line em { font-style: italic; color: var(--cairn-umber); }

/* ── Footer (read next + signoff) ───────────────────────────── */
.article-footer {
  max-width: 1080px; margin: 0 auto; padding: 0 32px 96px;
}
.read-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 96px 0 80px;
  padding-top: 56px;
  border-top: var(--border-hair);
}
.read-next-eyebrow {
  grid-column: 1 / -1;
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cairn-amber);
  margin-bottom: 12px;
}
.next-card {
  display: block;
  padding: 36px 36px 32px;
  background: var(--cairn-white) center/cover no-repeat;
  border: var(--border-hair);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.next-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.next-card .nc-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--cairn-ironwood); margin: 0 0 14px; text-wrap: balance;
}
.next-card .nc-meta {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cairn-slate);
}
.next-card.dir-next { text-align: right; }

.site-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 36px; border-top: var(--border-hair);
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cairn-umber);
}
.site-foot a { color: var(--cairn-umber); text-decoration: none; }
.site-foot a:hover { color: var(--cairn-ironwood); }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .site-nav { padding: 12px 20px; }
  /* nav logo, links, cta mobile overrides in ../nav.css */

  .banner-img { height: 220px; }
  .banner-content { padding: 28px 20px 8px; }
  .article-breadcrumb { font-size: 10px; margin-bottom: 14px; }

  .article { padding: 32px 20px 80px; }
  .article-title { font-size: clamp(26px, 7vw, 38px); }
  .article-deck { font-size: 17px; }
  .byline { flex-wrap: wrap; gap: 8px; }

  .prose { font-size: 17px; }
  .prose h2 { margin-top: 36px; }
  .prose .lede-p::first-letter { display: none; float: none; font-size: inherit; padding: 0; }

  .pull-quote { margin-left: 0; padding-left: 16px; font-size: 20px; }
  .callout { padding: 24px 20px; }
  .callout-list li { padding: 12px 0 12px 32px; }

  .read-next { grid-template-columns: 1fr; }
  .next-card.dir-next { text-align: left; }
  .article-footer { padding: 0 20px 56px; }
  .site-foot { flex-direction: column; gap: 12px; align-items: flex-start; }
}
