/* ============================================================
   BETWEEN THE WORDS — Ghost Theme
   screen.css v1.0
   ============================================================ */

:root {
  --ink:      #0d0c10;
  --deep:     #12101a;
  --surface:  #1b1826;
  --card:     #211e2e;
  --border:   #2e2a40;
  --gold:     #c9a84c;
  --gold-dim: #7a6130;
  --rose:     #b06070;
  --mist:     #8b8da8;
  --light:    #e8e4d9;
  --cream:    #f5f0e6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--light);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── STARFIELD ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  background: linear-gradient(to bottom, rgba(13,12,16,0.97) 0%, transparent 100%);
  transition: background 0.4s, padding 0.4s;
}
.site-nav.scrolled {
  background: rgba(13,12,16,0.97);
  border-bottom: 1px solid var(--border);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--mist);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .site-nav { padding: 1.2rem 1.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13,12,16,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 0.8rem 2rem; }
  .nav-mobile-toggle { display: flex; }
}

/* ── BUTTONS ── */
.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--mist);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.hero-ornament {
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 auto 2.5rem;
  position: relative;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero-ornament::before,
.hero-ornament::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
}
.hero-ornament::before { left: -12px; }
.hero-ornament::after  { right: -12px; }

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-sub {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--mist);
  max-width: 480px;
  font-style: italic;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}
.scroll-hint span {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s 2s infinite;
}

/* ── SECTION SHARED ── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 3.5rem;
}

.section-cta {
  text-align: center;
  margin-top: 4rem;
}

/* ── BACKGROUNDS ── */
.section-dark  { background: var(--deep); }
.section-ink   { background: var(--ink); }

/* ── DIVIDER ── */
.divider {
  position: relative; z-index: 1;
  text-align: center;
  padding: 1rem 0;
  background: var(--ink);
}
.divider-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--gold-dim);
  font-size: 0.85rem;
}
.divider-line {
  width: 120px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

/* ── POEM GRID ── */
.poem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.poem-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.poem-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.poem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.4s;
}
.poem-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
.poem-card:hover::before { height: 100%; }

.poem-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.poem-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.poem-card h3 a { color: inherit; }
.poem-card h3 a:hover { color: var(--gold); }

.poem-excerpt {
  font-size: 0.95rem;
  color: var(--mist);
  font-style: italic;
  line-height: 1.9;
  border-left: 1px solid var(--border);
  padding-left: 1.2rem;
}

.poem-meta {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.poem-date {
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}
.poem-arrow {
  color: var(--gold-dim);
  font-size: 1.2rem;
  transition: transform 0.3s, color 0.3s;
}
.poem-card:hover .poem-arrow { transform: translateX(4px); color: var(--gold); }

.post-card-link { display: block; color: inherit; text-decoration: none; }

/* Featured poem */
.poem-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
}
@media (max-width: 700px) {
  .poem-card.featured { grid-template-columns: 1fr; }
}
.featured-text { display: flex; flex-direction: column; }
.featured-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3rem 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.featured-date {
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
  margin-top: 1rem;
}
.featured-poem-body {
  font-size: 1rem;
  color: var(--light);
  font-style: italic;
  line-height: 2.1;
}
.featured-poem-body p { margin-bottom: 1.2rem; }
.read-more-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--gold);
  font-style: italic;
  display: inline-block;
  margin-top: 0.5rem;
  transition: letter-spacing 0.3s;
}
.read-more-link:hover { letter-spacing: 0.05em; }

/* ── FICTION LIST ── */
.fiction-list { display: flex; flex-direction: column; gap: 2.5rem; }

.fiction-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.4s;
  cursor: pointer;
}
.fiction-card:hover { border-color: var(--gold-dim); }

.fiction-number {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--border);
  padding: 2rem 1.5rem;
  transition: color 0.4s;
}
.fiction-card:hover .fiction-number { color: var(--gold-dim); }

.fiction-body {
  padding: 2.5rem;
  border-left: 1px solid var(--border);
}
.fiction-genre {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--rose);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}
.fiction-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.fiction-card h3 a { color: inherit; }
.fiction-card h3 a:hover { color: var(--gold); }
.fiction-desc {
  font-size: 0.95rem;
  color: var(--mist);
  max-width: 600px;
  line-height: 1.8;
}
.fiction-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.fiction-date {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
}
.read-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  transition: letter-spacing 0.3s;
}
.fiction-card:hover .read-link { letter-spacing: 0.05em; }

