/* =========================================================================
   BLOG (blog.php listing + blog-post.php articles). Builds on css/styles.css.
   ========================================================================= */

/* --------------------------------------------------------- Shared bits ---- */
.bl-cat {
  display: inline-block; padding: .3rem .75rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  background: rgba(73, 233, 183, .24); color: #137a5c;
}
.bl-cat--dark { background: rgba(73, 233, 183, .14); color: var(--mint); margin-bottom: 1.1rem; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; font-family: var(--font-head); font-size: .9rem; color: rgba(62, 67, 73, .7); }
.bl-meta > span { display: inline-flex; align-items: center; gap: .45rem; }
.bl-meta i { color: var(--mint-deep); font-size: .85rem; }
.bl-draft { padding: .15rem .55rem; border-radius: 999px; background: var(--ink-900); color: var(--mint); font-weight: 600; font-size: .75rem; }

/* ------------------------------------------------------------ Listing ---- */
.bl-hero h1 { max-width: 14ch; }
.bl-list { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; }

.bl-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.bl-feature-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-800); box-shadow: 0 30px 60px -34px rgba(42, 46, 51, .55); }
.bl-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bl-feature:hover .bl-feature-media img { transform: scale(1.03); }
.bl-feature-body { display: grid; justify-items: start; gap: 1rem; }
.bl-feature h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: .98; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--ink-900); }
.bl-feature h2 a:hover { color: var(--mint-deep); }
.bl-feature .btn { margin-top: .6rem; }
.bl-excerpt { font-size: 1.07rem; line-height: 1.6; color: rgba(62, 67, 73, .85); max-width: 52ch; }

.bl-more-title { margin: clamp(3.5rem, 7vw, 5rem) 0 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(62, 67, 73, .16); font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink-900); }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.bl-grid--two { grid-template-columns: repeat(2, 1fr); }
.bl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px rgba(62, 67, 73, .07); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(42, 46, 51, .45), 0 0 0 1px rgba(62, 67, 73, .07); }
.bl-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-800); }
.bl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.bl-card-body { display: grid; justify-items: start; gap: .7rem; padding: 1.2rem 1.3rem 1.4rem; }
.bl-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--ink-900); }
.bl-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is clickable */
.bl-card:focus-within { outline: 3px solid var(--mint); outline-offset: 3px; }
.bl-card h3 a:focus-visible { outline: none; }

/* Nothing published yet */
.bl-empty-card { max-width: 640px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem); border-radius: var(--radius-lg); background: #fff; text-align: center; box-shadow: 0 0 0 1px rgba(62, 67, 73, .07); }
.bl-empty-card i { font-size: 1.8rem; color: var(--mint-deep); }
.bl-empty-card h2 { margin-top: 1rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1; color: var(--ink-900); }
.bl-empty-card p { margin: 1rem auto 0; max-width: 46ch; line-height: 1.6; }
.bl-empty-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* ------------------------------------------------------------- Article ---- */
.bp-hero { padding-bottom: clamp(8rem, 15vw, 11rem); }
.bp-hero-inner { max-width: 860px; }
.bp-hero h1 { max-width: 20ch; font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: .98; }
.bp-hero .bl-meta { margin-top: 1.3rem; color: rgba(238, 237, 236, .7); }
.bp-hero .bl-meta i { color: var(--mint); }
.bp-hero .bl-draft { background: var(--mint); color: var(--ink-900); }

.bp-cover {
  position: relative; z-index: 2; width: min(860px, calc(100% - var(--gutter) * 2));
  margin: calc(clamp(6rem, 12vw, 8.5rem) * -1) auto 0; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-800);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .6);
}
.bp-cover img { width: 100%; height: 100%; object-fit: cover; }

.bp-article { width: min(720px, calc(100% - var(--gutter) * 2)); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; }
.bp-standfirst { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-900); }

.bp-body { font-size: 1.1rem; line-height: 1.75; color: rgba(62, 67, 73, .95); }
.bp-body > * + * { margin-top: 1.2rem; }
.bp-body h2 { margin-top: 2.6rem; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--ink-900); }
.bp-body h3 { margin-top: 2rem; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink-900); }
.bp-body ul { display: grid; gap: .55rem; }
.bp-body li { position: relative; padding-left: 1.8rem; }
.bp-body li::before { content: "\f00c"; position: absolute; left: 0; top: .1em; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: .85em; color: var(--mint-deep); }
.bp-body a { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mint-deep); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.bp-body blockquote {
  margin-top: 2.4rem; margin-bottom: 2.4rem; padding-left: 1.4rem; border-left: 6px solid var(--mint);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--ink-900);
}

/* End of article: the next step, on mint with the 2 Tone edge */
.bp-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; border-radius: var(--radius); background: var(--mint); color: var(--ink-900); }
.bp-cta-body { padding: 1.6rem 1.7rem 1.8rem; }
.bp-cta p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.4; }
.bp-cta-actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.bp-signoff { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(62, 67, 73, .16); display: flex; gap: 1rem; align-items: flex-start; }
.bp-signoff-mark { flex: none; width: 2.6rem; height: 2.6rem; }
.bp-signoff p { font-size: .98rem; line-height: 1.6; color: rgba(62, 67, 73, .85); }
.bp-signoff a { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mint-deep); text-underline-offset: .2em; }

.bp-others-inner { max-width: 900px; margin: 0 auto; }
.bp-others h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--ink-900); margin-bottom: 1.6rem; }

/* ---------------------------------------------------------- Responsive ---- */
@media (max-width: 980px) {
  .bl-feature { grid-template-columns: 1fr; }
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bl-grid, .bl-grid--two { grid-template-columns: 1fr; }
  .bp-cover { aspect-ratio: 4 / 3; }
}
