/* Blog index + post pages. Loaded only on /blog/. */

/* ----- Shared labels that have to pop ----- */
.blog-kicker {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.blog-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green);
  flex: none;
}
.blog-label {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0 0 clamp(16px, 2vw, 24px);
  min-width: 0;
}
.blog-label__n {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.blog-label__t {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1;
  color: #fff;
  text-wrap: balance;
}
.section--paper .blog-label__n,
.section--paper2 .blog-label__n {
  background: var(--green);
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1;
  padding: 0.28em 0.38em 0.2em;
}
.section--paper .blog-label__t,
.section--paper2 .blog-label__t {
  color: var(--ink);
}
.blog-tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.28em 0.7em 0.22em;
  border: 1.5px solid #8dc53e;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  width: fit-content;
}
.section--paper .blog-tag {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
}
.blog-meta {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-dark, #a8b0ad);
}
.section--paper .blog-meta {
  color: var(--muted, #5b635f);
}

/* ----- Index hero ----- */
.blog-hero {
  position: relative;
  background: var(--ink);
  overflow: clip;
  isolation: isolate;
}
.blog-hero__glow {
  position: absolute;
  right: -12%;
  top: -20%;
  width: min(720px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(141, 197, 62, 0.16), rgba(141, 197, 62, 0.04) 55%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.blog-hero__in {
  position: relative;
  z-index: 1;
  padding-block: clamp(28px, 5vh, 64px) clamp(20px, 3vh, 36px);
}
.blog-hero .crumb {
  margin-bottom: clamp(20px, 4vh, 40px);
}
.blog-hero .t-hero {
  max-width: 16ch;
  margin: 0;
}
.blog-hero__promise {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: 38ch;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: #c3cac7;
  text-wrap: pretty;
}

/* ----- Featured post card ----- */
.blog-feature-sec {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.blog-feature {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  border-radius: var(--glow-r, 14px);
  background: #0b0f0e;
  overflow: clip;
  box-shadow: var(--glow-ring, 0 0 0 1.5px #8dc53e, 0 0 0 4px rgba(141, 197, 62, 0.18), 0 0 26px 4px rgba(141, 197, 62, 0.34));
  transition: box-shadow 0.35s ease;
}
.blog-feature:hover,
.blog-feature:focus-visible {
  box-shadow: var(--glow-ring-hi, 0 0 0 1.5px #8dc53e, 0 0 0 4px rgba(141, 197, 62, 0.26), 0 0 34px 8px rgba(141, 197, 62, 0.48));
}
.blog-feature__media {
  min-width: 0;
  min-height: 0;
  background: #111;
  overflow: clip;
}
.blog-feature__media picture,
.blog-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-feature__media img {
  aspect-ratio: 16 / 10;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.blog-feature:hover .blog-feature__media img,
.blog-feature:focus-visible .blog-feature__media img {
  transform: scale(1.04);
}
.blog-feature__body {
  min-width: 0;
  padding: clamp(22px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.blog-feature__body h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #fff;
  text-wrap: pretty;
}
.blog-feature__excerpt {
  margin: 0;
  max-width: 46ch;
  color: #c3cac7;
  text-wrap: pretty;
}
.blog-more {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
}
.blog-more::after {
  content: " \2192";
}
@container (max-width: 700px) {
  .blog-feature { grid-template-columns: minmax(0, 1fr); }
  .blog-feature__media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .blog-feature { grid-template-columns: minmax(0, 1fr); }
  .blog-feature__media img { aspect-ratio: 16 / 9; }
}

/* Additional listed posts (shown once more than one is published) */
.blog-cards {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  margin-top: clamp(26px, 3vw, 40px);
  min-width: 0;
}
.blog-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  border-radius: var(--glow-r, 14px);
  background: #0b0f0e;
  overflow: clip;
  box-shadow: var(--glow-ring);
  transition: box-shadow 0.35s ease;
}
.blog-card:hover,
.blog-card:focus-visible {
  box-shadow: var(--glow-ring-hi);
}
.blog-card__media {
  min-width: 0;
  background: #111;
  overflow: clip;
}
.blog-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}
.blog-card__body {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card__body h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: #fff;
  text-wrap: pretty;
}
.blog-grid-sec.on-dark {
  background: var(--ink);
  padding-top: 0;
}
@media (min-width: 761px) {
  .blog-cards--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- Coming next + start here ----- */
.blog-topics + .blog-label {
  margin-top: clamp(48px, 6vw, 80px);
}
.blog-topics {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  margin: clamp(22px, 3vw, 36px) 0 0;
  min-width: 0;
}
@media (min-width: 700px) {
  .blog-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .blog-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.blog-topic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 26px);
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--glow-r, 14px);
  box-shadow: var(--glow-ring);
  transition: box-shadow 0.35s ease;
}
.blog-topic:hover,
.blog-topic:focus-visible {
  box-shadow: var(--glow-ring-hi);
}
.blog-topic h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
.blog-topic p {
  margin: 0;
  color: var(--muted, #5b635f);
  text-wrap: pretty;
}
.blog-start {
  display: grid;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 36px);
  min-width: 0;
}
@media (min-width: 700px) {
  .blog-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .blog-start { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.blog-start a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: #fff;
  border-radius: var(--glow-r, 14px);
  box-shadow: var(--glow-ring);
  transition: box-shadow 0.35s ease;
}
.blog-start a:hover,
.blog-start a:focus-visible {
  box-shadow: var(--glow-ring-hi);
}
.blog-start a::after {
  content: "\2192";
  color: var(--green-ink, #6f9c2e);
  font-weight: 700;
  flex: none;
}

/* ----- Post page ----- */
.post-hero {
  position: relative;
  background: var(--ink);
  overflow: clip;
}
.post-hero__in {
  position: relative;
  padding-block: clamp(32px, 6vh, 72px) clamp(20px, 3vh, 32px);
}
.post-hero .crumb {
  margin-bottom: clamp(22px, 4vh, 40px);
}
.post-hero .t-hero {
  max-width: 22ch;
  margin: 10px 0 0;
}
.post-hero .blog-meta {
  margin-top: clamp(16px, 2vw, 22px);
}
.post-hero__media {
  margin: clamp(28px, 4vw, 48px) 0 0;
}
.post-hero__media picture,
.post-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--glow-r, 14px);
  box-shadow: var(--glow-ring);
  background: #111;
}
.post-hero__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post {
  max-width: 780px;
  min-width: 0;
}
.post h2 {
  margin: 1.5em 0 0.5em;
  text-wrap: pretty;
}
.post h3 {
  margin: 1.25em 0 0.4em;
  text-wrap: pretty;
}
.post p,
.post li {
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.post ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: 0.8em 0;
}
.post ol {
  list-style: decimal;
  padding-left: 1.3em;
  margin: 0.8em 0;
}
.post li { margin: 0.35em 0; }
.post a { overflow-wrap: anywhere; }
.post-lede {
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.post-media,
.post-tbl {
  margin: 1.25em 0;
  min-width: 0;
}
.post-media {
  margin-inline: 0;
}
.post-media video,
.post-media picture,
.post-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--glow-r, 14px);
  box-shadow: var(--glow-ring);
  background: #111;
}
.post-media video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted, #5b635f);
}
.post-tbl {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-tbl table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
}
.post th,
.post td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.55em 0.6em;
  text-align: left;
  vertical-align: top;
}
.post th { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .blog-feature,
  .blog-card,
  .blog-topic,
  .blog-start a,
  .blog-feature__media img,
  .blog-card__media img {
    transition: none;
  }
  .blog-feature:hover .blog-feature__media img,
  .blog-card:hover .blog-card__media img {
    transform: none;
  }
}
