/* ═══════════════════════════════════════════
   Marsh Theme — screen.css
   Literary editorial aesthetic
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE6D6;
  --ink: #1E1B16;
  --ink-light: #4A4438;
  --ink-muted: #7A7268;
  --forest: #2E5D46;
  --forest-light: #3D7A5E;
  --forest-pale: #EAF2ED;
  --gold: #B08D57;
  --gold-light: #D4AE78;
  --border: rgba(30,27,22,0.12);
  --border-strong: rgba(30,27,22,0.22);
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ─── NAVIGATION ─── */

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 0.1rem; align-items: center;
}

/* Ghost outputs nav as a ul by default */
.nav-links ul { display: flex; gap: 0.1rem; list-style: none; }

.nav-links a,
.nav-links ul li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light); text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links ul li a:hover {
  color: var(--forest);
  background: var(--forest-pale);
}

.nav-instagram {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); text-decoration: none;
  transition: color 0.2s; flex-shrink: 0;
  white-space: nowrap;
}

.nav-instagram:hover { color: var(--forest); }

/* ─── BUTTONS ─── */

.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.75rem 1.6rem; border-radius: 2px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.2s; border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--forest); color: #fff;
  border-color: var(--forest);
}
.btn-primary:hover { background: var(--forest-light); border-color: var(--forest-light); color: #fff; }

.btn-outline {
  background: transparent; color: var(--ink-light);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--forest); color: var(--forest); }

/* ─── HERO ─── */

.hero {
  max-width: var(--max-width); margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 5rem; align-items: center;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px;
  background: var(--forest);
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.08;
  color: var(--ink); margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  color: var(--ink-muted); margin-bottom: 1.75rem;
  border-left: 2px solid var(--gold);
  padding-left: 1rem; line-height: 1.5;
}

.hero-bio {
  font-size: 1.05rem; color: var(--ink-light);
  line-height: 1.85; margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-frame {
  position: relative; padding-top: 120%;
  border-radius: 3px; overflow: hidden;
}

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

.hero-image-placeholder {
  background: linear-gradient(135deg, #C8D8C0, #8FAF98);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}

.photo-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(30,27,22,0.5); text-align: center;
  padding: 0 1.5rem; line-height: 1.5;
}

.hero-image-accent {
  position: absolute; bottom: -1.25rem; left: -1.25rem;
  width: 72px; height: 72px;
  border: 2px solid var(--gold);
  border-radius: 2px;
}

.hero-image-wrap { position: relative; }

/* ─── SECTION DIVIDER ─── */

.section-divider-line {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 2.5rem;
  border-top: 1px solid var(--border);
}

/* ─── INSTAGRAM SECTION ─── */

.instagram-section {
  background: var(--cream-dark);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.instagram-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 2.5rem;
}

.instagram-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}

.instagram-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted);
  display: flex; align-items: center; gap: 0.5rem;
}

.instagram-handle-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; color: var(--forest);
  text-decoration: none; letter-spacing: 0.04em;
}
.instagram-handle-link:hover { text-decoration: underline; }

.instagram-feed-placeholder {
  background: rgba(30,27,22,0.04);
  border: 1px dashed var(--border-strong);
  border-radius: 3px; padding: 2rem; text-align: center;
}
.ig-placeholder-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; color: var(--ink-muted); line-height: 1.6;
}

/* ─── FEATURED POSTS / HOME ─── */

.featured-section {
  max-width: var(--max-width); margin: 0 auto;
  padding: 4rem 2.5rem;
}

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 600; color: var(--ink);
}

.section-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest); text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.post-card-link { text-decoration: none; color: inherit; display: block; }
.post-card { transition: transform 0.2s; }
.post-card:hover { transform: translateY(-3px); }

