/*
Theme Name: Ainsley Bost
Theme URI: https://ainsleybost.com
Author: Dylan Bost
Description: Custom theme for ainsleybost.com. A mentor for teens and a nanny. Static PHP templates, ACF-shaped for a v2 retrofit. Design tokens from Brand Bible v1.2.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: ainsleybost
*/

/* ==========================================================================
   Design tokens. The only place a color value may appear.
   Source: Ainsley-Bost-Brand-Bible-v1.2.html and homepage-v1.html.
   ========================================================================== */

:root {
  /* Palette */
  --forest:       #2D4A3E;  /* Primary. ALL CTAs. Headings. */
  --forest-deep:  #1F3529;  /* Hover, depth */
  --navy:         #16243D;  /* Body text ink */
  --crystal:      #B5D0DC;  /* Secondary, calm panels */
  --crystal-soft: #DAE7ED;  /* Softer panels */
  --cream:        #F5EDE0;  /* Warm section background */
  --cream-deep:   #EBE1CF;
  --paper:        #FBF7EE;  /* Standard page background */
  --line:         #C7BFAE;  /* Hairline dividers */
  --muted:        #6B7264;  /* Secondary text */
  --honey:        #C8A24A;  /* MICRO ACCENT ONLY. Never a background. Never a CTA. */

  /* Alpha variants used by the homepage design */
  --header-bg:      rgba(251, 247, 238, 0.93);  /* paper at 93%, sticky header */
  --ghost-ink:      rgba(45, 74, 62, 0.06);     /* forest at 6%, ghost numerals */
  --forest-overlay: rgba(45, 74, 62, 0.82);     /* forest at 82%, quote image overlay */
  --mark-stroke:    rgba(45, 74, 62, 0.22);     /* forest at 22%, botanical marks on light */
  --mark-stroke-inverse: rgba(245, 237, 224, 0.3); /* cream at 30%, botanical marks on forest */

  /* Type */
  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Manrope", system-ui, sans-serif;

  /* Rhythm */
  --gutter:      2rem;
  --section-y:   6rem;
  --content-max: 1100px;
  --reading-max: 640px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--forest); }
a:hover { color: var(--forest-deep); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes ab-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes ab-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ab-img {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  [data-ghost] { display: none !important; }
}

@media (max-width: 899px) {
  [data-stagger] { margin-top: 0 !important; }
  [data-overlap] { margin-top: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-img] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Hover treatments (shared across sections)
   ========================================================================== */

.hv1:hover, .hv1:focus-visible { color: var(--forest) !important; }
.hv2:hover, .hv2:focus-visible { background: var(--forest-deep) !important; gap: 1.05rem !important; }
.hv3:hover, .hv3:focus-visible { color: var(--forest) !important; border-color: var(--forest) !important; gap: 0.75rem !important; }
.hv4:hover, .hv4:focus-visible { border-color: var(--forest) !important; gap: 0.75rem !important; }
.hv5:hover, .hv5:focus-visible { gap: 0.75rem !important; }
.hv6:hover, .hv6:focus-visible { background: var(--cream-deep) !important; gap: 1.05rem !important; }
.hv7:hover, .hv7:focus-visible { border-color: var(--forest) !important; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-logo__surname { font-style: italic; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.15rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  transition: color 300ms ease-out;
}

/* ==========================================================================
   Sections: shared pieces
   ========================================================================== */

.ghost-numeral {
  position: absolute;
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 1;
  color: var(--ghost-ink);
  pointer-events: none;
  z-index: 0;
}

.botanical-mark { stroke: var(--mark-stroke); }

.arch {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--cream-deep);
}

.caption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.caption__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--honey);
  display: block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  padding: 1.05rem 1.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  min-height: 48px;
  transition: background 350ms ease-out, gap 350ms ease-out;
}

.btn-primary:hover { color: var(--cream); }

