/* ============================================
   Growing Mindfully — Article + Journal styles
   Shared across /journal/ index and all article pages.
   ============================================ */

:root {
  --paper: #FBF7EE;
  --paper-deep: #F0E9D8;
  --paper-deeper: #E5DCC4;
  --ink: #1F2A2E;
  --ink-soft: #3F5359;
  --ink-mute: #6F7F84;
  --sage: #9BB99E;
  --sage-deep: #6F8F70;
  --teal: #5FAEB6;
  --teal-deep: #3D8189;
  --teal-water: #6FB8B8;
  --dusty: #7AA8C4;
  --dusty-deep: #4F7A99;
  --blush: #E8C9B5;
  --gold: #C9A86A;
  --shadow-soft: 0 1px 2px rgba(31,42,46,0.04), 0 8px 24px rgba(31,42,46,0.06);
  --shadow-lift: 0 4px 16px rgba(31,42,46,0.08), 0 24px 48px rgba(31,42,46,0.12);
  --serif: "Newsreader", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Manrope", "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --hand: "Caveat", "Brush Script MT", cursive;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-decoration: none; transition: color .25s; }
a:hover { color: var(--ink); }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--teal); color: var(--paper); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--ink-soft); }

/* ========== TOP BANNER ========== */
.enrolling-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  height: 38px;
  background: rgba(31, 42, 46, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--paper);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  font-size: 0.84rem; letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .enrolling-banner { height: 56px; padding: 0.5rem var(--gutter); flex-wrap: wrap; gap: 0.5rem; font-size: 0.76rem; line-height: 1.3; }
}
.enrolling-banner .marker {
  width: 8px; height: 8px; background: var(--gold); border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(201,168,106,0.28);
  flex-shrink: 0;
}
.enrolling-banner strong { color: #B6E4DD; font-weight: 600; letter-spacing: 0.04em; }
.enrolling-banner em { font-family: var(--serif); font-style: italic; opacity: 0.85; }
.enrolling-banner .banner-link {
  font-weight: 600; color: #B6E4DD;
  border-bottom: 1px solid rgba(182,228,221,0.4);
  padding-bottom: 1px;
}
.enrolling-banner .banner-link:hover { color: #fff; border-bottom-color: #fff; }
@keyframes pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ========== NAVIGATION ========== */
nav.top {
  position: fixed; top: 38px; left: 0; right: 0; z-index: 100;
  padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 247, 238, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(31,42,46,0.06);
}
@media (max-width: 720px) { nav.top { top: 56px; } }
nav.top .brand { display: flex; align-items: center; gap: 0.65rem; }
nav.top .mark-breath { width: 36px; height: 36px; animation: breathe 5.5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
nav.top .wordmark { height: 26px; }
nav.top ul {
  display: flex; gap: 1.8rem; list-style: none; align-items: center;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
}
nav.top ul a { color: var(--ink); padding: 0.35rem 0; position: relative; }
nav.top ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--teal-deep); transform: scaleX(0);
  transform-origin: left; transition: transform .35s cubic-bezier(0.65,0,0.35,1);
}
nav.top ul a:hover::after { transform: scaleX(1); }
nav.top ul a.is-active { color: var(--teal-deep); font-weight: 600; }
nav.top .cta {
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.3rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: background .25s, transform .25s;
}
nav.top .cta::after { content: "→"; transition: transform .35s; }
nav.top .cta:hover { background: var(--teal-deep); color: var(--paper); }
nav.top .cta:hover::after { transform: translateX(4px); }
@media (max-width: 880px) { nav.top ul { display: none; } }

/* ========== JOURNAL LANDING ========== */
.journal-hero {
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(3rem, 5vw, 5rem);
  background: var(--paper);
  text-align: center;
}
.journal-hero h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "wght" 350;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 1.5rem auto 1rem;
  max-width: 18ch;
}
.journal-hero p {
  max-width: 56ch; margin: 0 auto;
  color: var(--ink-soft); font-size: 1.1rem;
}
.journal-list {
  background: var(--paper-deep);
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(5rem, 9vw, 8rem);
}
.journal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 720px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-card {
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid rgba(31,42,46,0.05);
  padding: 2rem 2.2rem 2.2rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform .45s cubic-bezier(0.2,0.8,0.2,1), box-shadow .45s;
  text-decoration: none; color: var(--ink);
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.journal-card .meta {
  display: flex; gap: 0.8rem; align-items: center;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-mute);
}
.journal-card .meta .tag {
  background: rgba(95,174,182,0.16); color: var(--teal-deep);
  padding: 0.25rem 0.55rem; border-radius: 999px; letter-spacing: 0.1em; font-size: 0.66rem;
}
.journal-card h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 460;
  font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.012em;
  margin: 0;
}
.journal-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.journal-card .read {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 0.4rem;
}
.journal-card .read::after { content: "→"; transition: transform .3s; }
.journal-card:hover .read::after { transform: translateX(4px); }

