/* Blog listing: shared site tokens, dark surfaces, sharp red accents. */

.blog-page { background: var(--page-bg); }
.blog-wrap { width: var(--wrap); margin-inline: auto; }

.blog-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--text-strong);
}
.blog-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .18;
  background-image: linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}
.blog-hero::after { position: absolute; right: 9%; top: 0; bottom: 0; width: 2px; content: ""; background: var(--red); opacity: .7; }
.blog-hero-inner { position: relative; width: var(--wrap); margin: auto; padding: clamp(84px, 11vw, 128px) 0 54px; }
.blog-page .blog-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 370px); align-items: center; gap: clamp(28px, 6vw, 82px); }
.blog-page .blog-hero::after { display: none; }
.blog-page .blog-hero-copy { min-width: 0; }
.blog-latest-newsletter { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: stretch; min-height: 112px; overflow: hidden; border: 1px solid rgb(255 255 255 / 16%); border-left: 3px solid var(--red); background: rgb(255 255 255 / 5%); color: #fff; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.blog-latest-newsletter:hover { transform: translateY(-3px); border-color: var(--red); background: rgb(255 255 255 / 9%); }
.blog-newsletter-cover { display: block; min-height: 112px; overflow: hidden; background: linear-gradient(145deg, #292a30, #111217); }
.blog-newsletter-cover img { display: block; width: 100%; height: 100%; min-height: 112px; object-fit: cover; }
.blog-newsletter-cover.is-empty { display: none; }
.blog-newsletter-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 15px 17px; }
.blog-newsletter-kicker { color: var(--red); font: 700 .65rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.blog-newsletter-copy strong { color: #fff; font: 700 1.35rem/.95 var(--display); text-transform: uppercase; }
.blog-newsletter-link { margin-top: 3px; color: rgb(255 255 255 / 75%); font: 700 .68rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.blog-newsletter-link span { color: var(--red); }
.blog-latest-newsletter:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.blog-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--red); font: 700 .76rem/1 var(--display); letter-spacing: .19em; text-transform: uppercase; }
.blog-eyebrow::before { width: 28px; height: 2px; content: ""; background: currentColor; }
.blog-hero h1 { max-width: 900px; color: #fff; font: 800 clamp(4rem, 10vw, 8.5rem)/.82 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.blog-hero h1 em { display: inline-block; margin-left: .08em; color: var(--red); font: italic 400 .78em/.9 var(--ashwa); letter-spacing: -.02em; text-transform: none; }
.blog-intro { max-width: 52ch; margin: 22px 0 0; color: rgb(255 255 255 / 76%); font-size: clamp(.98rem, 1.5vw, 1.1rem); line-height: 1.65; }

html[data-theme="light"] .blog-hero {
  background: #fff;
  color: var(--text-strong);
}
html[data-theme="light"] .blog-hero::before {
  background-image: linear-gradient(rgba(8, 9, 12, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 9, 12, .035) 1px, transparent 1px);
}
html[data-theme="light"] .blog-hero h1 { color: var(--text-strong); }
html[data-theme="light"] .blog-intro { color: var(--text-soft); }
html[data-theme="light"] .blog-latest-newsletter {
  border-color: var(--border-strong);
  border-left-color: var(--red);
  background: var(--surface);
  color: var(--text-strong);
}
html[data-theme="light"] .blog-latest-newsletter:hover {
  border-color: var(--red);
  background: var(--surface-hi);
}
html[data-theme="light"] .blog-newsletter-cover { background: linear-gradient(145deg, #eeece9, #d8d5d1); }
html[data-theme="light"] .blog-newsletter-copy strong { color: var(--text-strong); }
html[data-theme="light"] .blog-newsletter-link { color: var(--text-soft); }

.blog-content { min-height: 48vh; padding: clamp(36px, 5vw, 64px) 0 var(--section-pad); background: var(--page-bg); }
.blog-featured { margin-bottom: clamp(42px, 6vw, 72px); }
.blog-featured:empty { display: none; }
.blog-featured-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: 390px; overflow: hidden; border: 1px solid var(--border-strong); border-top: 3px solid var(--red); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .24s var(--expo), border-color .24s ease, box-shadow .24s ease; }
.blog-featured-card:hover { transform: translateY(-4px); border-color: rgb(232 0 29 / 60%); box-shadow: 0 20px 42px var(--shadow); }
.blog-featured-image { min-height: 390px; overflow: hidden; background: var(--section-bg); }
.blog-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--expo); }
.blog-featured-card:hover .blog-featured-image img { transform: scale(1.035); }
.blog-featured-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 4vw, 54px); }
.blog-meta { color: var(--text-muted); font: 700 .7rem/1.45 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.blog-meta-category { color: var(--red); }
.blog-featured-body h2 { margin: 14px 0; color: var(--text-strong); font: 800 clamp(2rem, 3.8vw, 3.5rem)/.92 var(--display); letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.blog-featured-excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 26px; color: var(--text-soft); font-size: .96rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.blog-read-more,.blog-card-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-bottom: 4px; border-bottom: 2px solid var(--red); color: var(--text-strong); font: 700 .76rem/1.3 var(--display); letter-spacing: .11em; text-transform: uppercase; }
.blog-read-more span,.blog-card-link span { color: var(--red); transition: transform .2s ease; }
.blog-featured-card:hover .blog-read-more span,.blog-card:hover .blog-card-link span { transform: translateX(4px); }

.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.blog-toolbar-label { color: var(--text-muted); font: 700 .7rem/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter button { min-height: 36px; padding: 0 13px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-soft); cursor: pointer; font: 700 .69rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.blog-filter button:hover,.blog-filter button.is-active { border-color: var(--red); background: var(--red); color: #fff; }
.blog-filter button:focus-visible,.blog-card:focus-visible,.blog-featured-card:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-top: 2px solid var(--red); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .22s var(--expo), border-color .22s ease, box-shadow .22s ease; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 16px 32px var(--shadow); }
.blog-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--section-bg); }
.blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--expo); }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 20px 20px; }
.blog-card-body h2 { margin: 10px 0; color: var(--text-strong); font: 800 1.35rem/1.02 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.blog-card-excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 20px; color: var(--text-soft); font-size: .88rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-card-link { color: var(--text-strong); }
.blog-empty { padding: clamp(44px, 7vw, 80px) 24px; border: 1px solid var(--border); border-left: 3px solid var(--red); background: var(--surface); text-align: left; }
.blog-empty[hidden] { display: none; }
.blog-empty h2 { color: var(--text-strong); font: 800 clamp(1.7rem, 4vw, 2.5rem)/.95 var(--display); text-transform: uppercase; }
.blog-empty p { max-width: 54ch; margin-top: 10px; color: var(--text-soft); line-height: 1.65; }

@media (max-width: 900px) {
  .blog-page .blog-hero-inner { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .blog-page .blog-latest-newsletter { width: min(100%, 430px); }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-image { min-height: 0; aspect-ratio: 16 / 8; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .blog-hero { min-height: 0; }
  .blog-hero-inner { padding: 76px 0 42px; }
  .blog-page .blog-hero-inner { gap: 22px; }
  .blog-hero h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .blog-page .blog-hero::after { right: 7%; }
  .blog-content { padding-top: 28px; }
  .blog-featured-image { aspect-ratio: 4 / 3; }
  .blog-featured-body { padding: 24px; }
  .blog-toolbar { align-items: flex-start; flex-direction: column; }
  .blog-filter { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-card-image { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-featured-card,.blog-card,.blog-featured-image img,.blog-card-image img,.blog-read-more span,.blog-card-link span { transition: none; }
}
