/* ── Nette's Corner — Shared Post Page Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Poppins:wght@300;400;500;600&family=Lato:wght@300;400;700&display=swap');

:root {
  --plum:   #6D5A6D;
  --blush:  #DDB6BB;
  --cream:  #E9DED3;
  --ivory:  #FAF7F2;
  --dark:   #4A3F3A;
  --white:  #FFFFFF;
  --soft:   #7a6b65;
  --shadow: rgba(74,63,58,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--ivory); color: var(--dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,247,242,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221,182,187,0.3);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; color: var(--dark); }
.nav-logo span { color: var(--plum); font-style: italic; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--plum); }
.nav-cta { background: var(--plum); color: var(--white) !important; padding: 0.55rem 1.3rem; border-radius: 2px; font-size: 0.72rem !important; font-weight: 600 !important; letter-spacing: 0.14em !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); }

/* ── HERO ── */
.post-hero {
  position: relative; min-height: 72vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.post-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.post-hero:hover .post-hero-img { transform: scale(1.03); }
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(74,63,58,0.08) 0%,
    rgba(74,63,58,0.25) 40%,
    rgba(74,63,58,0.75) 80%,
    rgba(74,63,58,0.92) 100%
  );
}
.post-hero-content {
  position: relative; z-index: 2;
  padding: 0 0 3.5rem;
  width: 100%;
}
.post-hero-inner { max-width: 760px; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(250,247,242,0.6);
}
.breadcrumb a { color: rgba(250,247,242,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blush); }
.breadcrumb-sep { opacity: 0.4; }

.post-hero-cat {
  display: inline-block;
  background: var(--plum); color: var(--white);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; margin-bottom: 1.2rem;
}
.post-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: 1.12;
  color: var(--white); margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.post-hero-title em { font-style: italic; color: var(--blush); }
.post-hero-meta {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.meta-pill {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(250,247,242,0.75);
}
.meta-pill-dot { width: 3px; height: 3px; background: var(--blush); border-radius: 50%; }

/* ── PROGRESS BAR ── */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; background: var(--plum);
  width: 0%; transition: width 0.1s linear;
}

/* ── ARTICLE LAYOUT ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 4rem 0 6rem;
  align-items: start;
}

/* ── ARTICLE BODY ── */
.article-body {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--dark);
}
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 700;
  color: var(--dark); margin: 2.5rem 0 1rem;
  line-height: 1.25;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--dark); margin: 2rem 0 0.8rem;
}
.article-body h2::before {
  content: '';
  display: block; width: 32px; height: 2px;
  background: var(--blush); margin-bottom: 0.7rem;
}
.article-body strong { font-weight: 700; color: var(--dark); }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; }

.pull-quote {
  margin: 2.5rem 0;
  border-left: 3px solid var(--blush);
  padding: 1.2rem 0 1.2rem 1.8rem;
  background: linear-gradient(to right, rgba(221,182,187,0.1), transparent);
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.25rem;
  line-height: 1.6; color: var(--plum);
  margin: 0;
}

.closing-note {
  background: linear-gradient(135deg, #f5ede4, #eeddd3);
  border: 1px solid rgba(221,182,187,0.3);
  padding: 2rem 2.2rem;
  margin-top: 3rem;
}
.closing-note p { margin-bottom: 0.5rem; }
.closing-note p:last-child { margin-bottom: 0; font-style: italic; color: var(--soft); font-size: 0.9rem; }

/* Tags */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(221,182,187,0.3);
}
.post-tag {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--plum); background: rgba(109,90,109,0.08);
  padding: 0.3rem 0.8rem; border: 1px solid rgba(109,90,109,0.15);
  transition: background 0.2s, color 0.2s; cursor: pointer;
}
.post-tag:hover { background: var(--plum); color: var(--white); }

/* Share */
.share-row {
  display: flex; align-items: center; gap: 0.8rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(221,182,187,0.3);
  flex-wrap: wrap;
}
.share-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.share-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(221,182,187,0.4);
  color: var(--soft); background: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.share-btn:hover { background: var(--plum); color: var(--white); border-color: var(--plum); }

/* ── SIDEBAR ── */
.post-sidebar { position: sticky; top: 100px; }

.sidebar-block {
  background: var(--white); border: 1px solid rgba(221,182,187,0.2);
  padding: 1.6rem; margin-bottom: 1.8rem;
}
.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--dark); margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(221,182,187,0.3);
}

