:root {
  --mj-blog-bg: #fcfaf4;
  --mj-blog-surface: #f7f1e6;
  --mj-blog-white: #ffffff;
  --mj-blog-text: #363636;
  --mj-blog-muted: rgba(255, 255, 255, 0.72);
  --mj-blog-dark: #102324;
  --mj-blog-dark-soft: #1d3738;
  --mj-blog-accent: #c6a37b;
  --mj-blog-border: rgba(16, 35, 36, 0.12);
  --mj-blog-shadow: 0 24px 70px rgba(12, 37, 54, 0.12);
}

.mj-blog-page {
  background: var(--mj-blog-bg);
  color: var(--mj-blog-text);
}

.mj-blog-page a {
  text-decoration: none;
}

.mj-blog-hero,
.mj-article-hero {
  padding: 0;
  background: transparent;
}

.mj-blog-breadcrumbs {
  margin-bottom: 56px;
}

.mj-blog-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mj-blog-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat-Regular";
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mj-blog-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(54, 54, 54, 0.35);
}

.mj-blog-breadcrumbs a,
.mj-blog-breadcrumbs span {
  color: rgba(54, 54, 54, 0.68);
}

.mj-blog-breadcrumbs .is-current span {
  color: var(--mj-blog-dark);
}

.mj-blog-hero__stats,
.mj-blog-top-categories,
.mj-article-hero__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.mj-blog-hero__stats {
  margin-top: 26px;
}

.mj-blog-hero__stats span {
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Montserrat-Regular";
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.mj-blog-top-categories {
  margin-top: auto;
  padding-top: 34px;
}

.mj-post-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(198, 163, 123, 0.38);
  border-radius: 0;
  background: transparent;
  color: var(--mj-blog-accent);
  font-family: "Montserrat-Regular";
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.mj-post-pill:hover {
  color: var(--mj-blog-dark);
  border-color: rgba(16, 35, 36, 0.45);
}

.mj-post-pill.is-secondary {
  color: rgba(54, 54, 54, 0.72);
  border-color: rgba(16, 35, 36, 0.16);
}

.mj-blog-hero .mj-post-pill,
.mj-article-hero .mj-post-pill {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.24);
}

.mj-blog-hero .mj-post-pill:hover,
.mj-article-hero .mj-post-pill:hover {
  color: var(--mj-blog-white);
  border-color: rgba(198, 163, 123, 0.72);
}

.mj-blog-hero__spotlight {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mj-blog-hero__spotlight-label,
.mj-blog-hero__spotlight-meta,
.mj-blog-hero__spotlight-meta a,
.mj-blog-hero__spotlight-meta time {
  font-family: "Montserrat-Regular";
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mj-blog-hero__spotlight-label {
  display: inline-block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.56);
}

.mj-blog-hero__spotlight-title {
  margin: 0;
  font-family: "Cormorant-Regular";
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  line-height: 0.96;
}

.mj-blog-hero__spotlight-title a {
  color: var(--mj-blog-white);
}

.mj-blog-hero__spotlight-title a:hover {
  color: var(--mj-blog-accent);
}

.mj-blog-hero__spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.mj-blog-hero__spotlight-meta a,
.mj-blog-hero__spotlight-meta time {
  color: inherit;
}

.mj-blog-hero__spotlight .mj-blog-link {
  margin-top: 28px;
  color: var(--mj-blog-white);
}

.mj-blog-hero__spotlight .mj-blog-link::after {
  filter: brightness(0) invert(1);
}

.mj-blog-intro,
.mj-article-intro {
  background: #fdfbf6;
}

.mj-blog-intro {
  padding: 52px 0 18px;
}

.mj-article-intro {
  padding: 72px 0 28px;
}

.mj-blog-intro__inner {
  width: 100%;
}

.mj-article-intro__inner {
  max-width: 780px;
  margin: 0 auto;
}

.mj-blog-intro__description,
.mj-article-intro__excerpt {
  margin: 0;
  color: rgba(54, 54, 54, 0.82);
  font-family: "Montserrat-Regular";
  font-size: 14px;
  line-height: 1.9;
}

.mj-blog-intro__description {
  max-width: 780px;
  color: var(--mj-blog-dark);
  font-family: "Cormorant-Regular";
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.mj-blog-intro__categories,
.mj-article-intro__categories {
  margin-top: 34px;
}

.mj-blog-intro__inner {
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(16, 35, 36, 0.1);
}

.mj-article-intro__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 35, 36, 0.1);
}

