/* ==================================================================
   blog.css — Insights index and article pages.

   Rides on new-landing.css: same tokens, same header/footer, same
   Anton SC / Poppins pairing. Only the reading column and the card
   grid are new. Loaded second so it can lean on --orange, --ink,
   --bone, --gut and --header-h without redeclaring them.
   ================================================================== */

/* ---------------------------------------------------------------- */
/* Shared bits                                                       */
/* ---------------------------------------------------------------- */

.ab-label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .9rem;
}

/* The hairline rules the hero and footer use, reused as a masthead
   texture so the blog does not read as a bolted-on section. */
.blog-hero__rules,
.post__rules {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding-inline: var(--gut);
}

.blog-hero__rules span {
  width: 1px;
  background: var(--rule);
}

/* ---------------------------------------------------------------- */
/* Index masthead                                                    */
/* ---------------------------------------------------------------- */

.blog-hero {
  position: relative;
  background: var(--bone);
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) var(--gut) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.blog-hero__inner {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}

.blog-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  margin: 0 0 1.2rem;
}

.blog-hero__title span {
  display: block;
}

.blog-hero__title span:last-child {
  color: var(--orange);
}

.blog-hero__lede {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 300;
  line-height: 1.65;
  color: #4a4a4a;
  max-width: 56ch;
  margin: 0;
}

/* ---------------------------------------------------------------- */
/* Card grid                                                         */
/* ---------------------------------------------------------------- */

.blog-list {
  background: var(--bone);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gut) clamp(4rem, 8vw, 7rem);
}

.blog-list__wrap {
  max-width: 1180px;
  margin-inline: auto;
}

.card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.4rem, 2.4vw, 2.2rem);
}

.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 102, 49, .35);
  box-shadow: 0 18px 40px -22px rgba(26, 26, 26, .45);
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sky-card);
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.card:hover .card__thumb img {
  transform: scale(1.04);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
}

.card__meta {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .7rem;
}

.card__title {
  font-family: var(--font-body);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 .7rem;
}

.card__dek {
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 300;
  line-height: 1.6;
  color: #5a5a5a;
  margin: 0 0 1.2rem;
}

.card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}

.card__more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.card:hover .card__more svg {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------- */
/* Article                                                           */
/* ---------------------------------------------------------------- */

.post {
  background: var(--bone);
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) var(--gut) clamp(4rem, 8vw, 7rem);
}

/* 68ch is the comfortable reading measure; the hero image and the CTA
   are allowed to break out of it below. */
.post__wrap {
  max-width: 760px;
  margin-inline: auto;
}

.post__crumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.post__crumb a {
  color: var(--muted);
  text-decoration: none;
}

.post__crumb a:hover {
  color: var(--orange);
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.post__tag {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(242, 102, 49, .1);
  border-radius: 999px;
  padding: .35rem .8rem;
}

.post__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin: 0 0 1rem;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 2.2rem;
}

.post__hero {
  margin: 0 0 2.4rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.post__hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------- body copy ---------------------------------------------- */

.post__body {
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 300;
  line-height: 1.78;
  color: #333;
}

.post__body > *:first-child {
  margin-top: 0;
}

.post__body p {
  margin: 0 0 1.5rem;
}

.post__body h2 {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  margin: 3rem 0 1rem;
}

.post__body h3 {
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 2.2rem 0 .8rem;
}

.post__body h4 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.8rem 0 .6rem;
}

/* The orange keyline ties headings back to the rest of the site
   without needing a second display face in the body copy. */
.post__body h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--orange);
  margin-bottom: .85rem;
}

.post__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 102, 49, .55);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color .2s ease;
}

.post__body a:hover {
  color: var(--orange);
}

.post__body strong {
  font-weight: 600;
  color: var(--ink);
}

.post__body ul,
.post__body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.3rem;
}

.post__body li {
  margin-bottom: .6rem;
  padding-left: .3rem;
}

.post__body ul li::marker {
  color: var(--orange);
}

.post__body ol li::marker {
  color: var(--orange);
  font-weight: 600;
}

.post__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.post__body figure {
  margin: 2rem 0;
}

.post__body figcaption {
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
  margin-top: .6rem;
}

.post__body blockquote {
  margin: 2rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 3px solid var(--orange);
  font-size: 1.12rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}

.post__body blockquote p:last-child {
  margin-bottom: 0;
}

/* Wide content scrolls inside its own box rather than pushing the
   whole page sideways on a phone. */
.post__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  margin: 2rem 0;
}

.post__body table th,
.post__body table td {
  border: 1px solid var(--rule);
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: top;
}

.post__body table th {
  background: var(--sky-card);
  font-weight: 600;
  color: var(--ink);
}

.post__body pre {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: .88rem;
  margin: 0 0 1.5rem;
}

.post__body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0;
}

/* -------- closing CTA -------------------------------------------- */

.post__cta {
  margin-top: 3.5rem;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  background: var(--navy);
  border-radius: 16px;
  text-align: center;
  color: #fff;
}

.post__cta h2 {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .7rem;
  color: #fff;
}

.post__cta p {
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 300;
  color: var(--sky);
  margin: 0 0 1.5rem;
}

.post__cta .ab-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: transform .2s ease, filter .2s ease;
}

.post__cta .ab-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.post__cta .ab-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -------- keep reading ------------------------------------------- */

.post__next {
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--rule);
}

.post__nexth {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.mini__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.mini {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.mini:hover {
  border-color: rgba(242, 102, 49, .4);
  transform: translateY(-2px);
}

.mini__date {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

.mini__title {
  display: block;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------------------------------------------------------------- */
/* Narrow viewports                                                  */
/* ---------------------------------------------------------------- */

@media (max-width: 700px) {
  .card__grid {
    grid-template-columns: 1fr;
  }

  .post__body {
    font-size: 1rem;
  }

  .blog-hero__title span {
    display: inline;
  }
}
