.journal-page-content {
  padding-top: clamp(4px, 0.8cqw, 12px);
}

.journal-home-lead {
  margin-bottom: clamp(24px, 3cqw, 36px);
}

.journal-home-lead__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: stretch;
  gap: clamp(18px, 2.8cqw, 32px);
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 64px rgba(16, 16, 16, 0.07);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

html[data-theme="dark"] body.home-page .journal-home-lead__card,
body.home-page[data-theme="dark"] .journal-home-lead__card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.26);
}

@media (hover: hover) {
  .journal-home-lead__card:hover {
    border-color: rgba(16, 16, 16, 0.14);
    box-shadow: 0 28px 72px rgba(16, 16, 16, 0.11);
    transform: translateY(-1px);
  }

  html[data-theme="dark"] body.home-page .journal-home-lead__card:hover,
  body.home-page[data-theme="dark"] .journal-home-lead__card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  }
}

.journal-home-lead__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: clamp(22px, 4cqw, 42px);
}

.journal-home-lead__label {
  margin: 0 0 clamp(2px, 0.6cqw, 8px);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.58;
}

.journal-home-lead__title {
  margin: 0;
  max-width: 15ch;
  color: inherit;
  font-size: clamp(38px, 5.2cqw, 68px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.journal-home-lead__description {
  margin: clamp(4px, 0.8cqw, 10px) 0 0;
  max-width: 48ch;
  font-size: clamp(18px, 1.7cqw, 22px);
  line-height: 1.42;
  opacity: 0.72;
}

.journal-home-lead__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: clamp(12px, 2cqw, 24px);
  font-size: 13px;
  line-height: 1.3;
}

.journal-home-lead__meta > span:not(.journal-featured-author),
.journal-home-lead__meta > time {
  opacity: 0.62;
}

.journal-home-lead__media {
  min-height: 100%;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.06);
}

html[data-theme="dark"] body.home-page .journal-home-lead__media,
body.home-page[data-theme="dark"] .journal-home-lead__media {
  background: rgba(255, 255, 255, 0.06);
}

.journal-home-lead__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 720px) {
  .journal-home-lead__card {
    display: block;
    border-radius: 18px;
  }

  .journal-home-lead__body {
    padding: 20px;
  }

  .journal-home-lead__title {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 46px);
  }

  .journal-home-lead__media {
    display: none;
  }
}

.journal-hero {
  margin-bottom: clamp(24px, 3cqw, 36px);
}

.journal-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(16, 16, 16, 0.06);
  aspect-ratio: 8 / 3;
}

html[data-theme="dark"] body.home-page .journal-hero__frame,
body.home-page[data-theme="dark"] .journal-hero__frame {
  background: rgba(255, 255, 255, 0.06);
}

.journal-hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.journal-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.journal-hero__slide--active {
  position: absolute;
  opacity: 1;
  pointer-events: auto;
}

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

.journal-hero__overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(48px, 8cqw, 80px) clamp(20px, 3.2cqw, 36px) clamp(18px, 2.4cqw, 28px);
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.58) 42%,
    rgba(0, 0, 0, 0.12) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.journal-hero__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
}

