/* ============================================================
   LONGEVITY MARBELLA — ARTICLE / JOURNAL STYLES
   Shared across all article pages. Pairs with assets/styles.css
   (compiled Tailwind + fonts).
   ============================================================ */

:root {
  --gold:        #c9a961;
  --gold-bright: #d6ba7d;
  --gold-soft:   #e6d4a4;
  --gold-deep:   #8c7849;
  --ink:         #0a0807;
  --char:        #15110d;
  --hair:        rgba(214, 211, 209, 0.08);
  --hair-gold:   rgba(201, 169, 97, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink);
  color: #ebe9e6;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: #f5f5f4;
}

a { color: inherit; }

/* Film grain overlay (matches homepage) */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.72  0 0 0 0 0.44  0 0 0 0.55 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid rgba(41, 37, 36, 0.6);
  background: rgba(10, 8, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease;
}
.site-header.scrolled { background: rgba(10, 8, 7, 0.97); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.header-inner {
  max-width: 80rem; margin: 0 auto;
  height: 7rem; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (max-width: 1023px) { .header-inner { height: 5rem; padding: 0 1.25rem; } }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 84px; height: 84px; object-fit: contain; display: block; }
@media (max-width: 1023px) { .brand img { width: 48px; height: 48px; } }
.brand-name {
  display: block;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; letter-spacing: 0.3em; font-weight: 500;
  color: #f5f5f4; text-transform: uppercase; line-height: 1;
}
.brand-sub {
  display: block;
  white-space: nowrap;
  font-size: 11px; letter-spacing: 0.34em; font-weight: 600;
  color: var(--gold); text-transform: uppercase; line-height: 1; margin-top: 6px;
}
@media (max-width: 1023px) {
  .brand-name { font-size: 16px; letter-spacing: 0.22em; }
  .brand-sub { font-size: 9.5px; letter-spacing: 0.28em; }
}
@media (max-width: 380px) { .brand-sub { display: none; } .brand-name { font-size: 15px; } .brand img { width: 42px; height: 42px; } }
.header-nav { display: flex; align-items: center; gap: 2.25rem; }
@media (max-width: 1023px) { .header-nav { display: none; } }
.nav-link {
  position: relative; text-decoration: none;
  color: #d6d3d1; font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500; transition: color 0.4s ease;
}
.nav-link:hover { color: var(--gold-bright); }
.nav-link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -6px;
  height: 1px; background: var(--gold-bright);
  transition: left 0.35s ease, right 0.35s ease;
}
.nav-link:hover::after { left: 0; right: 0; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; background: var(--gold); color: #0a0807;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; transition: background 0.4s ease;
}
.header-cta:hover { background: var(--gold-bright); }
@media (max-width: 1023px) { .header-cta { display: none; } }

/* ---------- Editorial bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  white-space: nowrap;
  color: var(--gold); font-size: 12.5px; letter-spacing: 0.28em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 22px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 32px; height: 1px; background: var(--gold); opacity: 0.6;
}
.eyebrow.left::before { display: none; }
.rule-diamond {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px auto 0; max-width: 220px;
}
.rule-diamond::before, .rule-diamond::after {
  content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.45;
}
.rule-diamond i {
  display: block; width: 6px; height: 6px; background: var(--gold);
  transform: rotate(45deg); box-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
}

/* ---------- Article hero ---------- */
.article-hero {
  position: relative;
  padding-top: 9rem;
  min-height: 70vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
@media (max-width: 1023px) { .article-hero { padding-top: 7rem; min-height: 60vh; } }
.article-hero-bg { position: absolute; inset: 0; z-index: 0; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.02); }
.article-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 30% 60%, rgba(10,8,7,0.55) 0%, transparent 75%),
    linear-gradient(180deg, rgba(10,8,7,0.70) 0%, rgba(10,8,7,0.35) 45%, rgba(10,8,7,0.92) 100%);
}
.article-hero-inner {
  position: relative; z-index: 1;
  max-width: 52rem; margin: 0 auto; width: 100%;
  padding: 0 2rem 4.5rem;
}
.article-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08; font-weight: 600; color: #ffffff;
  margin: 0 0 1.25rem;
  text-shadow: 0 3px 24px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.85);
}
.article-hero .dek {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.5; color: var(--gold-soft); max-width: 40rem;
  margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.article-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 1.75rem;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #cbc7c1; font-weight: 500;
}
.article-meta-row .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.article-tag-pill {
  padding: 5px 12px; border: 1px solid var(--hair-gold);
  color: var(--gold-bright); font-weight: 600;
}

