/* Blog index + post styles, on top of base.css */

/* cover art: one generated picture per topic, no image files */
.cover {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #141110;
  aspect-ratio: 16/10;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      70% 70% at 70% 20%,
      rgba(255, 74, 28, 0.35),
      transparent 70%
    ),
    radial-gradient(
      60% 60% at 15% 100%,
      rgba(255, 154, 46, 0.2),
      transparent 70%
    );
}
.cover svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover .lab {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  font-size: 12.5px;
  background: rgba(255, 74, 28, 0.12);
  color: #ffb08f;
}
.tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.125px;
  color: var(--muted);
}

/* index */
.blog-hero {
  padding: 170px var(--gutter) 50px;
}
.blog-hero .lede {
  margin-top: 26px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.filters button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  color: #bdb7b1;
  box-shadow: inset 0 0 0 1px var(--ring);
  transition:
    background 0.2s,
    color 0.2s;
}
.filters button:hover {
  color: var(--fg);
}
.filters button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  box-shadow: none;
}
.feat {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  transition: transform 0.3s;
}
.feat:hover {
  transform: translateY(-3px);
}
.feat h2 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-top: 18px;
}
.feat p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
  max-width: 460px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--fg);
}
.more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
a:hover .more svg {
  transform: translateX(3px);
}
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 14px 22px;
  border-radius: 24px;
  background: var(--card);
  transition: transform 0.3s;
}
.post-card:hover {
  transform: translateY(-3px);
}
.post-card h3 {
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  padding: 0 6px;
}
.post-card p {
  color: var(--muted);
  line-height: 1.35;
  padding: 0 6px;
}
.post-card .meta {
  padding: 0 6px;
}
.post-card[hidden],
.feat[hidden] {
  display: none;
}

/* newsletter */
.news {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-top: 90px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(120deg, #1d1310, #141110);
  box-shadow: inset 0 0 0 1px rgba(255, 110, 50, 0.25);
}
.news h3 {
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
}
.news p {
  margin-top: 8px;
  color: var(--muted);
}

/* post */
.post {
  padding: 150px var(--gutter) 40px;
}
.post .col {
  max-width: 720px;
  margin: 0 auto;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.back:hover {
  color: var(--fg);
}
.back svg {
  width: 14px;
  height: 14px;
}
.post h1 {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 26px;
}
.post .standfirst {
  font-size: 21px;
  line-height: 1.35;
  color: #cfcac5;
  margin-top: 24px;
}
.post .meta {
  margin-top: 26px;
}
.post .cover {
  margin: 44px auto 0;
  max-width: 980px;
  aspect-ratio: 21/9;
}
.body {
  max-width: 720px;
  margin: 56px auto 0;
  font-size: 18px;
  line-height: 1.62;
  color: #d6d1cc;
}
.body p + p {
  margin-top: 22px;
}
.body strong {
  font-weight: 400;
  color: var(--fg);
  background: linear-gradient(transparent 62%, rgba(255, 74, 28, 0.32) 0);
}
.figs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0;
}
.fig {
  border-radius: 18px;
  padding: 20px;
  background: var(--card);
}
.fig b {
  display: block;
  font-weight: 400;
  font-size: 28px;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: var(--accent-2);
}
.fig span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.callout {
  margin: 36px 0;
  padding: 22px 24px;
  border-radius: 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 74, 28, 0.07);
  font-size: 16.5px;
  line-height: 1.5;
  color: #e6e0da;
}
.related {
  max-width: 980px;
  margin: 100px auto 0;
}
.related h2 {
  font-weight: 400;
  font-size: 30px;
}
.related .posts {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
  .feat {
    grid-template-columns: 1fr;
  }
  .posts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .blog-hero,
  .post {
    padding-top: 120px;
  }
  .posts,
  .related .posts {
    grid-template-columns: 1fr;
  }
  .feat {
    padding: 14px;
  }
  .feat h2 {
    font-size: 32px;
  }
  .news {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .post h1 {
    font-size: 40px;
  }
  .post .standfirst {
    font-size: 18px;
  }
  .body {
    font-size: 17px;
  }
  .figs {
    grid-template-columns: 1fr;
  }
}