.mj-article-intro__meta-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding-right: 16px;
}

.mj-article-intro__meta-item:not(:last-child) {
  border-right: 1px solid rgba(16, 35, 36, 0.08);
}

.mj-article-intro__meta-value {
  color: var(--mj-blog-dark);
  font-family: "Cormorant-Regular";
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
}

.mj-blog-intro__featured {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid rgba(16, 35, 36, 0.1);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.mj-blog-intro__featured-media {
  display: block;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(
    135deg,
    rgba(198, 163, 123, 0.18),
    rgba(16, 35, 36, 0.18)
  );
  overflow: hidden;
}

.mj-blog-intro__featured-media img,
.mj-blog-intro__featured-media .mj-post-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-blog-intro__featured-body {
  display: flex;
  min-width: 0;
  width: 100%;
}

.mj-blog-intro__featured-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.mj-blog-intro__featured .mj-blog-hero__spotlight-label,
.mj-blog-intro__featured .mj-blog-hero__spotlight-meta,
.mj-blog-intro__featured .mj-blog-hero__spotlight-meta a,
.mj-blog-intro__featured .mj-blog-hero__spotlight-meta time,
.mj-blog-intro__featured .mj-blog-link {
  color: var(--mj-blog-text);
}

.mj-blog-intro__featured .mj-blog-hero__spotlight-label {
  color: var(--mj-blog-accent);
  margin-bottom: 10px;
}

.mj-blog-intro__featured .mj-blog-hero__spotlight-title {
  max-width: 560px;
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1.02;
}

.mj-blog-intro__featured .mj-blog-hero__spotlight-title a {
  color: var(--mj-blog-text);
}

.mj-blog-intro__featured .mj-blog-hero__spotlight-title a:hover {
  color: var(--mj-blog-accent);
}

.mj-blog-intro__featured .mj-blog-link {
  align-self: flex-start;
  white-space: nowrap;
}

.mj-blog-intro__featured .mj-blog-link::after {
  filter: none;
}

.mj-blog-intro__featured-meta-top {
  gap: 10px 14px;
  margin: 0 0 12px;
  color: rgba(54, 54, 54, 0.6);
}

.mj-blog-intro__featured-excerpt {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(54, 54, 54, 0.82);
  font-family: "Montserrat-Regular";
  font-size: 14px;
  line-height: 1.85;
}

.mj-blog-intro__featured-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: auto;
  padding-top: 22px;
}

.mj-blog-intro__featured-author {
  color: var(--mj-blog-accent);
  font-family: "Montserrat-Light";
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mj-article-intro__excerpt {
  margin-top: 16px;
}

.mj-blog-intro__categories {
  margin-top: 22px;
}

.mj-blog-intro__categories {
  display: block;
}

.mj-blog-intro__categories-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--mj-blog-accent);
  font-family: "Montserrat-Light";
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mj-blog-intro__categories-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.mj-blog-intro__category-link {
  position: relative;
  padding-bottom: 4px;
  color: var(--mj-blog-text);
  font-family: "Cormorant-Regular";
  font-size: 22px;
  line-height: 1;
}

.mj-blog-intro__category-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid rgba(16, 35, 36, 0.16);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
  transform-origin: left center;
}

.mj-blog-intro__category-link:hover {
  color: var(--mj-blog-accent);
}

.mj-blog-intro__category-link:hover::after {
  border-bottom-color: rgba(198, 163, 123, 0.72);
}

.mj-blog-intro__category-link.is-static {
  pointer-events: none;
}

.mj-article-intro__inner {
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(16, 35, 36, 0.1);
}

.mj-blog-archive-content,
.mj-related-posts,
.mj-article-author {
  padding: 90px 0;
}

.mj-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 74px 42px;
}

.mj-post-card {
  display: block;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
}

.mj-post-card--featured {
  min-height: auto;
  background: transparent;
}

.mj-post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 0.92;
  background: linear-gradient(
    135deg,
    rgba(198, 163, 123, 0.25),
    rgba(16, 35, 36, 0.22)
  );
  overflow: hidden;
}

.mj-post-card--featured .mj-post-card__media {
  aspect-ratio: 1.05;
}

.mj-post-card__media img,
.mj-article-hero__media img,
.mj-article-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-article-content .wp-block-image,
.mj-article-content figure,
.mj-article-content img {
  margin-bottom: 28px;
}

.mj-post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at top left,
      rgba(198, 163, 123, 0.46),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(16, 35, 36, 0.8));
}