/* ---------- Article body ---------- */
.article-body {
  max-width: 44rem; margin: 0 auto; padding: 4.5rem 2rem 2rem;
}
.article-lead {
  font-size: 1.32rem; line-height: 1.65; color: #f0ede9;
  border-left: 2px solid var(--gold); padding-left: 1.5rem; margin: 0 0 2.5rem;
  font-weight: 400;
}
.article-lead strong { color: #ffffff; font-weight: 600; }
.article-body p { color: #cbc7c1; margin: 0 0 1.5rem; font-size: 1.08rem; line-height: 1.85; }
.article-body p strong { color: #f0ede9; font-weight: 600; }
.article-body h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.18;
  margin: 3rem 0 1.1rem; color: #ffffff;
}
.article-body h2 .accent { color: var(--gold-bright); font-style: italic; }
.article-body h3 {
  font-size: 1.4rem; line-height: 1.25; margin: 2.2rem 0 0.9rem; color: #f5ecd5;
}
.article-body ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.article-body ul li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.85rem;
  color: #cbc7c1; line-height: 1.7; font-size: 1.05rem;
}
.article-body ul li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; background: var(--gold);
  transform: rotate(45deg);
}
.article-body ul li strong { color: #f0ede9; font-weight: 600; }
.section-rule {
  height: 1px; border: 0; margin: 3rem 0;
  background: linear-gradient(to right, transparent, rgba(201,169,97,0.35), transparent);
}

/* ---------- PDF download callout ---------- */
.pdf-callout {
  display: flex; align-items: center; gap: 1.5rem;
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  border: 1px solid var(--hair-gold);
  background: linear-gradient(180deg, rgba(40,31,20,0.5), rgba(20,15,10,0.25));
  text-decoration: none;
  transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
}
.pdf-callout:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(55,43,26,0.6), rgba(25,19,12,0.3));
}
.pdf-icon {
  flex-shrink: 0; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair-gold); color: var(--gold-bright);
}
.pdf-callout-text { flex: 1; }
.pdf-callout-label {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.pdf-callout-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.35rem;
  color: #f5f5f4; line-height: 1.2; font-weight: 500;
}
.pdf-callout-sub { font-size: 13px; color: #a8a39c; margin-top: 4px; }
.pdf-arrow { flex-shrink: 0; color: var(--gold-bright); transition: transform 0.4s ease; }
.pdf-callout:hover .pdf-arrow { transform: translateX(5px); }
@media (max-width: 560px) {
  .pdf-callout { flex-wrap: wrap; gap: 1rem; padding: 1.5rem; }
  .pdf-arrow { display: none; }
}

/* ---------- Recap / highlight box ---------- */
.recap-box {
  border: 1px solid var(--hair); background: rgba(28,21,14,0.4);
  padding: 2rem 2.25rem; margin: 3rem 0;
}
.recap-box .recap-label {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.2rem;
}
.recap-box ul { margin: 0; }

/* ---------- FAQ ---------- */
.faq-section { max-width: 44rem; margin: 0 auto; padding: 1rem 2rem 3rem; }
.faq-item { border-top: 1px solid var(--hair); padding: 1.6rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-q {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  color: #f5ecd5; margin: 0 0 0.7rem; font-weight: 500; line-height: 1.25;
}
.faq-a { color: #cbc7c1; margin: 0; line-height: 1.8; font-size: 1.05rem; }

/* ---------- Disclaimer / sources ---------- */
.article-footnote {
  max-width: 44rem; margin: 0 auto; padding: 2rem;
}
.article-footnote p {
  font-size: 13.5px; line-height: 1.7; color: #8a857e;
  font-style: italic; margin: 0 0 1rem;
}
.article-footnote .sources { font-style: normal; color: #9a958e; }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 44rem; margin: 1rem auto 0; padding: 0 2rem;
  width: 100%;
}
.back-link a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-bright); text-decoration: none;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600;
  transition: gap 0.4s ease;
}
.back-link a:hover { gap: 16px; }

/* ---------- Related / CTA band ---------- */
.article-cta-band {
  margin-top: 4rem;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(21,17,13,0.6), rgba(10,8,7,0.9));
  padding: 5rem 2rem;
  text-align: center;
}
.article-cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 1rem; color: #fff;
}
.article-cta-band h2 .accent { color: var(--gold-bright); font-style: italic; }
.article-cta-band p { color: #c8c4be; max-width: 34rem; margin: 0 auto 2rem; }
.btn-luxe {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 40px; background: var(--gold); color: #0a0807;
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; transition: all 0.4s ease;
}
.btn-luxe:hover { background: var(--gold-bright); box-shadow: 0 0 50px rgba(201,169,97,0.28); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; background: var(--ink); overflow: hidden;
  border-top: 1px solid var(--hair);
}

/* ---------- Journal hub ---------- */
.hub-hero {
  padding: 11rem 2rem 3rem; text-align: center;
}
@media (max-width: 1023px) { .hub-hero { padding: 8rem 1.5rem 2.5rem; } }
.hub-hero .numeral {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300; font-size: 15px;
  letter-spacing: 0.5em; text-indent: 0.5em; color: var(--gold);
  opacity: 0.85; margin-bottom: 14px;
}
.hub-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05;
  color: #fff; margin: 0 0 0.5rem; font-weight: 600;
}
.hub-hero h1 .accent { color: var(--gold-bright); font-style: italic; font-weight: 500; }
.hub-hero p {
  color: #c8c4be; max-width: 36rem; margin: 1.5rem auto 0;
  font-size: 1.1rem; line-height: 1.7;
}
.hub-grid {
  max-width: 80rem; margin: 0 auto; padding: 2rem 2rem 5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; gap: 22px; } }
