/* FULL UPDATED CSS FROM RESPONSE ABOVE */

.js-page-shell {
  background:
    radial-gradient(circle at top, rgba(255, 232, 214, 0.92) 0%, #f4e5d8 34%, #ead6c6 68%, #e2cbb8 100%);
}

.js-page-body .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(250, 240, 231, 0.82);
  border-bottom: 1px solid rgba(139, 101, 72, 0.1);
}

.js-page-body .main-nav a {
  position: relative;
  color: rgba(74, 49, 37, 0.9);
}

.js-page-body .main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(217, 156, 116, 0.95), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.js-page-body .main-nav a:hover::after {
  transform: scaleX(1);
}

.js-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.js-hero__media,
.js-hero__overlay,
.js-hero__grid,
.js-hero__bloom {
  position: absolute;
  inset: 0;
}

.js-hero__media {
  background:
    /* smoother left-to-right blend */
    linear-gradient(90deg,
      rgba(245, 232, 220, 0.96) 0%,
      rgba(245, 232, 220, 0.88) 20%,
      rgba(245, 232, 220, 0.65) 40%,
      rgba(245, 232, 220, 0.35) 58%,
      rgba(245, 232, 220, 0.12) 72%,
      rgba(245, 232, 220, 0.04) 82%,
      transparent 92%
    ),

    /* soft bloom */
    radial-gradient(circle at 40% 45%, rgba(255, 230, 210, 0.28), transparent 45%),

    /* image */
    url("assets/images/jsywlg-hero-banner.png") right center / cover no-repeat,

    /* base tone */
    linear-gradient(135deg,
      rgba(248, 225, 206, 0.94) 0%,
      rgba(236, 206, 184, 0.9) 44%,
      rgba(223, 191, 167, 0.96) 100%
    );

  filter: brightness(0.98) contrast(1.04) saturate(1.03);
}

