/* FROM — the blog, "Notes from the road". A big headline, one featured story, then the rest as an editorial list
   you can filter by topic (the list and the "peek" photo are in blog-list.css). Stories open in the reading panel
   (blog-read.css). ts/blog.ts runs it. */

.blog {
  padding: calc(80px + clamp(48px, 7vw, 104px)) 0 clamp(88px, 11vw, 160px);
}

/* ---------- Headline ---------- */

.blog__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: end;
  gap: 24px clamp(40px, 6vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.blog__title {
  margin: 0;
  font-size: clamp(52px, 8.4vw, 132px);
  line-height: 0.92;
  font-weight: 780;
  letter-spacing: -0.06em;
}

.blog__title em {
  display: block;
  font-style: normal;
  color: var(--orange);
}

.blog__lede {
  padding-bottom: 0.6em;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Featured story ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px clamp(40px, 6vw, 88px);
}

.feature__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--orange-tint);
  clip-path: inset(0 round var(--radius-lg));
}

.feature__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.feature:hover .feature__photo img {
  transform: scale(1.04);
}

.feature__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange-wash);
  color: var(--orange-ink);
  font-weight: 650;
}

.feature__title {
  margin: 20px 0 0;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.feature__text {
  max-width: 40ch;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.feature .link-arrow {
  margin-top: 12px;
}

.feature[data-reveal] .feature__photo {
  clip-path: inset(8% 8% 8% 8% round var(--radius-lg));
  transition: clip-path 1.1s var(--ease-out);
}

.feature[data-reveal].is-in .feature__photo {
  clip-path: inset(0 round var(--radius-lg));
}

/* ---------- Topics ---------- */

.blog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(72px, 9vw, 128px);
  padding-bottom: 24px;
}

.blog__more {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 730;
  letter-spacing: -0.035em;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.topic-chip:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}

.topic-chip[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 900px) {
  .blog__head,
  .feature {
    grid-template-columns: 1fr;
  }
}
