/* ===========================================================
   BLOG-SPECIFIC STYLES
   =========================================================== */

.brand-text-orange { color: var(--brand); }

/* HERO */
.blog-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 70px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.blog-hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 120px);
  line-height: .96;
  letter-spacing: -.04em;
  margin-top: 28px;
  margin-bottom: 28px;
}
.blog-hero__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 640px;
}
.blog-hero__stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-soft);
}
@media (max-width: 720px) { .blog-hero__stats { grid-template-columns: repeat(2, 1fr); } }
.bhs {
  padding: 22px 18px 4px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--rule-soft);
}
.bhs:last-child { border-right: 0; }
.bhs--brand { color: var(--brand); }
.bhs__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: 32px; letter-spacing: -.02em;
  color: var(--ink);
}
.bhs--brand .bhs__num { color: var(--brand); }
.bhs__lbl {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; font-weight: 600;
  color: var(--ink-4);
}

/* FILTER */
.blog-filter {
  padding: 28px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  position: sticky; top: 64px; z-index: 9;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.blog-filter .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  background: #fff;
  font-family: var(--f-mono); font-size: 12px;
  font-weight: 600; letter-spacing: .04em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip__count {
  font-size: 10px; padding: 2px 6px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  color: inherit; opacity: .7;
}
.chip:not(.chip--active) .chip__count { background: var(--paper-2); }

.search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-3);
  min-width: 240px;
}
.search input {
  border: 0; background: transparent;
  font: inherit; font-family: var(--f-body);
  font-size: 13px; outline: none;
  flex: 1;
  color: var(--ink);
}

/* FEATURED */
.blog-feat { padding: 56px 0 32px; background: var(--paper); }
.feat {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.feat:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 16px 48px -20px rgba(11,18,32,.18);
}
@media (max-width: 880px) { .feat { grid-template-columns: 1fr; } }
.feat__media { position: relative; min-height: 360px; }
.feat__art { width: 100%; height: 100%; display: block; }
.feat__body {
  padding: clamp(28px, 3.5vw, 48px);
  display: flex; flex-direction: column; gap: 18px;
  justify-content: center;
}
.feat__body h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1; letter-spacing: -.02em;
  text-wrap: balance;
}
.feat__body p {
  font-size: 16px; line-height: 1.55;
  color: var(--ink-3);
}
.feat__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px;
  font-weight: 600; letter-spacing: .12em;
  color: var(--brand);
  margin-top: 8px;
}

/* ARCHIVE */
.blog-archive { padding: clamp(60px, 8vw, 100px) 0; background: var(--paper); }
.archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .archive { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .archive { grid-template-columns: 1fr; } }

.archive__empty {
  padding: 60px 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.archive__empty p {
  font-size: 16px; color: var(--ink-3);
}

/* NEWSLETTER */
.news {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 100px) 0;
}
.news__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .news__inner { grid-template-columns: 1fr; } }
.news__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -.025em;
  margin-top: 18px; margin-bottom: 14px;
  text-wrap: balance;
}
.news__sub {
  font-size: 16px; line-height: 1.5;
  color: rgba(255,255,255,.65);
  max-width: 480px;
}
.news__form {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 8px;
}
.news__form input {
  flex: 1;
  min-width: 220px;
  border: 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: 15px;
  color: #fff;
  padding: 12px 14px;
  outline: none;
}
.news__form input::placeholder { color: rgba(255,255,255,.4); }

/* ===========================================================
   POST DETAIL
   =========================================================== */
.post-hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 50px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.crumb {
  display: flex;
  gap: 8px; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; font-weight: 600;
  color: var(--ink-4);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.post-hero__cat {
  display: inline-block;
  background: var(--brand); color: #fff;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .14em; font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.post-hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04; letter-spacing: -.03em;
  margin-bottom: 24px;
  max-width: 980px;
  text-wrap: balance;
}
.post-hero__sub {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 720px;
  margin-bottom: 36px;
}
.post-hero__meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
}
.author {
  display: inline-flex; align-items: center; gap: 12px;
}
.author__avt {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 15px;
}
.author__txt {
  display: flex; flex-direction: column;
  font-size: 14px;
}
.author__txt b { font-weight: 600; color: var(--ink); }
.author__txt span {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--ink-4); letter-spacing: .04em;
}
.post-hero__stat {
  display: flex; flex-direction: column; gap: 4px;
}
.post-hero__stat .k {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; font-weight: 600;
  color: var(--ink-4);
}
.post-hero__stat .v {
  font-family: var(--f-display); font-weight: 600;
  font-size: 18px; color: var(--ink);
}