.js-hero__overlay {
  background:
    radial-gradient(circle at 60% 20%, rgba(255, 240, 225, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(255, 248, 241, 0.08), rgba(211, 179, 154, 0.35));
}

.js-hero__grid {
  background-image:
    linear-gradient(rgba(198, 152, 117, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 152, 117, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 24%, rgba(0,0,0,1) 100%);
}

.js-hero__bloom {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 242, 226, 0.34), transparent 22%),
    radial-gradient(circle at 70% 60%, rgba(238, 190, 142, 0.14), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.js-hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding: 146px 0 116px;
}

.js-hero h1 {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.94;
  max-width: 10ch;
  color: #3b2419;
  text-shadow: 0 16px 40px rgba(255, 247, 240, 0.32);
}

.js-hero h1 span {
  color: #cb8761;
}

.js-hero__copy {
  margin: 24px 0 0;
  width: min(640px, 100%);
  color: rgba(74, 49, 37, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.js-hero .hero-actions {
  margin-top: 30px;
}

.js-hero .btn,
.js-cta .btn {
  box-shadow: 0 14px 38px rgba(110, 77, 52, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.js-hero .btn:hover,
.js-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(110, 77, 52, 0.18);
}

.js-hero .btn-primary,
.js-cta .btn-primary {
  background: linear-gradient(135deg, #d9a179 0%, #c9855e 100%);
  border-color: rgba(186, 120, 83, 0.3);
  color: #fff8f3;
}

.js-hero .btn-primary:hover,
.js-cta .btn-primary:hover {
  background: linear-gradient(135deg, #dfab85 0%, #ce8d67 100%);
}

.js-hero .btn-secondary,
.js-cta .btn-secondary {
  background: rgba(255, 247, 240, 0.84);
  border-color: rgba(201, 145, 105, 0.18);
  color: #5a3828;
}

.js-hero .btn-secondary:hover,
.js-cta .btn-secondary:hover {
  background: rgba(255, 244, 235, 0.96);
  border-color: rgba(201, 145, 105, 0.28);
}

.js-hero__meta {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.js-stat,
.js-panel,
.js-era-card,
.js-layer-card,
.js-dossier-card,
.js-volume-card,
.js-cta__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(171, 129, 98, 0.12);
  background: rgba(255, 248, 241, 0.8);
  box-shadow: 0 20px 56px rgba(119, 84, 58, 0.09);
  backdrop-filter: blur(12px);
}

.js-stat::before,
.js-panel::before,
.js-era-card::before,
.js-layer-card::before,
.js-dossier-card::before,
.js-volume-card::before,
.js-cta__panel::before {
  content: "";
  position: absolute;
  inset: auto -36% 100% auto;
  width: 72%;
  height: 170%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.28) 45%, transparent 100%);
  transform: rotate(18deg);
  pointer-events: none;
  transition: transform 0.8s ease;
}

.js-stat:hover::before,
.js-panel:hover::before,
.js-era-card:hover::before,
.js-layer-card:hover::before,
.js-dossier-card:hover::before,
.js-volume-card:hover::before,
.js-cta__panel:hover::before {
  transform: translate3d(-42%, 132%, 0) rotate(18deg);
}

.js-stat {
  padding: 18px 20px;
  border-radius: 18px;
}

.js-stat__label,
.js-panel__label,
.js-layer-label,
.js-volume-card__label,
.js-dossier-card__label {
  display: block;
  font-family: Orbitron, Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(165, 104, 69, 0.9);
}

.js-stat strong {
  display: block;
  margin-top: 10px;
  line-height: 1.45;
  font-size: 1rem;
  color: #43291d;
}

.js-overview {
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 203, 174, 0.16), transparent 24%),
    linear-gradient(180deg, #f7ebe2 0%, #f0dfd2 100%);
}

.js-heading--tight {
  margin-bottom: 40px;
}

.js-overview__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.js-panel {
  border-radius: 24px;
  padding: 30px;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.js-panel--feature {
  background: linear-gradient(145deg, rgba(255, 244, 235, 0.97), rgba(243, 225, 210, 0.93));
}

.js-panel h3,
.js-era-card h3,
.js-layer-card h3,
.js-dossier-card h3,
.js-volume-card h3,
.js-cta h2 {
  margin: 12px 0 0;
  font-family: Orbitron, Inter, sans-serif;
  line-height: 1.08;
  color: #3e261b;
}

.js-panel h3 {
  font-size: clamp(1.48rem, 2.3vw, 2.16rem);
}

.js-panel p,
.js-era-card p,
.js-layer-card p,
.js-dossier-card p,
.js-volume-card p,
.js-cta p {
  color: rgba(70, 48, 36, 0.9);
  line-height: 1.78;
}

.js-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: rgba(70, 48, 36, 0.9);
}

.js-list li::marker {
  color: rgba(203, 135, 97, 0.8);
}

.js-timeline {
  background: linear-gradient(180deg, #f4e5d8 0%, #edd9c9 100%);
}

.js-timeline__rail {
  position: relative;
  height: 2px;
  margin: 18px 0 32px;
  background: linear-gradient(90deg, rgba(226, 173, 134, 0.16), rgba(214, 146, 100, 0.82), rgba(226, 173, 134, 0.16));
  box-shadow: 0 0 20px rgba(214, 146, 100, 0.12);
  overflow: hidden;
}

.js-timeline__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 220, 0.72), transparent);
  animation: timelinePulse 4.8s linear infinite;
}

.js-timeline__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.js-era-card,
.js-layer-card,
.js-dossier-card,
.js-volume-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, filter 0.32s ease;
}

.js-era-card:hover,
.js-layer-card:hover,
.js-dossier-card:hover,
.js-volume-card:hover,
.js-panel:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 64px rgba(119, 84, 58, 0.14), 0 0 24px rgba(232, 182, 145, 0.08);
  border-color: rgba(207, 152, 114, 0.22);
  filter: brightness(1.02);
}

.js-era-card {
  border-radius: 22px;
  padding: 26px 22px 24px;
}

