/* ============================================
   97% Creative — Journal Page
   Light theme: bg #f5f3eb, dark text #1a1a1a
   Hero + cards stay dark (image overlays)
   ============================================ */


/* =============================================
   HERO — Full-bleed latest post image (stays dark)
   ============================================= */
.jn-hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--deep-soil, #1A1A1A);
}

.jn-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.jn-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.jn-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 1) 0%,
    rgba(26, 26, 26, 0.7) 30%,
    rgba(26, 26, 26, 0.2) 60%,
    rgba(26, 26, 26, 0.1) 100%
  );
}

.jn-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5vw 0;
}

.jn-hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--worn-ochre, #B8956A);
  margin-bottom: 16px;
  font-weight: 600;
}

.jn-hero-title {
  font-family: 'Thunder', var(--font1), sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 10rem);
  text-transform: uppercase;
  color: var(--raw-cotton, #F5F3EB);
  line-height: 0.85;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.jn-hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(245, 243, 235, 0.6);
  max-width: 480px;
  margin: 0;
}

/* Latest post link bar at bottom of hero */
.jn-hero-latest {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 5vw;
  margin-top: 40px;
  border-top: 1px solid rgba(245, 243, 235, 0.1);
  text-decoration: none;
  color: var(--raw-cotton, #F5F3EB);
  transition: background 0.3s ease;
}

.jn-hero-latest:hover {
  background: rgba(245, 243, 235, 0.04);
}

.jn-hero-latest-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ghost-accent-color, #E84E1B);
  font-weight: 600;
  flex-shrink: 0;
}

.jn-hero-latest-title {
  font-family: 'Inter', var(--font2), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--raw-cotton, #F5F3EB);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jn-hero-latest-arrow {
  font-size: 1.25rem;
  color: var(--ghost-accent-color, #E84E1B);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.jn-hero-latest:hover .jn-hero-latest-arrow {
  transform: translateX(4px);
}


/* =============================================
   PAGE CONTAINER — Light background
   ============================================= */
.jn-page {
  background-color: #f5f3eb;
  color: #1a1a1a;
  padding: 64px 5vw 120px;
  min-height: 50vh;
}


/* =============================================
   FILTER TABS — Dark text on light bg
   ============================================= */
.jn-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.jn-filter-tab {
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.2);
  color: rgba(26, 26, 26, 0.55);
  padding: 10px 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  font-family: inherit;
  text-transform: none;
}

.jn-filter-tab:hover {
  border-color: rgba(26, 26, 26, 0.5);
  color: #1a1a1a;
}

.jn-filter-tab.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #f5f3eb;
  font-weight: 600;
}


/* =============================================
   SHARED CARD STYLES — Sequoia overlay pattern
   Cards keep dark overlays (images underneath)
   ============================================= */
.jn-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.jn-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.jn-card-bg--empty {
  background: rgba(26, 26, 26, 0.06);
}

.jn-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.9) 0%,
    rgba(26, 26, 26, 0.45) 40%,
    rgba(26, 26, 26, 0.1) 70%,
    transparent 100%
  );
  transition: background 0.4s ease;
}

.jn-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 28px;
}

.jn-card-meta-top {
  /* Tag sits at top */
}

.jn-card-meta-bottom {
  /* Title + excerpt at bottom */
}

.jn-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ghost-accent-color, #E84E1B);
  font-weight: 600;
}

.jn-card-title {
  font-family: 'Inter', var(--font2), sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: var(--raw-cotton, #F5F3EB);
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.jn-card-excerpt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(245, 243, 235, 0.5);
  margin: 0 0 14px 0;
}

.jn-card-read {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ghost-accent-color, #E84E1B);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* =============================================
   SPOTLIGHT — 2-col featured row
   ============================================= */
.jn-spotlight {
  margin-bottom: 24px;
}

.jn-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.jn-spotlight-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  color: var(--raw-cotton, #F5F3EB);
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.jn-spotlight-card:hover .jn-card-bg img {
  transform: scale(1.04);
}

.jn-spotlight-card:hover .jn-card-overlay {
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.55) 40%,
    rgba(26, 26, 26, 0.15) 70%,
    transparent 100%
  );
}

.jn-spotlight-card:hover .jn-card-title {
  color: var(--ghost-accent-color, #E84E1B);
}

.jn-spotlight-card:hover .jn-card-read {
  opacity: 1;
  transform: translateY(0);
}

.jn-spotlight-card .jn-card-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.jn-spotlight-card .jn-card-excerpt {
  display: none;
}


/* =============================================
   GRID — 2-col square cards, text over image
   ============================================= */
.jn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.jn-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  color: var(--raw-cotton, #F5F3EB);
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.jn-card:hover .jn-card-bg img {
  transform: scale(1.04);
}

.jn-card:hover .jn-card-overlay {
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.55) 40%,
    rgba(26, 26, 26, 0.15) 70%,
    transparent 100%
  );
}

.jn-card:hover .jn-card-title {
  color: var(--ghost-accent-color, #E84E1B);
}

.jn-card:hover .jn-card-read {
  opacity: 1;
  transform: translateY(0);
}

.jn-card .jn-card-title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}


/* =============================================
   EMPTY STATE
   ============================================= */
.jn-empty {
  text-align: center;
  padding: 80px 0;
}

.jn-empty p {
  font-size: 0.9375rem;
  color: rgba(26, 26, 26, 0.4);
  line-height: 1.6;
}

.jn-empty code {
  background: rgba(26, 26, 26, 0.06);
  padding: 2px 8px;
  font-size: 0.8125rem;
}


/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media screen and (max-width: 1024px) {
  .jn-hero {
    min-height: 70vh;
  }

  .jn-spotlight-card .jn-card-title {
    font-size: 1.35rem;
  }

  .jn-card .jn-card-title {
    font-size: 1.1rem;
  }
}


/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media screen and (max-width: 640px) {
  .jn-hero {
    min-height: 75vh;
  }

  .jn-hero-title {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .jn-hero-description {
    font-size: 1rem;
  }

  .jn-hero-latest {
    padding: 20px 5vw;
    margin-top: 28px;
    gap: 12px;
  }

  .jn-hero-latest-title {
    font-size: 0.875rem;
  }

  .jn-page {
    padding: 40px 20px 80px;
  }

  .jn-filters {
    gap: 5px;
    margin-bottom: 32px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .jn-filters::-webkit-scrollbar {
    display: none;
  }

  .jn-filter-tab {
    padding: 8px 18px;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .jn-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jn-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jn-card,
  .jn-spotlight-card {
    aspect-ratio: 4 / 3;
  }

  .jn-card-content {
    padding: 20px;
  }

  .jn-card .jn-card-title,
  .jn-spotlight-card .jn-card-title {
    font-size: 1.15rem;
  }

  .jn-card-read {
    opacity: 1;
    transform: translateY(0);
  }
}
