/* Shared between the article body and the post editor canvas. */
:is(.article-content, .editor-styles-wrapper) {
  line-height: 2.05;
  overflow-wrap: anywhere;
}

:is(.article-content, .editor-styles-wrapper) p + p {
  margin-top: 1.5em;
}

:is(.article-content, .editor-styles-wrapper) h2 {
  font-size: 28px;
  margin-block: 2.2em 1em;
}

:is(.article-content, .editor-styles-wrapper) h3 {
  font-size: 22px;
  margin-block: 1.8em .8em;
}

:is(.article-content, .editor-styles-wrapper) :is(ul, ol) {
  padding-inline-start: 1.5em;
  margin-block: 1.5em;
}

:is(.article-content, .editor-styles-wrapper) img {
  max-width: 100%;
  height: auto;
}

:is(.article-content, .editor-styles-wrapper) a {
  color: var(--blue);
  text-decoration: underline;
}

.article-header h1,
.editor-styles-wrapper .editor-post-title__input {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.editor-styles-wrapper {
  --blue: #0033ff;
  background: #fff;
  color: #000;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
}

.editor-styles-wrapper p {
  margin-block: 0;
}

.editor-styles-wrapper :is(.block-editor-block-list__layout.is-root-container, .editor-post-title) {
  width: calc(100% - 48px);
  max-width: 1100px;
  margin-inline: auto;
}

.editor-styles-wrapper .is-root-container > .wp-block {
  max-width: 100%;
}

@media (max-width: 600px) {
  :is(.article-content, .editor-styles-wrapper) h2 {
    font-size: 24px;
  }

  .article-header h1,
  .editor-styles-wrapper .editor-post-title__input {
    font-size: 27px;
  }
}
