:root {
  --blog-nav-blur: 12px;
}

body > nav,
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(246, 239, 231, 0.97);
  backdrop-filter: blur(var(--blog-nav-blur));
  -webkit-backdrop-filter: blur(var(--blog-nav-blur));
  border-bottom: 1px solid var(--border-soft);
}

.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link--active {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--cream-alt);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.post-actions {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.section-label,
.section-label--accent {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream-alt);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.comment-help {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.comment-help a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.comment-box {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}

.comment-box:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-send {
  margin-top: 10px;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #fff9f1;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}

.comment-send:hover {
  background: var(--accent-deep);
}

.comment-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.comment-status {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.comment-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.comment-item {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 250, 245, 0.75);
}

.comment-meta {
  margin-bottom: 5px;
  color: #7b6049;
  font-size: 12px;
}

.comment-body {
  margin: 0;
  color: #38251c;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.cta-box {
  position: relative;
  overflow: hidden;
  margin: 48px 0 0;
  padding: 36px 32px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1f130d, #2d1a10);
  text-align: center;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 80% -10%,
    rgba(201, 149, 87, 0.2) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-eyebrow,
.related-label {
  margin-bottom: 14px;
  color: rgba(205, 165, 120, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.cta-title {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: #fff4ea;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.15;
}

.cta-title em {
  color: rgba(228, 195, 164, 0.9);
  font-style: italic;
}

.cta-sub {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto 28px;
  color: rgba(255, 249, 241, 0.5);
  font-size: 15px;
  line-height: 1.7;
}

.cta-btns {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-btn-primary,
.cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s;
}

.cta-btn-primary {
  background: #e8d5be;
  color: #1a0f08;
  font-weight: 700;
}

.cta-btn-primary:hover {
  background: #f5e6cf;
  transform: translateY(-2px);
}

.cta-btn-ghost {
  border: 1px solid rgba(228, 195, 164, 0.2);
  color: rgba(255, 249, 241, 0.5);
  font-weight: 600;
}

.cta-btn-ghost:hover {
  border-color: rgba(228, 195, 164, 0.45);
  color: rgba(255, 249, 241, 0.8);
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.post-nav-link {
  flex: 1;
  min-width: 200px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--cream-alt);
  text-decoration: none;
  transition: all 0.2s;
}

.post-nav-link:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(28, 18, 13, 0.08);
  transform: translateY(-2px);
}

.post-nav-label {
  margin-bottom: 6px;
  color: var(--ink-muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.post-nav-title {
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.post-nav-link--align-end {
  text-align: right;
}

.video-thumb--warm {
  background: linear-gradient(135deg, #2c1a10, #5d3a1e);
}

.video-thumb--green {
  background: linear-gradient(135deg, #1a2c10, #3a5d1e);
}

.related-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-label {
  margin-bottom: 20px;
  color: var(--accent);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(28, 18, 13, 0.08);
  transform: translateY(-3px);
}

.related-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-body {
  flex: 1;
  padding: 14px 16px;
}

.related-tag {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.related-title {
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 4px 18px rgba(28, 18, 13, 0.22);
  color: #fff9f1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.2s;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent);
}

footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding: 32px 40px;
  border-top: 1px solid var(--border-soft);
  background: #f6efe7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  grid-column: 1;
  grid-row: 1;
}

.footer-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav-label {
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.6;
  text-transform: uppercase;
}

.footer-nav-link {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-link:hover,
.footer-legal-link:hover {
  color: var(--accent);
}

.footer-legal-link {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.7;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border-soft);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.5px;
  grid-column: 1 / -1;
  grid-row: 2;
}

.footer-copy-center,
.footer-legal-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-legal-group {
  gap: 20px;
}

.footer-wordmark-sm {
  color: var(--ink-soft);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.social-row-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-row-inline .social-link {
  width: 38px;
  height: 38px;
}

.social-row-inline .social-link svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 768px) {
  body > nav,
  .site-nav {
    padding: 16px 20px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 150 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    padding: 40px 24px !important;
    background: rgba(246, 239, 231, 0.98) !important;
    backdrop-filter: blur(16px) !important;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-link {
    font-size: 16px !important;
    letter-spacing: 3px !important;
  }

  footer {
    padding: 28px 20px;
  }

  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .cta-box {
    padding: 28px 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
