@charset "utf-8";
/* CSS Document */

/* ========================================
   JOURNAL LANDING PAGE
======================================== */

/* ========================================
   JOURNAL INTRO
======================================== */

.journal-intro {
  padding: 48px 0 38px;
}

.journal-intro h1 {
  position: relative;
  display: inline-block;
  margin: 0 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
}

/* ----------------------------------------
   ORANGE SLASH
---------------------------------------- */

.journal-intro h1::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -7px;
  width: 108%;
  height: 7px;
  background: #f29118;
  border-radius: 50%;
  transform: rotate(-2deg);
  z-index: -1;
}

.journal-intro p {
  max-width: 700px;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

/* ========================================
   BLACK DIVIDER
======================================== */

.journal-divider {
  padding: 25px 0 28px;
  background: #0b0b0b;
  color: #ffffff;
}

.journal-divider p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.18;
}

.journal-divider span {
  color: #f29118;
}

/* ========================================
   JOURNAL GRID
======================================== */

.journal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 30px;
  padding: 58px 0 88px;
}

/* ========================================
   JOURNAL CARD
======================================== */

.journal-card {
  width: calc(33.333% - 20px);
}

.journal-link {
  display: block;
  color: #0b0b0b;
  text-decoration: none;
}

/* ========================================
   IMAGE TREATMENT
======================================== */

.journal-image-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  padding: 0 14px 14px 0;
}

/* PLUM BLOCK BEHIND IMAGE */

.journal-image-back {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 14px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  background: #84395a;
}

/* ACTUAL IMAGE FRAME */

.journal-image {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #ffffff;
  border: 1px solid #0b0b0b;
  overflow: hidden;
}

/* JOURNAL PHOTO */

.journal-image img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ========================================
   DATE
======================================== */

.journal-card time {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #776d66;
}

/* ========================================
   ENTRY TITLE
======================================== */

.journal-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.12;
}

/* ========================================
   HOVER
======================================== */

.journal-link:hover .journal-image-wrap {
  transform: translateY(-3px);
}

.journal-link:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* ========================================
   OPTIONAL COLOR VARIATION
======================================== */

/*
If you eventually want occasional cards to use
another Seam Logic color behind the photograph,
you can add a class to that journal-card.

Example:

<article class="journal-card journal-orange">

*/

.journal-orange .journal-image-back {
  background: #f29118;
}

.journal-rust .journal-image-back {
  background: #b8440a;
}

.journal-cream .journal-image-back {
  background: #e3d6c8;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 850px) {

  .journal-card {
    width: calc(50% - 15px);
  }

  .journal-image img {
    height: 240px;
  }
}

/* ========================================
   PHONE
======================================== */

@media (max-width: 600px) {

  .journal-intro {
    padding: 34px 0 30px;
  }

  .journal-intro h1 {
    margin-bottom: 30px;
    font-size: 52px;
  }

  .journal-intro p {
    font-size: 15px;
  }

  .journal-divider p {
    font-size: 27px;
  }

  .journal-grid {
    gap: 38px;
    padding: 42px 0 62px;
  }

  .journal-card {
    width: 100%;
  }

  .journal-image img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .journal-card h2 {
    font-size: 25px;
  }
}
