/* ============================================================
   Ithaca Wealth — Insights post styles (shared)
   Linked by every article in /insights/. Keep posts lean.
   ============================================================ */
@import url('../brand.css');

html { scroll-behavior: smooth; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad, 40px); }

/* nav */
nav.iw { position: sticky; top: 0; z-index: 50; background: rgba(248,242,230,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-soft); }
nav.iw .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
nav.iw .links { display: flex; align-items: center; gap: 28px; }
nav.iw .links a { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
nav.iw .links a:hover, nav.iw .links a.active { color: var(--cayuga); }
nav.iw .menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -2px -8px -2px 0; border: 0; border-radius: 999px; background: none; color: var(--cayuga); cursor: pointer; padding: 0; }
nav.iw .menu-btn .msr { font-size: 26px; }
nav.iw .mnav { display: none; flex-direction: column; padding: 4px var(--pad, 40px) 16px; border-top: 1px solid var(--rule-soft); }
nav.iw .mnav a { font-family: var(--sans); font-weight: 500; font-size: 17px; color: var(--ink); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); }
nav.iw .mnav a:last-child { border-bottom: 0; }
nav.iw .mnav a:hover, nav.iw .mnav a.active { color: var(--cayuga); }
@media (max-width: 1000px) {
  nav.iw .links a:not(.cta) { display: none; }
  nav.iw .menu-btn { display: inline-flex; }
  nav.iw.open .mnav { display: flex; }
}

/* reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--clay); z-index: 60; transition: width .08s linear; }

/* header */
.article-head { background: var(--cayuga); color: var(--paper); padding: clamp(40px,6vw,72px) 0 clamp(36px,5vw,56px); }
.article-head .wrap { max-width: 820px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--clay-soft); text-decoration: none; white-space: nowrap; }
.back-link .msr { font-size: 18px; }
.back-link:hover { color: var(--paper); }
.article-head .cat { display: inline-block; margin-top: 22px; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; background: rgba(248,242,230,0.14); color: var(--paper); white-space: nowrap; }
.article-head h1 { font-family: var(--serif); font-weight: 340; font-size: clamp(34px,5.2vw,58px); line-height: 1.04; letter-spacing: -.03em; color: var(--paper); margin: 20px 0 0; text-wrap: balance; }
.article-head h1 em { font-style: italic; color: rgba(248,242,230,0.66); }
.article-head .dek { font-family: var(--serif); font-size: clamp(18px,2.2vw,24px); line-height: 1.5; color: rgba(248,242,230,0.84); margin: 22px 0 0; max-width: 680px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.byline .ava { width: 48px; height: 48px; border-radius: 999px; background: var(--stone) center 18%/cover no-repeat; background-image: url(../site_assets/matthew_avatar_192.jpg); border: 2px solid rgba(248,242,230,0.3); flex: none; }
.byline .who { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--paper); }
.byline .when { font-family: var(--mono); font-size: 12.5px; color: rgba(248,242,230,0.62); margin-top: 3px; }

/* hero image */
.article-hero { background: var(--paper); }
.article-hero .wrap { max-width: 980px; }
.article-hero .heroimg { display: block; width: 100%; height: clamp(220px,38vw,460px); object-fit: cover; background: var(--limestone); margin-top: clamp(-40px,-4vw,-48px); border-radius: 16px; box-shadow: var(--shadow-lg, 0 30px 60px -30px rgba(12,57,70,0.4)); position: relative; z-index: 2; }