/* ── ABOUT ── */
.about-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.about-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 7rem 3rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 700px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.about-sigil {
  width: 120px; height: 120px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--gold);
  position: relative;
  margin: 0 auto;
}
.about-sigil::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.about-text p {
  color: var(--mist);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ── SUBSCRIBE SECTION ── */
.subscribe-section {
  position: relative; z-index: 1;
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 6rem 2rem;
}
.subscribe-inner { max-width: 560px; margin: 0 auto; }
.subscribe-ornament {
  font-size: 1.2rem;
  color: var(--gold-dim);
  margin-bottom: 2rem;
}
.subscribe-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1rem;
}
.subscribe-sub {
  color: var(--mist);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.subscribe-form { width: 100%; }
.subscribe-fields {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--light);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
  outline: none;
  transition: border-color 0.3s;
}
.subscribe-input::placeholder { color: var(--mist); }
.subscribe-input:focus { border-color: var(--gold-dim); }
.subscribe-btn {
  border-left: none;
  white-space: nowrap;
}
.subscribe-error {
  color: var(--rose);
  font-size: 0.85rem;
  margin-top: 0.8rem;
}
.subscribe-success {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-top: 1rem;
}
.subscribe-note {
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
}
@media (max-width: 500px) {
  .subscribe-fields { flex-direction: column; }
  .subscribe-input { border-right: 1px solid var(--border); border-bottom: none; }
  .subscribe-btn { border-left: 1px solid var(--gold); }
}

/* ── SINGLE POST PAGE ── */
#site-main { position: relative; z-index: 1; }

.post-full { position: relative; z-index: 1; }

.post-header {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: linear-gradient(to bottom, var(--ink) 60%, var(--deep));
  text-align: center;
}
.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}
.post-tag-link { text-decoration: none; }
.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.1;
  margin: 1rem 0;
}
.post-excerpt {
  font-style: italic;
  color: var(--mist);
  font-size: 1.1rem;
  margin-top: 1rem;
}
.post-meta {
  margin-top: 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
}
.post-sep { margin: 0 0.6rem; }

.post-feature-image {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}
.post-feature-image img { width: 100%; }

.post-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* Prose / fiction content */
.post-content { font-size: 1.1rem; line-height: 1.9; color: var(--light); }
.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin: 3rem 0 1.2rem;
}
.post-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content blockquote {
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--mist);
}
.post-content hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
  color: var(--gold-dim);
}
.post-content hr::before { content: '✦ ✦ ✦'; }

/* Poetry-specific content */
.poetry-content {
  font-style: italic;
  line-height: 2.2;
  font-size: 1.1rem;
}
.poetry-content p {
  margin-bottom: 2rem;
  white-space: pre-line;
}

/* Fiction chapter content */
.fiction-content { font-size: 1.05rem; line-height: 2; }
.fiction-content p { margin-bottom: 1.6rem; }
.fiction-content p:first-child::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--gold);
}

/* Post footer */
.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.post-tag-pill {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--mist);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.post-tag-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ── POST NAV ── */
.post-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.post-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  text-decoration: none;
}
.post-nav-item:hover { border-color: var(--gold-dim); }
.post-nav-item.next { text-align: right; }
.post-nav-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
}
.post-nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
}

/* ── RELATED POSTS ── */
.related-posts {
  background: var(--deep);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.related-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

/* ── ARCHIVE PAGE ── */
.archive-page { position: relative; z-index: 1; }
.archive-header {
  padding-top: 10rem;
  padding-bottom: 5rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--ink) 60%, var(--deep));
}
.archive-header-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}
.archive-eyebrow {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1rem;
}
.archive-desc {
  font-style: italic;
  color: var(--mist);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.archive-count {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
}
.archive-body { background: var(--deep); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.pagination-info {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--mist);
}

/* ── STATIC PAGE ── */
.page-full { position: relative; z-index: 1; }
.page-header {
  padding-top: 10rem;
  padding-bottom: 4rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--ink) 60%, var(--deep));
}

/* ── ERROR PAGE ── */
.error-page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-inner { max-width: 600px; }

