/* ============================================================
   SOEUNERA — Journal Entry pages
   Works on top of soeunera-chrome.css (Poppins, pink #eb9da8,
   charcoal type, white ground). Shared by all journal entries.
   ============================================================ */

:root {
  --je-pink: #eb9da8;
  --je-ink: #000;
  --je-stone: #6e6e6e;
  --je-line: rgba(0, 0, 0, 0.1);
  --je-soft: #fafafa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ---------- Cover ---------- */
.je-cover {
  padding: calc(var(--sn-nav-h, 88px) + 56px) 44px 0;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.je-eyebrow {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--je-pink);
  margin-bottom: 22px;
}
.je-title {
  font-size: 52px;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 22px;
}
.je-sub {
  font-size: 14px;
  line-height: 1.9;
  color: var(--je-stone);
  max-width: 560px;
  margin: 0 auto 52px;
  font-weight: 300;
}
.je-cover-img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  background: var(--je-soft);
}
.je-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--je-stone);
}

/* ---------- Article ---------- */
.je-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px 40px;
}
.je-lede {
  font-size: 21px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 64px;
}
.je-lede::first-letter {
  color: var(--je-pink);
  font-size: 54px;
  font-weight: 300;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
}
.je-section { margin-bottom: 64px; }
.je-num {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--je-pink);
  margin-bottom: 14px;
}
.je-section h2 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 20px;
}
.je-section p {
  font-size: 14.5px;
  line-height: 2;
  color: #333;
  font-weight: 300;
  margin-bottom: 18px;
}
.je-quote {
  margin: 72px -40px;
  padding: 44px 40px;
  text-align: center;
  background: var(--je-soft);
  border-top: 1px solid var(--je-line);
  border-bottom: 1px solid var(--je-line);
}
.je-quote p {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--je-ink);
}
.je-quote span {
  display: block;
  margin-top: 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--je-pink);
}
.je-points {
  list-style: none;
  margin: 26px 0 0;
  border-top: 1px solid var(--je-line);
}
.je-points li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--je-line);
  font-size: 13.5px;
  line-height: 1.85;
  color: #333;
  font-weight: 300;
}
.je-points li b {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--je-ink);
  padding-top: 3px;
}

/* ---------- Care card (flip) ---------- */
.je-card-section {
  padding: 70px 24px 110px;
  text-align: center;
}
.je-card-section .je-eyebrow { margin-bottom: 14px; }
.je-card-section h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.je-card-section > p {
  font-size: 12.5px;
  color: var(--je-stone);
  line-height: 1.9;
  max-width: 420px;
  margin: 0 auto 48px;
  font-weight: 300;
}
.je-flip {
  width: 360px;
  max-width: 86vw;
  aspect-ratio: 5 / 7;
  margin: 0 auto;
  perspective: 1400px;
  cursor: pointer;
}
.je-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.95s cubic-bezier(0.19, 1, 0.22, 1);
  transform-style: preserve-3d;
}
.je-flip:hover .je-flip-inner,
.je-flip.is-flipped .je-flip-inner { transform: rotateY(180deg); }

.je-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
.je-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.je-front {
  background:
    radial-gradient(260px 200px at 20% 10%, rgba(235,157,168,0.45), rgba(235,157,168,0) 70%),
    #fff;
  border: 1px solid var(--je-line);
}
.je-front .je-mark { width: 120px; margin-bottom: 28px; }
.je-front h4 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.je-front small, .je-back small {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--je-stone);
}
.je-back {
  transform: rotateY(180deg);
  background: #000;
  color: #fff;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}
.je-back h4 {
  font-size: 18px;
  font-weight: 300;
  color: var(--je-pink);
  margin: 10px 0 22px;
}
.je-back ul { list-style: none; }
.je-back li {
  font-size: 11.5px;
  line-height: 1.7;
  font-weight: 300;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}
.je-back small { color: rgba(255,255,255,0.5); }
.je-hint {
  margin-top: 30px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--je-stone);
}

/* ---------- Next entry ---------- */
.je-next {
  max-width: 1000px;
  margin: 0 auto 110px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.je-next a {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--je-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--je-ink);
  padding-bottom: 5px;
}

/* ---------- Grid layout (desktop) ---------- */
.je-article { max-width: 1120px; padding: 96px 44px 40px; }
.je-lede { max-width: 780px; margin: 0 auto 80px; }

.je-section {
  display: flow-root;
  border-top: 1px solid var(--je-line);
  padding-top: 52px;
  margin-bottom: 72px;
}
.je-section .je-num,
.je-section h2 {
  float: left;
  clear: left;
  width: 320px;
}
.je-section h2 { margin-top: 0; padding-right: 20px; }
.je-section > p:not(.je-num),
.je-section > .je-points { margin-left: 380px; }
.je-section > p:not(.je-num) { max-width: 640px; }

