/* =============================================
   BEYOND THE GANGWAY — Custom Ghost Theme
   Design: Navy/Gold brand, Cream article pages
   ============================================= */

:root {
  --deep: #07111a;
  --navy: #0c1c29;
  --gold: #c4a25a;
  --gold2: #e8c97a;
  --cream: #f5f0e8;
  --cream2: #ede6d6;
  --text: #1a1410;
  --mid: #3d3328;
  --light: #6b5f52;
  --white: #fdfaf6;
  --fog: #8fa4b0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: 'Josefin Sans', sans-serif; font-weight: 300; overflow-x: hidden; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--deep);
  padding: 0.85rem 2.2rem;
  font-family: 'Josefin Sans', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-block; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--deep);
  padding: 0.85rem 2.2rem; border: 1px solid var(--gold);
  font-family: 'Josefin Sans', sans-serif; font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-block; transition: all 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--deep); }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 17, 26, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 162, 90, 0.12);
}
.site-nav {
  max-width: 1200px; margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.site-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  color: var(--white); letter-spacing: 0.04em;
}
.site-logo span { color: var(--gold); }
.nav-links { display: flex; flex-direction: row; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.55); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-subscribe {
  background: transparent; color: var(--gold);
  border: 1px solid rgba(196,162,90,0.4);
  padding: 0.45rem 1.1rem; font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase; transition: all 0.3s;
}
.nav-subscribe:hover { background: var(--gold); color: var(--deep); }

/* ── HOME HERO ── */
.home-hero {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 8rem 2rem 3rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #07111a 0%, #0c1c29 50%, #07111a 100%);
}
.hero-glow {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 100%; height: 50%;
  background: radial-gradient(ellipse, rgba(196,162,90,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-eyebrow {
  font-size: 0.62rem; letter-spacing: 0.32em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1.8rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.8rem, 10vw, 7.5rem);
  font-weight: 300; line-height: 0.92; color: var(--white); margin-bottom: 0.15em;
}
.hero-title em { font-style: italic; color: var(--gold2); display: block; }
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-style: italic; color: rgba(255,255,255,0.55);
  margin: 1.8rem 0 2.5rem; line-height: 1.7; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; color: rgba(196,162,90,0.5);
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── PHILOSOPHY STRIP ── */
.philosophy-strip {
  background: var(--gold); padding: 1.3rem 2rem; text-align: center;
}
.philosophy-strip p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-style: italic; color: var(--deep); max-width: 900px; margin: 0 auto;
}
.philosophy-strip p em { font-style: normal; font-weight: 600; }

/* ── POSTS SECTION ── */
.posts-section { padding: 5rem 2.5rem; background: var(--cream); }
.posts-container { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-label {
  font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.7rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--text);
}
.section-title em { font-style: italic; color: #8a6a2a; }

.posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
}
.post-card { background: var(--white); overflow: hidden; position: relative; }
.post-card-link { display: block; text-decoration: none; color: inherit; }
.post-card-image {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image { transform: scale(1.03); }
.post-card-image-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), #1a3a55);
  display: flex; align-items: center; justify-content: center;
}
.post-card-image-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; font-weight: 300; color: var(--gold); opacity: 0.4;
}
.post-card-body { padding: 1.8rem; }
.post-tag {
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.6rem;
}
.post-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--text); line-height: 1.25; margin-bottom: 0.6rem;
}
.post-card-featured .post-card-title { font-size: 1.8rem; }
.post-card-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--light); line-height: 1.75; margin-bottom: 1rem;
}
.post-meta { display: flex; gap: 1rem; align-items: center; }
.post-date, .post-read {
  font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--light);
}
.post-card-small .post-card-body { padding: 1.3rem; }
.post-card-small .post-card-title { font-size: 1.1rem; }
.pagination { text-align: center; margin-top: 3rem; }

/* ── POST HERO (dark) ── */
.post-hero { background: var(--deep); padding-top: 80px; min-height: 70vh; }
.post-hero-image {
  min-height: 70vh; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,17,26,0.3) 0%, rgba(7,17,26,0.85) 100%);
}
.post-hero-text {
  background: var(--deep); padding: 4rem 2.5rem 3.5rem;
  border-bottom: 1px solid rgba(196,162,90,0.15);
}
.post-hero-content {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto; padding: 3rem 2.5rem 2.5rem;
}
.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; line-height: 1.08; color: var(--white); margin-bottom: 1.3rem;
}
.post-meta .post-author,
.post-meta .post-date,
.post-meta .post-read {
  font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}

/* FADE transition */
.post-fade { height: 52px; background: linear-gradient(180deg, var(--deep) 0%, var(--cream) 100%); }

