/* =============================================
   Jeremy Ross Ghost Theme
   Design: Refined minimalism, engineering precision
   Palette: Navy / White / Amber
   Fonts: Instrument Serif (display) + DM Sans (body)
   ============================================= */

/* ----- Variables ----- */
:root {
  --navy: #0D2137;
  --navy-light: #132d4a;
  --navy-mid: #1a3a5c;
  --white: #ffffff;
  --off-white: #F7F9FB;
  --warm-gray: #F3F1EF;
  --amber: #D4B478;
  --amber-bright: #E2C48A;
  --amber-dark: #B8943C;
  --text: #1B2631;
  --text-secondary: #566573;
  --text-light: #8395A7;
  --border: #DDE1E6;
  --border-light: #ECF0F1;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --narrow-width: 720px;
  --nav-height: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }

/* ----- Layout helpers ----- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}
.section-narrow {
  max-width: var(--narrow-width);
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}
.section-header {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 20px;
  color: var(--navy);
}
.section-sub {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--amber-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,180,120,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}
.btn-lg {
  font-size: 17px;
  padding: 18px 40px;
}


/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(13, 33, 55, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  white-space: nowrap;
  font-weight: 400;
}
.nav-logo strong {
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy) !important;
  background: var(--amber);
  padding: 10px 22px;
  border-radius: 5px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--amber-bright);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px clamp(24px, 4vw, 48px) 24px;
  background: rgba(13, 33, 55, 0.98);
}
.nav-mobile a {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile .nav-cta {
  margin-top: 12px;
  text-align: center;
}
.nav-open .nav-mobile {
  display: flex;
}

@media (max-width: 900px) {
  .nav-links, .nav-inner > .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}


/* =============================================
   SECTION 1: HERO
   ============================================= */
.hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 60px) 0 var(--section-pad);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
}

/* Metric bar */
.metric-bar {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.metric {
  flex: 1;
  min-width: 160px;
}
.metric-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.metric-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.hero .btn-primary {
  margin-bottom: 16px;
}
.hero-trust {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  max-width: 480px;
}

/* Hero diagram */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-diagram {
  width: 100%;
  max-width: 340px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding-bottom: 80px; }
}


/* =============================================
   SECTION 2: THE PROBLEM
   ============================================= */
.problem {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.problem .section-header {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 40px;
}
.problem-copy p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.problem-emphasis {
  font-family: var(--font-display);
  font-size: 26px !important;
  color: var(--navy) !important;
  font-style: italic;
  margin: 32px 0 !important;
}
.problem-closer {
  font-family: var(--font-display);
  font-size: 22px !important;
  color: var(--navy) !important;
  margin-top: 32px !important;
}


/* =============================================
   SECTION 3: THE SIGNAL ARCHITECTURE
   ============================================= */
.method {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.method-header {
  text-align: center;
  margin-bottom: 48px;
}
.method-intro {
  margin-bottom: 56px;
}
.method-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.method-closer {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  margin-top: 56px;
  text-align: center;
}

/* Phases accordion */
.phases {
  max-width: 800px;
  margin: 0 auto 48px;
}
.phase {
  border-bottom: 1px solid var(--border);
}
.phase:first-child {
  border-top: 1px solid var(--border);
}
.phase-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.phase-header:hover {
  color: var(--amber-dark);
}
.phase-num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-dark);
  letter-spacing: 0.05em;
  min-width: 28px;
}
.phase-title {
  font-family: var(--font-display);
  font-size: 24px;
  flex: 1;
}
.phase-toggle {
  font-size: 22px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1;
  min-width: 24px;
  text-align: center;
}
.phase-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 0 0 48px;
}
.phase-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.phase-open .phase-body {
  max-height: 300px;
  padding: 0 0 24px 48px;
}
.phase-open .phase-header {
  color: var(--navy);
}

/* Signal categories grid */
.signal-categories {
  margin-top: 56px;
}
.categories-title {
  font-family: var(--font-display);
  font-size: 24px;
  text-align: center;
  margin-bottom: 36px;
  color: var(--navy);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.category:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.category-icon {
  width: 28px;
  height: 28px;
  color: var(--amber-dark);
  margin-bottom: 16px;
}
.category-icon svg {
  width: 100%;
  height: 100%;
}
.category h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.category p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
}