.btn-primary__arrow {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.botanical-mark--inverse { stroke: var(--mark-stroke-inverse); }

.mark-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--line);
  margin: 1.1rem 0;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__ghost {
  top: -3.5rem;
  left: -1rem;
  font-style: italic;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  min-height: 92vh;
}

.hero__copy {
  flex: 1 1 400px;
  min-width: min(100%, 320px);
  max-width: 520px;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.hero__mark-block { margin-bottom: 2.25rem; }

.hero__rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--line);
  margin: 1.1rem 0;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0;
}

.hero__title-surname {
  font-style: italic;
  color: var(--forest-deep);
}

.hero__subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  color: var(--navy);
  max-width: 20ch;
  margin: 2rem 0 0;
}

.hero__body {
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 1.75rem 0 0;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 300ms ease-out, border-color 300ms ease-out, gap 300ms ease-out;
}

.hero__figure-col {
  flex: 1 1 420px;
  min-width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: clamp(-2rem, -4vw, 0rem);
}

.hero__figure {
  margin: 0;
  width: 100%;
  max-width: 520px;
}

.hero__img {
  width: 100%;
  height: clamp(440px, 78vh, 820px);
  object-fit: cover;
  object-position: 50% 34%;
  display: block;
}

/* ==========================================================================
   Marquee texture band
   ========================================================================== */

.marquee {
  background: var(--crystal-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: ab-marquee 52s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--forest);
  white-space: nowrap;
  opacity: 0.85;
}

.marquee__track span { padding-right: 3rem; }

/* ==========================================================================
   Section 2: Positioning quote
   ========================================================================== */

.quote {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--forest);
}

.quote__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote__overlay {
  position: absolute;
  inset: 0;
  background: var(--forest-overlay);
}

.quote__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 6rem) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.quote__mark-end { transform: rotate(180deg); }

.quote__blockquote {
  margin: 0;
  max-width: min(34ch, 85vw);
}

.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.4;
  color: var(--cream);
  margin: 0;
  text-wrap: pretty;
}

/* ==========================================================================
   Section 3: Two tracks
   ========================================================================== */

.tracks {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.tracks__ghost {
  top: -3rem;
  right: -0.5rem;
  font-style: italic;
}

.tracks__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}

.tracks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.track {
  display: flex;
  flex-direction: column;
}

.track--stagger { margin-top: 3.5rem; }

.track__media--arch {
  background: var(--crystal-soft);
  height: 420px;
}

.track__media--flat {
  background: var(--cream-deep);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.track__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.track__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 2rem 0 1rem;
}

.track__body {
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 1.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  transition: border-color 300ms ease-out, gap 300ms ease-out;
}

.track .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Section 4: A short about
   ========================================================================== */

.about {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow: visible;
}

.about__ghost {
  top: -3rem;
  left: -1rem;
  font-style: italic;
}

.about__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: flex-start;
}

.about__copy {
  flex: 1 1 380px;
  min-width: min(100%, 300px);
  max-width: var(--reading-max);
}

.about__opener { margin-bottom: 2rem; }

.about__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
}

.about__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 1.75rem;
}

.about__para {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 1.4rem;
}

.about__para--last { margin-bottom: 2rem; }

.about__figure-col {
  flex: 1 1 320px;
  min-width: min(100%, 260px);
  margin-top: -7rem;
  position: relative;
}

.about__frame {
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 1px solid var(--line);
  z-index: 0;
}

.about__media {
  position: relative;
  z-index: 1;
  background: var(--crystal-soft);
  height: clamp(400px, 60vh, 580px);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Section 5: Journal preview
   ========================================================================== */

.journal {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.journal__ghost {
  top: -3rem;
  right: -0.5rem;
  font-style: italic;
}

.journal__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) clamp(5rem, 9vw, 7rem);
}

.journal__opener { margin-bottom: 2.75rem; }

.journal__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.journal__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--forest);
  margin: 0;
}

.journal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}

.journal-card {
  display: flex;
  flex-direction: column;
}

.journal-card--1 { padding: 0 clamp(1.25rem, 3vw, 2.25rem) 0 0; }