/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 1;
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
}
.footer-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--mist);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--border);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,12,16,0.93);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--mist);
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section-inner { padding: 5rem 1.5rem; }
  .poem-grid { grid-template-columns: 1fr; }
  .fiction-card { grid-template-columns: 60px 1fr; }
  .fiction-body { padding: 1.5rem; }
  .post-nav-inner { grid-template-columns: 1fr; }
  .related-inner { padding: 4rem 1.5rem; }
}
@media (max-width: 500px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .fiction-card { grid-template-columns: 1fr; }
  .fiction-number { display: none; }
}

/* ============================================================
   GHOST CARD STYLES — required by Ghost theme validator
   ============================================================ */

/* Koenig editor width classes — REQUIRED */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw) * .075;
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Image card */
.kg-image-card { margin: 2.5rem 0; }
.kg-image-card img { margin: 0 auto; }
.kg-image-card figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mist);
  font-style: italic;
  margin-top: 0.6rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
}

/* Gallery card */
.kg-gallery-card { margin: 2.5rem 0; }
.kg-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

/* Bookmark card */
.kg-bookmark-card { margin: 2.5rem 0; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.3s;
}
.kg-bookmark-container:hover { border-color: var(--gold-dim); }
.kg-bookmark-content { padding: 1.5rem; flex: 1; }
.kg-bookmark-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.kg-bookmark-description { font-size: 0.85rem; color: var(--mist); }
.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--gold-dim);
}
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { max-width: 160px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  margin: 2rem 0;
}
.kg-callout-emoji { font-size: 1.3rem; line-height: 1.6; }
.kg-callout-text { font-size: 0.95rem; color: var(--light); }

/* Toggle card */
.kg-toggle-card { margin: 2rem 0; border: 1px solid var(--border); }
.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: var(--card);
}
.kg-toggle-heading-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--cream);
}
.kg-toggle-content { padding: 1rem 1.5rem; color: var(--light); font-size: 0.95rem; }

/* Video card */
.kg-video-card { margin: 2.5rem 0; position: relative; }
.kg-video-card video { width: 100%; }

/* Audio card */
.kg-audio-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  margin: 2rem 0;
}
.kg-audio-player { flex: 1; }

/* File card */
.kg-file-card { margin: 2rem 0; }
.kg-file-card-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.3s;
}
.kg-file-card-container:hover { border-color: var(--gold-dim); }
.kg-file-card-title { font-family: 'Cormorant Garamond', serif; color: var(--cream); }
.kg-file-card-caption { font-size: 0.85rem; color: var(--mist); }
.kg-file-card-metadata {
  font-size: 0.75rem;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* Product card */
.kg-product-card { margin: 2rem 0; }
.kg-product-card-container {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.kg-product-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.kg-product-card-description { color: var(--mist); font-size: 0.95rem; }
.kg-product-card-rating { color: var(--gold); margin: 0.8rem 0; }
.kg-product-card-button {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: all 0.3s;
}
.kg-product-card-button:hover { background: transparent; color: var(--gold); }

/* Header card */
.kg-header-card {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 2.5rem 0;
}
.kg-header-card-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1rem;
}
.kg-header-card-subheader { color: var(--mist); font-style: italic; margin-bottom: 2rem; }
.kg-header-card-button {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: all 0.3s;
}
.kg-header-card-button:hover { background: transparent; color: var(--gold); }

/* Divider / hr */
.kg-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* Code card */
.kg-code-card { margin: 2rem 0; }
.kg-code-card pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--light);
}

/* Embed card */
.kg-embed-card { margin: 2.5rem 0; }
.kg-embed-card iframe { width: 100%; }

/* Nft card */
.kg-nft-card { margin: 2rem 0; }
.kg-nft-link {
  display: block;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.3s;
}
.kg-nft-link:hover { border-color: var(--gold-dim); }
.kg-nft-metadata { padding: 1.2rem 1.5rem; }
.kg-nft-title { font-family: 'Cormorant Garamond', serif; color: var(--cream); }
.kg-nft-collection { font-size: 0.8rem; color: var(--mist); }

/* gh-content wrapper — applied to all post/page content areas */
.gh-content > * + * { margin-top: 1.5rem; }
.gh-content .kg-width-wide { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.gh-content .kg-width-full { margin-top: 2.5rem; margin-bottom: 2.5rem; }