/* ── POST CONTENT (cream) ── */
.post-content-wrap {
  max-width: 720px; margin: 0 auto; padding: 0.5rem 2rem 5rem;
}
.gh-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 400; color: var(--text);
  margin: 2.8rem 0 1rem; line-height: 1.2;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--cream2);
}
.gh-content h2 em { font-style: italic; color: #8a6a2a; }
.gh-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 400; color: var(--text);
  margin: 2rem 0 0.7rem;
}
.gh-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem; line-height: 1.9; color: var(--mid); margin-bottom: 1.4rem;
}
.gh-content p strong { font-weight: 600; color: var(--text); }
.gh-content p em { font-style: italic; }
.gh-content ul, .gh-content ol {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--mid); line-height: 1.85;
  padding-left: 1.5rem; margin-bottom: 1.4rem;
}
.gh-content li { margin-bottom: 0.4rem; }
.gh-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.8rem; margin: 2.5rem 0;
  background: rgba(196,162,90,0.05);
}
.gh-content blockquote p {
  font-size: 1.25rem; font-style: italic; color: var(--text);
  line-height: 1.65; margin: 0;
}
.gh-content hr {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 3rem 0; opacity: 0.35;
}
.gh-content figure { margin: 2.5rem 0; }
.gh-content figure img { width: 100%; border: 1px solid var(--cream2); }
.gh-content figcaption {
  font-size: 0.78rem; color: var(--light);
  text-align: center; margin-top: 0.6rem; letter-spacing: 0.05em;
}
.gh-content a { color: #8a6a2a; border-bottom: 1px solid rgba(138,106,42,0.3); transition: border-color 0.2s; }
.gh-content a:hover { border-color: #8a6a2a; }

/* Author bio */
.post-author-bio {
  padding: 2rem 0; margin-top: 1rem;
}
.author-divider {
  width: 50px; height: 1px;
  background: var(--gold); margin-bottom: 1.5rem; opacity: 0.5;
}
.author-name {
  font-family: 'Josefin Sans', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); margin-bottom: 0.5rem; font-weight: 600;
}
.author-bio-text {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 0.95rem; color: var(--light); line-height: 1.75;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.post-tag-link {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light); border: 1px solid var(--cream2);
  padding: 0.3rem 0.7rem; transition: all 0.3s;
}
.post-tag-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── RELATED POSTS ── */
.related-posts { background: var(--white); padding: 4rem 2.5rem; border-top: 1px solid var(--cream2); }
.related-container { max-width: 1000px; margin: 0 auto; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2rem; }
.post-nav-label {
  font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.4rem;
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--navy);
  border-top: 1px solid rgba(196,162,90,0.15);
  border-bottom: 1px solid rgba(196,162,90,0.15);
  padding: 5rem 2.5rem;
}
.newsletter-container {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.newsletter-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 1rem;
}
.newsletter-left h2 em { font-style: italic; color: var(--gold2); }
.newsletter-left p {
  font-size: 0.87rem; color: var(--fog); line-height: 1.9; margin-bottom: 1.2rem;
}
.newsletter-perks { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.newsletter-perks li {
  font-size: 0.78rem; color: var(--fog);
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.newsletter-perks li::before { content: '—'; color: var(--gold); flex-shrink: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.9rem; }
.newsletter-form input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(196,162,90,0.2);
  color: var(--white); padding: 0.95rem 1.2rem;
  font-family: 'Josefin Sans', sans-serif; font-size: 0.83rem;
  outline: none; transition: border-color 0.3s;
}
.newsletter-form input::placeholder { color: rgba(143,164,176,0.45); }
.newsletter-form input:focus { border-color: var(--gold); }
.form-note { font-size: 0.67rem; color: rgba(143,164,176,0.4); }

/* ── FOOTER ── */
.site-footer {
  background: var(--deep);
  border-top: 1px solid rgba(196,162,90,0.1);
  padding: 3rem 2.5rem; text-align: center;
}
.footer-container { max-width: 800px; margin: 0 auto; }
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--white); margin-bottom: 0.8rem;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--fog); margin-bottom: 1.5rem; font-size: 0.95rem;
}
.footer-nav { margin-bottom: 1.5rem; }
.footer-nav ul { display: flex; justify-content: center; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-nav a {
  color: var(--fog); font-size: 0.63rem;
  letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.62rem; color: rgba(143,164,176,0.32); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter-container { grid-template-columns: 1fr; gap: 3rem; }
  .related-grid { grid-template-columns: 1fr; }
  .post-hero-content { padding: 2rem 1.5rem; }
  .post-content-wrap { padding: 0.5rem 1.5rem 4rem; }
  .posts-section, .newsletter-section, .related-posts { padding: 3.5rem 1.5rem; }
}

/* Ghost nav helper overrides */
.nav { display: flex; flex-direction: row; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; }
.nav a { color: rgba(255,255,255,0.55); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.3s; text-decoration: none; }
.nav a:hover { color: var(--gold); }
@media (max-width: 600px) { .nav { display: none; } }

/* Ghost required classes */
.kg-width-wide {
    grid-column: wide-start / wide-end;
    width: 85vw;
    max-width: 1200px;
    margin: 2rem auto;
}
.kg-width-full {
    grid-column: full-start / full-end;
    width: 100vw;
    margin: 2rem calc(50% - 50vw);
}
.gh-content > * + * { margin-top: 1.5em; }
.gh-content [id] { scroll-margin-top: 100px; }
.post-deck {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: rgba(255,255,255,0.65);
  margin: 1rem 0 1.5rem;
  line-height: 1.65;
  max-width: 680px;
}

/* Featured post card image taller */
.post-card-featured .post-card-image {
  aspect-ratio: 16 / 9;
}

/* Shorter hero for text-only pages */
.post-hero-text {
  padding: 6rem 2.5rem 3rem !important;
}

/* Remove min-height for text-only hero */
.post-hero-text {
  min-height: 0 !important;
}

/* Compact hero for pages without feature image */
.post-hero:has(.post-hero-text) {
  min-height: 0 !important;
  padding-top: 80px;
  padding-bottom: 0;
}

/* Tighter padding for text-only hero */
.post-hero:has(.post-hero-text) {
  padding-top: 0 !important;
}
