/* =====================================================================
   Smart Calendar — blog-new.css
   Editorial blog (index + article) on the home theme.
   Requires home.css to be loaded FIRST (tokens, nav, footer, buttons).
   ===================================================================== */

/* clear the fixed nav */
.blog-main { padding-top: 72px; }

/* =========================== BLOG HERO ============================== */
.blog-hero { position: relative; text-align: center; padding: clamp(56px, 9vw, 110px) 0 clamp(28px, 4vw, 44px); }
.blog-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--lavender); filter: blur(90px); top: -60px; left: 50%; transform: translateX(-50%);
  opacity: .5; z-index: -1;
}
.blog-hero .eyebrow { display: block; margin-bottom: 16px; }
.blog-hero h1 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.0; letter-spacing: -.022em; color: var(--ink);
}
.blog-hero .sub { margin: 18px auto 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); max-width: 56ch; }
.blog-hero .hero-socials { display: flex; gap: 16px; justify-content: center; margin-top: 22px; }
.blog-hero .hero-socials a { color: var(--muted); font-size: 19px; transition: color .15s ease, transform .15s ease; }
.blog-hero .hero-socials a:hover { color: var(--violet); transform: translateY(-2px); }

/* =========================== CATEGORY CHIPS ========================= */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px auto clamp(36px, 5vw, 56px); max-width: 760px; }
.cat-chip {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong);
  background: transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cat-chip:hover { background: rgba(27,24,19,.05); }
.cat-chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* =========================== POST GRID ============================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: clamp(64px, 9vw, 120px); }