.journal-card--2 {
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.journal-card--3 { padding: 0 0 0 clamp(1.25rem, 3vw, 2.25rem); }

.journal-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--crystal-soft);
  overflow: hidden;
}

.journal-card__media--alt { background: var(--cream-deep); }

.journal-card__img,
.journal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-card__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin: 1.5rem 0 0.35rem;
}

.journal-card__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.journal-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 0.75rem;
}

.journal-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.journal-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

.journal__readall-row {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.journal__readall {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  transition: gap 300ms ease-out;
}

/* ==========================================================================
   Section 6: Closing CTA
   ========================================================================== */

.cta {
  position: relative;
  background: var(--forest);
  color: var(--cream);
  border-top-left-radius: 50% 56px;
  border-top-right-radius: 50% 56px;
  margin-top: -1px;
  overflow: hidden;
}

.cta__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 8.5rem) var(--gutter) clamp(4rem, 9vw, 6.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.cta__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--cream);
  margin: 0;
}

.cta__body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--crystal-soft);
  margin: 0;
  max-width: 40ch;
}

.btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  color: var(--forest);
  text-decoration: none;
  padding: 1.05rem 1.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  min-height: 48px;
  margin-top: 0.5rem;
  transition: background 350ms ease-out, gap 350ms ease-out;
}

.btn-cream:hover { color: var(--forest); }

/* ==========================================================================
   Journal archive (/journal/)
   ========================================================================== */

.journal-archive {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.journal-archive__ghost {
  top: -3rem;
  right: -0.5rem;
  font-style: italic;
}

.journal-archive__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) clamp(5rem, 9vw, 7rem);
}

.journal-archive__opener { margin-bottom: 2.75rem; }

.journal-archive__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.journal-archive__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 1rem;
}

.journal-archive__intro {
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.journal-archive__grid {
  columns: 1;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 640px) {
  .journal-archive__grid { columns: 2; }
}

@media (min-width: 1024px) {
  .journal-archive__grid { columns: 3; }
}

.archive-card {
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.archive-card__media {
  width: 100%;
  background: var(--crystal-soft);
  overflow: hidden;
}

.archive-card__media--alt { background: var(--cream-deep); }

.archive-card__media--r1 { aspect-ratio: 4 / 3; }
.archive-card__media--r2 { aspect-ratio: 3 / 4; }
.archive-card__media--r3 { aspect-ratio: 1 / 1; }

.archive-card__media a { display: block; height: 100%; }

.archive-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-card__title-link {
  color: var(--forest);
  text-decoration: none;
}

.archive-card__title-link:hover { color: var(--forest-deep); }

.journal-archive__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.journal-archive__empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Journal single post
   ========================================================================== */

.post {
  background: var(--paper);
}

.post__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}

.post__header { max-width: var(--reading-max); }

.post__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0.75rem 0 2rem;
}

.post__featured {
  margin: 0 0 2.5rem;
  max-width: var(--reading-max);
}

.post__featured-img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  max-width: var(--reading-max);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
}

.post-body p { margin: 0 0 1.4rem; }

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--forest);
  margin: 2.5rem 0 1rem;
}

.post-body h2 { font-size: 1.9rem; }
.post-body h3 { font-size: 1.5rem; }
.post-body h4 { font-size: 1.2rem; }

.post-body ul,
.post-body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
}

.post-body li { margin-bottom: 0.55rem; }

.post-body blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--forest);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--navy);
}

.post-body blockquote p { margin: 0; }

.post-body a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: var(--reading-max);
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.author-box__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  flex: none;
}

.author-box__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--forest);
  margin: 0 0 0.2rem;
}

.author-box__line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.related { margin-top: clamp(3.5rem, 6vw, 5rem); }

.related__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--forest);
  margin: 0 0 2rem;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-card .journal-card__media { margin-bottom: 1.25rem; }

.related-card__date { margin-bottom: 0.6rem; }

.related-card .journal-card__title { margin-bottom: 1rem; }