.post-image {
  aspect-ratio: 4/3; border-radius: 3px; margin-bottom: 1rem;
  background-size: cover; background-position: center;
}
.post-image-fallback { background: linear-gradient(135deg, #C8D8C0, #8FAF98); }

.post-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.67rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 0.4rem;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600; line-height: 1.35;
  color: var(--ink); margin-bottom: 0.5rem;
}
.post-card:hover .post-title,
a:hover .post-title { color: var(--forest); }

.post-excerpt {
  font-size: 0.95rem; color: var(--ink-muted);
  line-height: 1.7; margin-bottom: 0.7rem;
}

.post-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.04em;
}

/* ─── BLOG LIST PAGE ─── */

.blog-container {
  max-width: 780px; margin: 0 auto;
  padding: 4.5rem 2.5rem;
}

.blog-header { margin-bottom: 3rem; }

.page-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--ink); margin-bottom: 0.4rem;
}

.page-subheading {
  font-size: 1.05rem; color: var(--ink-muted);
  font-style: italic;
}

.post-list {}

.blog-post-row {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 160px;
  gap: 2rem; align-items: start;
  cursor: pointer;
}
.blog-post-row:hover .post-title { color: var(--forest); }

.blog-post-thumb {
  aspect-ratio: 4/3; border-radius: 3px;
  background-size: cover; background-position: center;
  text-decoration: none; display: block;
}
.blog-post-thumb-fallback { background: linear-gradient(135deg, #C8D8C0, #8FAF98); }

.blog-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }

.tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.63rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--forest-pale); color: var(--forest);
  padding: 0.18rem 0.55rem; border-radius: 2px;
}

/* ─── SINGLE POST ─── */

.post-full {
  max-width: 720px; margin: 0 auto;
  padding: 4.5rem 2.5rem;
}

.post-full-header { margin-bottom: 2.5rem; }

.post-full-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}

.post-full-tag {
  color: var(--forest); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.67rem;
}
.post-full-tag:hover { text-decoration: underline; }

.post-full-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.1; color: var(--ink);
  margin-bottom: 1rem;
}

.post-full-excerpt {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-style: italic;
  color: var(--ink-muted); line-height: 1.5;
  border-left: 2px solid var(--gold); padding-left: 1rem;
}

.post-full-image {
  max-width: 100%; margin-bottom: 3rem;
  border-radius: 3px; overflow: hidden;
}
.post-full-image img { width: 100%; display: block; }
.post-full-image figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; color: var(--ink-muted);
  padding: 0.5rem 0; text-align: center; font-style: italic;
}

/* Ghost content styles */
.gh-content { font-size: 1.05rem; line-height: 1.9; color: var(--ink-light); }
.gh-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600; color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}
.gh-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--ink);
  margin: 2rem 0 0.6rem;
}
.gh-content p { margin-bottom: 1.25rem; }
.gh-content a { color: var(--forest); }
.gh-content a:hover { text-decoration: none; }
.gh-content blockquote {
  border-left: 2px solid var(--gold); padding-left: 1.5rem;
  margin: 2rem 0; font-style: italic;
  color: var(--ink-muted); font-size: 1.1rem;
}
.gh-content img { max-width: 100%; border-radius: 3px; margin: 1.5rem 0; }
.gh-content ul, .gh-content ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem;
}
.gh-content li { margin-bottom: 0.4rem; }
.gh-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.gh-content pre {
  background: var(--cream-dark); padding: 1.25rem;
  border-radius: 3px; overflow-x: auto;
  font-size: 0.85rem; margin-bottom: 1.25rem;
}
.gh-content code {
  font-size: 0.85em; background: var(--cream-dark);
  padding: 0.1em 0.35em; border-radius: 2px;
}
.gh-content pre code { background: none; padding: 0; }

.post-full-footer {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

.post-full-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.post-back {
  font-size: 0.75rem; padding: 0.55rem 1.1rem;
}

.post-subscribe {
  max-width: 720px; margin: 0 auto;
  padding: 0 2.5rem 4.5rem;
  text-align: center;
  background: var(--cream-dark);
  padding: 3rem 2.5rem;
  border-radius: 3px;
  margin: 0 2.5rem 4.5rem;
}
.post-subscribe h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem;
}
.post-subscribe p { color: var(--ink-muted); margin-bottom: 1.5rem; }

