/* Endcap Insights — static editorial article styling (Aura Editorial tokens).
   Kept dependency-free: these pages ship zero JavaScript. */
:root {
  --off-white: #F3EFE7;
  --deep-forest: #0E2A20;
  --studio-red: #C0411E;
  --clay-ink: #A8371A;
  --clay-glow: #E89B72;
  --stark-black: #16140F;
  --muted: #5C574C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--off-white);
  color: var(--stark-black);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
}

.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 420;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 72;
}
.soft { font-style: italic; font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 72; }
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

a { color: inherit; }

/* ------- chrome ------- */
.site-header {
  border-bottom: 1px solid var(--stark-black);
  background: var(--off-white);
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; }
.wordmark span { color: var(--studio-red); }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--clay-ink); }
.site-nav .cta { border: 1px solid var(--stark-black); padding: 8px 20px; }
.site-nav .cta:hover { background: var(--deep-forest); color: var(--off-white); border-color: var(--deep-forest); }
@media (max-width: 700px) { .site-nav a:not(.cta) { display: none; } }

/* ------- article ------- */
.article-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
article { max-width: 720px; margin: 0 auto; padding: 72px 0 96px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--clay-ink); }
.eyebrow::before { content: ''; display: block; height: 1px; width: 32px; background: var(--studio-red); }
.meta { color: var(--muted); margin-top: 10px; }
article h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-top: 22px; }
.lede {
  font-family: 'Fraunces', serif; font-style: italic;
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 28;
  font-size: 1.25rem; line-height: 1.5; color: var(--muted);
  margin-top: 26px; padding-bottom: 34px; border-bottom: 1px solid var(--stark-black);
}
article h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 460; letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; margin: 52px 0 0;
}
article h3 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 1.2rem; margin: 36px 0 0;
}
article p { margin-top: 18px; }
article ul, article ol { margin: 18px 0 0 22px; }
article li { margin-top: 10px; }
article li::marker { color: var(--clay-ink); }
article strong { font-weight: 600; }
article a { text-decoration-color: var(--clay-ink); text-underline-offset: 3px; }
article a:hover { color: var(--clay-ink); }
.rule { border: 0; border-top: 1px solid rgba(22, 20, 15, 0.2); margin: 48px 0; }
.pull {
  border-left: 2px solid var(--studio-red); padding: 6px 0 6px 22px; margin-top: 26px;
  font-family: 'Fraunces', serif; font-style: italic;
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 28;
  font-size: 1.15rem; color: var(--muted);
}

/* in-article CTA band */
.cta-band { border: 1px solid var(--stark-black); padding: 30px 30px 34px; margin-top: 56px; }
.cta-band p.big { font-family: 'Fraunces', serif; font-size: 1.45rem; line-height: 1.2; margin-top: 12px; }
.cta-band .actions { margin-top: 22px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.cta-band .button {
  display: inline-block; background: var(--deep-forest); color: var(--off-white);
  padding: 14px 28px; text-decoration: none;
}
.cta-band .button:hover { background: var(--stark-black); }
.cta-band a.quiet { text-decoration-color: var(--clay-ink); text-underline-offset: 3px; }

/* related posts */
.related { border-top: 1px solid var(--stark-black); }
.related .inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 72px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: rgba(22,20,15,0.15); border: 1px solid rgba(22,20,15,0.15); margin-top: 28px; }
.related-grid a { background: var(--off-white); padding: 26px; text-decoration: none; display: block; }
.related-grid a:hover { background: #ECE7DC; }
.related-grid .t { font-family: 'Fraunces', serif; font-size: 1.15rem; line-height: 1.25; margin-top: 12px; }

/* ------- index page ------- */
.index-hero { max-width: 1200px; margin: 0 auto; padding: 88px 24px 64px; }
.index-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); max-width: 16ch; }
.index-hero p.sub { color: var(--muted); max-width: 54ch; margin-top: 24px; font-size: 1.05rem; }
.post-list { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; }
.post-list .item { display: block; text-decoration: none; border-top: 1px solid var(--stark-black); padding: 34px 0 38px; }
.post-list .item:last-child { border-bottom: 1px solid var(--stark-black); }
.post-list .t { font-family: 'Fraunces', serif; font-weight: 440; letter-spacing: -0.015em; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.1; margin-top: 14px; max-width: 26ch; }
.post-list .d { color: var(--muted); margin-top: 12px; max-width: 62ch; }
.post-list .item:hover .t { color: var(--clay-ink); }

/* ------- footer ------- */
.site-footer { background: var(--deep-forest); color: var(--off-white); }
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; }
.site-footer .blurb { color: rgba(243,239,231,0.7); max-width: 400px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .col { display: flex; flex-direction: column; gap: 12px; }
.site-footer .col a { text-decoration: none; }
.site-footer .col a:hover { color: var(--clay-glow); }
.site-footer .label { color: rgba(243,239,231,0.55); }
.site-footer .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(243,239,231,0.2); margin-top: 48px; padding-top: 28px; color: rgba(243,239,231,0.55); }
.site-footer .base a { color: inherit; }