.related-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Inner page patterns (Teen Mentorship, Nanny, About)
   ========================================================================== */

/* Forest per Brand Bible section 9; also keeps AA contrast on cream,
   where muted lands at 4.29:1. */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--forest);
  margin: 0;
}

.reading { max-width: var(--reading-max); }

.reading p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 1.4rem;
}

.reading p:last-child { margin-bottom: 0; }

.page-hero {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero__ghost {
  top: -3.5rem;
  left: -1rem;
  font-style: italic;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  min-height: 72vh;
}

.page-hero__copy {
  flex: 1 1 400px;
  min-width: min(100%, 320px);
  max-width: 560px;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.page-hero__opener { margin-bottom: 2rem; }

.page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0;
}

.page-hero__subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  color: var(--navy);
  max-width: 30ch;
  margin: 1.75rem 0 0;
}

.page-hero__body {
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 1.5rem 0 0;
}

.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.page-hero__figure-col {
  flex: 1 1 380px;
  min-width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.page-hero__figure {
  margin: 0;
  width: 100%;
  max-width: 480px;
}

.page-hero__img {
  width: 100%;
  height: clamp(400px, 62vh, 680px);
  object-fit: cover;
  display: block;
}

.section-std {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.section-std--cream { background: var(--cream); }

.section-std__ghost--left {
  top: -3rem;
  left: -1rem;
  font-style: italic;
}

.section-std__ghost--right {
  top: -3rem;
  right: -0.5rem;
  font-style: italic;
}

.section-std__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}

.section-std__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 1.75rem;
}

.feature-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.5rem;
  height: 1px;
  background: var(--forest);
}

.feature-list strong {
  font-weight: 700;
  color: var(--navy);
}

.callout-quiet {
  background: var(--crystal-soft);
  border-left: 3px solid var(--navy);
  padding: 1.5rem 2rem;
  margin: 2rem 0 0;
  max-width: var(--reading-max);
}

.callout-quiet p { margin: 0; }

.details-grid {
  margin: 0;
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.details-grid__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.details-grid__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 0.2rem;
}

.details-grid__value {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
}

@media (max-width: 639px) {
  .details-grid__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.two-col-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.two-col-cards__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--forest-deep);
  margin: 0 0 1rem;
}

.two-col-cards__col p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 1.4rem;
  max-width: 44ch;
}

.two-col-cards__col p:last-child { margin-bottom: 0; }

.faq {
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--forest);
}

.faq__indicator {
  flex: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 300ms ease-out;
}

.faq__item[open] .faq__indicator { transform: rotate(45deg); }

.faq__q:hover .faq__q-text { color: var(--forest-deep); }

.faq__a {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  max-width: 60ch;
  margin: 0;
  padding: 0 0 1.5rem;
}

/* Split image-text section. Source order is copy then media, so narrow
   viewports stack text-then-image; desktop modifiers set the side. */

.split-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.split-section__copy {
  flex: 1 1 400px;
  min-width: min(100%, 300px);
  max-width: var(--reading-max);
}

.split-section__media {
  flex: 1 1 340px;
  min-width: min(100%, 280px);
}

@media (min-width: 900px) {
  .split-section--img-left .split-section__media { order: -1; }
}

.placeholder-block {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  background: var(--crystal-soft);
}

.placeholder-block--deep { background: var(--cream-deep); }

.placeholder-block--tall { height: clamp(420px, 56vh, 580px); }

.placeholder-block--43 { aspect-ratio: 4 / 3; }

.placeholder-block--34 { aspect-ratio: 3 / 4; }

.placeholder-block__label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 26ch;
}

/* About page additions */

.page-hero__img--grand { height: clamp(460px, 80vh, 860px); }

.split-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 2.5rem;
}

.section-std__inner--roomy {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.belief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--reading-max);
  border-top: 1px solid var(--line);
}

.belief-list li {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--navy);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
  text-decoration: none;
  padding: 1.05rem 1.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  min-height: 48px;
  transition: border-color 300ms ease-out, color 300ms ease-out;
}

