/*
 * Essay interior template
 * Source: Figma nodes 627:142 and 627:272
 * Scoped to single posts so page and homepage layouts remain unchanged.
 */

body.single-post {
  --jm-essay-paper: #f3f1ec;
  --jm-essay-ink: #22221f;
  --jm-essay-secondary: #555550;
  --jm-essay-gold: #cdaa63;
  --jm-essay-forest: #2b3a34;
  --jm-essay-card: #ffffff;
  --jm-essay-border: #e4dfd5;
  background: var(--jm-essay-paper);
  color: var(--jm-essay-ink);
}

body.single-post main {
  background: var(--jm-essay-paper);
}

body.single-post .jm-header {
  position: relative;
  background: var(--jm-essay-paper);
  border-bottom: 0;
  color: var(--jm-essay-ink);
}

body.single-post .jm-header__bar {
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 32px 120px;
}

body.single-post .jm-logo {
  color: var(--jm-essay-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.single-post .jm-nav a {
  color: var(--jm-essay-ink);
  font-family: Inter, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
}

body.single-post .jm-nav {
  gap: 32px;
}

body.single-post .jm-nav a[href$="/about/"],
body.single-post .jm-nav a[href$="/about"] {
  display: none;
}

body.single-post .jm-header__bar > .jm-btn {
  display: none;
}

body.single-post .jm-essay-interior {
  background: var(--jm-essay-paper);
}

body.single-post .jm-essay-shell {
  width: 100%;
  padding: 64px 120px 120px;
}

body.single-post .jm-essay-header {
  width: min(680px, 100%);
  margin: 0 auto;
  padding-bottom: 40px;
}

body.single-post .jm-essay-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  color: var(--jm-essay-gold);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.125em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

body.single-post .jm-essay-back:hover,
body.single-post .jm-essay-back:focus-visible {
  color: var(--jm-essay-ink);
}

body.single-post .jm-essay-back:focus-visible,
body.single-post .jm-essay-related-card a:focus-visible {
  outline: 2px solid var(--jm-essay-gold);
  outline-offset: 4px;
}

body.single-post .jm-essay-topics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--jm-essay-gold);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.167em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.single-post .jm-essay-topics__dot {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}

body.single-post .jm-essay-header h1 {
  max-width: none;
  margin: 0 0 16px !important;
  color: var(--jm-essay-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.24;
  text-wrap: balance;
}

body.single-post .jm-essay-header__rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--jm-essay-border);
}

body.single-post .jm-essay-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
}

body.single-post .jm-essay-byline__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.single-post .jm-essay-byline__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--jm-essay-forest);
}

body.single-post .jm-essay-byline p {
  margin: 0;
}

body.single-post .jm-essay-byline__name {
  color: var(--jm-essay-ink);
  font: 600 13px/1.2 Inter, sans-serif;
}

body.single-post .jm-essay-byline__role {
  margin-top: 2px !important;
  color: var(--jm-essay-secondary);
  font: 400 11px/1.2 Inter, sans-serif;
}

body.single-post .jm-essay-byline time {
  flex: 0 0 auto;
  color: var(--jm-essay-secondary);
  font: 400 13px/1.3 Inter, sans-serif;
}

body.single-post .jm-essay-hero {
  width: min(920px, 100%);
  margin: 0 auto;
  padding-bottom: 48px;
}

body.single-post .jm-essay-hero__image {
  display: block;
  width: 100%;
  height: 440px;
  border-radius: 4px;
  object-fit: cover;
}

body.single-post .jm-essay-hero figcaption {
  margin-top: 12px;
  color: var(--jm-essay-secondary);
  font: italic 400 13px/18px Inter, sans-serif;
}

body.single-post .jm-essay-content {
  width: min(680px, 100%);
  margin: 0 auto;
  color: var(--jm-essay-secondary);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.625;
}

body.single-post .jm-essay-content > p {
  margin: 0 0 32px;
}