/* body */
article.post { background: var(--paper); padding: clamp(36px,4vw,56px) 0 clamp(56px,7vw,88px); }
article.post .wrap { max-width: 720px; }
.post-body { font-family: var(--serif); font-size: 20px; line-height: 1.72; color: var(--ink); }
.post-body > p { margin: 0 0 26px; }
.post-body > p:first-of-type::first-letter { font-size: 64px; line-height: .82; float: left; padding: 6px 12px 0 0; font-weight: 420; color: var(--cayuga); }
.post-body h2 { font-family: var(--serif); font-weight: 420; font-size: 30px; line-height: 1.18; letter-spacing: -.02em; color: var(--gorge); margin: 48px 0 16px; }
.post-body h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--cayuga); margin: 38px 0 12px; }
.post-body a { color: var(--cayuga); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body strong, .post-body b { font-weight: 600; color: var(--gorge); }
.post-body em, .post-body i { font-style: italic; }
.post-body ul, .post-body ol { margin: 0 0 26px; padding-left: 4px; list-style: none; }
.post-body li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.post-body ul li::before { content: ""; position: absolute; left: 8px; top: 13px; width: 8px; height: 8px; border-radius: 999px; background: var(--clay); }
.post-body ol { counter-reset: li; }
.post-body ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 999px; background: var(--cayuga); color: var(--paper); font-family: var(--mono); font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* chart figures */
.post-body figure { margin: 36px 0; }
.post-body figure img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--rule); box-shadow: var(--shadow-md, 0 18px 40px -26px rgba(12,57,70,0.35)); cursor: zoom-in; }
.post-body figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--driftwood); margin-top: 12px; text-align: center; }

/* pull quote */
.pullquote { margin: 40px 0; padding: 0 0 0 28px; border-left: 3px solid var(--clay); }
.pullquote p { font-family: var(--serif); font-style: italic; font-weight: 360; font-size: 27px; line-height: 1.34; color: var(--gorge); margin: 0; }
.pullquote cite { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 15px; color: var(--driftwood); margin-top: 14px; }

/* author bio */
.author { display: flex; gap: 22px; align-items: flex-start; background: var(--oat); border-radius: 16px; padding: 30px 32px; margin-top: 56px; }
.author .ava { width: 72px; height: 72px; border-radius: 999px; background: var(--stone) center 18%/cover no-repeat; background-image: url(../site_assets/matthew_avatar_192.jpg); flex: none; }
.author h4 { font-family: var(--serif); font-weight: 420; font-size: 21px; color: var(--gorge); margin: 0; }
.author .role { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); margin: 4px 0 0; }
.author p { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 12px 0 0; }

/* end CTA */
.post-cta { background: var(--gorge); color: var(--paper); border-radius: 16px; padding: clamp(32px,4vw,48px); margin-top: 28px; text-align: center; }
.post-cta h3 { font-family: var(--serif); font-weight: 340; font-size: clamp(24px,3vw,34px); line-height: 1.12; letter-spacing: -.02em; color: var(--paper); margin: 0; }
.post-cta p { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: rgba(248,242,230,0.74); margin: 12px auto 22px; max-width: 460px; }

/* disclosure */
.disclosure { background: var(--paper); padding: 30px 0 60px; }
.disclosure .wrap { max-width: 720px; }
.disclosure p { font-family: var(--sans); font-size: 12.5px; line-height: 1.6; color: var(--driftwood); margin: 0; }

/* footer */
footer.site { background: var(--gorge); color: rgba(248,242,230,0.7); padding: clamp(48px,6vw,80px) 0 36px; }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
footer.site .brand p { font-family: var(--sans); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 18px 0 0; color: rgba(248,242,230,0.55); }
footer.site h5 { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,242,230,0.4); margin: 0 0 13px; }
footer.site p, footer.site a { font-family: var(--sans); font-size: 14px; color: rgba(248,242,230,0.85); margin: 0 0 7px; text-decoration: none; display: block; }
footer.site a:hover { color: var(--clay-soft); }
footer.site .colophon { grid-column: 1/-1; border-top: 1px solid rgba(248,242,230,0.15); padding-top: 22px; margin-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(248,242,230,0.4); }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr 1fr; } }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(12,57,70,0.92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }

html { overflow-x: clip; }
@media (max-width: 430px) {
  nav.iw .iw-lockup { font-size: 15px !important; }
  nav.iw .links { gap: 12px; }
  nav.iw .links a.cta { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 560px) {
  footer.site .wrap, .site-foot .wrap { grid-template-columns: 1fr; gap: 26px; }
  footer.site .colophon, .site-foot .colophon { flex-direction: column; gap: 6px; }
}

  footer.site .colophon a, .site-foot .colophon a { display: inline; margin: 0; color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; text-decoration: none; }
  footer.site .colophon a:hover, .site-foot .colophon a:hover { color: var(--clay-soft); }