.journal-hero__title {
  margin: 0;
  max-width: min(100%, 760px);
  font-size: clamp(24px, 2.8cqw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.journal-hero__title-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.journal-hero__title-link:hover,
.journal-hero__title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.journal-hero__desc {
  margin: 0;
  max-width: min(100%, 640px);
  font-size: clamp(15px, 1.45cqw, 18px);
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.92;
}

.journal-hero__dots {
  position: absolute;
  top: clamp(14px, 2cqw, 24px);
  right: clamp(14px, 2cqw, 24px);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.journal-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.journal-hero__dot--active {
  background: #fff;
  transform: scale(1.08);
}

.journal-hero__nav {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
}

.journal-hero__nav-zone {
  flex: 1;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: #fff;
}

.journal-hero__nav-zone--prev,
.journal-hero__nav-zone--next {
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.journal-hero__nav-zone--prev {
  justify-content: flex-start;
  padding-left: clamp(12px, 2cqw, 24px);
  background: linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, transparent 66%);
}

.journal-hero__nav-zone--next {
  justify-content: flex-end;
  padding-right: clamp(12px, 2cqw, 24px);
  background: linear-gradient(to left, rgba(0, 0, 0, 0.28) 0%, transparent 66%);
}

.journal-hero__frame:hover .journal-hero__nav-zone--prev,
.journal-hero__frame:hover .journal-hero__nav-zone--next,
.journal-hero__nav-zone--prev:focus-visible,
.journal-hero__nav-zone--next:focus-visible {
  opacity: 1;
}

.journal-hero__nav-zone--center {
  cursor: pointer;
}

.journal-hero__nav-icon {
  width: 34px;
  height: 34px;
  opacity: 0.88;
}

@media (max-width: 720px) {
  .journal-hero__desc {
    display: none;
  }

  .journal-hero__overlay {
    gap: 8px;
    padding-top: 88px;
  }

  .journal-hero__nav-zone--prev,
  .journal-hero__nav-zone--next {
    opacity: 1;
  }

  .journal-hero__nav-icon {
    width: 28px;
    height: 28px;
  }
}

.journal-section-title {
  display: flex;
  align-items: center;
  margin: 0 0 clamp(16px, 2cqw, 20px);
  color: inherit;
  font-size: clamp(22px, 2.2cqw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.journal-featured {
  margin-bottom: clamp(28px, 3.5cqw, 40px);
}

.journal-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(14px, 1.8cqw, 18px);
  align-items: stretch;
}

.journal-featured__list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8cqw, 18px);
  min-width: 0;
}

.journal-featured-list-card,
.journal-featured-lead {
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(16, 16, 16, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

html[data-theme="dark"] body.home-page .journal-featured-list-card,
html[data-theme="dark"] body.home-page .journal-featured-lead,
body.home-page[data-theme="dark"] .journal-featured-list-card,
body.home-page[data-theme="dark"] .journal-featured-lead {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

@media (hover: hover) {
  .journal-featured-list-card:hover,
  .journal-featured-lead:hover {
    border-color: rgba(16, 16, 16, 0.14);
    box-shadow: 0 22px 56px rgba(16, 16, 16, 0.1);
    transform: translateY(-1px);
  }

  html[data-theme="dark"] body.home-page .journal-featured-list-card:hover,
  html[data-theme="dark"] body.home-page .journal-featured-lead:hover,
  body.home-page[data-theme="dark"] .journal-featured-list-card:hover,
  body.home-page[data-theme="dark"] .journal-featured-lead:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  }
}

.journal-featured-list-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.journal-featured-list-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: clamp(16px, 2cqw, 20px);
  box-sizing: border-box;
}

.journal-featured-list-card__title {
  margin: 0;
  font-size: clamp(18px, 1.8cqw, 22px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.journal-featured-list-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.72;
}

.journal-featured-list-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.58;
}

.journal-featured-list-card__meta > span,
.journal-featured-list-card__meta > time {
  flex: 0 0 auto;
  max-width: 100%;
}

.journal-featured-list-card__meta > time {
  margin-left: auto;
}

.journal-featured-lead {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.journal-featured-lead__media {
  flex: 0 0 50%;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
}

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

.journal-featured-lead__body {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: clamp(16px, 2cqw, 20px);
  overflow: hidden;
}

.journal-featured-lead__title {
  margin: 0;
  font-size: clamp(20px, 2cqw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.journal-featured-lead__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.72;
}

.journal-featured-lead__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.3;
}

.journal-featured-lead__meta-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.journal-featured-lead__meta-side > span,
.journal-featured-lead__meta-side > time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.62;
}

.journal-featured-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.journal-featured-author > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-featured-topic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.05);
  color: rgba(16, 16, 16, 0.78);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

html[data-theme="dark"] body.home-page .journal-featured-topic,
body.home-page[data-theme="dark"] .journal-featured-topic {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.journal-featured-topic__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: var(--topic-icon);
  mask-image: var(--topic-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.journal-featured-author__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .journal-featured__grid {
    grid-template-columns: 1fr;
  }

  .journal-featured-lead {
    order: -1;
    height: auto;
    min-height: 320px;
  }

  .journal-featured-lead__media {
    flex-basis: 50%;
  }
}

.journal-feed {
  margin-bottom: clamp(28px, 3.5cqw, 40px);
}

.journal-feed__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(14px, 1.8cqw, 18px);
  align-items: start;
}

.journal-feed-topics {
  position: sticky;
  top: clamp(12px, 2cqw, 20px);
  min-width: 0;
}

.journal-feed-topics__title--mobile {
  display: none;
}

.journal-feed-topics__card {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(16, 16, 16, 0.06);
  padding: clamp(14px, 1.8cqw, 18px);
}

html[data-theme="dark"] body.home-page .journal-feed-topics__card,
body.home-page[data-theme="dark"] .journal-feed-topics__card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.journal-feed-topics__select-wrap {
  display: none;
}

.journal-feed-topics__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.journal-feed-topics__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  transition: opacity 0.18s ease;
}

html[data-theme="dark"] body.home-page .journal-feed-topics__link,
body.home-page[data-theme="dark"] .journal-feed-topics__link {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.journal-feed-topics__list li:first-child .journal-feed-topics__link {
  padding-top: 0;
}

.journal-feed-topics__list li:last-child .journal-feed-topics__link {
  border-bottom: none;
  padding-bottom: 0;
}

@media (hover: hover) {
  .journal-feed-topics__link:hover {
    opacity: 0.72;
  }
}

.journal-feed-topics__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: rgba(16, 16, 16, 0.72);
  -webkit-mask-image: var(--topic-icon);
  mask-image: var(--topic-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

html[data-theme="dark"] body.home-page .journal-feed-topics__icon,
body.home-page[data-theme="dark"] .journal-feed-topics__icon {
  background-color: rgba(255, 255, 255, 0.88);
}

.journal-feed-topics__select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  font: inherit;
}

html[data-theme="dark"] body.home-page .journal-feed-topics__select,
body.home-page[data-theme="dark"] .journal-feed-topics__select {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.journal-feed-list {
  min-width: 0;
}

.journal-feed-list__panel {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(16, 16, 16, 0.06);
  overflow: hidden;
}

html[data-theme="dark"] body.home-page .journal-feed-list__panel,
body.home-page[data-theme="dark"] .journal-feed-list__panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.journal-feed-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.8cqw, 18px);
  padding: clamp(14px, 1.8cqw, 18px);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.journal-feed-item + .journal-feed-item {
  border-top: 1px solid rgba(16, 16, 16, 0.08);
}

html[data-theme="dark"] body.home-page .journal-feed-item + .journal-feed-item,
body.home-page[data-theme="dark"] .journal-feed-item + .journal-feed-item {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (hover: hover) {
  .journal-feed-item:hover {
    background: rgba(16, 16, 16, 0.03);
  }

  html[data-theme="dark"] body.home-page .journal-feed-item:hover,
  body.home-page[data-theme="dark"] .journal-feed-item:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}

.journal-feed-item__media {
  flex: 0 0 clamp(115px, 14.4cqw, 154px);
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
}

.journal-feed-item__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.journal-feed-item__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.journal-feed-item__title {
  margin: 0;
  font-size: clamp(18px, 1.8cqw, 22px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.journal-feed-item__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.72;
}

.journal-feed-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.58;
}

.journal-feed-item__meta > span,
.journal-feed-item__meta > time {
  flex: 0 0 auto;
  max-width: 100%;
}

.journal-feed-item__meta > time {
  margin-left: auto;
}

.journal-feed-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: clamp(16px, 2cqw, 20px);
  font-size: 14px;
}

.journal-feed-pagination__link {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.18s ease;
}

@media (hover: hover) {
  .journal-feed-pagination__link:hover {
    opacity: 1;
  }
}

.journal-feed-pagination__current {
  opacity: 0.58;
}

@media (max-width: 900px) {
  .journal-feed__grid {
    grid-template-columns: 1fr;
  }

  .journal-feed-topics {
    position: static;
  }

  .journal-feed-topics__title {
    display: none;
  }

  .journal-feed-topics__title--mobile {
    display: flex;
  }

  .journal-feed-list__title {
    display: none;
  }

  .journal-feed-topics__select-wrap {
    display: block;
    margin-bottom: 0;
  }

  .journal-feed-topics__list {
    display: none;
  }

  .journal-feed-topics__card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .journal-feed-item__media {
    flex-basis: 106px;
  }
}
