/* ==========================================================
   BLOG INDEX LAYOUT
   ========================================================== */

.re-blog-index {
  --re-blog-shell-width: 128rem;
  --re-blog-radius-s: 1.4rem;
  --re-blog-radius: 2rem;
  --re-blog-radius-l: 2.8rem;
  --re-blog-border: rgba(14, 28, 57, 0.1);
  --re-blog-shadow-soft: 0 14px 32px -28px rgba(14, 28, 57, 0.26);
  color: var(--base);
}

.re-blog-shell {
  width: min(calc(100% - 4.8rem), var(--re-blog-shell-width));
  margin: 0 auto;
}

.re-blog-eyebrow,
.re-blog-widget__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.re-blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 1.3rem 2.3rem;
  border: 0.2rem solid transparent;
  border-radius: var(--btn-radius);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.re-blog-button:hover {
  transform: translateY(-1px);
}

.re-blog-button--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--cta-primary-shadow);
}

.re-blog-button--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: var(--cta-primary-lift);
  box-shadow: var(--cta-primary-shadow-hover);
}

.re-blog-button--secondary {
  background: var(--base);
  color: var(--white);
}

.re-blog-button--secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.re-blog-inline-link {
  color: rgba(14, 28, 57, 0.72);
  font-size: 1.55rem;
  font-weight: 600;
}

.re-blog-inline-link:hover {
  color: var(--primary);
}

.re-blog-hero {
  padding: 15rem 0 4.2rem;
  background: linear-gradient(180deg, #faf7f3 0%, #f5f2ef 100%);
}

.re-blog-hero__content--wide {
  max-width: 74rem;
}

.re-blog-hero__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(3.8rem, 2.6rem + 2.2vw, 5.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.re-blog-hero--search .re-blog-hero__title {
  font-size: clamp(3.2rem, 2.4rem + 2vw, 4.8rem);
}

.re-blog-hero__lead {
  max-width: 62rem;
  margin: 1.6rem 0 0;
  font-size: clamp(1.65rem, 1.35rem + 0.4vw, 1.95rem);
  line-height: 1.56;
  color: rgba(14, 28, 57, 0.72);
}

.re-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  margin-top: 2.6rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: rgba(14, 28, 57, 0.6);
}

.re-blog-listing {
  padding: 1.6rem 0 8rem;
}

.re-blog-listing--search {
  padding-top: 3.2rem;
}

.re-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32rem;
  gap: 4rem;
  align-items: start;
}

.re-blog-layout__sidebar {
  position: sticky;
  top: 11rem;
  display: grid;
  gap: 2rem;
}

.re-blog-grid {
  display: grid;
  gap: 3.2rem;
}

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

.re-blog-grid--search-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.re-blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--re-blog-border);
  border-radius: var(--re-blog-radius);
  background: var(--white);
  box-shadow: 0 8px 30px -26px rgba(14, 28, 57, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.re-blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 100, 242, 0.22);
  box-shadow: var(--re-blog-shadow-soft);
}

.re-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e1d8;
  cursor: pointer;
}

.re-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.re-blog-card:hover .re-blog-card__media img {
  transform: scale(1.04);
}

.re-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.5rem;
}

.re-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.re-blog-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(53, 100, 242, 0.1);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.re-blog-card__date {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(14, 28, 57, 0.54);
}

