/* =====================================================
   NEST COUNSELLING
   COMPLETE BLOG STYLESHEET
   Works alongside assets/css/styles.css
   ===================================================== */


/* -----------------------------------------------------
   ARTICLE PAGE LAYOUT
   ----------------------------------------------------- */

.article-main {
  width: min(860px, calc(100% - 64px));
  margin: 0 auto;
  padding: 46px 0 76px;
  color: var(--ink, #343a35);
}


/* -----------------------------------------------------
   BLOG PAGE HEADER
   Matches the homepage navigation and enlarged logo
   ----------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background: rgba(246, 243, 236, .96);
  border-bottom: 1px solid #deded4;
}

.site-header .header-inner {
  width: min(1200px, calc(100% - 64px));
  min-height: 112px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}

.site-header .brand-logo {
  display: block;
  width: clamp(235px, 30vw, 360px);
  height: auto;
  max-height: 102px;
  object-fit: contain;
  object-position: left center;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 30px);
}

.site-header .main-nav a {
  display: inline-block;
  color: #626b64;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-header .main-nav a:hover {
  color: #30483f;
}

.site-header .main-nav a:focus-visible,
.site-header .brand:focus-visible {
  outline: 3px solid #91a18d;
  outline-offset: 4px;
}


/* -----------------------------------------------------
   BREADCRUMB NAVIGATION
   ----------------------------------------------------- */

.article-breadcrumb {
  margin: 0 0 30px;
  color: var(--muted, #626b64);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1.7;
}

.article-breadcrumb a {
  color: var(--green, #52685c);
  text-decoration: none;
  transition: color .2s ease;
}

.article-breadcrumb a:hover {
  color: var(--forest, #30483f);
  text-decoration: underline;
}


/* -----------------------------------------------------
   ARTICLE HEADING
   ----------------------------------------------------- */

.article-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.article-heading .eyebrow {
  margin: 0 0 16px;
  color: var(--green, #52685c);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.7;
  text-transform: uppercase;
}

.article-heading h1 {
  margin: 0 0 20px;
  color: var(--forest, #30483f);
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -.8px;
  line-height: 1.2;
}

.article-intro {
  max-width: 710px;
  margin: 0 auto;
  color: var(--muted, #626b64);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
}

.article-date {
  margin: 18px 0 0;
  color: var(--muted, #626b64);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 11px;
  letter-spacing: .5px;
}


/* -----------------------------------------------------
   ARTICLE FEATURE IMAGE
   Used only on articles where an image is included
   ----------------------------------------------------- */

.article-feature-image {
  display: block;
  width: 100%;
  max-height: 430px;
  margin: 30px auto 38px;
  border-radius: 4px;
  background: var(--cream, #eeece3);
  object-fit: contain;
  object-position: center;
}


/* -----------------------------------------------------
   MAIN ARTICLE CONTENT
   ----------------------------------------------------- */

.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content h2 {
  margin: 38px 0 14px;
  color: var(--forest, #30483f);
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: -.3px;
  line-height: 1.35;
}

.article-content h3 {
  margin: 28px 0 12px;
  color: var(--forest, #30483f);
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
}

.article-content p {
  margin: 0 0 19px;
  color: var(--muted, #626b64);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.article-content li {
  margin: 0 0 8px;
  padding-left: 3px;
  color: var(--muted, #626b64);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 14px;
  line-height: 1.95;
}

.article-content li::marker {
  color: var(--green, #52685c);
}

.article-content a {
  color: var(--forest, #30483f);
  text-decoration-color: #98a690;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.article-content a:hover {
  color: var(--green, #52685c);
}


/* -----------------------------------------------------
   ARTICLE CONTACT SECTION
   ----------------------------------------------------- */

.article-contact {
  max-width: 760px;
  margin: 45px auto 0;
  padding: 28px;
  border: 1px solid var(--line, #deded4);
  border-left: 3px solid var(--green, #52685c);
  border-radius: 3px;
  background: var(--white, #fffefa);
}

.article-contact h2 {
  margin: 0 0 12px;
  color: var(--forest, #30483f);
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.3px;
  line-height: 1.35;
}

.article-contact p {
  margin: 0 0 20px;
  color: var(--muted, #626b64);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 13px;
  line-height: 1.85;
}


/* -----------------------------------------------------
   CONTACT BUTTON
   ----------------------------------------------------- */

.article-contact .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--green, #52685c);
  border-radius: 3px;
  background: var(--green, #52685c);
  color: var(--white, #fffefa);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.article-contact .cta:hover {
  background: var(--forest, #30483f);
  color: var(--white, #fffefa);
  transform: translateY(-1px);
}


/* -----------------------------------------------------
   BACK TO BLOG LINK
   ----------------------------------------------------- */

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--forest, #30483f);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  line-height: 1.7;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.article-back-link:hover {
  color: var(--green, #52685c);
}


/* -----------------------------------------------------
   KEYBOARD ACCESSIBILITY
   ----------------------------------------------------- */

.article-main a:focus-visible {
  outline: 3px solid #91a18d;
  outline-offset: 4px;
}


/* -----------------------------------------------------
   TABLET HEADER ADJUSTMENTS
   ----------------------------------------------------- */

@media (max-width: 900px) and (min-width: 681px) {

  .site-header .header-inner {
    gap: 16px;
  }

  .site-header .brand-logo {
    width: clamp(210px, 27vw, 280px);
  }

  .site-header .main-nav {
    gap: 12px;
  }

  .site-header .main-nav a {
    font-size: 9px;
    letter-spacing: .7px;
  }

}


/* -----------------------------------------------------
   MOBILE HEADER AND ARTICLE STYLING
   ----------------------------------------------------- */

@media (max-width: 680px) {

  /* Header */

  .site-header .header-inner {
    width: min(100% - 40px, 500px);
    min-height: 92px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-block: 13px;
  }

  .site-header .brand-logo {
    width: 245px;
    max-height: 76px;
  }

  .site-header .main-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .site-header .main-nav a {
    font-size: 9px;
    letter-spacing: .7px;
  }

  .site-header .main-nav a:nth-child(1),
  .site-header .main-nav a:nth-child(2) {
    display: none;
  }


  /* Article layout */

  .article-main {
    width: calc(100% - 40px);
    padding: 32px 0 52px;
  }

  .article-breadcrumb {
    margin-bottom: 23px;
    font-size: 10px;
  }

  .article-heading {
    margin-bottom: 28px;
  }

  .article-heading .eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
    letter-spacing: 1.35px;
  }

  .article-heading h1 {
    margin-bottom: 16px;
    font-size: clamp(32px, 9vw, 42px);
    letter-spacing: -.5px;
    line-height: 1.2;
  }

  .article-intro {
    font-size: 14px;
    line-height: 1.85;
  }

  .article-date {
    margin-top: 14px;
  }

  .article-feature-image {
    margin: 23px auto 28px;
    max-height: 320px;
  }

  .article-content h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 25px;
    line-height: 1.35;
  }

  .article-content h3 {
    margin-top: 24px;
    font-size: 21px;
  }

  .article-content p,
  .article-content li {
    font-size: 13px;
    line-height: 1.9;
  }

  .article-content p {
    margin-bottom: 16px;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 21px;
  }

  .article-contact {
    margin-top: 35px;
    padding: 22px;
  }

  .article-contact h2 {
    font-size: 24px;
  }

  .article-contact p {
    font-size: 13px;
  }

  .article-contact .cta {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
  }

  .article-back-link {
    margin-top: 27px;
    font-size: 11px;
  }

}


/* -----------------------------------------------------
   REDUCED MOTION ACCESSIBILITY
   ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .article-main a,
  .article-contact .cta,
  .site-header .main-nav a {
    transition: none;
  }

}