.js-era-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.9rem;
  color: #fffaf6;
  background: linear-gradient(135deg, rgba(245, 194, 154, 0.9), rgba(213, 136, 92, 0.95));
  box-shadow: 0 10px 24px rgba(182, 124, 86, 0.2);
}

.js-era-card--active {
  background: linear-gradient(145deg, rgba(255, 245, 236, 0.98), rgba(239, 220, 204, 0.94));
  border-color: rgba(214, 156, 116, 0.22);
}

.js-layers {
  background:
    radial-gradient(circle at 82% 16%, rgba(241, 196, 151, 0.12), transparent 24%),
    linear-gradient(180deg, #f8ece1 0%, #f0ddcf 100%);
}

.js-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.js-layer-card {
  border-radius: 24px;
  padding: 28px;
}

.js-layer-card--rose {
  background: linear-gradient(145deg, rgba(255, 242, 233, 0.97), rgba(243, 220, 208, 0.93));
}

.js-layer-card--gold {
  background: linear-gradient(145deg, rgba(255, 244, 232, 0.97), rgba(237, 221, 196, 0.93));
}

.js-characters {
  background: linear-gradient(180deg, #f3e3d6 0%, #ebd5c4 100%);
}

.js-character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.js-dossier-card {
  border-radius: 24px;
}

.js-dossier-card__figure {
  height: 320px;
  padding: 24px 16px 0;
  display: flex;
  align-items: end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(247, 224, 208, 0.8), rgba(255, 248, 241, 0.28));
}

.js-dossier-card__figure img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 34px rgba(112, 80, 56, 0.14))
    drop-shadow(0 0 18px rgba(255, 229, 210, 0.18));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.js-dossier-card:hover .js-dossier-card__figure img {
  transform: scale(1.05);
  filter:
    drop-shadow(0 26px 44px rgba(112, 80, 56, 0.18))
    drop-shadow(0 0 22px rgba(255, 229, 210, 0.24));
}

.js-dossier-card__body {
  padding: 24px 20px 26px;
}

.js-dossier-card--lead {
  background: linear-gradient(145deg, rgba(255, 245, 236, 0.98), rgba(241, 220, 206, 0.94));
}

.js-volumes {
  background:
    radial-gradient(circle at 16% 14%, rgba(244, 204, 173, 0.16), transparent 18%),
    linear-gradient(180deg, #f6e8dc 0%, #efddcf 100%);
}

.js-volume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 24px;
}

.js-volume-card {
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
}

.js-volume-card__cover {
  display: flex;
  justify-content: center;
}

.js-volume-card__cover img {
  width: 150px;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(112, 80, 56, 0.16);
  transform: rotateY(-8deg);
  transform-origin: center left;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.js-volume-card:hover .js-volume-card__cover img {
  transform: rotateY(-12deg) scale(1.05);
  box-shadow: 0 22px 44px rgba(112, 80, 56, 0.22);
}

.js-volume-card--future {
  grid-template-columns: 1fr;
  background: linear-gradient(145deg, rgba(250, 241, 232, 0.98), rgba(235, 217, 201, 0.94));
}

.js-cta {
  background: linear-gradient(180deg, #f5e7db 0%, #eedbcc 100%);
}

.js-cta__panel {
  border-radius: 28px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(145deg, rgba(255, 246, 238, 0.97), rgba(242, 224, 209, 0.93));
}

.js-hero h2,
.js-overview h2,
.js-timeline h2,
.js-layers h2,
.js-characters h2,
.js-volumes h2,
.js-cta h2 {
  color: #6d4631;
  text-shadow: 0 6px 18px rgba(255, 248, 241, 0.2);
}

.js-overview h2,
.js-timeline h2,
.js-layers h2,
.js-characters h2,
.js-volumes h2 {
  color: #704733;
}

.js-cta h2 {
  color: #6a4330;
}

.js-overview .section-eyebrow,
.js-timeline .section-eyebrow,
.js-layers .section-eyebrow,
.js-characters .section-eyebrow,
.js-volumes .section-eyebrow,
.js-cta .section-eyebrow {
  color: rgba(161, 106, 74, 0.82);
}

.js-overview > .container > p,
.js-timeline > .container > p,
.js-layers > .container > p,
.js-characters > .container > p,
.js-volumes > .container > p,
.js-cta > .container > p {
  color: rgba(92, 64, 49, 0.82);
}

.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes romanceDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-0.8%, 0.3%, 0); }
}

