/**
 * Journal Hero Component
 * Figma node 1:294 — proportions based on 1950 × 728
 */

.journal-hero {
  --journal-hero-bg: #f5f0ea;
  --journal-hero-title: #3a2d25;
  --journal-hero-subtitle: #8b7567;
  width: 100%;
  background-color: var(--journal-hero-bg);
  box-sizing: border-box;
  max-height: 320px;
}

.journal-hero *,
.journal-hero *::before,
.journal-hero *::after {
  box-sizing: border-box;
}

.journal-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.journal-hero__content {
  position: relative;
  z-index: 2;
  padding-left: 23%;
}

@media screen and (max-width: 768px) {
  .journal-hero__content {
    padding-left: 16px;
  }
}

.journal-hero__title {
  color: var(--journal-hero-title);
  font-family: 'Noto Serif JP', 'Inter', serif;
  font-size: 42px;
  font-weight: 400;
  text-wrap: nowrap;
}

.journal-hero__subtitle {
  color: var(--journal-hero-subtitle);
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 0px;
  text-wrap: nowrap;
}

.journal-hero__media {
  position: relative;
  align-self: center;
  overflow: hidden;
  height: 100%;
  width: 100%;
  max-width: 1000px;
}

.journal-hero__media::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 28%;
  background: linear-gradient(
    to right,
    var(--journal-hero-bg) 0%,
    rgba(245, 240, 234, 0.85) 35%,
    transparent 100%
  );
  pointer-events: none;
}

.journal-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* @media screen and (max-width: 768px) {
  .journal-hero {
    aspect-ratio: auto;
    min-height: 55vw;
  }

  .journal-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10% 6% 0;
  }

  .journal-hero__content {
    flex: none;
    width: max(100%, 1024);
    padding-left: 0;
  }

  .journal-hero__title {
    font-size: clamp(2rem, 8vw, 3.325rem);
    letter-spacing: -0.05em;
  }

  .journal-hero__subtitle {
    margin-top: 3%;
    font-size: clamp(0.75rem, 3.2vw, 1.1875rem);
    letter-spacing: 0.2em;
  }

  .journal-hero__media {
    flex: none;
    width: 100%;
    height: auto;
    margin-top: 6%;
    aspect-ratio: 1139 / 605;
  }

  .journal-hero__media::before {
    width: 22%;
  }
} */
