/* Blog index — Aave-style layout (Mobbin sections cf5b9540 / 80c42722).
   Structure: Blog title row → featured hero → Recent Posts list + filter.
   Tokens from lt-shell / DESIGN.md (orange accents OK; no purple brand theme). */

/* Same band as landing / lt-shell `.lt-wrap`. */
.blog-main {
  width: min(var(--lt-max, 1120px), calc(100% - 2 * var(--ppx-page-inset, 20px)));
  margin-inline: auto;
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* ——— Title row (Mobbin cf5b9540) ——— */
.blog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.blog-head h1 {
  margin: 0;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--lt-ink, #121212);
}

.blog-lede {
  margin: 0;
  max-width: 36ch;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
  text-align: right;
}

@media (max-width: 640px) {
  .blog-lede {
    text-align: left;
    max-width: none;
  }
}

/* ——— Featured hero (Mobbin cf5b9540) ——— */
.blog-featured {
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.blog-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-featured-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(14rem, 36vw, 22rem);
  padding: 2rem 1.75rem;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 70% 30%, color-mix(in srgb, var(--lt-orange, #ff6a00) 45%, transparent), transparent 55%),
    linear-gradient(145deg, #1a1410 0%, #2a2218 42%, #3d2818 100%);
}

.blog-featured-visual::before {
  content: "";
  position: absolute;
  inset: -20% 35% auto -15%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 80, 0.35), transparent 70%);
  pointer-events: none;
}

.blog-featured-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18ch;
  text-align: center;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}

.blog-featured-title {
  margin: 1.35rem 0 0.65rem;
  max-width: 28ch;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--lt-ink, #121212);
  transition: color 160ms ease;
}

.blog-featured-link:hover .blog-featured-title {
  color: var(--lt-orange, #ff6a00);
}

.blog-featured-excerpt {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
}

/* ——— Recent Posts (Mobbin 80c42722) ——— */
.blog-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.blog-recent-title {
  margin: 0;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--lt-ink, #121212);
}

/* Filter pill — decorative / simple category filter */
.blog-filter {
  position: relative;
}

.blog-filter > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: var(--lt-gray, #f3f3f2);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--lt-ink, #121212);
  cursor: pointer;
  user-select: none;
}

.blog-filter > summary::-webkit-details-marker {
  display: none;
}

.blog-filter-chevron {
  display: block;
  width: 10px;
  height: 10px;
  opacity: 0.45;
  transition: transform 160ms ease;
}

.blog-filter[open] > summary .blog-filter-chevron {
  transform: rotate(180deg);
}

.blog-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 5;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--lt-line, #e8e8e8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-filter-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: var(--lt-body, #474645);
  cursor: pointer;
}

.blog-filter-menu button:hover,
.blog-filter-menu button[aria-pressed="true"] {
  background: var(--lt-gray, #f3f3f2);
  color: var(--lt-ink, #121212);
}

.blog-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 4.5vw, 3.25rem);
}

.blog-post-list > li[hidden] {
  display: none;
}

.blog-post-row {
  display: grid;
  gap: 1.25rem 2rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 720px) {
  .blog-post-row {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 0 2.5rem;
  }
}

.blog-post-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(9.5rem, 22vw, 12.5rem);
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  overflow: hidden;
}

.blog-post-thumb-label {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 14ch;
  text-align: center;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

/* PetrolPrice-tinted thumbs (not Aave purple) */
.blog-thumb--amber {
  background:
    radial-gradient(ellipse 70% 60% at 75% 25%, rgba(255, 160, 60, 0.55), transparent 55%),
    linear-gradient(135deg, #2a1c10 0%, #4a3018 50%, #c45a12 100%);
}

.blog-thumb--slate {
  background:
    radial-gradient(ellipse 60% 50% at 30% 80%, rgba(255, 106, 0, 0.35), transparent 50%),
    linear-gradient(150deg, #1c1c1c 0%, #2e2e2e 55%, #3a322c 100%);
}

.blog-thumb--sand {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 200, 120, 0.5), transparent 45%),
    linear-gradient(145deg, #3d2e1a 0%, #6b4a28 45%, #a86830 100%);
}

.blog-thumb--ink {
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(255, 106, 0, 0.4), transparent 55%),
    linear-gradient(160deg, #121212 0%, #1f1a16 60%, #2a2018 100%);
}

.blog-post-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding-top: 0.15rem;
}

.blog-post-body h3 {
  margin: 0;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--lt-ink, #121212);
  transition: color 160ms ease;
}

.blog-post-row:hover h3 {
  color: var(--lt-orange, #ff6a00);
}

.blog-post-body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
}

.blog-cat {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--lt-faint, rgba(34, 34, 34, 0.45));
}

/* Article (pre-seed etc.) — reuse careers measure */
.blog-back {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-back a {
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
  text-decoration: none;
}

.blog-back a:hover {
  color: var(--lt-orange, #ff6a00);
}

.blog-article.careers-main > * {
  max-width: var(--pp-col, 40rem);
}

@media (prefers-reduced-motion: reduce) {
  .blog-featured-title,
  .blog-post-body h3,
  .blog-filter-chevron {
    transition: none;
  }
}