@keyframes timelinePulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 1180px) {
  .js-overview__grid,
  .js-volume-grid,
  .js-timeline__grid,
  .js-character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .js-overview__grid > :first-child,
  .js-volume-card--future {
    grid-column: span 2;
  }

  .js-layer-grid,
  .js-hero__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .js-overview__grid,
  .js-timeline__grid,
  .js-layer-grid,
  .js-character-grid,
  .js-volume-grid {
    grid-template-columns: 1fr;
  }

  .js-overview__grid > :first-child,
  .js-volume-card--future {
    grid-column: auto;
  }

  .js-volume-card,
  .js-cta__panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .js-hero {
    min-height: auto;
  }

  .js-hero__content {
    padding: 120px 0 92px;
  }

  .js-hero__media {
    background:
      linear-gradient(116deg, rgba(252, 243, 236, 0.46), rgba(252, 243, 236, 0.12)),
      radial-gradient(circle at 18% 40%, rgba(255, 224, 204, 0.28), transparent 26%),
      radial-gradient(circle at 72% 24%, rgba(245, 194, 145, 0.18), transparent 22%),
      url("assets/images/emina-otsuka.png") 85% 88% / auto 66% no-repeat,
      url("assets/images/haruto-sugihara.png") 4% 88% / auto 72% no-repeat,
      linear-gradient(135deg, rgba(248, 225, 206, 0.94) 0%, rgba(236, 206, 184, 0.9) 44%, rgba(223, 191, 167, 0.96) 100%);
  }
}