body.single-post .jm-essay-content > p:first-child {
  color: var(--jm-essay-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
}

body.single-post .jm-essay-content > p:first-child em {
  font-style: inherit;
}

body.single-post .jm-essay-content h2,
body.single-post .jm-essay-content h3 {
  position: relative;
  color: var(--jm-essay-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

body.single-post .jm-essay-content h2 {
  margin: 48px 0 32px !important;
  padding-bottom: 14px;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.286;
}

body.single-post .jm-essay-content h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--jm-essay-gold);
  content: "";
}

body.single-post .jm-essay-content h3 {
  margin: 40px 0 20px !important;
  font-size: 22px;
  line-height: 1.35;
}

body.single-post .jm-essay-content a {
  color: var(--jm-essay-ink);
  text-decoration-color: var(--jm-essay-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-post .jm-essay-content strong {
  color: var(--jm-essay-ink);
  font-weight: 600;
}

body.single-post .jm-essay-content blockquote,
body.single-post .jm-essay-content .wp-block-quote {
  margin: 40px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--jm-essay-gold);
  color: var(--jm-essay-ink);
}

body.single-post .jm-essay-content blockquote p {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.42;
}

body.single-post .jm-essay-content blockquote cite {
  color: var(--jm-essay-gold);
  font: normal 600 12px/1.3 Inter, sans-serif;
  letter-spacing: 0.083em;
  text-transform: uppercase;
}

body.single-post .jm-essay-content .wp-block-image {
  margin: 40px 0;
}

body.single-post .jm-essay-content .wp-block-image img {
  border-radius: 4px;
}

body.single-post .jm-essay-content .wp-element-caption {
  margin-top: 12px;
  color: var(--jm-essay-secondary);
  font: italic 400 13px/18px Inter, sans-serif;
  text-align: left;
}

body.single-post .jm-essay-content .is-style-reflective-practice {
  margin: 40px 0;
  padding: 32px;
  border: 1px solid var(--jm-essay-border);
  border-radius: 4px;
  background: var(--jm-essay-card);
}

body.single-post .jm-essay-content > :last-child {
  margin-bottom: 0;
}

body.single-post .jm-essay-related {
  width: min(920px, 100%);
  margin: 0 auto;
  padding-top: 80px;
}

body.single-post .jm-essay-related__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

body.single-post .jm-essay-related__heading span {
  width: 16px;
  height: 1px;
  background: var(--jm-essay-gold);
}

body.single-post .jm-essay-related__heading h2 {
  margin: 0 !important;
  color: var(--jm-essay-gold);
  font: 700 13px/1.2 Inter, sans-serif;
  letter-spacing: 0.154em;
  text-transform: uppercase;
}

body.single-post .jm-essay-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.single-post .jm-essay-related-card {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--jm-essay-border);
  border-radius: 4px;
  background: var(--jm-essay-card);
}

body.single-post .jm-essay-related-card__topic {
  margin: 0 0 8px;
  color: var(--jm-essay-gold);
  font: 700 11px/1.2 Inter, sans-serif;
  letter-spacing: 0.136em;
  text-transform: uppercase;
}

body.single-post .jm-essay-related-card h3 {
  margin: 0 0 20px !important;
  color: var(--jm-essay-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.273;
}

body.single-post .jm-essay-related-card__excerpt {
  margin: 0 0 24px;
  color: var(--jm-essay-secondary);
  font: 400 14px/22px Inter, sans-serif;
}

body.single-post .jm-essay-related-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--jm-essay-ink);
  font: 600 13px/1.2 Inter, sans-serif;
  letter-spacing: 0.077em;
  text-decoration: none;
  text-transform: uppercase;
}

body.single-post .jm-essay-related-card:hover {
  border-color: rgba(205, 170, 99, 0.7);
}

body.single-post .jm-essay-newsletter {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(14, 22, 19, 0.88), rgba(14, 22, 19, 0.88)),
    url("https://junelmoore.com/wp-content/uploads/2026/09/meadow-resized.png") center 58% / cover no-repeat;
  color: #f5f0eb;
}

