/* =========================================================================
   Leaf People — shared design system
   Dark, botanical, cinematic. Green→Teal accent.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #0B0F0D;
  --bg-2: #0E1411;
  --card: #141A16;
  --card-2: #1A221C;

  /* Lines */
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);

  /* Text */
  --text: #F4F7F4;
  --text-dim: rgba(244, 247, 244, .62);
  --text-faint: rgba(244, 247, 244, .38);

  /* Accent — green → blue */
  --green: #5BD17A;
  --teal: #2E7DF6;
  --grad: linear-gradient(135deg, #5BD17A 0%, #2E7DF6 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 209, 122, .18) 0%, rgba(46, 125, 246, .18) 100%);
  --glow: rgba(91, 209, 122, .35);

  /* Type */
  --font-display: 'Geologica', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Shape */
  --r-pill: 100px;
  --r-card: 18px;
  --r-input: 14px;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border: none;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: #06140C;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--glow); filter: brightness(1.05); }
.btn-sm { padding: .55rem 1.15rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* App Store badge button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1.4rem;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: #06140C;
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--glow); filter: brightness(1.05); }
.btn-appstore svg { width: 26px; height: 26px; }
.btn-appstore .ba-sub { font-size: .62rem; font-weight: 500; opacity: .8; display: block; line-height: 1; }
.btn-appstore .ba-main { font-size: 1.05rem; line-height: 1.1; }

/* ------------------------------------------------------------------ Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .03);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-dim);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 209, 122, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(91, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 209, 122, 0); }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
}

/* ------------------------------------------------------------------ Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 15, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.nav-brand .leaf { color: var(--green); margin-left: -0.45rem; }
.nav-brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); display: grid; place-items: center; color: #06140C; font-size: 1rem;
}
.mark { overflow: hidden; }
.mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-section { color: var(--text) !important; }
.nav-divider { width: 1px; height: 20px; background: var(--border-strong); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
/* "Stories" label sitting above the section tabs (The Leaf / Field Guide) */
.nav-stories { position: relative; display: inline-flex; align-items: center; padding: .35rem .9rem; border: 1px solid var(--border-strong); border-radius: 100px; }
.nav-stories .tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--bg); padding: 0 6px; font-size: .5rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FA2A52; line-height: 1; }
.nav-stories .tabs { display: flex; align-items: center; gap: 1.2rem; }

/* ------------------------------------------------------------------ Cinematic layers */
.cine { position: relative; overflow: hidden; }
.cine-bg { position: absolute; inset: 0; z-index: -3; }
.cine-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.28) saturate(1.05); transform: scale(1.06); }
.cine-grade { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(11,15,13,.5) 0%, rgba(11,15,13,.2) 40%, rgba(11,15,13,.95) 100%); }
.cine-glow { position: absolute; inset: 0; z-index: -2; mix-blend-mode: screen;
  background: radial-gradient(40% 50% at 25% 35%, rgba(91,209,122,.18), transparent 70%),
              radial-gradient(40% 50% at 80% 60%, rgba(46,125,246,.16), transparent 70%); }
.cine-grain { position: absolute; inset: 0; z-index: -1; opacity: .32; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------------ Sections */
section { position: relative; padding: 6rem 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .8rem 0; }
.section-head p { color: var(--text-dim); font-size: 1.1rem; }

/* ------------------------------------------------------------------ Cards / grids */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.6rem;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ------------------------------------------------------------------ Article cards (section indexes) */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.article-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--green); }
.article-card .thumb { aspect-ratio: 16/10; background: var(--card-2) center/cover no-repeat; }
.article-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.article-card .tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.article-card h3 { font-size: 1.1rem; margin: .5rem 0 .4rem; line-height: 1.25; }
.article-card .meta { font-size: .8rem; color: var(--text-faint); }

