/* ============================================================
   Holistic Consulting Journal — Ghost Theme Stylesheet
   ============================================================ */

/* ── Variables ── */
:root {
  --emerald: #2E7D32;
  --emerald-light: #4CAF50;
  --emerald-sage: #E8F5E9;
  --emerald-forest: #1B5E20;
  --charcoal: #2D3436;
  --slate: #636E72;
  --gold: #C9963B;
  --gold-light: #D4A84B;
  --offwhite: #FAFAFA;
  --warmgray: #F5F0EB;
  --bordergray: #DFE6E9;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

p { line-height: 1.7; color: var(--slate); }

a { text-decoration: none; color: inherit; }

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

/* ── Utilities ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

/* ── Noise Overlay ── */
.noise {
  position: relative;
}

.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* ── Gold accent underline ── */
.gold-line::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}

/* ── Focus Visible ── */
*:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll-triggered reveal */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn-spring {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-spring:hover { transform: translateY(-2px); }
.btn-spring:active { transform: translateY(0); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 150, 59, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 150, 59, 0.3);
  background: var(--gold-light);
}

.btn-gold:active { transform: translateY(0); }

.btn-gold:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--emerald);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
  background: var(--emerald-light);
}

.btn-emerald:active { transform: translateY(0); }

.btn-emerald-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 2.2rem;
  border: 1.5px solid var(--emerald);
  color: var(--emerald);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0.375rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-emerald-outline:hover {
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
}

.btn-emerald-outline:active { transform: translateY(0); }

/* ── Card hover ── */
.card-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(46,125,50,0.06);
}

/* ── Nav link underline ── */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after { width: 100%; }
.nav-link:hover { color: var(--emerald); }

/* ── Tag pill hover ── */
.tag-pill {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag-pill:hover { transform: translateY(-1px); }
.tag-pill:active { transform: translateY(0); }

/* ── Hero gradient ── */
.hero-gradient {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46,125,50,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,150,59,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(46,125,50,0.03) 0%, transparent 50%);
}

/* ── Featured image hover ── */
.featured-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-img-wrap:hover img {
  transform: scale(1.03);
}

/* ── Article card image hover ── */
.gh-card-image img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-card:hover .gh-card-image img {
  transform: scale(1.04);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb { background: var(--bordergray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Navigation ── */
.gh-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordergray);
}

.gh-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .gh-head-inner {
    height: 5rem;
    padding: 0 2rem;
  }
}

.gh-head-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gh-head-logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1;
}

@media (min-width: 1024px) {
  .gh-head-logo-text { font-size: 1.25rem; }
}

.gh-head-journal-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 0.75rem;
}

/* Desktop nav */
.gh-head-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .gh-head-menu { display: flex; }
}

.gh-head-menu .nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.gh-head-menu .nav li a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.gh-head-menu .nav li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gh-head-menu .nav li a:hover { color: var(--emerald); }
.gh-head-menu .nav li a:hover::after,
.gh-head-menu .nav li a:focus-visible::after { width: 100%; }
.gh-head-menu .nav li.nav-current a { color: var(--emerald); }
.gh-head-menu .nav li.nav-current a::after { width: 100%; }

/* CTA in nav */
.gh-head-actions {
  display: none;
}

@media (min-width: 1024px) {
  .gh-head-actions { display: flex; align-items: center; gap: 1rem; }
}

/* Mobile hamburger */
.gh-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
}

@media (min-width: 1024px) {
  .gh-burger { display: none; }
}

/* Mobile nav panel */
.gh-head-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.gh-head-mobile.open { display: flex; }

@media (min-width: 1024px) {
  .gh-head-mobile { display: none !important; }
}

.gh-head-mobile .nav {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.gh-head-mobile .nav li a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ── Hero Section (Journal Homepage) ── */
.gh-hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background: #FDFCF8;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46, 125, 50, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 150, 59, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(46, 125, 50, 0.03) 0%, transparent 50%),
    #FDFCF8;
}

@media (min-width: 1024px) {
  .gh-hero {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.gh-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .gh-hero-inner { padding: 0 2rem; }
}

.gh-hero-content {
  max-width: 48rem;
}

.gh-hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.gh-hero-label-line {
  width: 2rem;
  height: 2px;
  background: var(--gold);
}

.gh-hero-label-text {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gh-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 6vw, 5rem);
}

.gh-hero h1 em {
  color: var(--emerald);
  font-size: clamp(3.4rem, 6.5vw, 5.3rem);
}

.gh-hero-description {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.gh-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.gh-hero-subtext {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--slate);
  opacity: 0.8;
}

/* Compass watermark */
.gh-hero-watermark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.035;
  pointer-events: none;
  display: none;
}

@media (min-width: 1024px) {
  .gh-hero-watermark {
    display: block;
    right: 3rem;
  }
}

/* ── Featured Article ── */
.gh-featured {
  padding: 4rem 0 6rem;
  background: var(--white);
  border-bottom: 1px solid var(--bordergray);
}