.post-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* colored cover band (no image needed) */
.post-cover { position: relative; height: 168px; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.post-cover .post-cat { position: relative; z-index: 2; }
.post-cover.c-violet { background: linear-gradient(135deg, #8B7CFF, #6442F0); }
.post-cover.c-green  { background: linear-gradient(135deg, #1f9d61, #0F4A3C); }
.post-cover.c-amber  { background: linear-gradient(135deg, #FFC074, #F08A24); }
.post-cover.c-ink    { background: linear-gradient(135deg, #43403A, #1B1813); }
.post-cover.c-lav    { background: linear-gradient(135deg, #B9A6FF, #7C5CFF); }
.post-cover::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(120px 120px at 82% 18%, rgba(255,255,255,.35), transparent 70%);
}
.post-cover .cover-glyph {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 58px; color: rgba(255,255,255,.9); z-index: 1;
}

.post-cat {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.28); padding: 6px 11px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.post-card h2, .post-card h3 {
  font-family: var(--serif); font-weight: 450; font-size: 22px; line-height: 1.18; letter-spacing: -.01em; color: var(--ink);
}
.post-card .excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.55; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 4px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.post-card .read-more { margin-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--violet-deep); display: inline-flex; align-items: center; gap: 7px; }
.post-card:hover .read-more .arw { transform: translateX(3px); }
.read-more .arw { transition: transform .2s ease; }

/* featured (first) card spans full width, 2-col */
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-cover { height: auto; width: 44%; min-height: 320px; flex: none; }
.post-card.featured .post-body { padding: clamp(26px, 3vw, 44px); justify-content: center; }
.post-card.featured h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 400; }
.post-card.featured .excerpt { font-size: 16.5px; max-width: 52ch; flex: none; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-cover { width: 100%; min-height: 0; height: 200px; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   ARTICLE (single post)
   ===================================================================== */
.article-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.article-hero::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: var(--lavender); filter: blur(90px); top: -40px; right: -40px; opacity: .4; z-index: -1;
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--violet); text-decoration: underline; }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb [aria-current] { color: var(--ink-soft); font-weight: 600; }

.article-hero .post-cat.inline { color: var(--violet-deep); background: var(--lavender); }
.article-hero h1 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.022em; color: var(--ink);
  margin: 16px 0 0; max-width: 20ch;
}
.article-dek { margin-top: 20px; font-size: clamp(18px, 2.3vw, 23px); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; font-family: var(--serif); font-weight: 350; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-byline .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.article-byline .who { line-height: 1.3; }
.article-byline .who b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.article-byline .who small { display: block; font-size: 13px; color: var(--muted); }

/* article body — readable measure */
.article { max-width: 720px; margin: 0 auto; padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 8vw, 100px); }
.article > p { font-size: 18.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 22px; }
.article > p:first-of-type { font-size: 20px; }
.article h2 {
  font-family: var(--serif); font-weight: 450; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12;
  letter-spacing: -.018em; color: var(--ink); margin: 48px 0 16px; scroll-margin-top: 92px;
}
.article h3 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2;
  color: var(--ink); margin: 34px 0 12px; scroll-margin-top: 92px;
}
.article ul, .article ol { margin: 0 0 24px; padding-left: 0; display: flex; flex-direction: column; gap: 12px; }
.article ul li { position: relative; padding-left: 30px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.article ul li::before { content: ""; position: absolute; left: 8px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.article ol { counter-reset: li; }
.article ol li { position: relative; padding-left: 42px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); counter-increment: li; }
.article ol li::before {
  content: counter(li); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--lavender); color: var(--violet-deep); font-family: var(--sans); font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}
.article li strong, .article p strong { color: var(--ink); font-weight: 700; }
.article a { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; transition: color .15s ease; }
.article a:hover { color: var(--violet); }
.article em { font-style: italic; }
.article hr { border: 0; height: 1px; background: var(--line); margin: 44px 0; }

/* lead-in drop intro */
.article blockquote {
  margin: 32px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--violet);
  font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; color: var(--ink);
}
.article blockquote cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }

/* callout / tip box */
.callout {
  display: flex; gap: 14px; background: var(--lavender); border: 1px solid var(--lavender-2);
  border-radius: var(--r-md); padding: 20px 22px; margin: 30px 0;
}
.callout .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--violet-deep); display: grid; place-items: center; font-size: 15px; box-shadow: var(--shadow-sm); }
.callout .ct { font-size: 16.5px; line-height: 1.6; color: #3c2e6b; }
.callout .ct b { color: var(--violet-deep); }
.callout.green { background: var(--green-soft); border-color: #c3ddcf; }
.callout.green .ic { color: var(--green); }
.callout.green .ct { color: #1d4a3b; }
.callout.green .ct b { color: var(--green); }
.callout.amber { background: #FFF0DC; border-color: #F6DCB4; }
.callout.amber .ic { color: var(--amber-ink); }
.callout.amber .ct { color: #6e4a17; }
.callout.amber .ct b { color: var(--amber-ink); }

/* key takeaways / TL;DR box */
.tldr { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin: 0 0 36px; }
.tldr h2 { font-size: 15px !important; font-family: var(--sans) !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px !important; }
.tldr ul { margin: 0; }
.tldr ul li { font-size: 16.5px; padding-left: 28px; }
.tldr ul li::before { background: var(--amber); top: 10px; }

/* inline CTA card */
.cta-card {
  position: relative; overflow: hidden; background: var(--green); color: #fff;
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); margin: 44px 0; text-align: center;
}
.cta-card::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(124,92,255,.45); filter: blur(70px); top: -120px; right: -60px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 33px); line-height: 1.12; margin-bottom: 12px; color: #fff; }
.cta-card p { color: rgba(234,243,238,.85); font-size: 17px; margin-bottom: 22px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-card .btn-on-green { background: #fff; color: var(--green); }
.cta-card .btn-on-green:hover { background: var(--lavender); color: var(--violet-deep); }

/* FAQ */
.faq { margin: 28px 0 0; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.2vw, 23px); color: var(--ink); }
.faq-item p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* author note / share footer */
.article-foot { max-width: 720px; margin: 0 auto; padding: 0 0 clamp(48px, 7vw, 90px); }
.share-row { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-row span { font-weight: 600; font-size: 14px; color: var(--muted); }
.share-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink-soft); transition: all .15s ease; }
.share-row a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }

/* related posts */
.related { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; margin-bottom: 28px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .related-grid { grid-template-columns: 1fr; } }