/* ------------------------------------------------------------------ Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.footer .brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; }
.footer .links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer .links a { color: var(--text-dim); font-size: .88rem; }
.footer .links a:hover { color: var(--green); }
.footer .copy { color: var(--text-faint); font-size: .82rem; }

/* ------------------------------------------------------------------ Article prose (The Leaf / Field Guide article pages) */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 7rem 1.5rem 4rem; }
.breadcrumb { font-size: .82rem; color: var(--text-faint); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--green); }
.deck { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.6; color: var(--text-dim); margin: 1.5rem 0 2.5rem; }
.prose { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.85; color: #E7ECE7; }
.prose p { margin: 0 0 1.5rem; }
.prose h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--text);
  margin: 2.6rem 0 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .6rem; letter-spacing: -.01em;
}
.prose h2::before { content: ''; width: 3px; height: 1.05em; border-radius: 2px; background: var(--grad); flex-shrink: 0; }
.prose a { color: var(--green); border-bottom: 1px solid rgba(87,199,122,.3); }
.prose strong { color: #fff; font-weight: 700; }
.prose em { color: var(--teal); font-style: italic; }
.pull-quote {
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; font-weight: 600;
  margin: 2.4rem 0; padding: 1.4rem 0; color: var(--text);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pull-quote::before { content: '\201C'; color: var(--green); margin-right: .3rem; }

/* ------------------------------------------------------------------ Newsletter block */
.news {
  padding: 1.4rem 0; margin: 2.5rem 0; text-align: center;
}
.news h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.news p { color: var(--text-dim); margin-bottom: 1.3rem; }
.news form { display: flex; gap: .6rem; max-width: 420px; margin: 0 auto; }
.news input {
  flex: 1; padding: .8rem 1rem; border-radius: var(--r-input);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-family: var(--font-body);
}
.news input:focus { outline: none; border-color: var(--green); }

/* ------------------------------------------------------------------ Utilities */
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  section { padding: 4rem 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 1rem;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; gap: 1rem;
  }
  .nav-toggle { display: block; }
  .footer { flex-direction: column; text-align: center; }
}

/* ================================================================ Article pages — single column, forkfox.ai Dish/Carte match */

.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--grad); transition: width .12s linear; }

/* shared hero bits */
.hero-eyebrow { font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.hero-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.55); max-width: 22ch; }
.art-badge { display: inline-flex; align-items: center; padding: .22rem .65rem; border-radius: var(--r-pill);
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.hero-grain { position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
@keyframes kenBurns { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* The Leaf (Dish): 920 single column, cinematic hero card + drop cap */
.leaf-wrap { max-width: 920px; margin: 0 auto; padding: 6rem 1.5rem 3.5rem; }
.leaf-wrap > .breadcrumb { margin-bottom: 1.4rem; }
.leaf-hero { position: relative; margin: 0 0 2.4rem; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21 / 9; min-height: 340px;
  background: #050807; box-shadow: 0 40px 110px rgba(0,0,0,.6), inset 0 0 0 1px var(--border); }
.leaf-hero-img { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: kenBurns 38s ease-in-out infinite; }
.leaf-hero-grade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,15,13,.18) 0%, rgba(11,15,13,.5) 55%, rgba(11,15,13,.94) 100%); }
.leaf-badge { position: absolute; top: 1.3rem; left: 1.3rem; z-index: 4; display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: var(--r-pill); background: rgba(11,15,13,.7); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); font-family: var(--font-display); font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.leaf-hero-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 2.3rem clamp(1.4rem, 4vw, 2.6rem); }

/* Field Guide (Carte): full-width hero band + 760 column */
.guide-hero { position: relative; height: 340px; overflow: hidden; }
.guide-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenBurns 38s ease-in-out infinite; }
.guide-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(11,15,13,.35) 0%, rgba(11,15,13,.55) 50%, rgba(11,15,13,.95) 100%); }
.art-body-img { margin: 2.8rem 0; }
.art-body-img img { width: 100%; max-height: 60vh; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--border); display: block; }
.img-caption { font-size: .78rem; color: var(--text-faint); margin-top: .6rem; font-style: italic; line-height: 1.5; }