body.single-post .jm-essay-newsletter__inner {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 80px;
  padding: 100px 120px 80px;
}

body.single-post .jm-essay-newsletter h2 {
  margin: 0 !important;
  color: #f5f0eb;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
}

body.single-post .jm-essay-newsletter__signup > p {
  margin: 0 0 24px;
  color: rgba(245, 240, 235, 0.9);
  font: 400 15px/1.6 Inter, sans-serif;
}

body.single-post .jm-essay-newsletter .formkit-form {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.single-post .jm-essay-newsletter .formkit-fields {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

body.single-post .jm-essay-newsletter .formkit-field {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
}

body.single-post .jm-essay-newsletter .formkit-input {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 4px !important;
  background: #16221e !important;
  color: #f5f0eb !important;
  font: 400 14px/1 Inter, sans-serif !important;
}

body.single-post .jm-essay-newsletter .formkit-submit {
  width: auto !important;
  flex: 0 0 auto !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--jm-essay-gold) !important;
  color: #0e1613 !important;
  font: 600 12px/1 Inter, sans-serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

@media (max-width: 1099px) {
  body.single-post .jm-header__bar {
    padding: 28px 48px;
  }

  body.single-post .jm-essay-shell {
    padding: 56px 48px 96px;
  }

  body.single-post .jm-essay-hero__image {
    height: min(48vw, 440px);
  }

  body.single-post .jm-essay-newsletter__inner {
    gap: 48px;
    padding: 80px 48px 64px;
  }
}

@media (max-width: 767px) {
  body.single-post .jm-header__bar {
    padding: 20px 24px;
  }

  body.single-post .jm-logo {
    font-size: 20px;
  }

  body.single-post .jm-header__bar > .jm-btn {
    display: none;
  }

  body.single-post .jm-mobile {
    background: var(--jm-essay-paper);
    color: var(--jm-essay-ink);
  }

  body.single-post .jm-mobile a {
    color: var(--jm-essay-ink);
  }

  body.single-post .jm-essay-shell {
    padding: 40px 24px 72px;
  }

  body.single-post .jm-essay-back {
    margin-bottom: 32px;
  }

  body.single-post .jm-essay-header {
    padding-bottom: 32px;
  }

  body.single-post .jm-essay-header h1 {
    font-size: clamp(34px, 10.5vw, 38px);
    line-height: 1.18;
  }

  body.single-post .jm-essay-byline {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  body.single-post .jm-essay-hero {
    padding-bottom: 40px;
  }

  body.single-post .jm-essay-hero__image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  body.single-post .jm-essay-content {
    font-size: 16px;
    line-height: 1.6;
  }

  body.single-post .jm-essay-content > p {
    margin-bottom: 26px;
  }

  body.single-post .jm-essay-content > p:first-child {
    font-size: 19px;
    line-height: 1.55;
  }

  body.single-post .jm-essay-content h2 {
    margin-top: 42px !important;
    font-size: 26px;
  }

  body.single-post .jm-essay-content h3 {
    margin-top: 36px !important;
    font-size: 21px;
  }

  body.single-post .jm-essay-content blockquote {
    margin: 32px 0;
    padding-left: 20px;
  }

  body.single-post .jm-essay-content blockquote p {
    font-size: 21px;
  }

  body.single-post .jm-essay-related {
    padding-top: 64px;
  }

  body.single-post .jm-essay-related__grid {
    grid-template-columns: 1fr;
  }

  body.single-post .jm-essay-related-card {
    min-height: 0;
    padding: 28px 24px;
  }

  body.single-post .jm-essay-newsletter__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 24px;
  }

  body.single-post .jm-essay-newsletter h2 {
    font-size: 32px;
  }

  body.single-post .jm-essay-newsletter .formkit-fields {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  body.single-post .jm-essay-newsletter .formkit-field,
  body.single-post .jm-essay-newsletter .formkit-submit {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
}
