.palekh-article .palekh-service-hero__stage {
  min-height: clamp(29rem, 43vw, 39rem);
  background: radial-gradient(ellipse at 68% 36%, #2d2027, transparent 65%), var(--palekh-black);
}

.palekh-article .palekh-service-hero__copy {
  width: min(64%, 54rem);
  padding: clamp(1.5rem, 4.35vw, 4.4rem);
}

.palekh-article .palekh-service-hero__art {
  width: 68%;
  mask-image: linear-gradient(90deg, transparent 4%, #000 37%, #000 96%, transparent);
}

.palekh-article .palekh-service-hero h1 {
  max-width: 21ch;
  font-size: clamp(2.55rem, 4.65vw, 5rem);
  line-height: 1;
  text-wrap: pretty;
}

.palekh-article .palekh-service-hero .entry-meta {
  margin-bottom: 1.35rem;
  color: var(--palekh-text);
}

.palekh-article .palekh-service-layout,
.palekh-article .palekh-service-section > h2 {
  scroll-margin-top: 6.25rem;
}

.palekh-article .palekh-article-toc {
  padding: clamp(0.8rem, 2.1vw, 1.55rem);
  margin-bottom: 1.3rem;
  border: 1px solid #72563d;
  border-radius: 1.1rem;
  background: linear-gradient(112deg, #33251d, #2b2a39 58%, #272a24);
}

.palekh-article .palekh-article-toc summary {
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  color: var(--palekh-gold);
  font-family: var(--palekh-serif);
  font-size: clamp(1.3rem, 2.65vw, 2.05rem);
  font-weight: 600;
  cursor: pointer;
}

.palekh-article .palekh-article-toc ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem 1.8rem;
  padding-inline-start: 1.8rem;
  margin: 0.65rem 0 0;
  font-size: 0.94rem;
}

.palekh-article .palekh-article-toc li::marker {
  color: var(--palekh-gold);
  font-variant-numeric: tabular-nums;
}

.palekh-article .palekh-article-toc a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  color: var(--palekh-ivory);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.palekh-article .palekh-article-toc a:is(:hover, :focus-visible) {
  background: #19171a;
  color: var(--palekh-gold);
}

.palekh-article .palekh-service-intro,
.palekh-article .palekh-service-section {
  padding: clamp(1.05rem, 3.1vw, 2.65rem);
  margin-block: 1rem;
  border: 1px solid var(--palekh-article-edge, #634a34);
  border-radius: 1.1rem;
  background:
    radial-gradient(ellipse at 88% 8%, var(--palekh-article-glow, #423128), transparent 72%),
    var(--palekh-article-panel, #201914);
}

.palekh-article .palekh-service-intro {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0.9rem 2rem;
  max-width: none;
  align-items: start;
  --palekh-article-panel: #1d1b23;
  --palekh-article-glow: #42302d;
}

.palekh-article .palekh-service-intro > p {
  grid-column: 1;
  max-width: 66ch;
  margin: 0;
}

.palekh-article .palekh-service-intro > figure:first-of-type {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.palekh-article .palekh-service-section > h2 {
  max-width: 30ch;
  font-size: clamp(2rem, 4.1vw, 3.55rem);
  text-wrap: balance;
}

.palekh-article .palekh-service-section > h3 {
  margin-block: 1.1rem 0.6rem;
  color: var(--palekh-gold);
}

.palekh-article .palekh-service-section p {
  max-width: 78ch;
}

.palekh-article .palekh-service-section > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.35rem;
  max-width: none;
  padding: clamp(0.85rem, 2.1vw, 1.55rem);
  border-color: var(--palekh-article-edge, #735438);
  background: var(--palekh-article-list, #191613);
}

.palekh-article .palekh-service-section > ul li {
  overflow-wrap: anywhere;
}

.palekh-article .palekh-service-content figure {
  max-width: 38rem;
  padding: clamp(0.35rem, 1.25vw, 0.7rem);
  margin-block: 0 1.15rem;
  border: 1px solid #95714b;
  border-radius: 0.86rem;
  background: #171316;
  box-shadow: inset 0 0 0 3px #231c20;
}

.palekh-article .palekh-service-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.48rem;
}

.palekh-article .palekh-service-content figcaption {
  padding: 0.54rem 0.42rem 0.22rem;
  margin: 0;
  color: #e6d5bd;
  font-size: 0.89rem;
  line-height: 1.5;
  text-align: start;
}

.palekh-article figcaption .palekh-article-figure-link {
  display: block;
  width: fit-content;
  margin-top: 0.4rem;
  text-underline-offset: 0.22em;
}

.palekh-article .palekh-service-content hr.wp-block-separator {
  width: min(100%, 10rem);
  height: 1px;
  margin: 1.18rem 0 0;
  border: 0;
  opacity: 1;
  background: linear-gradient(90deg, #ad8055, transparent);
}

.palekh-article .footer-cta {
  border: 1px solid #866343;
  border-radius: 1.1rem;
  background: radial-gradient(ellipse at 83% 10%, #522f30, transparent 73%), #271b1a;
}

.palekh-article .footer-cta .eyebrow {
  color: var(--palekh-gold);
}

@media (min-width: 900px) {
  .palekh-article .palekh-service-section > figure {
    float: right;
    width: 41%;
    margin: 0 0 1.1rem 1.65rem;
  }

  .palekh-article .palekh-service-section:has(> figure) {
    display: flow-root;
  }
}

@media (max-width: 850px) {
  .palekh-article .palekh-article-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .palekh-article .palekh-service-intro {
    display: block;
  }

  .palekh-article .palekh-service-intro > :not(:last-child),
  .palekh-article .palekh-service-intro > figure:first-of-type {
    margin-bottom: 1rem;
  }

  .palekh-article .palekh-service-section > ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .palekh-article .palekh-service-hero__stage {
    min-height: auto;
  }

  .palekh-article .palekh-service-hero__copy {
    width: 100%;
    padding: clamp(1rem, 4.1vw, 1.5rem);
  }

  .palekh-article .palekh-service-hero__art {
    width: 100%;
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 96%, transparent);
  }

  .palekh-article .palekh-service-hero h1 {
    font-size: clamp(2.02rem, 7.4vw, 3.5rem);
  }

  .palekh-article .palekh-service-layout,
  .palekh-article .palekh-service-section > h2 {
    scroll-margin-top: 5rem;
  }
}

@media (max-width: 460px) {
  .palekh-article .palekh-article-toc ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
}