/* --- Our Story page --- */
.our-story-hero { margin: 1rem 0 1.5rem; }
.our-story-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; margin: .4rem 0 1rem; max-width: 18ch; }
.our-story .deck { max-width: 56ch; }
.byline { font-size: .82rem; color: var(--text-faint); letter-spacing: .04em; margin: .4rem 0 1.5rem; }
.byline strong { color: var(--text-dim); font-weight: 700; }
.subscribe-thanks { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 12px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.22); color: var(--text-dim); font-size: .95rem; }
.book-row { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; margin: 2.5rem 0 2rem; padding: 1.5rem 0; }
.book-display { perspective: 1400px; padding: 1rem 0 2rem; }
.book-cover { position: relative; transform: rotateY(-10deg) rotate(-1.5deg); transform-style: preserve-3d;
  box-shadow: 0 6px 12px rgba(0,0,0,.45), 0 35px 70px rgba(0,0,0,.55), -20px 16px 34px rgba(0,0,0,.5);
  border-radius: 3px 9px 9px 3px; max-width: 300px; transition: transform .4s ease; }
.book-cover:hover { transform: rotateY(-6deg) rotate(-0.5deg); }
.book-cover img { width: 100%; display: block; border-radius: inherit; }
.book-cover::before { content: ''; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 12px;
  background: linear-gradient(to right, #1a1308, #2a1f0e 50%, #1a1308); border-radius: 3px 0 0 3px;
  box-shadow: inset 2px 0 4px rgba(0,0,0,.5); transform: skewY(-1.5deg); }
.book-cover::after { content: ''; position: absolute; right: -4px; top: 8px; bottom: 8px; width: 7px;
  background: repeating-linear-gradient(to bottom, #e8d4a8 0px, #e8d4a8 2px, #c9b079 2px, #c9b079 4px);
  border-radius: 0 3px 3px 0; opacity: .65; transform: skewY(-1deg); }
.book-narrative h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--text);
  margin: 0 0 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .6rem; letter-spacing: -.01em; }
.book-narrative h2::before { content: ''; width: 3px; height: 1.05em; border-radius: 2px; background: var(--grad); flex-shrink: 0; }
.story-cta { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 2.5rem 0 2rem; max-width: 720px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
  transition: transform .25s, border-color .25s; text-decoration: none; color: inherit; }
.story-cta:hover { transform: translateY(-3px); border-color: var(--green); }
.story-cta-thumb { background: var(--card-2) center/cover no-repeat; min-height: 140px; }
.story-cta-body { padding: 1.3rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.story-cta-tag { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .45rem; }
.story-cta-title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; margin-bottom: .5rem; }
.story-cta-meta { font-size: .85rem; color: var(--text-dim); }
@media (max-width: 720px) {
  .book-row { grid-template-columns: 1fr; gap: 1.5rem; padding: .5rem 0; }
  .book-display { padding: 0; }
  .book-cover { max-width: 240px; margin: 0 auto; }
  .story-cta { grid-template-columns: 1fr; }
  .story-cta-thumb { min-height: 180px; }
}
.guide-hero-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-width: 860px; margin: 0 auto; padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 1.7rem; }
.guide-hero-content .breadcrumb { margin-bottom: .55rem; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; font-size: .72rem; color: var(--text-faint); }
.hero-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }
.guide-wrap { max-width: 760px; margin: 0 auto; padding: 2.4rem 1.5rem 3.5rem; }

.stat-pull { display: flex; align-items: flex-start; gap: 1rem; background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 2rem; }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--green); line-height: 1; flex-shrink: 0; }
.stat-label { font-size: .9rem; color: var(--text-dim); line-height: 1.55; padding-top: .25rem; }

.picks-label { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .2rem; }
.pick { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.pick-num { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--green); }
.pick-name { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; margin-bottom: .2rem; }
.pick-location { font-size: .82rem; color: var(--text-faint); margin-bottom: .6rem; }
.pick-desc { font-family: var(--font-serif); color: #E7ECE7; line-height: 1.75; }
.pick-tag { display: inline-block; margin-top: .6rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }

/* drop cap on the first prose paragraph (Dish) */
.leaf-wrap .prose > p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; float: left; line-height: .82; margin: .06em .12em 0 0; color: var(--green); font-weight: 900; }