.mj-post-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 0 0;
}

.mj-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mj-post-card__meta time,
.mj-post-card__author,
.mj-article-meta-card__label,
.mj-article-author__eyebrow,
.mj-article-taxonomies__label,
.mj-related-posts__header .mj-blog-kicker {
  font-family: "Montserrat-Light";
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mj-post-card__meta time,
.mj-post-card__author,
.mj-article-meta-card__label,
.mj-article-author__eyebrow,
.mj-article-taxonomies__label {
  color: rgba(54, 54, 54, 0.58);
}

.mj-post-card--featured .mj-post-card__meta time,
.mj-post-card--featured .mj-post-card__author {
  color: rgba(54, 54, 54, 0.58);
}

.mj-post-card__title {
  margin: 0;
  font-family: "Cormorant-Regular";
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 0.98;
}

.mj-post-card:not(.mj-post-card--featured) .mj-post-card__title {
  font-size: 33px;
}

.mj-post-card__title a {
  color: var(--mj-blog-text);
}

.mj-post-card--featured .mj-post-card__title a {
  color: var(--mj-blog-text);
}

.mj-post-card__title a:hover {
  color: var(--mj-blog-accent);
}

.mj-post-card__excerpt {
  margin: 16px 0 0;
  font-family: "Montserrat-Regular";
  font-size: 13px;
  line-height: 1.8;
  color: rgba(54, 54, 54, 0.82);
}

.mj-post-card--featured .mj-post-card__excerpt {
  color: rgba(54, 54, 54, 0.82);
}

.mj-post-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.mj-blog-link {
  position: relative;
  padding-right: 68px;
  color: var(--mj-blog-text);
  font-family: "Montserrat-Regular";
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mj-blog-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 50px;
  height: 50px;
  background: url("/wp-content/themes/mjdevelopment/assets/images/button_arrow.svg.png")
    center / contain no-repeat;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.mj-blog-link:hover::after {
  transform: translateY(-50%) translateX(6px);
}

.mj-post-card--featured .mj-blog-link,
.mj-article-author .mj-blog-link {
  color: var(--mj-blog-text);
}

.mj-post-card--featured .mj-blog-link::after,
.mj-article-author .mj-blog-link::after {
  filter: none;
}

.mj-article-shell {
  padding: 10px 0 56px;
}

.mj-article-reading {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mj-article-content {
  color: var(--mj-blog-text);
}

.mj-article-content > *:first-child {
  margin-top: 0;
}

.mj-article-content p,
.mj-article-content li {
  font-family: "Montserrat-Regular";
  font-size: 15px;
  line-height: 1.95;
  color: rgba(54, 54, 54, 0.94);
}

.mj-article-content h2,
.mj-article-content h3,
.mj-article-content h4,
.mj-article-content h5,
.mj-article-content h6 {
  margin: 56px 0 18px;
  color: var(--mj-blog-dark);
  font-family: "Cormorant-Regular";
  font-weight: 400;
  line-height: 1.05;
}

.mj-article-content h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.mj-article-content h3 {
  font-size: clamp(28px, 3.3vw, 38px);
}

.mj-article-content h4 {
  font-size: 28px;
}

.mj-article-content a {
  color: var(--mj-blog-dark-soft);
  text-decoration: underline;
  text-decoration-color: rgba(198, 163, 123, 0.6);
  text-underline-offset: 4px;
}

.mj-article-content ul,
.mj-article-content ol {
  padding-left: 1.4rem;
}

.mj-article-content blockquote {
  margin: 42px 0;
  padding: 20px 0 20px 28px;
  border-left: 3px solid var(--mj-blog-accent);
  border-radius: 0;
  background: transparent;
}

.mj-article-content blockquote p {
  margin: 0;
  color: var(--mj-blog-dark);
  font-family: "Cormorant-Italic";
  font-size: 32px;
  line-height: 1.28;
}

.mj-article-content figure,
.mj-article-content .wp-block-image,
.mj-article-content .post-thumbnail {
  margin: 38px 0;
}

.mj-article-content img {
  display: block;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.mj-article-content figcaption,
.mj-article-content .wp-caption-text {
  margin-top: 10px;
  color: rgba(54, 54, 54, 0.64);
  font-family: "Montserrat-Regular";
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.mj-article-taxonomies {
  display: grid;
  gap: 22px;
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid rgba(16, 35, 36, 0.12);
}

.mj-article-taxonomies__group {
  display: grid;
  gap: 12px;
}

.mj-article-taxonomies__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mj-article-author__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid rgba(16, 35, 36, 0.12);
  border-bottom: 1px solid rgba(16, 35, 36, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mj-article-author__avatar img {
  display: block;
  width: 120px;
  height: 120px;
  border: 0;
  border-radius: 50%;
}

.mj-article-author__name,
.mj-related-posts__header h2 {
  margin: 6px 0 14px;
  font-family: "Cormorant-Regular";
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.mj-article-author__name,
.mj-related-posts__header h2 {
  color: var(--mj-blog-text);
}

.mj-article-author__bio {
  max-width: 620px;
  margin: 0 0 20px;
  font-family: "Montserrat-Regular";
  font-size: 14px;
  line-height: 1.85;
  color: rgba(54, 54, 54, 0.8);
}

.mj-related-posts {
  padding-top: 20px;
  background: transparent;
}

.mj-related-posts__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(16, 35, 36, 0.12);
}

.mj-related-posts .mj-related-posts__header h2 {
  color: var(--mj-blog-dark);
}

.mj-related-posts__header h2::after {
  content: "";
  display: block;
  width: 148px;
  margin-top: 26px;
  border-bottom: 1px solid rgba(198, 163, 123, 0.65);
}

.mj-blog-empty-state {
  padding: 42px 0 0;
}

.mj-blog-page .navigation.pagination {
  margin-top: 42px;
}

.mj-blog-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mj-blog-page .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--mj-blog-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--mj-blog-dark);
  font-family: "Montserrat-Regular";
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mj-blog-page .page-numbers.current,
.mj-blog-page .page-numbers:hover {
  background: var(--mj-blog-dark);
  border-color: var(--mj-blog-dark);
  color: var(--mj-blog-white);
}

@media (max-width: 991px) {
  .mj-blog-grid,
  .mj-blog-intro__featured,
  .mj-article-author__card {
    grid-template-columns: 1fr;
  }

  .mj-post-card:not(.mj-post-card--featured) .mj-post-card__title {
    font-size: 28px;
  }

  .mj-article-reading {
    margin-top: 0;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .mj-blog-archive-content,
  .mj-article-intro,
  .mj-related-posts,
  .mj-article-author {
    padding: 60px 0;
  }

  .mj-blog-intro {
    padding: 42px 0 14px;
  }

  .mj-post-card__content,
  .mj-article-author__card {
    padding: 20px 0 0;
  }

  .mj-article-reading {
    padding: 0;
  }

  .mj-article-intro__meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mj-article-intro__meta-item {
    min-height: auto;
    padding-right: 0;
    padding-bottom: 14px;
  }

  .mj-article-intro__meta-item:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 35, 36, 0.08);
  }

  .mj-article-intro__meta-value {
    font-size: 20px;
  }

  .mj-blog-intro__featured {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .mj-blog-intro__featured .mj-blog-link {
    align-self: start;
  }

  .mj-blog-intro__featured-media {
    width: 100%;
    max-width: 320px;
  }

  .mj-article-content p,
  .mj-article-content li {
    font-size: 15px;
  }

  .mj-article-content blockquote {
    padding: 22px;
  }

  .mj-article-content blockquote p {
    font-size: 24px;
  }

  .mj-blog-link {
    padding-right: 58px;
  }

  .mj-blog-link::after {
    width: 42px;
    height: 42px;
  }

  .mj-article-author__card {
    padding: 32px 0;
  }
}

@media (max-width: 575px) {
  .mj-blog-breadcrumbs li {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .mj-blog-hero__description,
  .mj-article-hero__excerpt,
  .mj-article-intro__excerpt {
    font-size: 12px;
    line-height: 1.8;
  }

  .mj-blog-intro__description {
    font-size: 30px;
    line-height: 1.04;
  }

  .mj-blog-intro__categories-links {
    gap: 10px 16px;
  }

  .mj-blog-intro__category-link {
    font-size: 18px;
  }

  .mj-post-card__content,
  .mj-article-author__card {
    padding: 18px 0 0;
  }

  .mj-article-reading {
    padding: 0;
  }

  .mj-post-card,
  .mj-post-card {
    border-radius: 0;
  }

  .mj-article-content h2 {
    font-size: 34px;
  }

  .mj-article-content h3 {
    font-size: 28px;
  }

  .mj-article-author__card {
    padding: 28px 0;
    border-radius: 0;
  }
}