.btn-secondary:hover { color: var(--forest-deep); }

.closing-soft__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.closing-soft__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--forest);
  margin: 0;
}

.closing-soft__body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0;
  max-width: 44ch;
}

.closing-soft__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* Photo strip: three to five images in a horizontal band. Scrolls
   inside itself on narrow viewports; the page never overflows. */

.photo-strip-section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.photo-strip {
  --strip-h: clamp(240px, 36vh, 360px);
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.photo-strip__item {
  flex: none;
  height: var(--strip-h);
  overflow: hidden;
}

.photo-strip__item--r34 { aspect-ratio: 3 / 4; }
.photo-strip__item--r45 { aspect-ratio: 4 / 5; }
.photo-strip__item--r11 { aspect-ratio: 1 / 1; }
.photo-strip__item--r43 { aspect-ratio: 4 / 3; }

.photo-strip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.breather {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.breather__img {
  width: 100%;
  height: clamp(300px, 48vh, 520px);
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}

/* ==========================================================================
   Generic page
   ========================================================================== */

.page-plain {
  background: var(--paper);
}

.page-plain__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}

.page-plain__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 1.75rem;
}

.page-plain__content {
  max-width: var(--reading-max);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
}

.page-plain__content p { margin: 0 0 1.4rem; }

.page-plain__content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 1rem;
}

.page-plain__content ul {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
}

.page-plain__content li { margin-bottom: 0.55rem; }

.page-plain__content strong {
  font-weight: 700;
  color: var(--navy);
}

.page-plain__content hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

.page-plain__content .privacy-updated {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-page {
  background: var(--paper);
}

.contact-page__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}

.contact-page__opener { margin-bottom: 2rem; }

.contact-page__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
}

.contact-page__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 1rem;
}

.contact-page__intro {
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 2.5rem;
}

.contact-page__form { max-width: var(--reading-max); }

.contact-page__response {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact Form 7 fields, styled to the brand */

.wpcf7 label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.45rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.85rem 1rem;
}

.wpcf7 textarea { min-height: 10rem; resize: vertical; }

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  border-color: var(--forest);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  background: var(--forest);
  color: var(--cream);
  border: none;
  cursor: pointer;
  padding: 1.05rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  min-height: 48px;
  transition: background 350ms ease-out;
}

.wpcf7 input[type="submit"]:hover { background: var(--forest-deep); }

.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--forest-deep);
  margin-top: 0.35rem;
}

.wpcf7 .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  background: var(--cream);
  font-size: 0.95rem;
  color: var(--navy);
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--forest);
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--cream);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem var(--gutter) 2rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out, visibility 0s linear 300ms;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--forest);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.mobile-menu__link:hover { color: var(--forest-deep); }

.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 40ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 160ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 200ms; }

.mobile-menu__mark {
  stroke: var(--mark-stroke);
  flex: none;
  margin-top: 2rem;
}

@media (max-width: 899px) {
  .site-header__inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav { display: none; }

  .menu-toggle { display: inline-flex; }

  .mobile-menu { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__bar,
  .mobile-menu,
  .mobile-menu__link {
    transition: none !important;
  }
}

body.menu-open { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.site-footer__mark {
  flex: none;
  margin-top: 0.4rem;
  stroke: var(--mark-stroke);
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--forest);
  margin: 0 0 0.4rem;
}

.site-footer__name span { font-style: italic; }

.site-footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  max-width: 30ch;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer__links .site-footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
  padding-bottom: 3px;
  transition: border-color 300ms ease-out, color 300ms ease-out;
}

.site-footer__links .site-footer__instagram:hover { color: var(--forest-deep); }

.social-icon {
  stroke: var(--forest);
  flex: none;
  transition: stroke 300ms ease-out;
}

.site-footer__instagram:hover .social-icon { stroke: var(--forest-deep); }

.site-footer__links .site-footer__privacy {
  color: var(--muted);
  text-decoration: none;
  transition: color 300ms ease-out;
}
