/* Blog · shares the tokens, header, buttons and footer of index.html */
:root {
  --white: #fff;
  --v1: #f1ecfc;
  --v2: #e6ddfa;
  --v3: #d3c6f4;
  --v4: #a994e6;
  --vd: #5b4c99;
  --vdd: #43377a;
  --a1: #e7f9f4;
  --a2: #d2f2e8;
  --a3: #a6e8d5;
  --a4: #54cbae;
  --ad: #237f6b;
  --ink: #3b3163;
  --mut: #6c6590;
  --serif: 'Italiana', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

a {
  color: inherit;
  text-decoration: none
}

ul {
  list-style: none
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

.wrap {
  width: min(1180px, 100% - 56px);
  margin-inline: auto;
  position: relative
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--vdd);
  line-height: 1.05
}

h2 {
  font-size: clamp(40px, 5vw, 64px)
}

p {
  color: var(--mut);
  font-size: 15px
}

.spark {
  display: inline-block;
  color: var(--a4);
  font-size: .5em;
  vertical-align: .55em;
  margin-left: .1em;
  animation: twinkle 3.2s ease-in-out infinite
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 24px;
  font: 600 13px/1 var(--sans);
  transition: background .2s, transform .2s;
  position: relative;
  overflow: hidden
}

.btn:hover {
  transform: translateY(-2px)
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  pointer-events: none
}

.btn:hover::after {
  animation: shine .8s ease
}

.btn-dark {
  background: var(--vd);
  color: #fff
}

.btn-dark:hover {
  background: var(--vdd)
}

.btn-white {
  background: #fff;
  color: var(--vdd)
}

.btn-white:hover {
  background: var(--v1)
}

.btn-aqua {
  background: var(--a3);
  color: var(--vdd)
}

.btn-aqua:hover {
  background: var(--a4)
}

.btn-lg {
  padding: 15px 30px;
  font-size: 14px
}

.explore {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--vdd);
  border-bottom: 2px solid var(--a4);
  padding-bottom: 3px
}

/* header */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .25s
}

header.solid {
  background: rgba(255, 255, 255, .96);
  padding: 12px 0;
  border-bottom: 1px solid var(--v2)
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 23px;
  color: var(--vdd);
  letter-spacing: .04em;
  justify-self: start
}

.logo img {
  width: 42px;
  height: 42px;
  flex: none
}

.menu {
  display: flex;
  gap: 4px
}

.menu a {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: .2s
}

.menu a:hover {
  background: var(--v1)
}

.menu a.on {
  background: var(--a2);
  color: var(--vdd)
}

.nav .btn {
  justify-self: end
}

.burger {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--v1);
  cursor: pointer;
  position: relative
}

.burger::before,
.burger::after,
.burger span {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--vd);
  transition: .25s
}

.burger::before {
  top: 14px
}

.burger span {
  top: 20px
}

.burger::after {
  top: 26px
}

.burger.open::before {
  top: 20px;
  transform: rotate(45deg)
}

.burger.open::after {
  top: 20px;
  transform: rotate(-45deg)
}

.burger.open span {
  opacity: 0
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--v4), var(--a4));
  pointer-events: none
}

/* blog index */
.blog-hero {
  padding: 150px 0 40px;
  text-align: center
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ad);
  margin-bottom: 14px
}

.blog-hero p {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 17px
}

.blog-list {
  padding: 30px 0 40px
}

/* post cards (same markup as the home page section) */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 1040px;
  margin: 0 auto
}

.post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--v2);
  border-radius: 30px;
  overflow: hidden;
  transition: translate .3s ease, box-shadow .3s ease
}

.post:hover {
  translate: 0 -6px;
  box-shadow: 0 26px 44px -24px rgba(67, 55, 122, .38)
}

.post-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--v1)
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease
}

.post:hover .post-cover img {
  transform: scale(1.05)
}

.post-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1
}

.post-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ad)
}

.post h3 {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.12;
  text-wrap: balance
}

.post p {
  font-size: 14.5px;
  line-height: 1.65
}

.post .explore {
  margin-top: auto
}

/* article */
.article-hero {
  padding: 140px 0 34px
}

.narrow {
  width: min(780px, 100% - 56px);
  margin-inline: auto
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vd);
  background: var(--v1);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
  transition: background .2s
}

.back:hover {
  background: var(--v2)
}

.article-hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.1;
  text-wrap: balance
}

.article-hero .sub {
  font-size: 19px;
  line-height: 1.65;
  margin-top: 20px;
  color: var(--mut)
}

.article-cover {
  width: min(1040px, 100% - 56px);
  margin: 10px auto 0;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 50px -30px rgba(67, 55, 122, .45)
}

.article-cover img {
  width: 100%
}

.article-body {
  padding: 60px 0 30px
}

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 22px
}

.article-body p strong {
  color: var(--vdd);
  font-weight: 600
}

.article-body h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  margin: 46px 0 18px
}

.article-body .quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  color: var(--vd);
  border-left: 4px solid var(--a4);
  padding: 6px 0 6px 24px;
  margin: 0 0 30px
}

/* list styled like the prosperity cards on the home page */
.ticks {
  display: grid;
  gap: 14px;
  margin: 8px 0 30px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--v1) 0%, #fff 55%, var(--a1) 100%);
  border: 1px solid var(--v2)
}

.ticks li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  background: rgba(255, 255, 255, .9);
  border-radius: 20px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mut)
}

.ticks li::before {
  content: "✦";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--a2);
  color: var(--ad);
  display: grid;
  place-items: center;
  font-size: 12px;
  margin-top: 1px
}

