.wolf-editorial-page #main {
  display: block;
  color: var(--wolf-color-text-primary);
  background: var(--wolf-color-bg-primary);
}

.wolf-editorial-content .wolf-heading {
  text-wrap: balance;
}

/* Blocksy sets element-level heading colors; inheritance alone is not enough. */
.wolf-editorial-home .wolf-presence :is(h1, h2, h3) {
  color: var(--wolf-color-text-primary);
}

.wolf-editorial-home .wolf-presence .chapter-panel p {
  color: var(--wolf-color-text-secondary);
}

/* Anchor the reading beat to the bottom, preserving the scroll-driven offset. */
.wolf-editorial-home .wolf-presence .cinema[data-motion][data-chapter] .journey-beat {
  margin-top: 0;
  transform: translateY(calc(var(--beat-offset, 0px) + 100svh - 6rem - 100%));
}

.wolf-editorial-home .wolf-presence .cinema[data-motion][data-chapter] .journey-reading-shade {
  background: radial-gradient(ellipse at left bottom, #090909ee, #090909a8 30%, transparent 70%);
}

@media (max-width: 680px) {
  .wolf-editorial-home .wolf-presence .cinema[data-motion][data-chapter] .journey-beat {
    max-inline-size: min(37ch, calc(100% - 3.25rem));
    transform: translateY(calc(var(--beat-offset, 0px) + 96svh - 1.25rem - 100%));
  }

  .wolf-editorial-home .wolf-presence .cinema[data-motion][data-chapter] .journey-reading-shade {
    background: linear-gradient(to bottom, transparent 50%, #09090968 68%, #090909f5 92%);
  }
}

.wolf-editorial-content .wolf-copy {
  max-inline-size: 60ch;
  text-wrap: pretty;
}

.wolf-editorial-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--wolf-space-4) var(--wolf-space-12);
  margin-block-end: var(--wolf-space-8);
}

.wolf-text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--wolf-space-2);
  min-block-size: 44px;
  color: var(--wolf-color-action);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.wolf-editorial-end,
.wolf-home-collection,
.wolf-manifesto-law {
  border-block-start: 1px solid var(--wolf-color-border);
}

.wolf-editorial-end,
.wolf-manifesto-cta {
  background: var(--wolf-color-surface);
}

.wolf-editorial-end__grid {
  display: grid;
  gap: var(--wolf-space-10);
}

.wolf-editorial-credits {
  padding-block: var(--wolf-space-4);
  color: var(--wolf-color-text-muted);
  font-size: var(--wolf-font-size-sm);
}

.wolf-editorial-credits summary {
  inline-size: fit-content;
  min-block-size: 44px;
  padding-block: var(--wolf-space-3);
  cursor: pointer;
}

.wolf-editorial-credits a {
  color: var(--wolf-color-text-secondary);
  text-decoration: underline;
}

.wolf-home-collection .woocommerce ul.products,
.wolf-home-collection .products:is(ul, div) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--wolf-space-6);
}

.wolf-home-collection .product {
  min-inline-size: 0;
  color: var(--wolf-color-text-primary);
}

.wolf-home-collection .product :is(a, .price, .woocommerce-loop-product__title) {
  color: var(--wolf-color-text-primary);
}

.wolf-home-collection .product :is(.button, .wp-element-button) {
  min-block-size: 44px;
  color: var(--wolf-color-action-text);
  background: var(--wolf-color-action);
}

.wolf-manifesto-photo {
  overflow: clip;
  background: var(--wolf-color-surface);
}

.wolf-manifesto-photo img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.wolf-manifesto-hero .wolf-manifesto-photo {
  aspect-ratio: 4 / 5;
  max-inline-size: 35rem;
}

.wolf-manifesto-law .wolf-manifesto-photo {
  aspect-ratio: 16 / 9;
}

.wolf-service-page {
  --theme-palette-color-1: #29231e;
  --theme-palette-color-2: #5e4731;
}

.wolf-service-page main :is(h1, h2) {
  text-wrap: balance;
}

.wolf-service-page main :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #5e4731;
  outline-offset: 2px;
}

.wolf-service-information main :is(.entry-content, .elementor-widget-text-editor) p {
  max-inline-size: 70ch;
}

.wolf-service-account .woocommerce-MyAccount-navigation a {
  min-block-size: 44px;
  display: flex;
  align-items: center;
}

@media (min-width: 48rem) {
  .wolf-editorial-end__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
