/* ============================================================
   La Winspire Blog System — Shared Stylesheet
   Premium · Minimal · Editorial
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --red:        #C8102E;
  --red-dark:   #a00d24;
  --red-soft:   #fdf2f4;
  --charcoal:   #1a1a1a;
  --mid:        #4a4a4a;
  --muted:      #7a7a7a;
  --border:     #e8e2dc;
  --bg:         #faf9f7;
  --white:      #ffffff;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --radius:     12px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.12);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Topbar ── */
.topbar {
  background: var(--charcoal);
  color: #ccc;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #ccc; transition: color var(--transition); }
.topbar a:hover { color: var(--red); }
.topbar-right { display: flex; gap: 24px; }

/* ── Header / Nav ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 48px; width: auto; }
.logo-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.02em;
}
.logo-sub { font-size: 0.65rem; font-family: var(--sans); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--red); }
.mobile-nav .mob-cta {
  margin-top: 16px;
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
}

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2d1a1e 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(200,16,46,.18) 0%, transparent 65%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(200,16,46,.12);
  border: 1px solid rgba(200,16,46,.3);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Blog Grid (Listing Page) ── */
.blog-section { padding: 72px 0 100px; }
.section-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.section-meta h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--charcoal);
}
.section-count {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeUp .5s ease both;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,16,46,.2);
}

.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
}

.card-body { padding: 28px 28px 20px; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 14px;
  transition: color var(--transition);
}
.blog-card:hover .card-title { color: var(--red); }
.card-preview {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.read-time {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.read-time svg { opacity: .5; }

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  transition: gap var(--transition), color var(--transition);
}
.btn-read-more:hover { gap: 10px; color: var(--red-dark); }
.btn-read-more svg { transition: transform var(--transition); }
.btn-read-more:hover svg { transform: translateX(3px); }

/* ── Blog Post Page ── */
.post-hero {
  background: linear-gradient(135deg, #1a0a0e 0%, var(--charcoal) 100%);
  color: var(--white);
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,.15) 0%, transparent 60%);
  pointer-events: none;
}
.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}
.post-breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.post-breadcrumb a:hover { color: var(--white); }
.post-breadcrumb span { color: rgba(255,255,255,.3); }

.post-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(200,16,46,.12);
  border: 1px solid rgba(200,16,46,.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}
.post-meta-row .dot { opacity: .4; }
.post-meta-author { color: rgba(255,255,255,.8); font-weight: 500; }

/* ── Post Content ── */
.post-content-wrap {
  padding: 72px 24px 100px;
}
.post-layout {
  max-width: 820px;
  margin: 0 auto;
}
.post-lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--mid);
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--red);
  padding-left: 24px;
  margin-bottom: 40px;
}
.post-body { font-size: 1.05rem; color: var(--mid); line-height: 1.85; }
.post-body p { margin-bottom: 24px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--charcoal); font-weight: 600; }

/* Poem/prose content styling */
.post-body.prose-poem {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--charcoal);
}
.post-body.prose-poem p {
  margin-bottom: 16px;
}

.post-divider {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 48px 0;
}

/* ── Share / CTA ── */
.post-cta-box {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a1218 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  color: var(--white);
}
.post-cta-box h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.post-cta-box p { color: rgba(255,255,255,.65); font-size: 0.95rem; margin-bottom: 28px; }
.btn-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ── Back button ── */
.back-bar {
  padding: 20px 32px;
  max-width: 820px;
  margin: 0 auto;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), gap var(--transition);
}
.btn-back:hover { color: var(--red); gap: 4px; }
.btn-back svg { transition: transform var(--transition); }
.btn-back:hover svg { transform: translateX(-3px); }

/* ── More Articles ── */
.more-articles {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 72px 32px;
}
.more-articles h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.more-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}
.more-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200,16,46,.2);
}
.more-card-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.more-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
}
.more-center { text-align: center; }

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.6);
  padding: 56px 40px 28px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo-text {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.footer-desc { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--red); }
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,.55);
}
.footer-contact-line a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-contact-line a:hover { color: var(--red); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--red); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blog-card:nth-child(1) { animation-delay: .05s; }
.blog-card:nth-child(2) { animation-delay: .10s; }
.blog-card:nth-child(3) { animation-delay: .15s; }
.blog-card:nth-child(4) { animation-delay: .20s; }
.blog-card:nth-child(5) { animation-delay: .25s; }
.blog-card:nth-child(6) { animation-delay: .30s; }
.blog-card:nth-child(7) { animation-delay: .35s; }
.blog-card:nth-child(8) { animation-delay: .40s; }
.blog-card:nth-child(9) { animation-delay: .45s; }
.blog-card:nth-child(10) { animation-delay: .50s; }
.blog-card:nth-child(11) { animation-delay: .55s; }
.blog-card:nth-child(12) { animation-delay: .60s; }
.blog-card:nth-child(13) { animation-delay: .65s; }
.blog-card:nth-child(14) { animation-delay: .70s; }
.blog-card:nth-child(15) { animation-delay: .75s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .topbar { padding: 8px 20px; font-size: 0.73rem; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .more-grid { grid-template-columns: 1fr; }
  .post-cta-box { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .topbar-right { display: none; }
  .page-hero { padding: 56px 20px 48px; }
  .post-hero { padding: 64px 20px 56px; }
  .container { padding: 0 20px; }
  .blog-section { padding: 48px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-meta { flex-direction: column; gap: 8px; }
  .back-bar { padding: 20px; }
}
