/* ═══════════════════════════════════════════════════
   NOUVELLVIE — BLOG / SUCCESS STORIES CSS
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --sand:       #F2EDE4;
  --cream:      #FAF7F2;
  --ink:        #1C1914;
  --ink-80:     rgba(28,25,20,0.80);
  --ink-70:     rgba(28,25,20,0.70);
  --ink-60:     rgba(28,25,20,0.60);
  --ink-45:     rgba(28,25,20,0.45);
  --ink-40:     rgba(28,25,20,0.40);
  --ink-35:     rgba(28,25,20,0.35);
  --ink-15:     rgba(28,25,20,0.15);
  --ink-08:     rgba(28,25,20,0.08);
  --amber:      #ef4c23;
  --amber-deep: #c93a14;
  --dark:       #18160F;
  --serif:      'Cormorant Garamond', 'Georgia', serif;
  --sans:       'Outfit', -apple-system, sans-serif;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --app-w:      500px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: 100%;
}

body {
  font-family: var(--sans);
  background: #E8E4DC;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── FRAME ──────────────────────────────────────── */
.frame {
  width: 100%;
  max-width: var(--app-w);
  min-height: 100vh;
  background: var(--cream);
  box-shadow: 0 0 80px rgba(28,25,20,0.2);
}

/* ── BLOG HERO ──────────────────────────────────── */
.blog-hero {
  background: var(--dark);
  padding: 52px 24px 40px;
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(239,76,35,0.12), transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(200,133,58,0.08), transparent 45%);
  pointer-events: none;
}

.blog-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(250,247,242,0.45);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 280ms var(--ease-out);
  position: relative;
  z-index: 1;
}

.blog-hero__back:hover { color: rgba(250,247,242,0.7); text-decoration: none; }
.blog-hero__back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.blog-hero__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.blog-hero__sub {
  font-size: 0.82rem;
  color: rgba(250,247,242,0.5);
  line-height: 1.65;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* ── BREADCRUMB ─────────────────────────────────── */
.breadcrumb {
  padding: 16px 24px 0;
  font-size: 0.68rem;
  color: var(--ink-40);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--ink-40);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--amber); text-decoration: none; }
.breadcrumb__sep { opacity: 0.4; }

/* ── STORY LISTING CARDS ────────────────────────── */
.stories-listing {
  padding: 24px 20px 48px;
}

.story-listing-card {
  background: #fff;
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.story-listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(28,25,20,0.1);
  text-decoration: none;
  color: inherit;
}

.story-listing-card__visual {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.story-listing-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4));
}

.story-listing-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  z-index: 1;
}

.story-listing-card__time {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.62rem;
  font-weight: 600;
  z-index: 1;
}

.story-listing-card__route {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 1;
}

.story-listing-card__body {
  padding: 18px 18px 20px;
}

.story-listing-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.story-listing-card__excerpt {
  font-size: 0.78rem;
  color: var(--ink-60);
  line-height: 1.65;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-listing-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-listing-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.story-listing-card__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}

.story-listing-card__arrow {
  width: 20px;
  height: 20px;
  color: var(--amber);
  transition: transform 280ms var(--ease-out);
}

.story-listing-card:hover .story-listing-card__arrow {
  transform: translateX(3px);
}

/* ── ARTICLE PAGE ───────────────────────────────── */
.article-hero {
  position: relative;
  overflow: hidden;
}

.article-hero__visual {
  height: 220px;
  position: relative;
}

.article-hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,22,15,0.3) 0%, rgba(24,22,15,0.8) 100%);
}

.article-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 24px;
  z-index: 1;
}

.article-hero__tag {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.article-hero__title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
}

.article-hero__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

/* ── ARTICLE BODY ───────────────────────────────── */
.article-body {
  padding: 28px 24px 40px;
}

.article-body p {
  font-size: 0.86rem;
  color: var(--ink-80);
  line-height: 1.82;
  margin-bottom: 18px;
}

.article-body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.2rem;
  float: left;
  line-height: 0.85;
  margin: 4px 10px 0 0;
  color: var(--amber);
  font-weight: 400;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 14px;
  letter-spacing: -0.01em;
}

/* Quote block */
.article-quote {
  border-left: 3px solid var(--amber);
  padding: 16px 20px;
  margin: 28px 0;
  background: rgba(239,76,35,0.04);
  border-radius: 0 10px 10px 0;
}

.article-quote p {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-80);
  line-height: 1.6;
  margin: 0;
}

.article-quote p::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
}

.article-quote cite {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-45);
  margin-top: 8px;
}

/* Divider */
.article-divider {
  text-align: center;
  margin: 32px 0;
  color: var(--ink-15);
  font-size: 1.2rem;
  letter-spacing: 8px;
}

/* Stats/highlight box */
.article-highlight {
  background: var(--dark);
  color: var(--cream);
  border-radius: 14px;
  padding: 20px;
  margin: 28px 0;
}

.article-highlight__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.article-highlight__text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(250,247,242,0.85);
}

/* ── CTA SECTION ────────────────────────────────── */
.article-cta {
  background: var(--dark);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 36px 0 0;
}

.article-cta__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
}

.article-cta__sub {
  font-size: 0.78rem;
  color: rgba(250,247,242,0.5);
  margin-bottom: 18px;
  line-height: 1.6;
}

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(239,76,35,0.38);
  transition: all 280ms var(--ease-out);
}

.article-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 48px rgba(239,76,35,0.32);
  text-decoration: none;
}

.article-cta__btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* ── RELATED STORIES ────────────────────────────── */
.related-stories {
  padding: 28px 20px 48px;
  border-top: 1px solid var(--ink-08);
}

.related-stories__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.related-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-08);
  text-decoration: none;
  color: inherit;
  transition: opacity 200ms;
}

.related-card:last-child { border-bottom: none; }
.related-card:hover { opacity: 0.75; text-decoration: none; color: inherit; }

.related-card__visual {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
}

.related-card__info { flex: 1; min-width: 0; }

.related-card__title {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.related-card__meta {
  font-size: 0.68rem;
  color: var(--ink-40);
}

/* ── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PAGE FOOTER ────────────────────────────────── */
.blog-footer {
  padding: 20px 24px 32px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--ink-35);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 520px) {
  .blog-hero { padding: 48px 20px 36px; }
  .blog-hero h1 { font-size: 1.8rem; }
  .stories-listing { padding: 20px 16px 40px; }
  .article-body { padding: 24px 20px 36px; }
  .article-hero__title { font-size: 1.5rem; }
  .article-hero__visual { height: 180px; }
}
