/* Journal: the single post and the blog listing, built on the home page's glass look. */

body.blog-page { overflow-x: clip; }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #2f9c8a, #c9973f);
  transition: transform 0.15s linear;
}

/* Shared */
.bj-date { font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-mute); }
.bj-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 650; color: var(--ocean); }
.bj-more .arrow { transition: transform 0.5s var(--ease-out); }
.bj-card:hover .bj-more .arrow, .bj-feature-link:hover .bj-more .arrow { transform: translateX(5px); }
.bj-card-excerpt { color: var(--txt-soft); font-size: 15px; line-height: 1.6; }
.bj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.bj-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; color: var(--h); }

/* Post: header */
.post-hero { padding: 26px 16px 0; max-width: 860px; }
.post-hero .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 13px; color: var(--txt-mute); }
.post-hero .crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.post-hero .crumbs a { color: var(--txt-soft); text-decoration: none; }
.post-hero .crumbs a:hover { color: var(--ocean); }
.post-hero .crumbs [aria-current] { color: var(--h); font-weight: 600; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; color: var(--txt-mute); font-weight: 600; }
.post-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.post-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--h);
}
.post-dek { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.6; color: var(--txt-soft); max-width: 60ch; }

/* Post: cover image in a glass frame */
.post-cover { max-width: 860px; margin: 34px auto 10px; padding: 0 16px; }
.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  transform: scale(1.03);
  transition: transform 1.6s var(--ease-out);
}
.post-cover.is-in img { transform: scale(1); }

/* Post: article text */
.post-body { max-width: 860px; padding: 34px 16px 20px; }
.post-lead,
.post-p { font-size: 1.1rem; line-height: 1.85; color: var(--ink); margin: 0 0 1.35em; }
.post-lead { font-size: 1.22rem; color: var(--h); }
.post-lead::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.9;
  padding: 0.08em 0.12em 0 0;
  font-weight: 750;
  background: linear-gradient(135deg, #1c6171, #2f9c8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post-h {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--h);
}
.post-h::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #2f9c8a, #c9973f);
}

/* Post: keep reading */
.post-more { padding-top: 60px; }

/* Blog cards */
.bj-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bj-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .bj-grid { grid-template-columns: repeat(3, 1fr); } }
.bj-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.bj-card:hover { transform: translateY(-6px); box-shadow: 0 34px 62px -26px rgba(19, 71, 85, 0.45); }
.bj-card:focus-visible, .bj-feature-link:focus-visible { outline: 3px solid rgba(47, 156, 138, 0.6); outline-offset: 4px; }
.bj-card-img { display: block; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 10; background: var(--surface); }
.bj-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.bj-card:hover .bj-card-img img { transform: scale(1.06); }
.bj-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 10px 10px; flex: 1; }
.bj-card-title { font-size: clamp(1.05rem, 1.7vw, 1.2rem); font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; color: var(--h); }

/* Listing: hero and featured story */
.bj-hero { padding: 56px 16px 28px; }
.bj-hero h1 { margin: 14px 0 12px; font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--h); }
.bj-hero p { margin: 0; color: var(--txt-soft); font-size: 1.08rem; max-width: 48ch; }
.bj-feature { padding: 10px; border-radius: 30px; margin-bottom: 32px; }
.bj-feature-link { display: grid; gap: 0; text-decoration: none; color: var(--ink); border-radius: 24px; overflow: hidden; }
.bj-feature-img { display: block; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 9; }
.bj-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.bj-feature-link:hover .bj-feature-img img { transform: scale(1.05); }
.bj-feature-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 12px 14px; }
.bj-feature-title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--h); }
@media (min-width: 900px) {
  .bj-feature-link { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .bj-feature-img { aspect-ratio: 4 / 3.4; }
  .bj-feature-body { padding: 30px 34px; }
}
.bj-section { padding: 8px 16px 64px; }

/* Post: closing band */
.bj-band { padding: 56px 16px 72px; }
.bj-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
}
.bj-band h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.015em; color: var(--h); }
.bj-band p { margin: 0; color: var(--txt-soft); }

@media (prefers-reduced-motion: reduce) {
  .read-progress span, .post-cover img, .bj-card, .bj-card-img img, .bj-feature-img img, .bj-more .arrow { transition: none; }
  .post-cover img { transform: none; }
  .bj-card:hover, .bj-card:hover .bj-card-img img { transform: none; }
}