.ticks li strong {
  color: var(--vdd);
  font-weight: 600
}

/* call to action, styled like the membership offer */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--vd);
  border-radius: 34px;
  padding: 46px 44px;
  margin: 46px 0 10px;
  text-align: left
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none
}

.cta::before {
  width: 280px;
  height: 280px;
  right: -110px;
  bottom: -130px;
  background: var(--v4);
  opacity: .35
}

.cta::after {
  width: 70px;
  height: 70px;
  right: 90px;
  bottom: 36px;
  background: var(--a4);
  opacity: .3
}

.cta .mark {
  position: absolute;
  right: 34px;
  top: 18px;
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  color: #fff;
  opacity: .35
}

.cta h3 {
  position: relative;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  max-width: 560px
}

.cta p {
  position: relative;
  color: #e3dbfa;
  font-size: 15.5px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 560px
}

.cta .btn {
  margin-top: 26px
}

/* gallery */
.gallery {
  padding: 40px 0 30px
}

.gallery-head {
  text-align: center;
  margin-bottom: 34px
}

.gallery-head p {
  margin-top: 12px;
  font-size: 15px
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: center
}

/* the last image of the Word document is a portrait poster */
.shots .tall {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 520px
}

.shots button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--v1);
  border-radius: 24px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 18px 34px -24px rgba(67, 55, 122, .45);
  transition: translate .3s ease, box-shadow .3s ease
}

.shots button:hover {
  translate: 0 -4px;
  box-shadow: 0 26px 40px -24px rgba(67, 55, 122, .55)
}

.shots img {
  width: 100%
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(34, 26, 68, .82);
  backdrop-filter: blur(6px)
}

.lightbox.open {
  display: flex
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 88vh;
  width: auto;
  border-radius: 20px;
  box-shadow: 0 32px 70px -20px rgba(0, 0, 0, .5)
}

.lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--vdd);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center
}

.lb-btn:hover {
  background: var(--a3)
}

.lb-close {
  right: 20px;
  top: 20px
}

.lb-prev {
  left: 20px;
  top: 50%;
  translate: 0 -50%
}

.lb-next {
  right: 20px;
  top: 50%;
  translate: 0 -50%
}

/* related posts at the end of an article */
.more {
  padding: 50px 0 20px;
  text-align: center
}

.more h2 {
  margin-bottom: 30px
}

.more .posts {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  text-align: left
}

/* footer */
footer {
  padding: 80px 0 26px;
  position: relative
}

footer>.wrap {
  width: min(1440px, 100% - 24px)
}

.foot {
  background: var(--vd);
  border-radius: 10px;
  color: #fff;
  padding: 64px 56px 28px;
  position: relative
}

.foot .deco {
  position: absolute;
  right: 56px;
  top: -110px;
  width: 190px;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(40, 30, 80, .25));
  animation: spin 40s linear infinite
}

.fg {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 48px
}

.fg>* {
  min-width: 0
}

.fg h5 {
  font: 600 12px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--a3);
  margin-bottom: 16px
}

.fg li {
  font-size: 14px;
  color: #e6defb;
  margin-bottom: 9px
}

.fg li a:hover {
  color: var(--a3)
}

.fg .say {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff
}

.nl {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  max-width: 380px
}

.nl input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  color: var(--ink)
}

.nl .btn {
  flex: none
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px
}

.cols p {
  color: #e6defb;
  font-size: 13.5px;
  line-height: 1.55
}

.cols b {
  display: block;
  color: #fff;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600
}

.cols a {
  color: var(--a3)
}

.copy {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  text-align: center;
  font-size: 12.5px;
  color: #d3c8f3
}

/* reveal */
.js .rv {
  opacity: 0;
  transform: translateY(34px) scale(.97);
  transition: opacity .7s ease, transform .7s ease
}

.js .post.rv,
.js .shots .rv {
  transition: opacity .7s ease, transform .7s ease, translate .3s ease, box-shadow .3s ease
}

.js .rv.in {
  opacity: 1;
  transform: none
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-14px)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0)
  }

  50% {
    opacity: .45;
    transform: scale(.7) rotate(45deg)
  }
}

@keyframes shine {
  to {
    left: 130%
  }
}

@media(max-width:1020px) {
  .nav {
    grid-template-columns: 1fr auto
  }

  .nav .btn {
    display: none
  }

  .burger {
    display: block
  }

  .menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 28px;
    right: 28px;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--v2);
    border-radius: 26px;
    padding: 10px
  }

  .menu.open {
    display: flex
  }

  .fg {
    grid-template-columns: 1fr 1fr
  }

  .fg>div:first-child {
    grid-column: 1/-1
  }
}

@media(max-width:760px) {
  .posts {
    grid-template-columns: 1fr
  }

  .shots {
    grid-template-columns: 1fr
  }

  .cta {
    padding: 36px 26px
  }

  .cta::after {
    display: none
  }
}

@media(max-width:640px) {

  .wrap,
  .narrow,
  .article-cover {
    width: calc(100% - 32px)
  }

  .blog-hero {
    padding: 120px 0 30px
  }

  .article-hero {
    padding: 116px 0 28px
  }

  .article-body p {
    font-size: 16px
  }

  .ticks {
    padding: 14px
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 20px;
    translate: none
  }

  .foot {
    padding: 60px 24px 24px;
    border-radius: 8px
  }

  .foot .deco {
    width: 120px;
    right: 24px;
    top: -70px
  }

  .fg {
    grid-template-columns: 1fr
  }

  .cols {
    grid-template-columns: 1fr
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }

  .js .rv {
    opacity: 1;
    transform: none
  }
}
