html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--hh-sand);
  color: var(--hh-ink-muted);
  font-family: var(--hh-font-body);
  font-size: var(--hh-text-body);
  line-height: var(--hh-line-body);
}

h1,
h2,
h3,
h4,
.wp-block-site-title,
.wp-block-heading {
  color: var(--hh-ink);
  font-family: var(--hh-font-heading);
  font-weight: var(--hh-font-heading-weight);
  hyphens: none;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  font-size: var(--hh-h1);
  line-height: 1.15;
  margin-bottom: var(--hh-space-h1-content);
}

h2 {
  font-size: var(--hh-h2);
  line-height: 1.2;
  margin-bottom: var(--hh-space-h2-p);
}

h3 {
  font-size: var(--hh-h3);
  line-height: 1.25;
  margin-bottom: var(--hh-space-h2-p);
}

p,
li {
  color: var(--hh-ink-muted);
  font-size: var(--hh-text-body);
  line-height: var(--hh-line-body);
  max-width: var(--hh-prose-max);
}

p + p {
  margin-top: var(--hh-space-p-p);
}

:is(.wp-block-post-content, .entry-content)
  > .wp-block-group:not(.hh-hero)
  :is(p, li) {
  font-size: var(--hh-text-body);
  line-height: var(--hh-line-body);
}

:is(.wp-block-post-content, .entry-content)
  > .wp-block-group:not(.hh-hero)
  h1 {
  font-size: var(--hh-h1);
  line-height: 1.15;
}

:is(.wp-block-post-content, .entry-content)
  > .wp-block-group:not(.hh-hero)
  :is(h2, h2.wp-block-heading) {
  font-size: var(--hh-h2);
  line-height: 1.2;
}

:is(.wp-block-post-content, .entry-content)
  > .wp-block-group:not(.hh-hero)
  :is(h3, h3.wp-block-heading) {
  font-size: var(--hh-h3);
  line-height: 1.25;
}

.hh-kicker,
.hh-kicker--positioning,
.hh-kicker--calling {
  color: var(--hh-brand-dark);
  font-family: var(--hh-font-body);
  font-size: var(--hh-text-kicker);
  font-weight: 700;
  letter-spacing: var(--hh-text-kicker-tracking);
  line-height: 1.45;
  max-width: none;
  text-transform: uppercase;
}

.hh-quote__closing,
.hh-about-essence__closing,
.hh-about-calling__highlight {
  color: var(--hh-brand-dark);
  font-family: var(--hh-font-heading);
  font-size: var(--hh-text-emphasis);
  font-weight: var(--hh-font-heading-weight);
  line-height: 1.3;
}

.hh-fit-card :is(h2, h3),
.hh-fit-card :is(h2, h3).wp-block-heading,
.hh-about-compass__card :is(h2, h3),
.hh-about-compass__card :is(h2, h3).wp-block-heading {
  font-size: var(--hh-h3);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.wp-block-post-content .wp-block-image.hh-photo-slot,
.entry-content .wp-block-image.hh-photo-slot {
  margin-inline: 0;
  max-width: 100%;
  width: 100%;
}

.hh-photo-slot {
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.hh-photo-slot img {
  border-radius: var(--hh-radius-card);
  box-shadow: var(--hh-shadow-photo);
  display: block;
  height: auto;
  margin-inline: auto;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.hh-photo-slot--portrait img {
  aspect-ratio: 4 / 5;
  max-height: min(24rem, 72vw);
}

.hh-photo-slot--landscape img {
  aspect-ratio: 16 / 10;
  max-height: min(16rem, 52vw);
}

@media (max-width: 781px) {
  .hh-photo-slot--portrait img {
    max-height: min(22rem, 80vw);
  }

  .hh-photo-slot--landscape img {
    max-height: min(14rem, 58vw);
  }

  .hh-about-page__intro-grid,
  .hh-about__grid,
  .hh-about-essence__grid,
  .hh-about-calling__grid,
  .hh-about-method__grid,
  .hh-work__grid {
    grid-template-columns: 1fr;
  }
}

.hh-photo-slot--square img {
  aspect-ratio: 1;
  max-height: 12rem;
  max-width: 12rem;
}

.hh-photo-slot img[src*="photo-placeholder"] {
  background: color-mix(in srgb, var(--hh-sand) 55%, white);
  object-fit: contain;
}

.hh-about-page__intro-grid,
.hh-about__grid,
.hh-about-essence__grid,
.hh-about-calling__grid,
.hh-about-method__grid,
.hh-work__grid {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hh-about-page__intro-grid {
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
}

.hh-about__grid {
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
}

.hh-about-essence__grid {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
}

.hh-about-calling__grid {
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
}

.hh-about-method__grid {
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
}

.hh-work__grid {
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
}

.wp-block-post-content > .hh-about-page--intro + .hh-about-essence,
.wp-block-post-content > .hh-about-essence + .hh-about-compass,
.wp-block-post-content > .hh-about-compass + .hh-about-calling,
.wp-block-post-content > .hh-about-calling + .hh-about-method {
  margin-top: 0;
}

.hh-about-page__intro-copy p,
.hh-about-page__intro-copy .hh-kicker,
.hh-about-page__intro-copy h1 {
  max-width: none;
}

.hh-about-essence__grid .hh-about-essence__card {
  max-width: none;
}

.hh-investment__aside .hh-photo-slot {
  margin-bottom: 1.25rem;
}

.hh-investment__aside .hh-photo-slot--square {
  margin-inline: 0;
}

.wp-block-post-content > .wp-block-group:not(.hh-quote):not(.hh-cta):not(.hh-zusammenarbeit__purpose) p,
.wp-block-post-content > .wp-block-group:not(.hh-quote):not(.hh-cta):not(.hh-zusammenarbeit__purpose) li,
.hh-about p,
.hh-card p,
.hh-card li,
.hh-panel p,
.hh-panel li {
  text-align: left;
}

a {
  color: var(--hh-brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--hh-accent-deep);
}

.ml-form-embedContainer,
.ml-form-embedWrapper,
[id^="mlb2-"] {
  font-family: "Open Sans", sans-serif;
}

.wp-site-blocks {
  overflow-x: clip;
  overflow-y: visible;
}

.wp-block-template-part {
  position: relative;
  z-index: 5;
}