/* ─── STATIC PAGE ─── */

.page-container {
  max-width: 720px; margin: 0 auto;
  padding: 4.5rem 2.5rem;
}

.page-header { margin-bottom: 2.5rem; }

.page-image { margin-bottom: 2.5rem; border-radius: 3px; overflow: hidden; }
.page-image img { width: 100%; display: block; }

.page-content { font-size: 1.05rem; }

/* ─── BOOKS PAGE ─── */

.books-container {
  max-width: var(--max-width); margin: 0 auto;
  padding: 4.5rem 2.5rem;
}

.books-page-header { margin-bottom: 3rem; }

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
}

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

.book-cover {
  aspect-ratio: 2/3; border-radius: 3px;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
  box-shadow: 6px 10px 28px rgba(30,27,22,0.2);
}

.bc-forest { background: linear-gradient(160deg, #2E5D46 0%, #1A3829 55%, #0E2018 100%); }
.bc-burgundy { background: linear-gradient(160deg, #6B3A2A, #3D1F14, #1E0D08); }
.bc-slate { background: linear-gradient(160deg, #3A4A6B, #1F2740, #0D1320); }

.book-cover-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.75rem; text-align: center;
}

.book-cover-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: rgba(255,255,255,0.9); line-height: 1.2;
  margin-bottom: 0.75rem;
}

.book-cover-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem;
}

.book-subtitle {
  font-style: italic; color: var(--ink-muted);
  font-size: 0.9rem; margin-bottom: 0.9rem;
}

.book-desc {
  font-size: 0.95rem; color: var(--ink-light);
  line-height: 1.8; margin-bottom: 1.5rem; flex: 1;
}

.book-retailers { display: flex; flex-direction: column; gap: 0.55rem; }

.retailer-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.73rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.65rem 1rem; border-radius: 2px;
  text-decoration: none; text-align: center;
  transition: all 0.2s; display: block; border: 1.5px solid transparent;
}

.retailer-primary {
  background: var(--forest); color: #fff;
  border-color: var(--forest);
}
.retailer-primary:hover { background: var(--forest-light); color: #fff; }

.retailer-secondary {
  background: transparent; color: var(--ink-light);
  border-color: var(--border-strong);
}
.retailer-secondary:hover { border-color: var(--forest); color: var(--forest); }

/* ─── PAGINATION ─── */

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 3rem 0;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
}
.pagination a { color: var(--forest); text-decoration: none; }
.pagination a:hover { text-decoration: underline; }
.page-number { color: var(--ink-muted); }

/* ─── FOOTER ─── */

.site-footer {
  background: var(--ink); color: rgba(245,240,232,0.6);
  padding: 3rem 2.5rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; align-items: start;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: rgba(245,240,232,0.9);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.85rem; font-style: italic;
  color: rgba(245,240,232,0.35);
}

.footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,240,232,0.3); margin-bottom: 0.85rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links li a,
.footer-links a {
  font-size: 0.88rem; color: rgba(245,240,232,0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-links li a:hover,
.footer-links a:hover { color: rgba(245,240,232,0.9); }

.footer-bottom {
  max-width: var(--max-width); margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,240,232,0.1);
  display: flex; align-items: center; justify-content: space-between;
}

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem; color: rgba(245,240,232,0.28);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem; padding: 3rem 1.5rem 2.5rem;
  }
  .hero-image-wrap { order: -1; max-width: 280px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { padding: 0 1.25rem; }
  .nav-instagram { display: none; }
  .nav-links a, .nav-links ul li a { padding: 0.4rem 0.55rem; font-size: 0.72rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .blog-post-row { grid-template-columns: 1fr; }
  .blog-post-thumb { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .hero-image-wrap { max-width: 220px; }
  .instagram-inner { padding: 0 1.25rem; }
  .featured-section, .blog-container, .books-container,
  .post-full, .page-container { padding-left: 1.25rem; padding-right: 1.25rem; }
}