.re-blog-card__title {
  margin: 1.7rem 0 0;
  font-size: clamp(2.2rem, 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.re-blog-card__title a {
  color: var(--base);
}

.re-blog-card__title a:hover {
  color: var(--primary);
}

.re-blog-card__excerpt {
  margin: 1.5rem 0 0;
  font-size: 1.65rem;
  line-height: 1.62;
  color: rgba(14, 28, 57, 0.72);
}

.re-blog-card__link {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: auto;
  padding-top: 2.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.re-blog-card:hover .re-blog-card__link {
  gap: 1.2rem;
}

.re-blog-widget {
  padding: 3.6rem;
  border: 0;
  border-radius: var(--re-blog-radius);
  background: #faf7f3;
  box-shadow: none;
}

.re-blog-widget__title {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.re-blog-widget__text {
  margin: 1.5rem 0 0;
  font-size: 1.65rem;
  line-height: 1.62;
  color: rgba(14, 28, 57, 0.72);
}

.re-blog-widget__button {
  width: 100%;
  margin-top: 2.2rem;
}

.re-blog-widget__links {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.re-blog-search {
  position: relative;
  display: grid;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.re-blog-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.re-blog-search__field svg {
  position: absolute;
  left: 1.6rem;
  color: rgba(14, 28, 57, 0.54);
  pointer-events: none;
}

.re-blog-search__field input {
  width: 100%;
  min-height: 5.4rem;
  padding: 1.5rem 1.6rem 1.5rem 4.8rem;
  border: 0;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  color: var(--base);
}

.re-blog-search__field input::placeholder {
  color: rgba(14, 28, 57, 0.5);
}

.re-blog-search__field input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 100, 242, 0.14);
}

.re-blog-search__submit {
  width: 100%;
}

.re-blog-search--hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-top: 0;
}

.re-blog-search__suggestions {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  border-radius: 1.8rem;
  background: #fffdf9;
  box-shadow: 0 22px 44px -32px rgba(14, 28, 57, 0.42);
}

.re-blog-search__suggestions[hidden] {
  display: none;
}

.re-blog-search__suggestion {
  display: block;
  padding: 1.2rem 1.3rem;
  border-radius: 1.2rem;
  color: var(--base);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.45;
}

.re-blog-search__suggestion-meta {
  display: block;
  margin-top: 0.35rem;
  color: rgba(14, 28, 57, 0.56);
  font-size: 1.28rem;
  font-weight: 500;
}

.re-blog-search__suggestion:hover,
.re-blog-search__suggestion:focus {
  background: rgba(53, 100, 242, 0.08);
  color: var(--primary);
}

.re-blog-search__empty {
  padding: 1.2rem 1.3rem;
  color: rgba(14, 28, 57, 0.56);
  font-size: 1.4rem;
}

.re-blog-widget--search-hero {
  max-width: 90rem;
  margin-top: 3.2rem;
}

.re-blog-hero--search {
  padding-bottom: 5.2rem;
}

.re-blog-podcast-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.re-blog-widget--podcast .re-blog-widget__text {
  margin-top: 0.8rem;
}

.re-blog-widget--podcast .re-blog-podcast-icons {
  margin-top: 1.2rem;
}

.re-blog-podcast-icons__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: var(--base);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.re-blog-podcast-icons__item:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: var(--white);
}

.re-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 4rem;
}

.re-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  min-height: 4.8rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--re-blog-border);
  border-radius: 999px;
  background: var(--white);
  color: rgba(14, 28, 57, 0.8);
  font-size: 1.5rem;
  font-weight: 700;
}

.re-blog-pagination .page-numbers.current,
.re-blog-pagination a.page-numbers:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.re-blog-empty {
  padding: 4rem;
  border: 1px dashed rgba(14, 28, 57, 0.18);
  border-radius: var(--re-blog-radius);
  text-align: center;
  background: var(--cream);
}

.re-blog-empty h2 {
  margin: 0;
  font-size: 3rem;
}

.re-blog-empty p {
  margin: 1.4rem 0 0;
  color: rgba(14, 28, 57, 0.7);
}

.re-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
}

.re-blog-modal.is-open {
  display: block;
}

.re-blog-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 57, 0.64);
  backdrop-filter: blur(4px);
}

.re-blog-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 3.2rem), 56rem);
  margin: 10vh auto 0;
  padding: 3rem;
  border-radius: var(--re-blog-radius-l);
  background: var(--white);
  box-shadow: 0 36px 80px -40px rgba(0, 0, 0, 0.45);
}

.re-blog-modal__close {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 28, 57, 0.08);
  color: var(--base);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.re-blog-modal__title {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.re-blog-modal__lead {
  margin: 1.6rem 0 0;
  font-size: 1.7rem;
  line-height: 1.62;
  color: rgba(14, 28, 57, 0.72);
}

.re-blog-modal__form {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.re-blog-modal__field {
  display: grid;
  gap: 0.7rem;
}

.re-blog-modal__field span {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(14, 28, 57, 0.76);
}

.re-blog-modal__field input {
  width: 100%;
  min-height: 5.2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(14, 28, 57, 0.14);
  border-radius: 1.4rem;
  font: inherit;
  color: var(--base);
  background: var(--white);
}

.re-blog-modal__field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 100, 242, 0.14);
}

.re-blog-modal__note {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(14, 28, 57, 0.64);
}

.re-blog-modal__view[hidden] {
  display: none;
}

.re-blog-modal__view--success .re-blog-modal__note {
  margin-top: 2.4rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.4rem;
  background: rgba(53, 100, 242, 0.08);
  color: var(--base);
}

body.re-blog-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .re-blog-layout {
    grid-template-columns: 1fr;
  }

  .re-blog-layout__sidebar {
    position: static;
    top: auto;
  }

  .re-blog-grid--search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .re-blog-layout__sidebar .re-blog-widget__title {
    white-space: normal;
  }
}

@media (min-width: 1121px) {
  .re-blog-layout__sidebar .re-blog-widget__title {
    font-size: 2.05rem;
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .re-blog-grid--simple,
  .re-blog-grid--search-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .re-blog-shell {
    width: min(calc(100% - 3.2rem), var(--re-blog-shell-width));
  }

  .re-blog-hero {
    padding-top: 12.8rem;
  }

  .re-blog-card__body,
  .re-blog-modal__dialog {
    padding: 2.2rem;
  }

  .re-blog-widget {
    padding: 3rem;
  }

  .re-blog-search--hero {
    grid-template-columns: 1fr;
  }

  .re-blog-widget__title {
    font-size: 2.4rem;
  }

  .re-blog-pagination .page-numbers {
    min-width: 4.2rem;
    min-height: 4.2rem;
  }
}