/* ========== ARTICLE PAGE ========== */
.article-shell { padding-top: clamp(7rem, 11vw, 9rem); padding-bottom: 0; background: var(--paper); }
.article {
  max-width: 720px; margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-soft); margin-bottom: 2rem;
}
.article-back:hover { color: var(--ink); }
.article-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--teal-deep);
  background: rgba(95,174,182,0.14);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.article-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "wght" 350;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.article-meta {
  display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--ink-mute);
  margin-bottom: 2.6rem;
}
.article-meta .author { color: var(--ink); font-weight: 600; }
.article-hero {
  margin: 0 calc(-1 * var(--gutter)) 3rem;
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}
@media (min-width: 880px) {
  .article-hero {
    margin: 0 0 3rem;
    width: 100%;
    border-radius: 12px;
  }
}

/* article body typography */
.article-body { font-family: var(--sans); font-size: 1.13rem; line-height: 1.78; color: var(--ink); }
.article-body > * + * { margin-top: 1.4rem; }
.article-body h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "wght" 460;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.2; letter-spacing: -0.014em;
  margin-top: 3rem; margin-bottom: 0.4rem;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 30, "wght" 480;
  font-size: 1.3rem; line-height: 1.3;
  margin-top: 2.2rem; margin-bottom: 0.4rem;
}
.article-body p { color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--teal-deep);
  border-bottom: 1px solid rgba(61,129,137,0.3);
  transition: border-color .25s, color .25s;
}
.article-body a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-top: 1.4rem;
}
.article-body li { margin-bottom: 0.7rem; line-height: 1.7; }
.article-body li::marker { color: var(--teal-deep); }
.article-body blockquote {
  border-left: 3px solid var(--teal-deep);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-style: italic;
  font-size: 1.25rem; line-height: 1.5;
  color: var(--ink-soft);
  margin: 2rem 0;
}
.article-body hr {
  border: none; height: 1px; background: rgba(31,42,46,0.12);
  margin: 3rem 0;
}

/* article FAQ */
.article-faq {
  max-width: 720px; margin: 4rem auto 0;
  padding: 3rem var(--gutter) 4rem;
  border-top: 1px solid rgba(31,42,46,0.1);
}
.article-faq h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "wght" 460;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 2rem;
  color: var(--ink);
}
.faq-item {
  background: var(--paper-deep);
  border: 1px solid rgba(31,42,46,0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.6rem;
  transition: background .35s, border-color .35s;
}
.faq-item:hover { background: var(--paper-deeper); }
.faq-item[open] { background: var(--paper); border-color: rgba(95,174,182,0.35); box-shadow: 0 6px 18px rgba(31,42,46,0.05); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.2rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 30, "wght" 460;
  font-size: 1.05rem; line-height: 1.3;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
  transition: background .35s, border-color .35s, transform .45s;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .35s;
}
.faq-toggle::before { width: 10px; height: 1.4px; }
.faq-toggle::after { width: 1.4px; height: 10px; }
.faq-item[open] .faq-toggle { background: var(--teal-deep); border-color: var(--teal-deep); transform: rotate(180deg); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: var(--paper); }
.faq-item[open] .faq-toggle::after { transform: scaleY(0); }
.faq-a { padding: 0 1.6rem 1.4rem; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }

/* citations */
.article-citations {
  max-width: 720px; margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
  font-size: 0.85rem; color: var(--ink-mute);
}
.article-citations h3 {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
  margin-bottom: 1rem;
}
.article-citations ul { list-style: none; padding: 0; }
.article-citations li { margin-bottom: 0.6rem; line-height: 1.6; }
.article-citations a { color: var(--teal-deep); border-bottom: 1px solid rgba(61,129,137,0.2); }

/* Article CTA strip before footer */
.article-cta {
  background: var(--ink); color: var(--paper);
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: center;
}
.article-cta h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 380;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -0.018em;
  max-width: 22ch; margin: 0 auto 1.2rem;
}
.article-cta p { color: rgba(251,247,238,0.78); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.article-cta .btn-primary {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--paper); color: var(--ink);
  padding: 1rem 1.7rem; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
  transition: transform .35s cubic-bezier(0.65,0,0.35,1);
}
.article-cta .btn-primary::after { content: "→"; transition: transform .35s; }
.article-cta .btn-primary:hover { transform: translateY(-1px); color: var(--ink); }
.article-cta .btn-primary:hover::after { transform: translateX(6px); }

/* ========== FOOTER ========== */
footer.site-footer { background: var(--ink); color: var(--paper); padding: 4rem 0 2.5rem; }
footer.site-footer .foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 880px) { footer.site-footer .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { footer.site-footer .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.foot-brand p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.4; max-width: 28ch; opacity: 0.8; }
footer.site-footer h4 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; opacity: 0.55; margin-bottom: 1.2rem; }
footer.site-footer ul { list-style: none; }
footer.site-footer li { margin-bottom: 0.7rem; font-size: 0.92rem; }
footer.site-footer a { color: var(--paper); opacity: 0.85; transition: opacity .25s; border-bottom: none; }
footer.site-footer a:hover { opacity: 1; color: var(--paper); }
.foot-meta {
  border-top: 1px solid rgba(251,247,238,0.12); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  font-size: 0.78rem; opacity: 0.55;
}
.foot-meta .badges { display: flex; gap: 1.5rem; flex-wrap: wrap; }
