@font-face {
  font-family: 'Eudoxia Script Widget';
  src: url('../fonts/EudoxiaScript-Regular-v0.5.6.woff2?v=1.7.2-k-original-r6') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.eudoxia-post-content {
  --eudoxia-paper: #F3EFE7;
  --eudoxia-ink: #090909;
  --eudoxia-accent: #FF0E0E;
  --eudoxia-muted: #716D67;
  --eudoxia-divider: #CFC7BC;
  --eudoxia-rule-size: 4px;
  --eudoxia-stage: #090909;

  position: relative;
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
  padding: 31px clamp(38px, 5vw, 72px) clamp(62px, 7vw, 94px);
  overflow: visible;
  background: var(--eudoxia-paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  color: var(--eudoxia-ink);
  text-align: left;
}

.eudoxia-post-content,
.eudoxia-post-content *,
.eudoxia-post-content *::before,
.eudoxia-post-content *::after {
  box-sizing: border-box;
}

.eudoxia-post-content::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--eudoxia-rule-size);
  background: var(--eudoxia-accent);
  content: '';
  pointer-events: none;
}

.eudoxia-post-content::after {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: -9px;
  width: 1px;
  background: linear-gradient(
    transparent,
    rgba(255, 14, 14, .78) 8%,
    rgba(255, 14, 14, .78) 92%,
    transparent
  );
  background: linear-gradient(
    transparent,
    color-mix(in srgb, var(--eudoxia-accent) 78%, transparent) 8%,
    color-mix(in srgb, var(--eudoxia-accent) 78%, transparent) 92%,
    transparent
  );
  content: '';
  pointer-events: none;
}

/* Cabeçalho discreto no topo do papel. */
.eudoxia-post-content__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--eudoxia-divider);
  color: var(--eudoxia-muted);
  font: 500 9px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eudoxia-post-content__meta > :last-child {
  text-align: right;
}