/* COVER */
.post-cover {
  margin-top: 0;
  background: var(--paper);
  padding: 0 0 0;
}
.post-cover .container { padding: 0 var(--gutter); }
.post-cover__inner {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--ink);
}
.post-cover__inner svg { width: 100%; height: 100%; display: block; }

/* BODY */
.post-body {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--paper);
}
.post-body__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 48px;
}
@media (max-width: 1080px) {
  .post-body__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-body__aside, .post-body__share { display: none; }
}

.post-body__aside {
  position: sticky; top: 96px;
  align-self: start;
}
.toc {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
}
.toc__hdr {
  font-weight: 700; letter-spacing: .14em;
  font-size: 10.5px;
  color: var(--ink-4);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.toc__list {
  display: flex; flex-direction: column; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.toc__list a {
  color: var(--ink-3);
  display: inline-flex; gap: 10px;
  line-height: 1.4;
  transition: color .15s;
}
.toc__list a:hover { color: var(--brand); }
.toc__list .num {
  color: var(--ink-4);
  flex: 0 0 22px;
}

.post-body__share {
  position: sticky; top: 96px;
  align-self: start;
}
.share { display: flex; flex-direction: column; gap: 8px; }
.share__hdr {
  font-family: var(--f-mono); font-weight: 700;
  font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.share__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: #fff;
  font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.share__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.post-body__main {
  max-width: 720px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.post-body__main > * + * { margin-top: 1.4em; }
.post-body__main h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15; letter-spacing: -.02em;
  color: var(--ink);
  margin-top: 2.4em !important;
  text-wrap: balance;
}
.post-body__main h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 1.8em !important;
}
.post-body__main p { font-size: 17.5px; line-height: 1.65; }
.post-body__main p strong, .post-body__main p b { color: var(--ink); font-weight: 600; }
.post-body__main blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 3px solid var(--brand);
  background: #fff;
  border-radius: 0 12px 12px 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
}
.post-body__main blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-4);
}
.post-body__main ul, .post-body__main ol {
  padding-left: 22px;
}
.post-body__main li {
  margin-bottom: 10px;
}
.post-body__main code {
  font-family: var(--f-mono);
  font-size: .9em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-body__main figure {
  margin: 2.4em 0;
}
.post-body__main figure img,
.post-body__main figure svg {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--rule-soft);
  background: #fff;
}
.post-body__main figcaption {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-4);
}

/* IN-POST CALLOUT / DATA CARD */
.callout {
  margin: 2.4em 0;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.callout__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: 56px; letter-spacing: -.03em;
  color: var(--brand);
  line-height: 1;
}
.callout__txt strong {
  display: block;
  font-family: var(--f-mono); font-size: 11px;
  font-weight: 700; letter-spacing: .14em;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.callout__txt p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 !important;
}

/* BIG STAT GRID INSIDE POST */
.statgrid {
  margin: 2.4em 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 580px) { .statgrid { grid-template-columns: 1fr; } }
.statgrid__cell {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 8px;
}
.statgrid__cell:last-child { border-right: 0; }
.statgrid__cell .k {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; font-weight: 600;
  color: rgba(255,255,255,.5);
}
.statgrid__cell .v {
  font-family: var(--f-display); font-weight: 700;
  font-size: 38px; letter-spacing: -.02em;
  color: var(--brand);
}
.statgrid__cell .h {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* RELATED */
.related { padding: clamp(60px, 8vw, 100px) 0; background: var(--paper-2); }
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .related__grid { grid-template-columns: 1fr; } }

/* ===========================================================
   MOBILE TIGHTEN — blog & single post
   =========================================================== */
@media (max-width: 640px) {
  .blog-hero { padding: 32px 0 28px; }
  .blog-archive, .news, .related { padding: 36px 0; }
  .post-hero { padding: 28px 0 24px; }
  .post-body { padding: 32px 0; }
  .feat { padding: 24px; }
}
