/* ============================================================
   Blog — Reach Creator
   Inherits tokens from styles.css (:root). Loaded only on /blog pages.
   ============================================================ */

/* ---------- hero ---------- */
.blog-hero {
  position: relative;
  padding-block: clamp(120px, 15vw, 168px) clamp(44px, 6vw, 72px);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(200, 30, 44, .16), transparent 65%),
    radial-gradient(700px 380px at 88% 0%, rgba(245, 130, 31, .08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.blog-hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 20ch;
  text-wrap: balance;
}
.blog-hero__stand {
  color: var(--ink-soft);
  font-size: clamp(15.5px, 1.4vw, 18px);
  max-width: 68ch;
  margin: 0;
  text-wrap: pretty;
}
.blog-crumb {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 26px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.blog-crumb a { color: var(--ink-soft); }
.blog-crumb a:hover { color: var(--red-bright); }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  max-width: 760px;
}

/* ---------- hero with cover ---------- */
.blog-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.blog-hero__media { margin: 0; }
.blog-hero__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.blog-hero--index { padding-block: clamp(96px, 11vw, 128px) clamp(30px, 4vw, 48px); }
.blog-hero--index .blog-hero__in { grid-template-columns: minmax(0, 1fr); }

/* ---------- article shell ---------- */
.post { padding-block: clamp(44px, 6vw, 84px) clamp(60px, 8vw, 110px); }
.post__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.post__body { max-width: 72ch; }
.post__body--narrow { max-width: 74ch; margin-inline: auto; }
.post__wrap:has(.post__body--narrow) { grid-template-columns: minmax(0, 1fr); }

.post__body h2 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: clamp(46px, 6vw, 70px) 0 18px;
  scroll-margin-top: 92px;
}
.post__body h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--red);
  margin-bottom: 18px;
}
.post__body h3 { font-family: var(--f-display); font-size: 19px; margin: 30px 0 10px; }
.post__body p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.72;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.post__body strong { color: var(--ink); font-weight: 600; }
.post__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(200, 30, 44, .65);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color .18s, text-decoration-color .18s;
}
.post__body a:hover { color: var(--red-bright); text-decoration-color: var(--red-bright); }
.post__body ul, .post__body ol { margin: 0 0 24px; padding-left: 22px; color: var(--ink-soft); }
.post__body li { margin-bottom: 10px; line-height: 1.65; }

.post__lede {
  font-size: clamp(18px, 1.7vw, 20.5px) !important;
  line-height: 1.62 !important;
  color: var(--ink) !important;
}

/* ---------- criteria list ---------- */
.post__crit { counter-reset: crit; list-style: none; padding: 0 !important; margin: 0 0 12px !important; }
.post__crit li {
  position: relative;
  counter-increment: crit;
  padding: 18px 0 18px 54px;
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
}
.post__crit li::before {
  content: counter(crit, decimal-leading-zero);
  position: absolute;
  left: 0; top: 17px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--red);
  border: 1px solid rgba(200, 30, 44, .45);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.2;
}
.post__crit strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; }

/* ---------- entries ---------- */
.post__note {
  border-left: 2px solid var(--line-2);
  padding-left: 16px;
  font-size: 15.5px !important;
  color: var(--ink-mute) !important;
}
.post__entry {
  padding: 26px 0 24px;
  border-top: 1px solid var(--line);
}
.post__entry:first-of-type { border-top: 0; }
.post__agency {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 10px !important;
  font-size: clamp(19px, 2vw, 22px) !important;
  scroll-margin-top: 96px;
}
.post__agency a { text-decoration: none !important; color: var(--ink); }
.post__agency a:hover { color: var(--red-bright); }
.post__agency a::after {
  content: " ↗";
  font-size: .72em;
  color: var(--ink-mute);
  vertical-align: super;
}
.post__num {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: .06em;
  flex: 0 0 auto;
}
.post__quote {
  margin: 16px 0 4px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
}
.post__quote p {
  font-size: 15.5px !important;
  line-height: 1.6 !important;
  color: var(--ink) !important;
  margin: 0 0 8px !important;
}
.post__quote--pull { margin: 26px 0 !important; padding: 22px 26px !important; }
.post__quote--pull p {
  font-size: clamp(19px, 2vw, 23px) !important;
  line-height: 1.45 !important;
  letter-spacing: -.01em;
}
.post__quote cite {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- table ---------- */
.post__tablewrap {
  margin: 8px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post__table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: auto; }
.post__table th:nth-child(1) { width: 16%; }
.post__table th:nth-child(4) { width: 20%; }
.post__table td:nth-child(5) { white-space: nowrap; }
.post__table td:nth-child(1) { white-space: nowrap; }
.post__table th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: left;
  padding: 12px 12px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.post__table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.post__table tbody tr:last-child td { border-bottom: 0; }
.post__table tbody tr:hover td { background: rgba(255, 255, 255, .022); }
.post__table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- faq ---------- */
.post .faq { margin: 4px 0 10px; max-width: none; }
.post .faq__item summary {
  font-family: var(--f-display);
  font-size: 17px;
  padding: 18px 34px 18px 0;
}
.post .faq__item p { font-size: 15.5px; max-width: 72ch; }

/* ---------- cta card ---------- */
.post__cta {
  margin-top: clamp(46px, 6vw, 72px);
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(200, 30, 44, .14), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.post__cta-kicker {
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red) !important;
  margin: 0 0 10px !important;
}
.post__cta h3 { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 26px); }
.post__cta p { font-size: 15.5px !important; margin-bottom: 22px !important; max-width: 56ch; }

/* ---------- aside ---------- */
.post__aside { position: sticky; top: 96px; }
.post__aside-h {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.post__toc { display: flex; flex-direction: column; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.post__toc a {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 0;
  line-height: 1.35;
  transition: color .16s;
}
.post__toc a:hover { color: var(--red-bright); }
.post__toc-sep { display: block; height: 1px; background: var(--line); margin: 8px 0; }
.post__related { list-style: none !important; padding: 0 !important; }
.post__related li { border-bottom: 1px solid var(--line); margin: 0 !important; }
.post__related a { display: block; padding: 14px 0; font-size: 16.5px; }

/* ---------- blog index ---------- */
.blog-hero--index .blog-hero__title { max-width: 24ch; }
.blog-index { padding-block: clamp(40px, 6vw, 76px) clamp(64px, 8vw, 110px); }
.blog-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform .22s, border-color .22s, background .22s;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.blog-card__img {
  max-width: none;
  width: calc(100% + 2 * clamp(22px, 3vw, 30px));
  margin: calc(-1 * clamp(22px, 3vw, 30px)) calc(-1 * clamp(22px, 3vw, 30px)) 4px;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.blog-card__tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.blog-card__h {
  font-family: var(--f-display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.blog-card__p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.blog-card__meta {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .post__wrap { grid-template-columns: minmax(0, 1fr); }
  .post__aside { display: none; }
  .blog-hero__in { grid-template-columns: minmax(0, 1fr); }
  .blog-hero__media { max-width: 520px; }
}
@media (max-width: 900px) {
  .post__table { min-width: 620px; }
}
@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post__body p { font-size: 16.5px; }
  .blog-meta { gap: 6px 16px; font-size: 10.5px; }
}
