/* =====================================================================
   Silver Antler journal (blog): homepage cards, index and article pages.
   Loaded after styles.css + home.css. No inline styles anywhere.
   ===================================================================== */

/* ---------- Article covers (designed artwork, swap for photos any time) ---------- */
.cover {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; aspect-ratio: 16 / 10;
  border-radius: 24px; color: #fff;
}
.cover::before, .cover::after { content: ""; position: absolute; pointer-events: none; }
.cover__big {
  position: absolute; right: 6%; top: 8%; z-index: 0;
  font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.9; letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.16);
}
.cover__tag {
  position: relative; z-index: 1; margin: 0 0 1.1rem 1.1rem; padding: 0.4rem 0.85rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
/* A: brand in 2027, royal rings */
.cover--a { background: radial-gradient(90% 90% at 80% 10%, #3b55c4 0%, rgba(59, 85, 196, 0) 60%), linear-gradient(160deg, #1c2f6b, #0a1230); }
.cover--a::before { inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.03), 0 0 0 90px rgba(255, 255, 255, 0.025); }
/* B: clear message, speech bubbles */
.cover--b { background: linear-gradient(150deg, #2b428f, #111d4a); }
.cover--b::before { left: 9%; top: 14%; width: 46%; height: 26%; border-radius: 20px 20px 20px 4px; background: rgba(255, 255, 255, 0.92); }
.cover--b::after { right: 9%; top: 34%; width: 38%; height: 22%; border-radius: 20px 20px 4px 20px; background: rgba(169, 184, 230, 0.45); }
/* C: logo, construction circle */
.cover--c { background: linear-gradient(160deg, #6d0b28, #33030f); }
.cover--c::before { right: 12%; top: 12%; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(243, 205, 219, 0.55); }
.cover--c::after { right: 24%; top: 24%; width: 20%; aspect-ratio: 1; background: rgba(243, 205, 219, 0.9); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ---------- Post cards (homepage + index + "read another") ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.post-card { display: block; color: var(--ink); text-decoration: none; }
.post-card .cover { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.post-card:hover .cover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.post-card__body { padding: 1.2rem 0.2rem 0; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -0.01em; }
.post-card p.post-card__excerpt { margin-top: 0.6rem; color: var(--graphite); font-size: 0.95rem; line-height: 1.55; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: 0.78rem; color: var(--graphite); }
.post-card__meta span { color: var(--royal); font-size: 1.1rem; transition: transform 0.35s var(--ease); }
.post-card:hover .post-card__meta span { transform: translate(3px, -3px); }

/* Homepage blog section */
.blog { padding-block: var(--sec, clamp(4rem, 9vw, 7rem)); }
.blog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.blog__head h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.02; }

/* ---------- Article + index hero ---------- */
.post-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(90% 90% at 85% 0%, rgba(58, 84, 200, 0.7) 0%, rgba(44, 67, 168, 0) 60%),
    linear-gradient(170deg, #16256a 0%, var(--night-2) 42%, var(--night) 100%);
}
.post-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 90% at 75% 20%, #000, transparent); mask-image: radial-gradient(70% 90% at 75% 20%, #000, transparent);
}
.post-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.post-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.post-hero h1 em { color: var(--royal-pale); }
.post-hero__sub { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, 0.74); }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.6rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.post-hero__back { display: inline-flex; gap: 0.5rem; margin-top: 1.6rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: gap 0.3s var(--ease); }
.post-hero__back:hover { gap: 0.85rem; }
.crumb { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal-pale); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.guide-card {
  padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 26px;
  background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.guide-card__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal-pale); }
.guide-card ol { margin-top: 1rem; display: grid; gap: 0.15rem; counter-reset: g; }
.guide-card li { counter-increment: g; }
.guide-card a {
  display: flex; gap: 0.9rem; align-items: baseline; padding: 0.7rem 0; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.95rem; line-height: 1.35; transition: padding-left 0.3s var(--ease), color 0.3s;
}
.guide-card li:last-child a { border-bottom: 0; }
.guide-card a::before { content: "0" counter(g); flex: none; font-family: var(--serif); font-size: 1.05rem; color: var(--royal-pale); }
.guide-card a:hover { padding-left: 0.4rem; color: var(--royal-pale); }

/* ---------- Article body ---------- */
.post { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.post__inner { max-width: 44rem; margin-inline: auto; }
.post__lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.35; color: var(--ink); }
.post p { margin-top: 1.1rem; color: var(--graphite); font-size: 1.05rem; line-height: 1.75; }
.post .post__lede + p { margin-top: 1.4rem; }
.chapter { margin-top: clamp(2.5rem, 6vw, 3.75rem); padding-top: 1.6rem; border-top: 1px solid var(--hair); scroll-margin-top: 6rem; }
.chapter__num { display: block; margin-bottom: 0.5rem; font-family: var(--serif); font-size: 1.15rem; color: var(--royal); }
.chapter h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.08; }
.post ul.post__list { margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.post__list li { position: relative; padding-left: 1.5rem; color: var(--graphite); font-size: 1.02rem; line-height: 1.6; }
.post__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--royal); }
.post__list b { color: var(--ink); }
.formula { margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: #e6ebf8; border: 1px solid rgba(43, 66, 143, 0.2); font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35; color: var(--royal-deep); }
.pullquote { margin: clamp(2.5rem, 6vw, 3.75rem) 0 0; padding: 0.4rem 0 0.4rem 1.6rem; border-left: 3px solid var(--royal); }
.pullquote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; color: var(--ink); }
.takeaways { margin-top: clamp(2.5rem, 6vw, 3.75rem); padding: clamp(1.4rem, 3vw, 2rem); border-radius: 24px; background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow-soft); }
.takeaways h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.takeaways .post__list { margin-top: 1rem; }
.example { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.example div { padding: 1rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--hair); font-size: 1rem; line-height: 1.5; color: var(--ink); }
.example b { display: block; margin-bottom: 0.2rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); }
.example div:last-child { background: #edf0fb; border-color: rgba(43, 66, 143, 0.28); }
.example div:last-child b { color: var(--royal); }

/* Call to action + read another */
.post-cta { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; border-radius: 32px; color: #fff; background: radial-gradient(90% 100% at 50% 0%, rgba(58, 84, 200, 0.7), rgba(44, 67, 168, 0) 60%), linear-gradient(170deg, #16256a, var(--night)); }
.post-cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.04; color: #fff; }
.post-cta h2 em { color: var(--royal-pale); }
.post-cta p { max-width: 40ch; margin: 1rem auto 1.6rem; color: rgba(255, 255, 255, 0.74); }
.post-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.more { padding-block: var(--sec, clamp(4rem, 9vw, 7rem)); }
.more__head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.more__head h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.04; }
.post-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.index-body { padding-block: var(--sec, clamp(4rem, 9vw, 7rem)) 0; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-hero__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .post-grid, .post-grid--two { grid-template-columns: minmax(0, 1fr); }
  .blog__head { text-align: center; justify-content: center; }
  .post-hero { text-align: center; }
  .post-hero__sub { margin-inline: auto; }
  .post-hero__meta, .crumb { justify-content: center; }
  .guide-card { text-align: left; }
  .cover__tag { margin: 0 0 0.9rem 0.9rem; }
}

/* Titles use the same serif as the homepage hero and section headings */
.post-hero h1, .post-cta h2, .takeaways h2, .chapter h2, .more__head h2, .blog__head h2 { font-family: var(--serif); font-weight: 400; }

/* Legal pages */
.legal-note { margin-top: clamp(2.5rem, 6vw, 3.75rem); padding: 1.1rem 1.3rem; border-radius: 16px; background: #fff; border: 1px solid var(--hair); font-size: 0.95rem; }
.legal-note a, .chapter p a { color: var(--royal); font-weight: 600; }
.post .chapter i { font-style: italic; }
