/* tastemaker · macrostructure: Editorial Index · mood: confident editorial · page: insights
 * arc: context(existing page blocks) -> knowledge(index grid) -> proof(article depth) -> close(site footer)
 * nav: existing brand overlay · hero: existing page title / single statement · footer: existing brand statement
 * knobs: cards=text-led/numbered/blue-wash; single=blue-statement/editorial-column
 * palette: existing brand tokens · contrast: pass (#050505/#2f6bff 4.53, #ffffff/#2f6bff 4.50)
 * critique: ShowTell 4 · Phil 5 · Hier 5 · Spec 5 · Restr 5 · Var 4 */

/* ===== MARKOWE INSIGHTY: EDITORIAL INDEX ===== */
.insights-index {
  overflow: clip;
  padding-block: clamp(88px, 11vw, 176px);
  background: var(--white);
  color: var(--black);
}

.insights-index__header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(40px, 8vw, 150px);
  align-items: end;
  margin-bottom: clamp(72px, 9vw, 144px);
}

.insights-index__header h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 200;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.insights-index__header h2 strong,
.insights-index__header h2 b {
  font-weight: 700;
}

.insights-index__header > p {
  max-width: 34rem;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.5;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgb(5 5 5 / 28%);
}

.insight-card {
  min-width: 0;
  border-top: 1px solid rgb(5 5 5 / 28%);
}

.insight-card:not(:nth-child(3n + 1)) {
  border-left: 1px solid rgb(5 5 5 / 28%);
}

.insight-card__link {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(340px, 34vw, 560px);
  flex-direction: column;
  padding: clamp(20px, 2vw, 38px);
  overflow: hidden;
}

.insight-card__wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 280ms var(--ease-out);
}

.insight-card__top,
.insight-card__body,
.insight-card__cta {
  position: relative;
  z-index: 1;
}

.insight-card__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}

.insight-card__number {
  font-family: loos-extended, Arial, sans-serif;
  font-size: clamp(40px, 4.5vw, 76px);
  font-weight: 300;
  letter-spacing: -.06em;
  line-height: .75;
  opacity: .2;
}

.insight-card__body {
  margin-top: auto;
  padding-top: 72px;
}

.insight-card__category {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.insight-card h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(24px, 2.25vw, 40px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.insight-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.insight-card__cta span {
  font-family: loos-extended, Arial, sans-serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .insight-card__link:hover .insight-card__wash {
    transform: translateY(0);
  }

  .insight-card__link:hover .insight-card__cta span {
    transform: rotate(90deg);
  }
}

.insight-card__link:active .insight-card__cta span {
  transform: rotate(90deg) scale(.9);
}

.insights-index__empty {
  padding-block: 72px;
  border-block: 1px solid rgb(5 5 5 / 28%);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 28px);
}

.insights-pagination {
  margin-top: 56px;
}

.insights-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.insights-pagination a,
.insights-pagination .current {
  display: grid;
  min-width: 46px;
  min-height: 46px;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid var(--black);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.insights-pagination .current {
  background: var(--black);
  color: var(--white);
}

/* ===== SINGLE INSIGHT ===== */
.insight-single {
  background: var(--white);
}

.insight-hero {
  min-height: min(900px, 88svh);
  padding-top: var(--header-height);
  background: var(--blue);
  color: var(--white);
}

.insight-hero__inner {
  display: flex;
  min-height: min(820px, calc(88svh - var(--header-height)));
  flex-direction: column;
  padding-top: clamp(64px, 8vw, 136px);
  padding-bottom: 48px;
}

.insight-hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgb(255 255 255 / 55%);
  padding-top: 14px;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.insight-hero h1 {
  max-width: 16ch;
  margin: auto 0 36px;
  font-size: clamp(48px, 7.6vw, 132px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.insight-hero__lead {
  max-width: 52rem;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.45;
}

.insight-hero .breadcrumbs {
  margin-top: 40px;
}

.insight-hero :focus-visible {
  outline-color: var(--white);
}

.insight-article__cover {
  width: 100%;
  max-height: 100svh;
  margin: 0;
  overflow: hidden;
}

.insight-article__cover img {
  width: 100%;
  max-height: 100svh;
  object-fit: cover;
}

.insight-article__layout {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr) minmax(0, .6fr);
  gap: clamp(40px, 7vw, 132px);
  padding-top: clamp(88px, 10vw, 168px);
  padding-bottom: clamp(104px, 12vw, 200px);
}

.insight-article__aside {
  align-self: start;
  border-top: 1px solid var(--black);
  padding-top: 14px;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
}

.insight-article__aside > span {
  display: block;
  margin-bottom: 30px;
  font-family: loos-extended, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
}

.insight-article__content {
  max-width: 880px;
}

.insight-article__content > p:first-child {
  font-family: loos-extended, Arial, sans-serif;
  font-size: clamp(25px, 2.5vw, 42px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.insight-article__content :is(h2, h3) {
  scroll-margin-top: 110px;
}

.insight-article__nav {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
  gap: clamp(40px, 8vw, 150px);
  align-items: start;
  padding-bottom: clamp(104px, 12vw, 190px);
}

.insight-article__nav > a {
  border-top: 1px solid var(--black);
  padding-top: 16px;
}

.insight-article__nav > a:first-child {
  min-height: 48px;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.insight-article__next {
  display: grid;
  gap: 22px;
}

.insight-article__next span {
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.insight-article__next strong {
  max-width: 20ch;
  font-size: clamp(28px, 3.2vw, 54px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
}

@media (max-width: 991px) {
  .insights-index__header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-card:not(:nth-child(3n + 1)) {
    border-left: 0;
  }

  .insight-card:nth-child(even) {
    border-left: 1px solid rgb(5 5 5 / 28%);
  }

  .insight-article__layout {
    grid-template-columns: minmax(140px, .6fr) minmax(0, 1.4fr);
  }

  .insight-article__content {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .insights-index {
    padding-block: 72px 96px;
  }

  .insights-index__header {
    margin-bottom: 64px;
  }

  .insights-index__header h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.08;
  }

  .insights-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-card:nth-child(even) {
    border-left: 0;
  }

  .insight-card__link {
    min-height: 320px;
    padding: 20px;
  }

  .insight-card h3 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .insight-hero {
    min-height: 760px;
  }

  .insight-hero__inner {
    min-height: 682px;
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .insight-hero h1 {
    margin-bottom: 28px;
    font-size: clamp(43px, 13vw, 68px);
    line-height: 1;
  }

  .insight-hero .breadcrumbs {
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
  }

  .insight-hero .breadcrumbs span[aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .insight-article__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 104px;
  }

  .insight-article__aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .insight-article__aside > span {
    margin-bottom: 0;
  }

  .insight-article__aside p {
    text-align: right;
  }

  .insight-article__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
    padding-bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-card__wash,
  .insight-card__cta span {
    transition-duration: 0ms;
  }
}
