:root {
  --cpw-content-max-width: 760px;
  --cpw-content-text: oklch(15% 0.02 260);
  --cpw-content-muted: oklch(42% 0.016 260);
  --cpw-content-border: oklch(88% 0.012 260);
  --cpw-content-surface: oklch(99.5% 0.002 260);
  --cpw-content-card-shadow: 0 20px 55px rgb(31 34 40 / 0.12);
  --cpw-content-media-margin-block-end: 1.6em;
}

body {
  color: var(--cpw-content-text);
}

a {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

:where(.entry-content, .cpw-prose) {
  font-size: clamp(1.05rem, 1rem + 0.28vw, 1.18rem);
  line-height: 1.72;
  letter-spacing: 0;
}

:where(.entry-content, .cpw-prose) :where(p, ul, ol, figure, blockquote) {
  margin: 0 0 1.1em;
}

:where(.entry-content, .cpw-prose) :is(
  figure,
  .wp-block-image,
  .wp-block-gallery,
  .wp-block-video,
  .wp-block-embed,
  .wp-block-table
) {
  margin-bottom: var(--cpw-content-media-margin-block-end);
}

:where(.entry-content, .cpw-prose) :is(.wp-block-image, .wp-block-video) {
  margin-top: 32px;
  margin-bottom: 40px;
}

:where(.entry-content, .cpw-prose) :where(ul, ol) {
  padding-left: 1.5rem;
}

:where(.entry-content, .cpw-prose) :where(ul) {
  list-style: disc outside;
}

:where(.entry-content, .cpw-prose) :where(ol) {
  list-style: decimal outside;
}

:where(.entry-content, .cpw-prose) :where(li) {
  display: list-item;
  margin: 0.35em 0;
  padding-left: 0.2rem;
}

:where(.entry-content, .cpw-prose) :where(li)::marker {
  color: var(--cpw-content-muted);
  font-weight: var(--cpw-font-ui-strong);
}

:where(.entry-content, .cpw-prose) :where(li > ul, li > ol) {
  margin-top: 0.45em;
  margin-bottom: 0.45em;
}

:where(.entry-content, .cpw-prose) :where(h1, h2, h3, h4, h5, h6) {
  color: var(--cpw-color-dark-blue);
  font-family: var(--cpw-font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 1.15em 0 0.55em;
  text-wrap: pretty;
}

:where(.entry-content, .cpw-prose) :where(h1) {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

:where(.entry-content, .cpw-prose) :where(h2) {
  font-size: clamp(1.7rem, 4vw, 2.25rem);
}

:where(.entry-content, .cpw-prose) :where(h3) {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

:where(.entry-content, .cpw-prose) :where(h4) {
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
}

:where(.entry-content, .cpw-prose) :where(h5) {
  font-size: 1.12rem;
}

:where(.entry-content, .cpw-prose) :where(h6) {
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

:where(.entry-content, .cpw-prose) :where(h1, h2, h3, h4, h5, h6) :where(a, strong, b) {
  font: inherit;
  font-weight: inherit;
  color: inherit;
}

:where(.entry-content, .cpw-prose) :where(p, li, blockquote, figcaption) a:not(.wp-element-button):not(.wp-block-button__link) {
  color: var(--cpw-color-text-blue);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:where(.entry-content, .cpw-prose) :where(p, li, blockquote, figcaption) a:not(.wp-element-button):not(.wp-block-button__link):hover,
:where(.entry-content, .cpw-prose) :where(p, li, blockquote, figcaption) a:not(.wp-element-button):not(.wp-block-button__link):focus-visible {
  color: var(--cpw-color-text-blue-hover);
  text-decoration-color: currentColor;
}

:where(.entry-content, .cpw-prose) :where(iframe) {
  max-width: 100%;
}

:where(.entry-content, .cpw-prose) :where(img) {
  max-width: 100%;
  height: auto;
}

:where(.entry-content, .cpw-prose) :where(.wp-block-image img) {
  border-radius: 12px;
}

:where(.entry-content, .cpw-prose) :where(.wp-block-video video) {
  border-radius: 12px;
}

:where(.entry-content, .cpw-prose) :where(.wp-block-button__link, .wp-element-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.625rem 1rem;
  border: 0;
  border-radius: 4px;
  background-color: var(--cpw-button-light-bg);
  color: var(--cpw-button-light-text);
  font-weight: var(--cpw-font-ui-strong);
  text-decoration: none;
}

:where(.entry-content, .cpw-prose) :where(.wp-block-button__link, .wp-element-button):hover,
:where(.entry-content, .cpw-prose) :where(.wp-block-button__link, .wp-element-button):focus-visible {
  background-color: var(--cpw-button-light-bg-hover);
  color: var(--cpw-button-light-text);
}