@media (min-width: 1024px) {
  .gh-featured { padding: 6rem 0; }
}

.gh-featured-card {
  display: block;
  background: var(--warmgray);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(46,125,50,0.04);
  transition: box-shadow 0.3s ease;
}

.gh-featured-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(46,125,50,0.06);
}

.gh-featured-grid {
  display: grid;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .gh-featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gh-featured-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

@media (min-width: 1024px) {
  .gh-featured-image {
    aspect-ratio: auto;
  }
}

.gh-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-featured-card:hover .gh-featured-image img {
  transform: scale(1.03);
}

.gh-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,52,54,0.4), transparent);
}

.gh-featured-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,125,50,0.06);
  mix-blend-mode: multiply;
}

.gh-featured-image-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--emerald);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
}

.gh-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .gh-featured-content { padding: 3rem; }
}

.gh-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gh-featured-tag-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--emerald-sage);
  color: var(--emerald);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
}

.gh-featured-read-time {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--slate);
}

.gh-featured-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  transition: color 0.2s ease;
}

@media (min-width: 1024px) {
  .gh-featured-title { font-size: 2rem; }
}

.gh-featured-card:hover .gh-featured-title {
  color: var(--emerald);
}

.gh-featured-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.gh-featured-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gh-featured-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--bordergray);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-featured-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-featured-author-initials {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
}

.gh-featured-author-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.gh-featured-author-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--slate);
}

/* ── Topic Tags Strip ── */
.gh-topics {
  padding: 1.25rem 0;
  background: var(--white);
  border-top: 1px solid var(--bordergray);
  border-bottom: 1px solid var(--bordergray);
}

.gh-topics-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gh-topics-inner::-webkit-scrollbar { display: none; }

.gh-topics-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  flex-shrink: 0;
}

.gh-topics-inner a {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gh-topics-inner a:hover { transform: translateY(-1px); }
.gh-topics-inner a:active { transform: translateY(0); }

.gh-topics-inner a.active {
  background: var(--emerald);
  color: var(--white);
}

.gh-topics-inner a:not(.active) {
  background: var(--emerald-sage);
  color: var(--emerald);
}

.gh-topics-inner a:not(.active):hover {
  background: var(--emerald);
  color: var(--white);
}

/* ── Articles Grid Section (Homepage) ── */
.gh-articles-section {
  padding: 4rem 0 6rem;
  background: var(--offwhite);
  position: relative;
}

@media (min-width: 1024px) {
  .gh-articles-section { padding: 6rem 0; }
}

/* ── Newsletter Section ── */
.gh-subscribe {
  padding: 5rem 0 7rem;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.gh-subscribe-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.gh-subscribe-blob-1 {
  position: absolute;
  top: 0;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: var(--emerald);
  border-radius: 9999px;
  filter: blur(48px);
}

.gh-subscribe-blob-2 {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 18rem;
  height: 18rem;
  background: var(--gold);
  border-radius: 9999px;
  filter: blur(48px);
}

.gh-subscribe-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.gh-subscribe-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.gh-subscribe h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gh-subscribe h2 em {
  color: var(--emerald-light);
  font-weight: 400;
}

.gh-subscribe-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── Blog Post Feed (index.hbs) ── */
.gh-feed-header {
  text-align: center;
  padding: 7rem 0 3rem;
}

.gh-feed-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.gh-feed {
  display: grid;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

@media (min-width: 768px) {
  .gh-feed { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gh-feed { grid-template-columns: repeat(3, 1fr); padding: 0 2rem 4rem; }
}

/* ── Post Card ── */
.gh-card {
  display: block;
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--bordergray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.gh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(46,125,50,0.06);
}

.gh-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.gh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-card:hover .gh-card-image img {
  transform: scale(1.04);
}

.gh-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,52,54,0.3), transparent);
}

.gh-card-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,125,50,0.08);
  mix-blend-mode: multiply;
  z-index: 1;
}

.gh-card-content {
  padding: 1.5rem;
}

.gh-card-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--emerald-sage);
  color: var(--emerald);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gh-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.gh-card:hover .gh-card-title {
  color: var(--emerald);
}

.gh-card-title a {
  color: inherit;
}

.gh-card-excerpt {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.gh-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--slate);
}

.gh-card-author-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--warmgray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.gh-card-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-card-author-initials {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--emerald);
}

/* ── Single Post / Page ── */
.gh-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

@media (min-width: 1024px) {
  .gh-article { padding: 8rem 2rem 5rem; }
}

.gh-article-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gh-article-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.gh-article-excerpt {
  font-size: 1.25rem;
  color: var(--slate);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.gh-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--slate);
}

.gh-article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gh-article-author .gh-author-image {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
}

.gh-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--emerald-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-author-avatar span {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--emerald);
}

.gh-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.gh-article-image {
  margin: 0 0 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.gh-article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gh-article-image figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--slate);
  text-align: center;
  background: var(--offwhite);
}

