/**
 * Lustforlife Journal — shared editorial layout (index + articles).
 * Uses site tokens; pair with lfl-nav.css on journal pages.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand: #E8DFD0;
  --sand-light: #F5F1EB;
  --sand-dark: #C4B8A5;
  --sea: #1B3A4B;
  --sea-light: #2E5A6E;
  --gold: #C8A96E;
  --gold-light: #D4BE8E;
  --white: #FEFCF9;
  --text: #3D3529;
  --text-light: #6B5D50;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body.lfl-journal-page {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: clip;
}

#lfl-nav-mount { height: 0; overflow: visible; }

body.lfl-photo-hero-page #navbar:not(.scrolled) {
  background: linear-gradient(
    180deg,
    rgba(27, 58, 75, 0.62) 0%,
    rgba(27, 58, 75, 0.28) 55%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(232, 223, 208, 0.1);
  box-shadow: none;
}
body.lfl-photo-hero-page #navbar.scrolled { border-bottom: none; }

img { max-width: 100%; height: auto; display: block; }

/* ── Hero ── */
.journal-hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--sea);
}
.journal-hero--article { min-height: min(62vh, 480px); }
.journal-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.journal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 75, 0.52) 0%,
    rgba(27, 58, 75, 0.24) 45%,
    rgba(22, 54, 72, 0.4) 100%
  );
}
.journal-hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  pointer-events: none;
  z-index: 2;
}
.journal-hero-waves svg { width: 100%; height: 100%; display: block; }
.journal-hero-inner {
  position: relative;
  z-index: 3;
  padding: clamp(4.5rem, 10vw, 5.5rem) 1.5rem 4.5rem;
  max-width: 42rem;
}
.journal-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 169, 110, 0.45);
  padding: 0.45rem 1.15rem;
  margin-bottom: 1.25rem;
}
.journal-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.12;
  text-shadow: 0 2px 20px rgba(13, 42, 56, 0.5);
}
.journal-hero-sub {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: rgba(254, 252, 249, 0.92);
  font-weight: 300;
  line-height: 1.65;
}
.journal-hero-meta {
  margin-top: 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 223, 208, 0.75);
}

/* ── Main wrap ── */
.journal-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}
.journal-wrap--wide {
  max-width: 52rem;
}

.page-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.journal-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--sea);
  margin-bottom: 1.1rem;
  line-height: 1.25;
}
.journal-wrap > p,
.journal-prose p {
  font-size: 0.97rem;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 0.95rem;
}
.journal-wrap > p:last-child { margin-bottom: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 3rem 0;
}

/* ── Article prose ── */
.journal-prose {
  font-size: 0.97rem;
  color: var(--text-light);
  font-weight: 300;
}
.journal-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--sea);
  margin: 2.25rem 0 1rem;
  line-height: 1.25;
}
.journal-prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--sea);
  margin: 1.75rem 0 0.65rem;
}
.journal-prose ul,
.journal-prose ol {
  margin: 0.5rem 0 1rem 1.35rem;
}
.journal-prose li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}
/* journal-prose links: /css/lfl-editorial-links.css */
.journal-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--sand-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--sea);
  line-height: 1.45;
}
.journal-prose figure {
  margin: 2rem 0;
}
.journal-prose figcaption {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
}

/* ── Index: article cards ── */
.journal-card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.journal-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(196, 184, 165, 0.45);
  background: var(--sand-light);
  transition: border-color 0.2s, background 0.2s;
}
.journal-card:hover {
  border-color: var(--gold);
  background: var(--white);
}
.journal-card-inner {
  padding: 1.35rem 1.4rem;
}
.journal-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.journal-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--sea);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.journal-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
  margin: 0;
  line-height: 1.65;
}
.journal-card-date {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-dark);
}
.journal-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--sand-light);
  border: 1px dashed rgba(196, 184, 165, 0.6);
}
.journal-empty p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* ── Article FAQ ── */
.journal-faq { margin: 0; }
.journal-faq .faq-item { border-bottom: 1px solid var(--sand-dark); }
.journal-faq .faq-item:first-of-type { border-top: 1px solid var(--sand-dark); }
.journal-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--sea);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.journal-faq summary::-webkit-details-marker { display: none; }
.journal-faq summary::after { content: '+'; color: var(--gold); flex-shrink: 0; }
.journal-faq details[open] summary::after { content: '−'; }
.journal-faq details p {
  padding-bottom: 1.1rem;
  font-size: 0.97rem;
  color: var(--text-light);
  font-weight: 300;
  margin: 0;
}

/* ── Related links (internal linking) ── */
.journal-related { margin: 0; }
.journal-related .related-intro {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-light);
  margin: 0 0 0.25rem;
  line-height: 1.75;
}
.journal-related-links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.journal-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.15rem;
  background: var(--sand-light);
  border: 1px solid rgba(196, 184, 165, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--sea);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.journal-related-links a::after {
  content: '→';
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}
.journal-related-links a:hover {
  border-color: var(--gold);
  color: var(--sea-light);
  background: var(--white);
}

.journal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
  text-decoration: none;
  transition: color 0.2s;
}
.journal-back:hover { color: var(--gold); }
.journal-back::before { content: '← '; }

/* ── CTA band ── */
.journal-cta {
  background: linear-gradient(165deg, var(--sea) 0%, #163648 100%);
  color: var(--sand);
  margin: 3.5rem -2rem 0;
  padding: 3.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.journal-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(74, 144, 164, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 90% 10%, rgba(200, 169, 110, 0.1) 0%, transparent 60%);
}
.journal-cta-inner { position: relative; z-index: 1; }
.journal-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--sand);
  margin-bottom: 0.75rem;
}
.journal-cta p {
  color: rgba(232, 223, 208, 0.8);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
}
.journal-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn-primary,
.btn-outline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.9rem;
  font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--gold); color: var(--sea); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  border: 1px solid rgba(232, 223, 208, 0.45);
  color: var(--sand);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

footer {
  background: var(--sea);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--sand-dark);
  letter-spacing: 0.05em;
}
footer a { color: var(--sand-dark); text-decoration: none; }
footer a:hover { color: var(--sand); }

@media (max-width: 680px) {
  .journal-hero { min-height: min(68vh, 480px); }
  .journal-hero-bg { object-position: center 42%; }
  .journal-hero-inner { padding: 5rem 1.2rem 4rem; }
  .journal-wrap { padding: 2.5rem 1.2rem 0; }
  .journal-cta { margin-left: -1.2rem; margin-right: -1.2rem; padding: 2.5rem 1.2rem; }
}
