/* ============================================
   JOURNAL STYLES — Palmwine & Friends
   Extension of the site's design system.
   Uses existing classes where possible;
   new classes only for journal-specific layout.
   ============================================ */

/* ---- NAV FIX ----
   main.js expects data-w-id + page interaction data
   to animate nav from opacity:0 → 1. Since blog pages
   aren't in the Webflow interaction map, force visible. */
.nav {
  opacity: 1 !important;
}
.standard_link.major.mob_open {
  opacity: 1 !important;
}

/* ---- JOURNAL HERO ---- */
.journal-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5vw;
  overflow: hidden;
}

.journal-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.journal-hero-bg .image {
  width: 100%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 0;
}

.journal-hero-bg .grad_up {
  z-index: 2;
}

.journal-hero-grad-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
  z-index: 2;
}

.journal-hero-titles {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
  padding-bottom: 4vw;
}

.journal-hero-titles .section_label {
  position: static;
  text-align: left;
}

.journal-display-title {
  color: var(--palmwine®-powder, #faf8f2);
  font-size: 14vw;
  font-weight: 900;
  line-height: .82em;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin: 0;
}

.journal-hero-tagline {
  max-width: 30vw;
}

.journal-hero-tagline .p {
  color: var(--palmwine®-powder, #faf8f2);
  font-size: 1vw;
  line-height: 1.3em;
  font-weight: 400;
  opacity: .7;
}

/* ---- FEATURED STORY CARD ---- */
.journal-feature {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.journal-feature-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.journal-feature-visual .image {
  width: 100%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.journal-feature:hover .journal-feature-visual .image {
  transform: scale(1.04);
}

.journal-feature-visual .grad_up {
  z-index: 2;
  height: 80%;
}

.journal-feature-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  padding: 2.5vw;
  color: var(--palmwine®-powder, #faf8f2);
}

.journal-feature-meta {
  display: flex;
  align-items: center;
  gap: .5vw;
}

.journal-feature-title {
  color: var(--palmwine®-powder, #faf8f2) !important;
  max-width: 50vw;
}

.journal-feature-excerpt {
  max-width: 35vw;
  font-size: .95vw;
  line-height: 1.3em;
  opacity: .75;
}

.journal-read {
  color: var(--palmwine®-powder, #faf8f2) !important;
  opacity: .8;
  transition: opacity .3s ease;
}

.journal-feature:hover .journal-read {
  opacity: 1;
}

/* ---- JOURNAL TAGS & META ---- */
.journal-tag {
  font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: .7vw;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--palmwine®-red, #e01e48);
  background: transparent;
  border: none;
  padding: 0;
}

.journal-meta-dot {
  font-size: .7vw;
  opacity: .4;
}

.journal-date {
  font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: .7vw;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  opacity: .5;
}

/* ---- FILTER BUTTONS ---- */
.journal-filters {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0 3vw;
}

.journal-filter {
  background: none;
  border: none;
  color: currentColor;
  font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: .9vw;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0;
  cursor: pointer;
  opacity: .35;
  transition: opacity .35s ease, color .35s ease;
  position: relative;
}

.journal-filter:hover {
  opacity: .6;
}

.journal-filter.active {
  opacity: 1;
  color: var(--palmwine®-red, #e01e48);
}

/* Slash separators between filters */
.journal-filter + .journal-filter::before {
  content: '/';
  display: inline-block;
  margin: 0 .8vw;
  opacity: .3;
  font-weight: 400;
  color: currentColor;
  pointer-events: none;
}

/* ---- JOURNAL GRID ---- 
   Reuses .event_grid from style.css (3-col, 1.5vw gap, 3vw row gap)
   Only adding card-specific styles */

.journal-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.journal-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.journal-card-visual .image {
  width: 100%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.journal-card:hover .journal-card-visual .image {
  transform: scale(1.05);
}

.journal-card-visual .grad_up {
  z-index: 2;
  opacity: .4;
}

.journal-card .event_details {
  padding-top: 1.5vw;
}

.journal-card-meta {
  display: flex;
  align-items: center;
  gap: .5vw;
  margin-bottom: .8vw;
}

.journal-card .h4 {
  font-size: 1.4vw;
  line-height: 1.15em;
  letter-spacing: -.01em;
  transition: color .3s ease;
}

.journal-card:hover .h4 {
  color: var(--palmwine®-red, #e01e48);
}

.journal-excerpt {
  font-size: .85vw;
  line-height: 1.3em;
  font-weight: 400;
  opacity: .6;
  margin-top: .6vw;
}

/* ---- ARTICLE PAGE STYLES ---- */
.article-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5vw;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.article-hero-bg .image {
  width: 100%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 0;
}

.article-hero-grad-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
  z-index: 2;
}

.article-hero-titles {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  padding-bottom: 4vw;
  max-width: 60vw;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: .6vw;
}

.article-display-title {
  color: var(--palmwine®-powder, #faf8f2);
  font-size: 6vw;
  font-weight: 900;
  line-height: .85em;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0;
}

/* Article body */
.article-body {
  grid-column-gap: 4vw;
  grid-row-gap: 4vw;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  padding: 8vw 1.5vw;
  display: flex;
}

.article-content {
  width: 40vw;
  margin: 0 auto;
}

.article-content .rich p {
  font-size: 1.05vw;
  line-height: 1.6em;
  font-weight: 400;
  margin-bottom: 1.5vw;
}

.article-content .rich h2 {
  font-size: 1.5vw;
  line-height: 1.2em;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.02em;
  margin-top: 3vw;
  margin-bottom: 1vw;
}

.article-content .rich h3 {
  font-size: 1.2vw;
  line-height: 1.2em;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.01em;
  margin-top: 2.5vw;
  margin-bottom: .8vw;
}

.article-content .rich blockquote {
  border-left: .2vw solid var(--palmwine®-red, #e01e48);
  padding-left: 2vw;
  margin: 2.5vw 0;
  font-size: 1.2vw;
  line-height: 1.4em;
  font-weight: 600;
  font-style: italic;
  text-transform: none;
}

.article-content .rich img {
  width: 100%;
  margin: 2vw 0;
}

.article-full-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.article-full-image .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Author info */
.article-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 40vw;
  padding: 1.5vw 0;
  border-top: 1px dashed currentColor;
  border-bottom: 1px dashed currentColor;
  opacity: .6;
}

.article-author-bar .h5 {
  font-weight: 500;
}

/* Related stories */
.article-related-grid {
  grid-column-gap: 1.5vw;
  grid-row-gap: 3vw;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
  width: 100%;
}

/* Back to journal link */
.journal-back {
  display: inline-flex;
  align-items: center;
  gap: .3vw;
  text-decoration: underline;
  text-underline-offset: .15vw;
  font-size: .9vw;
  font-weight: 700;
  text-transform: uppercase;
  transition: color .3s ease;
}

.journal-back:hover {
  color: var(--palmwine®-red, #e01e48);
}

/* ---- RESPONSIVE: TABLET (991px) ---- */
@media screen and (max-width: 991px) {
  .journal-hero {
    height: 80vh;
    min-height: 80vh;
  }

  .journal-display-title {
    font-size: 18vw;
  }

  .journal-hero-tagline {
    max-width: 50vw;
  }

  .journal-hero-tagline .p {
    font-size: 2vw;
  }

  .journal-feature-visual {
    aspect-ratio: 16 / 10;
  }

  .journal-feature-title {
    max-width: 70vw;
    font-size: 5vw !important;
  }

  .journal-feature-excerpt {
    max-width: 60vw;
    font-size: 1.8vw;
  }

  .journal-feature-meta,
  .journal-card-meta {
    gap: 1vw;
    margin-bottom: 1.2vw;
  }

  .journal-card .event_details {
    padding-top: 2vw;
  }

  .journal-tag {
    font-size: 1.4vw;
  }

  .journal-meta-dot {
    font-size: 1.4vw;
  }

  .journal-date {
    font-size: 1.4vw;
  }

  .journal-filters {
    padding: 3vw 0 4vw;
  }

  .journal-filter {
    font-size: 1.6vw;
  }

  .journal-filter + .journal-filter::before {
    margin: 0 1.2vw;
  }

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

  .journal-card .h4 {
    font-size: 2.5vw;
  }

  .journal-excerpt {
    font-size: 1.6vw;
  }

  .journal-read {
    font-size: 1.5vw;
  }

  /* Article page tablet */
  .article-display-title {
    font-size: 8vw;
  }

  .article-content {
    width: 70vw;
  }

  .article-content .rich p {
    font-size: 2vw;
  }

  .article-content .rich h2 {
    font-size: 2.8vw;
  }

  .article-content .rich h3 {
    font-size: 2.2vw;
  }

  .article-content .rich blockquote {
    font-size: 2.2vw;
    padding-left: 3vw;
  }

  .article-author-bar {
    width: 70vw;
  }

  .article-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- RESPONSIVE: MOBILE (767px) ---- */
@media screen and (max-width: 767px) {
  .journal-hero {
    height: 70vh;
    min-height: 70vh;
    padding: 4vw;
  }

  .journal-display-title {
    font-size: 20vw;
  }

  .journal-hero-tagline {
    max-width: 80vw;
  }

  .journal-hero-tagline .p {
    font-size: 3.5vw;
  }

  .journal-hero-titles .section_label .h5,
  .journal-hero-titles .section_label .label_sub {
    font-size: 2.5vw;
    line-height: 1.2em;
  }

  .journal-feature-visual {
    aspect-ratio: 4 / 3;
  }

  .journal-feature-overlay {
    padding: 5vw;
    gap: 2vw;
  }

  .journal-feature-title {
    max-width: 100%;
    font-size: 7vw !important;
  }

  .journal-feature-excerpt {
    max-width: 100%;
    font-size: 3vw;
  }

  .journal-tag {
    font-size: 2.5vw;
  }

  .journal-meta-dot {
    font-size: 2.5vw;
  }

  .journal-date {
    font-size: 2.5vw;
  }

  .journal-filters {
    padding: 5vw 0 6vw;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw 0;
  }

  .journal-filter {
    font-size: 3vw;
  }

  .journal-filter + .journal-filter::before {
    margin: 0 2vw;
  }

  .journal-grid {
    grid-template-columns: 1fr !important;
    grid-row-gap: 8vw !important;
    padding-top: 15vw;
  }

  .journal-card .h4 {
    font-size: 5vw;
  }

  .journal-excerpt {
    font-size: 3.2vw;
  }

  .journal-read {
    font-size: 3vw;
  }

  /* Article page mobile */
  .article-hero {
    height: 60vh;
    min-height: 60vh;
    padding: 4vw;
  }

  .article-hero-titles {
    max-width: 100%;
  }

  .article-display-title {
    font-size: 12vw;
  }

  .article-hero-meta .journal-tag,
  .article-hero-meta .journal-date {
    font-size: 2.5vw;
  }

  .article-body {
    padding: 12vw 4vw;
  }

  .article-content {
    width: 100%;
  }

  .article-content .rich p {
    font-size: 3.8vw;
    line-height: 1.5em;
  }

  .article-content .rich h2 {
    font-size: 5vw;
  }

  .article-content .rich h3 {
    font-size: 4.2vw;
  }

  .article-content .rich blockquote {
    font-size: 4vw;
    padding-left: 4vw;
    border-left-width: .5vw;
  }

  .journal-card .event_details {
    padding-top: 3vw;
  }

  .journal-card-meta {
    gap: 1.5vw;
    margin-bottom: 2vw;
  }

  .journal-card .h4 {
    font-size: 5vw;
    line-height: 1.15em;
  }

  .article-author-bar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2vw;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .journal-back {
    font-size: 3vw;
  }
}

@media screen and (max-width: 479px) {
  .journal-display-title {
    font-size: 19vw;
  }

  .journal-filters {
    padding: 6vw 0 8vw;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3vw 0;
  }

  .journal-filter {
    font-size: 3.5vw;
  }

  .journal-filter + .journal-filter::before {
    margin: 0 2.5vw;
  }

  .article-display-title {
    font-size: 14vw;
  }
}