/* related grid */
.related { max-width: 920px; margin: 0 auto; padding: 2.4rem 1.5rem 4rem; border-top: 1px solid var(--border); }
.related--narrow { max-width: 760px; }
.related-label { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.related-card { display: flex; flex-direction: column; min-height: 250px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; transition: transform .22s, border-color .22s; }
.related-card:hover { transform: translateY(-3px); border-color: var(--green); }
.related-card .rc-thumb { height: 140px; background: var(--card-2) center/cover no-repeat; }
.related-card .rc-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.related-card .rc-tag { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: .4rem; }
.related-card .rc-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.related-card .rc-meta { font-size: .75rem; color: var(--text-faint); margin-top: auto; padding-top: .7rem; }

@media (max-width: 768px) {
  .leaf-wrap { padding: 5rem 1.25rem 3rem; }
  .leaf-hero { min-height: 240px; }
  .guide-hero { height: 240px; }
  .guide-wrap { padding: 2rem 1.25rem 3rem; }
}

/* ===== Subscriber wall (server-rendered into preview.html) ===== */
.lp-wall { max-width: 520px; margin: .5rem auto 1.8rem; padding: 2rem 1.7rem; text-align: center; background: #0b0f0d; color: #e8efe9; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,.32); }
.lp-wall h3 { font-family: 'Geologica', sans-serif; font-size: 1.45rem; margin: 0 0 .5rem; color: #f3f7f3; }
.lp-wall p { color: #b8c8bb; max-width: 44ch; margin: 0 auto 1.3rem; line-height: 1.55; }
.lp-wall .btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.lp-wall a, .lp-wall button { display: inline-block; padding: .72rem 1.35rem; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: .92rem; font-family: inherit; cursor: pointer; border: 0; line-height: 1.2; }
.lp-wall .primary { background: #FA2A52; color: #fff; }
.lp-wall .ghost { background: transparent; color: #e8efe9; border: 1px solid rgba(255,255,255,.28); }
.lp-signin { display: none; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.12); }
.lp-signin.open { display: block; }
.lp-signin .row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: .7rem; }
.lp-signin .prov { background: #fff; color: #111; min-width: 200px; }
.lp-signin .prov.google { background: #f1f3f4; }
.lp-signin form { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .2rem; }
.lp-signin input { padding: .6rem .8rem; border-radius: 9px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #e8efe9; font-size: .9rem; min-width: 150px; }
.lp-signin input::placeholder { color: #7e8d80; }
.lp-signin .status { min-height: 1.2em; margin: .6rem 0 0; font-size: .85rem; color: #b8c8bb; }
.lp-signin .status.err { color: #ff8aa0; }

/* ===== Nav account chip (signed-in visitors) ===== */
.nav-links .lp-account { position: relative; display: flex; align-items: center; }
.lp-account-btn { display: inline-flex; align-items: center; gap: .45rem; background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; padding: .3rem .35rem; }
.lp-avatar { width: 26px; height: 26px; border-radius: 50%; background: #FA2A52; color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex: none; }
.lp-account-btn .lp-account-name { font-weight: 600; font-size: .92rem; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-caret { font-size: .65rem; opacity: .7; flex: none; }
.lp-account-menu { position: absolute; top: calc(100% + .4rem); right: 0; min-width: 210px; background: #0b0f0d; color: #e8efe9; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.4); padding: .55rem; z-index: 200; }
.lp-account-menu[hidden] { display: none; }
.lp-account-menu .lp-account-fullname { font-weight: 700; font-size: .95rem; color: #f3f7f3; padding: .3rem .5rem .1rem; word-break: break-word; }
.lp-account-email { font-size: .76rem; color: #b8c8bb; padding: .05rem .5rem .55rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .35rem; word-break: break-all; }
.lp-signout { width: 100%; text-align: left; background: transparent; border: 0; color: #e8efe9; font: inherit; font-weight: 600; padding: .55rem .5rem; border-radius: 8px; cursor: pointer; }
.lp-signout:hover { background: rgba(255,255,255,.08); }