.je-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 0;
  margin-top: 30px;
}
.je-points li {
  display: block;
  padding: 26px 24px;
  border: 1px solid var(--je-line);
  border-radius: 12px;
  background: #fff;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.je-points li:hover {
  background: rgba(235, 157, 168, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(235, 157, 168, 0.15);
}
.je-points li b { display: block; margin-bottom: 10px; padding-top: 0; }
.je-points li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.je-quote { margin: 72px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .je-section .je-num,
  .je-section h2 { float: none; width: auto; padding-right: 0; }
  .je-section > p:not(.je-num),
  .je-section > .je-points { margin-left: 0; }
  .je-points { grid-template-columns: 1fr; }
  .je-article { padding: 64px 22px 20px; }
  .je-quote { margin: 56px 0; }
  .je-cover { padding: calc(var(--sn-nav-h, 88px) + 32px) 20px 0; }
  .je-title { font-size: 32px; }
  .je-article { padding: 64px 22px 20px; }
  .je-lede { font-size: 18px; }
  .je-section h2 { font-size: 23px; }
  .je-quote { margin: 56px 0; padding: 36px 22px; }
  .je-quote p { font-size: 18px; }
  .je-points li { grid-template-columns: 1fr; gap: 6px; }
}
/* ==================================================
   SOEUNERA — REFINED JOURNAL LAYOUT
   Add below your existing CSS.
   ================================================== */

:root {
  --je-header-space: var(--sn-nav-h, 88px);
}

/* Keep journal typography consistent */

.je-cover,
.je-article,
.je-card-section,
.je-next {
  font-family: 'Poppins', sans-serif;
  color: var(--je-ink);
}

/* Centre the title below the navigation.
   Reset positioning in case shared header styles apply. */

header.je-cover {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding:
    calc(var(--je-header-space) + 80px)
    clamp(22px, 5vw, 72px)
    0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  text-align: center;
}

.je-cover .je-eyebrow {
  margin: 0 0 24px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--je-pink);
}

.je-cover .je-title {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(32px, 4.3vw, 56px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.je-cover .je-sub {
  max-width: 540px;
  margin: 0 auto 56px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--je-stone);
  text-wrap: pretty;
}

/* The script adds this wrapper around your existing image */

.je-image-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--je-soft);
}

.je-cover .je-cover-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}

/* Soft passing light */

.je-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 68%
  );
  transform: translateX(-120%);
  transition: transform 1.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .je-image-frame:hover .je-cover-img {
    transform: scale(1.025);
  }

  .je-image-frame:hover::after {
    transform: translateX(120%);
  }
}

.je-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 24px 0 0;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.16em;
}

/* A calm introduction */

.je-article {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px 0;
}

.je-lede {
  max-width: 760px;
  margin: 0 auto 80px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.9;
  text-align: center;
  text-wrap: pretty;
}

/* Remove the floated drop cap */