/* =============================================
   SECTION 4: RESULTS
   ============================================= */
.results {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.results .section-header {
  margin-bottom: 56px;
}
.case-studies {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case-study {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.case-study:first-child {
  border-top: 1px solid var(--border-light);
}
.case-metric {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--amber-dark);
  line-height: 1.2;
  padding-top: 4px;
}
.case-body h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.case-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .case-study {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* =============================================
   SECTION 5: HOW WE WORK
   ============================================= */
.process {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.process .section-header {
  margin-bottom: 56px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}
.step {
  position: relative;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.process-note {
  background: var(--white);
  border-left: 3px solid var(--amber);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
}
.process-note p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
}


/* =============================================
   SECTION 6: SIGNAL DIAGNOSTIC
   ============================================= */
.diagnostic {
  padding: var(--section-pad) 0;
  background: var(--navy);
  text-align: center;
}
.diagnostic-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--white);
  margin-bottom: 24px;
}
.diagnostic-body {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.diagnostic-booking {
  margin: 40px 0 24px;
}
.diagnostic-alt {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
}
.diagnostic-alt a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.diagnostic-alt a:hover {
  color: var(--white);
}


/* =============================================
   SECTION 7: ABOUT
   ============================================= */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.about-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  border: 1px dashed var(--border);
}
.about-copy p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-copy a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-copy a:hover {
  color: var(--navy);
}
.about-personal {
  font-style: italic;
  color: var(--text-light) !important;
  margin-top: 24px !important;
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-photo-placeholder {
    max-width: 300px;
    aspect-ratio: 1;
  }
}


/* =============================================
   SECTION 8: NEWSLETTER
   ============================================= */
.newsletter {
  padding: var(--section-pad) 0;
  background: var(--warm-gray);
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--navy);
  margin-bottom: 16px;
}
.newsletter-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.newsletter > .section-inner > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Subscribe form */
.newsletter-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  max-width: 480px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
}
.newsletter-form .btn {
  white-space: nowrap;
}
.newsletter-note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 48px;
}
.newsletter-notice {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Featured issues */
.featured-issues h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}
.featured-issue {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: padding-left 0.25s;
}
.featured-issue:first-of-type {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.featured-issue:hover {
  padding-left: 8px;
}
.featured-issue h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 6px;
}
.featured-issue p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.issue-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-dark);
}


/* =============================================
   SECTION 9: APPRENTICESHIP
   ============================================= */