.hub-card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(28,21,14,0.45), rgba(15,12,9,0.20));
  transition: border-color 0.5s ease, transform 0.5s ease;
}
.hub-card:hover { border-color: var(--hair-gold); transform: translateY(-4px); }
.hub-card.is-soon { pointer-events: none; }
.hub-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hub-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s ease; filter: grayscale(0.1) contrast(1.02);
}
.hub-card:hover .hub-thumb img { transform: scale(1.05); }
.hub-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,0.10) 0%, rgba(10,8,7,0.55) 100%);
}
.hub-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 5px 11px; background: rgba(10,8,7,0.7);
  border: 1px solid var(--hair-gold); color: var(--gold-bright);
  font-size: 9.5px; letter-spacing: 0.24em; text-indent: 0.24em;
  text-transform: uppercase; font-weight: 600; backdrop-filter: blur(4px);
}
.hub-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.hub-meta {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.hub-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.62rem;
  line-height: 1.18; color: #f5f5f4; font-weight: 500;
  margin-bottom: 12px; letter-spacing: -0.005em;
}
.hub-excerpt { font-size: 14.5px; line-height: 1.65; color: #b8b3ac; margin-bottom: 20px; flex: 1; }
.hub-readmore {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 600; position: relative;
  padding-bottom: 6px; width: max-content;
}
.hub-readmore::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px;
  width: 100%; background: var(--gold);
  transform: scaleX(0.3); transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.hub-card:hover .hub-readmore::after { transform: scaleX(1); }
.hub-card.is-soon .hub-readmore { color: #8a857e; }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 4rem 2rem 2.5rem; }
.footer-row {
  display: flex; flex-direction: column; gap: 0.75rem; max-width: 24rem;
}
.footer-row a, .footer-row div.fr {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: #a8a39c; font-size: 14px; transition: color 0.3s ease;
}
.footer-row a:hover { color: var(--gold-bright); }
.footer-ic {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(201,169,97,0.1); border: 1px solid rgba(201,169,97,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--gold-bright);
}
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; position: relative;
  display: flex; flex-direction: column; gap: 1rem;
}
.footer-bottom::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(120,113,108,0.5), transparent);
}
.footer-bottom p { color: #6b655e; font-size: 12px; margin: 0; line-height: 1.6; }
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom p:last-child { text-align: right; max-width: 28rem; }
}
