/* ================================================================
   FoodLoot — Blog Post Page
   Editorial typography for individual essays.
   ================================================================ */

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

:root {
  --dark: #0b1c1b;
  --text: #0b1c1b;
  --emerald: #00615F;
  --em2: #007A77;
  --em-light: #e8f4f3;
  --em-mid: rgba(0, 97, 95, .09);
  --cream: #F6F2EE;
  --paper: #FAF7F3;
  --coral: #E05848;
  --amber: #D9A24A;
  --border: rgba(0, 0, 0, .08);
  --rule: rgba(0, 0, 0, .14);
  --muted: #6B7280;
  --serif: 'Fraunces', 'Iowan Old Style', 'Charter', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.post-body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* ── Reading-progress bar ── */
.rprog {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 9999;
  pointer-events: none;
  transition: transform .08s linear;
}

/* ── NAV (light/cream variant) ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: env(safe-area-inset-top, 0) 6% 0;
  height: calc(68px + env(safe-area-inset-top, 0));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .3s cubic-bezier(.16,1,.3,1), background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.hide { transform: translateY(-100%); }
nav.scrolled {
  background: rgba(250,247,243,.94);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-logo { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  opacity: .65;
  font-weight: 500;
  font-size: 15px;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover, .nav-links a.nav-active {
  opacity: 1;
  color: var(--emerald);
  font-weight: 700;
}
.btn-nav {
  background: var(--emerald);
  color: #fff !important;
  opacity: 1 !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .18s;
}
.btn-nav:hover { background: var(--em2) !important; transform: scale(1.03); }

/* ── Hamburger / mobile nav ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; z-index: 300;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(11,28,27,.97);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; opacity: 0; pointer-events: none;
  transition: opacity .3s cubic-bezier(.16,1,.3,1);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  text-decoration: none; color: rgba(255,255,255,.75);
  font-size: 24px; font-weight: 700; letter-spacing: -.5px;
  transition: color .2s;
}
.mobile-nav a:hover, .mobile-nav a.nav-active { color: #fff; }
.mobile-nav .btn-nav-mob {
  margin-top: 8px; background: var(--emerald); color: #fff !important;
  padding: 14px 40px; border-radius: 100px; font-size: 18px; font-weight: 800;
}

/* ── HERO ── */
.post-hero {
  background: var(--paper);
  padding: 132px 6% 56px;
  position: relative;
}
.post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .2px;
  margin-bottom: 36px;
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  background: rgba(0,0,0,.04);
  transition: background .2s, color .2s, transform .18s;
}
.back-link:hover {
  background: var(--em-mid);
  color: var(--emerald);
  transform: translateX(-2px);
}
.back-link svg { width: 14px; height: 14px; }
.post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 22px;
}
.post-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
}
.post-num::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rule);
  margin-left: 12px;
  vertical-align: middle;
}
.post-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 60px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 22px;
}
.post-deck {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: #2a3a39;
  margin-bottom: 36px;
  max-width: 660px;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.post-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--em2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.post-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  flex-shrink: 0;
}

/* ── ARTICLE ── */
.post-article {
  padding: 32px 6% 64px;
  background: var(--paper);
}
.post-article-inner {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.78;
  color: #1a2a29;
}
.post-article-inner > p {
  margin-bottom: 1.45em;
  font-weight: 400;
}
.post-article-inner > p strong {
  color: var(--dark);
  font-weight: 700;
}
.post-article-inner > p em {
  color: #2a3a39;
}
/* Lede paragraph — first para gets a drop cap */
.post-lede::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 5.4em;
  line-height: 0.9;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--emerald);
}
.post-h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 2em 0 .8em;
  padding-top: 1.6em;
}
.post-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}
.post-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .8em;
}
.post-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .75em;
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 2px;
  transform: rotate(45deg);
}
.post-rule {
  border: none;
  margin: 2.6em auto;
  width: 64px;
  text-align: center;
  position: relative;
  height: 6px;
}
.post-rule::before {
  content: '· · ·';
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--rule);
  letter-spacing: 8px;
  line-height: 1;
  display: block;
}

/* ── Signature + Share ── */
.post-sig {
  max-width: 680px;
  margin: 64px auto 0;
  text-align: center;
}
.post-sig-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.post-sig-dash {
  flex: 0 0 80px;
  height: 1px;
  background: var(--rule);
}
.post-sig-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .3px;
  color: var(--muted);
  white-space: nowrap;
}
.post-share {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .18s, color .2s;
}
.post-share-btn:hover {
  background: var(--em-mid);
  border-color: rgba(0,97,95,.22);
  color: var(--emerald);
}
.post-share-btn:active { transform: scale(.97); }
.post-share-btn svg { width: 14px; height: 14px; }

/* ── UP NEXT ── */
.up-next {
  background: var(--cream);
  padding: 80px 6%;
  border-top: 1px solid var(--border);
}
.up-next-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.up-next-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 24px;
  padding: 5px 14px;
  background: var(--em-mid);
  border-radius: 100px;
}
.up-next-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 36px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
  text-align: left;
  margin-bottom: 28px;
}
.up-next-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11,28,27,.08);
  border-color: rgba(0,97,95,.18);
}
.up-next-text h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.8px;
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: 16px;
}
.up-next-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  color: var(--emerald);
  letter-spacing: .2px;
}
.up-next-cta svg {
  width: 16px;
  height: 16px;
  transition: transform .25s;
}
.up-next-card:hover .up-next-cta svg { transform: translateX(4px); }
.up-next-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(0,0,0,.04);
  transition: background .2s, color .2s;
}
.up-next-all:hover { background: var(--em-mid); color: var(--emerald); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .post-hero { padding: 116px 6% 40px; }
  .back-link { margin-bottom: 26px; font-size: 12px; }
  .post-eyebrow { font-size: 11px; letter-spacing: 2px; gap: 10px; margin-bottom: 18px; }
  .post-num::after { width: 18px; margin-left: 8px; }
  .post-title { font-size: 32px; letter-spacing: -1.1px; }
  .post-deck { font-size: 17px; margin-bottom: 28px; }
  .post-meta { gap: 10px; font-size: 13px; padding-top: 22px; }
  .post-avatar { width: 28px; height: 28px; font-size: 11px; }

  .post-article { padding: 24px 6% 48px; }
  .post-article-inner { font-size: 17px; line-height: 1.72; }
  .post-lede::first-letter { font-size: 4.4em; padding-right: 0.1em; }
  .post-h2 { font-size: 13px; letter-spacing: 2px; padding-top: 1.2em; }
  .post-rule { margin: 2em auto; }
  .post-rule::before { font-size: 18px; }

  .post-sig { margin-top: 48px; }
  .post-sig-dash { flex-basis: 40px; }
  .post-sig-text { font-size: 13px; }

  .up-next { padding: 56px 6%; }
  .up-next-card { padding: 28px 22px; border-radius: 18px; }
  .up-next-text h3 { font-size: 22px; letter-spacing: -.5px; }
}
@media (max-width: 600px) {
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  nav .nav-links { display: none; }
}
