/*
  Journal-specific styles.
  Kept separate so the Journal layout remains stable on GitHub Pages even if the shared stylesheet is cached.
*/

.journal-page {
  min-height: calc(100vh - 180px);
}

.journal-shell {
  width: min(1040px, calc(100% - 40px));
}

.journal-list {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.journal-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(16px, 2.8vw, 26px);
  border: 1px solid rgba(239, 59, 46, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(33, 23, 22, 0.92), rgba(17, 17, 17, 0.96)),
    rgba(25, 20, 19, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.journal-card-image {
  display: block;
  min-height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #0c0c0c;
}

.journal-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.05);
}

.journal-card-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.journal-card time,
.journal-post-header time {
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.journal-card h2 a:hover {
  color: var(--red-bright);
}

.journal-card p {
  width: min(620px, 100%);
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.journal-read-more,
.journal-back-link {
  color: var(--red-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-read-more:hover,
.journal-back-link:hover {
  color: #ff6c61;
}

.journal-post-shell {
  width: min(920px, calc(100% - 40px));
}

.journal-post-header {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.journal-post-header h1 {
  width: min(820px, 100%);
}

.journal-hero-image {
  margin: 38px 0;
  overflow: hidden;
  border: 1px solid rgba(239, 59, 46, 0.2);
  border-radius: 6px;
  background: #0c0c0c;
}

.journal-hero-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.05);
}

.journal-body {
  width: min(720px, 100%);
  color: #eee4dc;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.82;
}

.journal-body p {
  margin: 0 0 1.25em;
}

.journal-body h2,
.journal-body h3 {
  margin: 2em 0 0.7em;
  color: var(--text);
  letter-spacing: 0;
}

.journal-body a {
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .journal-shell,
  .journal-post-shell {
    width: min(100% - 32px, 100%);
  }

  .journal-card {
    grid-template-columns: 1fr;
  }

  .journal-card-image img {
    min-height: 210px;
  }

  .journal-body {
    line-height: 1.76;
  }
}