.je-lede::first-letter {
  float: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Each section follows the same editorial rhythm */

.je-section {
  display: block;
  margin: 0 0 64px;
  padding: 46px 0 0;
  border-top: 1px solid var(--je-line);
}

.je-section .je-num,
.je-section h2 {
  float: none;
  clear: none;
  width: auto;
  max-width: 680px;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

.je-section .je-num {
  margin-bottom: 16px;
  color: var(--je-pink);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.22em;
}

.je-section h2 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.je-section > p:not(.je-num) {
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  color: #514d49;
}

/* Supporting details: neat rows instead of floating boxes */

.je-section > .je-points {
  display: block;
  max-width: 680px;
  margin: 30px auto 0;
  border-top: 1px solid var(--je-line);
}

.je-points li {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 23px 14px;
  border: 0;
  border-bottom: 1px solid var(--je-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.9;
  transform: none;
  transition: background 0.35s ease;
}

.je-points li:hover {
  background: rgba(235, 157, 168, 0.07);
  transform: none;
  box-shadow: none;
}

.je-points li b {
  margin: 3px 0 0;
  padding: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.12em;
}

.je-points li span {
  min-width: 0;
  color: #625c57;
}

/* Quiet pause between sections */

.je-quote {
  margin: 65px 0;
  padding: 58px 32px;
  border: 0;
  background: linear-gradient(
    115deg,
    #faf8f7,
    rgba(235, 157, 168, 0.09),
    #faf8f7
  );
}

.je-quote p {
  max-width: 730px;
  margin: auto;
  font-size: clamp(22px, 2.7vw, 30px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.je-quote span {
  margin-top: 24px;
}

/* Landscape care card */

.je-card-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 65px 24px 80px;
  background: radial-gradient(
    ellipse at 50% 58%,
    rgba(235, 157, 168, 0.12),
    transparent 65%
  );
}

.je-card-section > .je-eyebrow {
  margin: 0 auto 18px;
  color: var(--je-pink);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.je-card-section h3 {
  margin: 0 0 15px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.je-card-section > p:not(.je-eyebrow):not(.je-hint) {
  max-width: 460px;
  margin: 0 auto 38px;
  font-size: 12px;
  line-height: 1.9;
}

.je-flip {
  width: min(100%, 610px);
  max-width: 100%;
  aspect-ratio: 1.6 / 1;
  margin: 0 auto;
  perspective: 1800px;
  -webkit-tap-highlight-color: transparent;
}

.je-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.22, .7, .2, 1);
}

/* Override the old hover rule.
   JavaScript now handles hover, tap and keyboard together. */

.je-flip:hover .je-flip-inner {
  transform: rotateY(0deg);
}

.je-flip.is-flipped .je-flip-inner {
  transform: rotateY(180deg);
}

.je-face {
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  box-shadow:
    0 22px 45px rgba(30, 20, 20, 0.1),
    0 3px 8px rgba(30, 20, 20, 0.06);
}

.je-front {
  background:
    radial-gradient(
      ellipse at top left,
      rgba(235, 157, 168, 0.17),
      transparent 65%
    ),
    #fffdfa;
}

/* Card photographs fill the frame without cropping */

.je-face > img:not(.je-mark) {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: #fffdfa;
}

/* Correct the logo being treated as a full-card photograph */

.je-front > img.je-mark {
  position: static;
  inset: auto;
  z-index: auto;
  width: clamp(65px, 12vw, 105px);
  height: auto;
  max-height: 60px;
  margin: 0 0 18px;
  object-fit: contain;
}

.je-front h4 {
  margin: 0 0 10px;
  font-size: clamp(17px, 2.6vw, 24px);
  font-weight: 300;
}

.je-front small,
.je-back small {
  font-size: clamp(7px, 1.2vw, 9px);
  letter-spacing: 0.15em;
}

.je-back {
  justify-content: center;
  background: #171515;
}

.je-back h4 {
  margin: 9px 0 14px;
  font-size: clamp(16px, 2.5vw, 22px);
}

.je-back ul {
  width: 100%;
}

.je-back li {
  padding: 5px 0;
  font-size: clamp(9px, 1.6vw, 12px);
  line-height: 1.6;
}

.je-card-section > .je-hint {
  margin: 28px auto 0;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.je-flip:focus-visible {
  outline: 2px solid var(--je-pink);
  outline-offset: 9px;
}

/* End-of-article navigation */

.je-next {
  max-width: 1016px;
  margin: 0 auto 80px;
  padding: 30px 24px 0;
  border-top: 1px solid var(--je-line);
  line-height: 1.9;
}

.je-next a {
  max-width: 100%;
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* Scroll reveals: content stays visible without JavaScript */

.je-reveal {
  opacity: 1;
  transform: none;
}

.je-reveal.je-waiting {
  opacity: 0;
  transform: translateY(22px);
}

.je-reveal {
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 600px) {
  header.je-cover {
    padding-top: calc(var(--je-header-space) + 48px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .je-cover .je-sub {
    margin-bottom: 34px;
    font-size: 12px;
  }

  .je-article {
    padding: 48px 22px 0;
  }

  .je-lede {
    margin-bottom: 48px;
    font-size: 18px;
  }

  .je-section {
    margin-bottom: 44px;
    padding-top: 32px;
  }

  .je-section > p:not(.je-num) {
    font-size: 13px;
    line-height: 1.95;
  }

  .je-points li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 10px;
  }

  .je-quote {
    margin: 44px 0;
    padding: 38px 22px;
  }

  .je-card-section {
    padding: 40px 20px 55px;
  }

  .je-next {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .je-reveal,
  .je-flip-inner,
  .je-cover .je-cover-img,
  .je-image-frame::after {
    transition: none;
  }

  .je-reveal.je-waiting {
    opacity: 1;
    transform: none;
  }
}
/* Journal heading spacing */

.je-cover .je-title {
  letter-spacing: -0.035em !important;
}

.je-section h2,
.je-card-section h3 {
  letter-spacing: -0.025em !important;
}

/* Keep the care-card text consistent while hovering */

.je-flip[role="button"]:hover {
  color: var(--je-ink) !important;
}

.je-flip .je-back {
  color: #fff;
}

/* Smaller, centred editorial cover */

.je-cover .je-image-frame {
  width: min(100%, 460px);
  margin: 0 auto;
}

.je-cover .je-cover-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Avoid enlarging the image on hover; retain the light effect */

.je-image-frame:hover .je-cover-img {
  transform: none;
}

/* Supporting points in a horizontal grid */

.je-section > .je-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 32px auto 0;
  border: 0;
}

.je-points li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--je-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.65);
  transition:
    background 0.35s ease,
    border-color 0.35s ease;
}

.je-points li b {
  margin: 0;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.12em;
}

.je-points li span {
  font-size: 13px;
  line-height: 1.9;
}

.je-points li:hover {
  background: rgba(235, 157, 168, 0.07);
  border-color: rgba(235, 157, 168, 0.5);
}

/* An odd final point stays the same width as the others */

.je-points li:last-child:nth-child(odd) {
  grid-column: auto;
}

/* Stack only on small screens for comfortable reading */

@media (max-width: 600px) {
  .je-cover .je-image-frame {
    width: min(100%, 340px);
  }

  .je-section > .je-points {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .je-points li {
    padding: 23px;
  }
}