.apprenticeship {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.apprenticeship-header {
  margin-bottom: 48px;
}
.apprenticeship-header p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 48px;
}
.track {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 36px 32px;
  transition: border-color 0.25s;
}
.track:hover {
  border-color: var(--amber);
}
.track h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.track p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.apprenticeship-cta {
  text-align: center;
}
.apprenticeship-cta a {
  color: var(--amber-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .tracks { grid-template-columns: 1fr; }
}


/* =============================================
   SECTION 10: DATAGEN
   ============================================= */
.datagen {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.datagen p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.datagen .btn {
  margin-top: 12px;
}


/* =============================================
   SECTION 11: COLLABORATE
   ============================================= */
.collaborate {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}
.collaborate-header {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  margin-bottom: 24px;
}
.collaborate p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.collaborate-contact {
  margin-top: 32px !important;
}
.collaborate-contact a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.collaborate-contact a:hover {
  color: var(--navy);
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  padding: 64px 0 48px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--white);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-title {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact a, .footer-contact p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer-contact a:hover {
  color: var(--white);
}
.footer-contact p {
  margin-top: 0;
}
.footer-spine {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 48px);
  padding-right: clamp(24px, 4vw, 48px);
}
.footer-spine p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}


/* =============================================
   POST / PAGE TEMPLATES
   ============================================= */
.post-article, .page-article {
  padding-bottom: 80px;
}
.post-header {
  background: var(--navy);
  padding: calc(var(--nav-height) + 48px) 0 56px;
  text-align: center;
}
.post-header-inner {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}
.post-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--white);
  margin-bottom: 16px;
}
.post-excerpt {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.post-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  display: flex;
  gap: 16px;
  justify-content: center;
}
.post-feature-image {
  max-width: 900px;
  margin: -32px auto 48px;
  padding: 0 clamp(24px, 4vw, 48px);
}
.post-feature-image img {
  border-radius: 8px;
}
.post-feature-image figcaption {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* Post content (Ghost editor output) */
.post-content {
  padding: 48px clamp(24px, 4vw, 48px);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-size: 30px;
  margin: 48px 0 16px;
  color: var(--navy);
}
.post-content h3 {
  font-size: 24px;
  margin: 36px 0 12px;
  color: var(--navy);
}
.post-content p {
  margin-bottom: 24px;
}
.post-content a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content ul, .post-content ol {
  margin: 0 0 24px 24px;
}
.post-content li {
  margin-bottom: 8px;
}
.post-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.post-content code {
  font-size: 0.9em;
  background: var(--off-white);
  padding: 2px 6px;
  border-radius: 3px;
}
.post-content pre {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 32px 0;
}
.post-content pre code {
  background: none;
  padding: 0;
}
.post-content img {
  border-radius: 8px;
  margin: 32px auto;
}
.post-content hr {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: 48px 0;
}

/* Post footer */
.post-footer {
  padding: 0 clamp(24px, 4vw, 48px);
}
.post-subscribe {
  background: var(--off-white);
  border-radius: 8px;
  padding: 40px 36px;
  margin: 48px 0;
  text-align: center;
}
.post-subscribe h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 20px;
}
.post-subscribe .newsletter-form {
  margin: 0 auto;
  justify-content: center;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 45%;
}
.post-nav-next {
  text-align: right;
  margin-left: auto;
}
.post-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.03em;
}
.post-nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
}
.post-nav-link:hover .post-nav-title {
  color: var(--amber-dark);
}


/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ghost native form states */
[data-members-form] .message-success,
[data-members-form] .message-error {
  font-size: 14px;
  margin-top: 8px;
}
[data-members-form].success .message-success {
  color: #27ae60;
}
[data-members-form].error .message-error {
  color: #e74c3c;
}


/* =============================================
   GHOST BUILT-IN CLASSES
   ============================================= */
.kg-width-wide {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.kg-width-full {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.kg-width-full img {
  border-radius: 0;
}
.kg-image-card, .kg-gallery-card {
  margin: 32px 0;
}
.kg-image-card figcaption,
.kg-gallery-card figcaption {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}
.kg-bookmark-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 32px 0;
}
.kg-bookmark-container {
  display: flex;
  text-decoration: none;
}
.kg-bookmark-content {
  flex: 1;
  padding: 20px;
}
.kg-bookmark-title {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.kg-bookmark-description {
  font-size: 14px;
  color: var(--text-secondary);
}
.kg-bookmark-thumbnail {
  width: 180px;
}
.kg-bookmark-thumbnail img {
  height: 100%;
  object-fit: cover;
  border-radius: 0 8px 8px 0;
}


/* =============================================
   POST FEED (tag, author archives)
   ============================================= */
.post-feed {
  padding: 48px 0 80px;
}
.post-card {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding-left 0.25s;
}
.post-card:first-child {
  border-top: 1px solid var(--border-light);
}
.post-card:hover {
  padding-left: 8px;
}
.post-card time {
  font-size: 13px;
  color: var(--text-light);
  display: block;
  margin-bottom: 6px;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
}
.post-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
  font-size: 14px;
  color: var(--text-light);
}
.pagination a {
  font-weight: 600;
  color: var(--amber-dark);
}
.pagination a:hover {
  color: var(--navy);
}

/* Newsletter archive header form */
.newsletter-form-header {
  margin-top: 24px;
  justify-content: center;
}
.newsletter-form-header input[type="email"] {
  flex: 0 1 300px;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.newsletter-form-header input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}
.newsletter-form-header input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255,255,255,0.12);
}