/* Ghost editor content (gh-content) */
.gh-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.gh-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.gh-content h3 {
  font-size: 1.375rem;
  margin: 2rem 0 0.75rem;
}

.gh-content p {
  margin-bottom: 1.25rem;
}

.gh-content ul, .gh-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--slate);
}

.gh-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.gh-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--warmgray);
  border-radius: 0 0.375rem 0.375rem 0;
}

.gh-content blockquote p {
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 0;
}

.gh-content a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gh-content a:hover { color: var(--emerald-forest); }

.gh-content img {
  border-radius: 0.375rem;
  margin: 1.5rem 0;
}

.gh-content pre {
  background: var(--charcoal);
  color: #f8f8f2;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.gh-content code {
  background: var(--offwhite);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.gh-content pre code {
  background: none;
  padding: 0;
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--bordergray);
  margin: 2.5rem 0;
}

.gh-content figure {
  margin: 1.5rem 0;
}

.gh-content figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 0.5rem;
}

/* ── Article Footer / Tags ── */
.gh-article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bordergray);
}

.gh-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gh-article-tags a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--emerald-sage);
  color: var(--emerald);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-article-tags a:hover {
  background: var(--emerald);
  color: var(--white);
}

/* ── Related Posts ── */
.gh-read-more {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.gh-read-more-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

.gh-read-more .gh-feed {
  padding: 0;
}

/* ── Pagination ── */
.gh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem 5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.gh-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald);
  font-weight: 600;
  transition: color 0.2s ease;
}

.gh-pagination a:hover { color: var(--emerald-forest); }

/* ── Archive Header (Tag / Author pages) ── */
.gh-archive-header {
  text-align: center;
  padding: 7rem 1.5rem 3rem;
  background: var(--offwhite);
  border-bottom: 1px solid var(--bordergray);
}

.gh-archive-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.gh-archive-header p {
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
}

.gh-archive-header .gh-author-image-lg {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ── Footer ── */
.gh-foot {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0 4rem;
}

.gh-foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .gh-foot-inner { padding: 0 2rem; }
}

.gh-foot-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .gh-foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.gh-foot-brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.gh-foot-tagline {
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.gh-foot-description {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  max-width: 24rem;
}

.gh-foot h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.gh-foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gh-foot-links li {
  margin-bottom: 0.625rem;
}

.gh-foot-links li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}

.gh-foot-links li a:hover {
  color: var(--emerald-light);
}

.gh-foot-links li a.gh-foot-email {
  color: var(--emerald-light);
}

.gh-foot-links li a.gh-foot-email:hover {
  color: var(--emerald);
}

.gh-foot-links li a.gh-foot-subscribe {
  color: var(--gold);
}

.gh-foot-links li a.gh-foot-subscribe:hover {
  color: var(--gold-light);
}

.gh-foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gh-foot-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.gh-foot-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.gh-foot-legal {
  display: flex;
  gap: 1.5rem;
}

.gh-foot-legal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s ease;
}

.gh-foot-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── Error Page ── */
.gh-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 7rem 1.5rem;
}

.gh-error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--emerald-sage);
  line-height: 1;
  margin-bottom: 1rem;
}

.gh-error h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* ── Ghost Editor Card Styles (required by gscan) ── */

/* Width modifiers for editor cards */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 50vw);
}

@media (max-width: 1040px) {
  .kg-width-wide { width: 100%; margin: 1.5rem 0; }
}

/* Gallery card */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.kg-gallery-row:not(:first-of-type) {
  margin: 0.75rem 0 0;
}

.kg-gallery-image {
  flex: 1 1 0%;
  margin: 0 0.75rem 0 0;
}

.kg-gallery-image:last-of-type {
  margin-right: 0;
}

.kg-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.375rem;
}

/* Bookmark card */
.kg-bookmark-card {
  width: 100%;
  margin: 1.5rem 0;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 1px solid var(--bordergray);
  overflow: hidden;
  color: var(--charcoal);
}

.kg-bookmark-container:hover {
  border-color: var(--emerald);
}

.kg-bookmark-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-basis: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.25rem;
  overflow: hidden;
}

.kg-bookmark-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}

.kg-bookmark-description {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
  margin-top: 0.375rem;
  max-height: 3rem;
  overflow-y: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--slate);
  font-weight: 500;
}

.kg-bookmark-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.375rem;
}

.kg-bookmark-author {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.kg-bookmark-author::after {
  content: "\2022";
  margin: 0 0.375rem;
}

.kg-bookmark-publisher {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--emerald);
}

.kg-bookmark-thumbnail {
  position: relative;
  flex-grow: 1;
  min-width: 33%;
  max-height: 100%;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 640px) {
  .kg-bookmark-container {
    flex-direction: column;
  }

  .kg-bookmark-thumbnail {
    order: 1;
    min-height: 10rem;
    width: 100%;
  }

  .kg-bookmark-content {
    order: 2;
  }
}