/* Coluna principal: aproximadamente 65–70 caracteres por linha. */
.eudoxia-post-content__body {
  width: 100%;
  max-width: 68ch;
  margin-inline: auto;
  padding-top: clamp(43px, 6vw, 66px);
  color: var(--eudoxia-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18.5px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: -.008em;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

.eudoxia-post-content__body p {
  margin: 0 0 1.48em;
  color: inherit;
  font: inherit;
}

.eudoxia-post-content__body--lead > p:first-of-type {
  margin-bottom: 1.65em;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.58;
  letter-spacing: -.015em;
}

.eudoxia-post-content__body--drop-cap > p:first-of-type::first-letter {
  float: left;
  margin: .07em .13em -.08em 0;
  color: var(--eudoxia-accent);
  font-family: 'Eudoxia Script Widget', 'Eudoxia Script', cursive;
  font-size: 4.7em;
  font-style: normal;
  font-weight: 400;
  font-kerning: normal;
  font-feature-settings: 'kern' 1;
  line-height: .74;
}

.eudoxia-post-content__body strong,
.eudoxia-post-content__body b {
  font-weight: 700;
}

.eudoxia-post-content__body em,
.eudoxia-post-content__body i {
  color: #4A4540;
  color: color-mix(in srgb, var(--eudoxia-ink) 72%, var(--eudoxia-paper));
}

.eudoxia-post-content__body h2,
.eudoxia-post-content__body h3,
.eudoxia-post-content__body h4 {
  margin: 2em 0 .72em;
  color: var(--eudoxia-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.eudoxia-post-content__body h2 {
  max-width: 17ch;
  font-size: clamp(34px, 4vw, 48px);
}

.eudoxia-post-content__body h3 {
  font-size: clamp(27px, 3vw, 36px);
}

.eudoxia-post-content__body h2::before {
  display: block;
  width: 42px;
  margin-bottom: 19px;
  border-top: 3px solid var(--eudoxia-accent);
  content: '';
}

.eudoxia-post-content__body a {
  color: var(--eudoxia-ink);
  text-decoration-line: underline;
  text-decoration-color: var(--eudoxia-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.eudoxia-post-content__body a:hover,
.eudoxia-post-content__body a:focus-visible {
  color: var(--eudoxia-accent);
  text-decoration-color: var(--eudoxia-accent);
}

.eudoxia-post-content__body a:focus-visible {
  outline: 2px solid var(--eudoxia-accent);
  outline-offset: 4px;
}

.eudoxia-post-content__body ul,
.eudoxia-post-content__body ol {
  margin: 0 0 1.6em;
  padding-left: 1.35em;
}

.eudoxia-post-content__body li {
  margin-bottom: .45em;
  padding-left: .2em;
}

.eudoxia-post-content__body li::marker {
  color: var(--eudoxia-accent);
}

.eudoxia-post-content__body blockquote,
.eudoxia-post-content__body .wp-block-quote {
  position: relative;
  width: calc(100% + clamp(46px, 7vw, 106px));
  margin-block: clamp(52px, 7vw, 76px);
  margin-inline: clamp(-53px, -3.5vw, -23px);
  padding: clamp(42px, 5vw, 58px);
  border: 0;
  background: var(--eudoxia-stage);
  box-shadow: 12px 12px 0 var(--eudoxia-accent);
  color: #F3EFE7;
}

.eudoxia-post-content__body blockquote::before,
.eudoxia-post-content__body .wp-block-quote::before {
  position: absolute;
  top: 15px;
  left: 24px;
  color: var(--eudoxia-accent);
  content: '“';
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 1;
}

.eudoxia-post-content__body blockquote p,
.eudoxia-post-content__body .wp-block-quote p {
  margin: 0;
  color: inherit;
  font-size: clamp(25px, 3vw, 35px);
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

.eudoxia-post-content__body blockquote cite {
  display: block;
  margin-top: 18px;
  color: #bdb8b0;
  font: 500 9px/1.4 Arial, sans-serif;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.eudoxia-post-content__body figure,
.eudoxia-post-content__body .wp-block-image,
.eudoxia-post-content__body .wp-block-gallery {
  max-width: 100%;
  margin: clamp(38px, 6vw, 64px) 0;
}

.eudoxia-post-content__body img,
.eudoxia-post-content__body video {
  max-width: 100%;
  height: auto;
}

.eudoxia-post-content__body iframe {
  max-width: 100%;
}

.eudoxia-post-content__body .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

.eudoxia-post-content__body .wp-block-embed.is-type-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eudoxia-post-content__body figcaption,
.eudoxia-post-content__body .wp-element-caption {
  margin-top: 11px;
  color: var(--eudoxia-muted);
  font: 500 9px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eudoxia-post-content__body hr,
.eudoxia-post-content__body .wp-block-separator {
  width: 64px;
  margin: 54px auto;
  border: 0;
  border-top: 2px solid var(--eudoxia-accent);
  opacity: 1;
}

.eudoxia-post-content__body pre,
.eudoxia-post-content__body table {
  max-width: 100%;
  overflow-x: auto;
}

.eudoxia-post-content__body table {
  width: 100%;
  margin-bottom: 1.6em;
  border-collapse: collapse;
  font-size: .88em;
}

.eudoxia-post-content__body th,
.eudoxia-post-content__body td {
  padding: 10px;
  border-bottom: 1px solid var(--eudoxia-divider);
  text-align: left;
}

.eudoxia-post-content ::selection {
  background: var(--eudoxia-accent);
  color: #fff;
}

.eudoxia-post-content--editor-preview {
  min-height: 520px;
}

@media (max-width: 767px) {
  .eudoxia-post-content {
    padding: 25px 23px 56px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  }

  .eudoxia-post-content::after {
    display: none;
  }

  .eudoxia-post-content__meta {
    gap: 12px;
    padding-bottom: 20px;
    font-size: 8px;
    letter-spacing: .13em;
  }

  .eudoxia-post-content__body {
    padding-top: 41px;
    font-size: 17px;
    line-height: 1.72;
  }

  .eudoxia-post-content__body--lead > p:first-of-type {
    font-size: 21px;
    line-height: 1.55;
  }

  .eudoxia-post-content__body--drop-cap > p:first-of-type::first-letter {
    margin-right: .11em;
    font-size: 4.1em;
  }

  .eudoxia-post-content__body h2 {
    font-size: 35px;
  }

  .eudoxia-post-content__body blockquote,
  .eudoxia-post-content__body .wp-block-quote {
    width: 100%;
    margin: 48px 0;
    padding: 40px 25px;
    box-shadow: 7px 7px 0 var(--eudoxia-accent);
  }

  .eudoxia-post-content__body blockquote p,
  .eudoxia-post-content__body .wp-block-quote p {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eudoxia-post-content *,
  .eudoxia-post-content *::before,
  .eudoxia-post-content *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .eudoxia-post-content {
    max-width: none;
    padding-inline: 0;
    box-shadow: none;
  }

  .eudoxia-post-content::after {
    display: none;
  }
}