@media (max-width: 640px) {
  .js-hero__content {
    padding: 90px 0 82px;
  }

  .js-hero h1 {
    max-width: 8ch;
  }

  .js-panel,
  .js-era-card,
  .js-layer-card,
  .js-volume-card,
  .js-cta__panel {
    padding: 22px;
  }

  .js-dossier-card__figure {
    height: 280px;
  }

  .js-volume-card__cover img {
    width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-hero__media,
  .js-timeline__rail::after,
  .fade-in {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
/* -------------------------------------------------------
   FINAL ROMANCE PAGE CONTRAST OVERRIDES
   Prevent inherited white/light text from disappearing
-------------------------------------------------------- */

.js-page-body,
.js-page-body section,
.js-page-body article,
.js-page-body .js-panel,
.js-page-body .js-era-card,
.js-page-body .js-layer-card,
.js-page-body .js-dossier-card,
.js-page-body .js-volume-card,
.js-page-body .js-cta__panel {
  color: #5b3d2c;
}

.js-page-body p,
.js-page-body li,
.js-page-body dd,
.js-page-body dt,
.js-page-body small,
.js-page-body .section-copy,
.js-page-body .section-intro,
.js-page-body .muted,
.js-page-body .meta,
.js-page-body .eyebrow,
.js-page-body .kicker,
.js-page-body .lede {
  color: rgba(91, 61, 44, 0.82);
}

.js-page-body h2,
.js-page-body h3,
.js-page-body h4,
.js-page-body h5,
.js-page-body h6 {
  color: #6a4330;
}

.js-page-body .section-eyebrow,
.js-page-body .js-stat__label,
.js-page-body .js-panel__label,
.js-page-body .js-layer-label,
.js-page-body .js-volume-card__label,
.js-page-body .js-dossier-card__label,
.js-page-body .js-era-card__label {
  color: rgba(161, 106, 74, 0.88);
}

.js-page-body .text-white,
.js-page-body .text-light,
.js-page-body .text-soft,
.js-page-body .text-muted-light,
.js-page-body .text-ghost {
  color: #6a4330 !important;
}

.js-page-body [class*="text-white"],
.js-page-body [class*="text-light"] {
  color: #6a4330 !important;
}

.js-page-body .js-overview > .container > p,
.js-page-body .js-timeline > .container > p,
.js-page-body .js-layers > .container > p,
.js-page-body .js-characters > .container > p,
.js-page-body .js-volumes > .container > p,
.js-page-body .js-cta > .container > p {
  color: rgba(91, 61, 44, 0.8);
}

.js-page-body .js-cta p,
.js-page-body .js-cta small,
.js-page-body .js-cta span:not(.btn),
.js-page-body .js-cta li {
  color: rgba(91, 61, 44, 0.82);
}

/* keep hero styling intentionally controlled */
.js-page-body .js-hero h1 {
  color: #3b2419;
}

.js-page-body .js-hero h1 span {
  color: #cb8761;
}

.js-page-body .js-hero__copy {
  color: rgba(74, 49, 37, 0.88);
}

/* keep button text untouched */
.js-page-body .btn-primary,
.js-page-body .btn-primary * {
  color: #fff8f3 !important;
}

.js-page-body .btn-secondary,
.js-page-body .btn-secondary * {
  color: #5a3828 !important;
}
/* Fix section intro copy under large headings */
.js-page-body .section-copy,
.js-page-body .section-intro,
.js-page-body .section-lead,
.js-page-body .heading-copy,
.js-page-body .heading-intro,
.js-page-body .js-heading--tight + p,
.js-page-body .section-header p,
.js-page-body .section-header .section-copy,
.js-page-body .section-header .section-intro,
.js-page-body .container > p {
  color: rgba(96, 66, 49, 0.88) !important;
}

/* Slightly softer variant for supporting intro copy if needed */
.js-page-body .js-overview > .container > p,
.js-page-body .js-timeline > .container > p,
.js-page-body .js-layers > .container > p,
.js-page-body .js-characters > .container > p,
.js-page-body .js-volumes > .container > p {
  color: rgba(96, 66, 49, 0.86) !important;
}


/* Animated sakura petal overlays removed in v1.0.1. */

/* v1.0 page-specific hardening */
.js-page-body .nav-links a:hover, .js-page-body .nav-links a:focus-visible { color: #fff; }
.js-page-body .site-header { color: #fff; }
.js-page-body .book-actions { display:flex; flex-wrap:wrap; gap:12px; }
@media (max-width:640px){ .js-page-body .book-actions{display:grid;} }

/* =======================================================
   RELEASE 1.0.3 — ROMANCE HEADER CONTRAST & READABILITY
   Warm glass navigation with accessible dark typography.
======================================================= */

.js-page-body .site-header {
  background: rgba(255, 247, 240, 0.9);
  border-bottom-color: rgba(111, 72, 52, 0.16);
  box-shadow: 0 8px 28px rgba(92, 58, 40, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.js-page-body .site-header.is-scrolled {
  background: rgba(255, 247, 240, 0.97);
  border-bottom-color: rgba(111, 72, 52, 0.2);
  box-shadow: 0 12px 34px rgba(92, 58, 40, 0.12);
}

.js-page-body .brand {
  color: #4a2f24;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.js-page-body .nav-links {
  color: #5a3828;
}

.js-page-body .nav-links a {
  color: #5a3828;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.js-page-body .nav-links a:hover,
.js-page-body .nav-links a:focus-visible {
  color: #a35f3f;
}

.js-page-body .nav-links a::after {
  background: linear-gradient(90deg, #d9a179, #b96f49);
}

.js-page-body .nav-toggle {
  color: #4a2f24;
  border-color: rgba(111, 72, 52, 0.25);
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 860px) {
  .js-page-body .nav-links {
    background: rgba(255, 247, 240, 0.985);
    border-bottom-color: rgba(111, 72, 52, 0.16);
    box-shadow: 0 24px 48px rgba(92, 58, 40, 0.16);
  }

  .js-page-body .nav-links a {
    color: #4a2f24;
    border-bottom-color: rgba(111, 72, 52, 0.1);
  }
}