/* TOC */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.toc-item a {
  display: block; padding: 0.55rem 0;
  font-size: 0.8rem; color: var(--soft);
  border-bottom: 1px solid rgba(221,182,187,0.15);
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1.4;
}
.toc-item:last-child a { border-bottom: none; }
.toc-item a:hover { color: var(--plum); padding-left: 0.4rem; }
.toc-item a.active { color: var(--plum); font-weight: 600; padding-left: 0.4rem; }

/* Author card */
.author-card { text-align: center; }
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--cream));
  margin: 0 auto 0.8rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--plum);
  border: 3px solid rgba(221,182,187,0.4);
}
.author-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.author-bio { font-size: 0.78rem; line-height: 1.65; color: var(--soft); }

/* Newsletter sidebar */
.sb-nl-sub { font-size: 0.8rem; line-height: 1.7; color: var(--soft); margin-bottom: 1rem; }
.sb-input { width: 100%; background: var(--ivory); border: 1px solid rgba(109,90,109,0.2); padding: 0.7rem 0.9rem; font-family: 'Poppins', sans-serif; font-size: 0.82rem; color: var(--dark); outline: none; margin-bottom: 0.7rem; transition: border-color 0.2s; }
.sb-input:focus { border-color: var(--plum); }
.sb-input::placeholder { color: var(--soft); opacity: 0.55; }
.sb-btn { width: 100%; background: var(--plum); color: var(--white); border: none; padding: 0.75rem; font-family: 'Poppins', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.sb-btn:hover { background: var(--dark); }

/* Related posts sidebar */
.sb-post { display: flex; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(221,182,187,0.2); cursor: pointer; }
.sb-post:last-child { border-bottom: none; }
.sb-post-thumb { width: 58px; height: 48px; flex-shrink: 0; overflow: hidden; }
.sb-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sb-post:hover .sb-post-thumb img { transform: scale(1.08); }
.sb-post-info {}
.sb-post-title { font-family: 'Playfair Display', serif; font-size: 0.8rem; font-weight: 600; line-height: 1.35; color: var(--dark); margin-bottom: 0.2rem; transition: color 0.2s; }
.sb-post:hover .sb-post-title { color: var(--plum); }
.sb-post-date { font-size: 0.67rem; color: var(--soft); }

/* ── RELATED POSTS (bottom) ── */
.related-section { padding: 5rem 0; background: var(--cream); }
.related-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.5rem;
}
.related-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--dark); white-space: nowrap; }
.related-title em { color: var(--plum); font-style: italic; }
.related-line { flex: 1; height: 1px; background: rgba(221,182,187,0.4); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rel-card { background: var(--white); border: 1px solid rgba(221,182,187,0.2); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.rel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow); }
.rel-thumb { aspect-ratio: 16/9; overflow: hidden; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.rel-card:hover .rel-thumb img { transform: scale(1.05); }
.rel-body { padding: 1.2rem 1.3rem 1.4rem; }
.rel-cat { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--plum); margin-bottom: 0.5rem; }
.rel-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--dark); margin-bottom: 0.5rem; transition: color 0.2s; }
.rel-card:hover .rel-title { color: var(--plum); }
.rel-read { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); display: inline-flex; align-items: center; gap: 0.4rem; }
.rel-read::after { content: '→'; }

/* ── FOOTER ── */
.footer { background: var(--dark); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--ivory); margin-bottom: 0.7rem; }
.footer-brand-name span { color: var(--blush); font-style: italic; }
.footer-brand-desc { font-size: 0.82rem; line-height: 1.75; color: rgba(250,247,242,0.45); max-width: 260px; margin-bottom: 1.4rem; }
.social-links { display: flex; gap: 0.8rem; }
.social-link { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; color: rgba(250,247,242,0.5); transition: border-color 0.2s, color 0.2s; }
.social-link:hover { border-color: var(--blush); color: var(--blush); }
.footer-col-title { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(250,247,242,0.35); margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.82rem; color: rgba(250,247,242,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--blush); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-copy { font-size: 0.72rem; color: rgba(250,247,242,0.28); }
.footer-heart { color: var(--blush); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 62px; left: 0; right: 0; background: var(--ivory); padding: 1.5rem 2rem; border-bottom: 1px solid rgba(221,182,187,0.3); z-index: 99; }
  .hamburger { display: flex; }
  .post-hero { min-height: 55vh; }
  .post-hero-title { font-size: 1.8rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── SHARED JS HELPERS ── */
/* reading progress + TOC active handled in each page */
