/* ==========================================================================
   HIMEL PORTFOLIO — DEDICATED BLOG ARTICLE STYLING
   Preserves dark black background, cream/off-white typography, and premium aesthetic
   ========================================================================== */

:root {
  --bg-primary: #0e0e0e;
  --bg-card: #141414;
  --bg-elevated: #1a1917;
  --color-cream: #EBDDC3;
  --color-cream-dim: #b8ac96;
  --color-cream-faint: rgba(235, 221, 195, 0.08);
  --text-primary: #F7EFE2;
  --text-muted: #8e887d;
  --border-subtle: rgba(235, 221, 195, 0.16);
  --border-hover: rgba(235, 221, 195, 0.45);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Inertia Scroll */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background atmospheric ambient glow */
.article-ambient-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(235, 221, 195, 0.045) 0%, transparent 55%),
    radial-gradient(circle at 82% 75%, rgba(235, 221, 195, 0.035) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Scroll reading progress bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-cream);
  width: 0%;
  z-index: 100;
  box-shadow: 0 0 10px rgba(235, 221, 195, 0.6);
  transition: width 0.1s linear;
}

/* Sticky Header */
.article-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  padding: 18px 0;
  transition: padding 0.3s ease;
}

.article-header-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 1.9vw, 26px);
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.article-brand:hover {
  color: var(--color-cream);
}

.article-brand .dot {
  color: var(--color-cream);
}

.article-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-to-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-cream);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.back-to-blog-btn:hover {
  background: var(--color-cream);
  color: #111111;
  border-color: var(--color-cream);
  transform: translateX(-3px);
}

.nav-contact-link {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-cream-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-contact-link:hover {
  color: var(--color-cream);
}

/* Article Wrapper */
.article-main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) clamp(20px, 4vw, 36px) 100px;
}

/* Hero Section */
.article-hero {
  margin-bottom: clamp(32px, 5vh, 48px);
}

.article-category-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream);
  background: rgba(235, 221, 195, 0.08);
  border: 1px solid rgba(235, 221, 195, 0.24);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--color-cream-dim);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  color: var(--text-muted);
}

/* Featured Visual Container */
.article-featured-visual {
  width: 100%;
  aspect-ratio: 920 / 400;
  height: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: clamp(28px, 4.5vh, 48px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-featured-visual svg,
.article-featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Article Content Body */
.article-content {
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.82;
  color: #dfd7c9;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content p.lead {
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 28px;
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-top: clamp(36px, 5vh, 52px);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.article-content h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  border-top: 1px solid rgba(235, 221, 195, 0.1);
  padding-top: clamp(28px, 4vh, 38px);
}

.article-content h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  border-top: 1px solid rgba(235, 221, 195, 0.08);
  padding-top: clamp(24px, 3.5vh, 32px);
}

.article-content h2:first-of-type,
.article-content h3:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

.heading-num {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 800;
  color: var(--color-cream);
  opacity: 0.9;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-content li {
  padding-left: 4px;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Callout Box */
.article-callout {
  background: linear-gradient(135deg, rgba(235, 221, 195, 0.06) 0%, rgba(20, 20, 20, 0.7) 100%);
  border-left: 3px solid var(--color-cream);
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  margin: 32px 0;
}

.article-callout p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-primary);
}

/* ==========================================================================
   MINIMALIST EDITORIAL CTA SECTION
   ========================================================================== */
.article-cta-box {
  margin-top: clamp(40px, 6vh, 64px);
  background: #141311;
  border: 1px solid rgba(235, 221, 195, 0.18);
  border-radius: 10px;
  padding: clamp(24px, 3.2vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
  position: relative;
  transition: border-color 0.25s ease;
}

.article-cta-box:hover {
  border-color: rgba(235, 221, 195, 0.32);
}

.cta-text-wrap {
  flex: 1;
  min-width: 0;
}

.cta-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0.82;
  margin-bottom: 8px;
}

.cta-headline {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cta-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-cream-dim);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 0;
}

.cta-btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-cream);
  color: #111111;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--color-cream);
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
  flex-shrink: 0;
}

.cta-btn-editorial:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0b0b0b;
  transform: translateY(-2px);
}

.cta-arrow {
  font-size: 14px;
  display: inline-block;
  line-height: 1;
  transition: transform 0.22s ease;
}

.cta-btn-editorial:hover .cta-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 680px) {
  .article-cta-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }

  .cta-headline {
    font-size: 20px;
  }

  .cta-description {
    font-size: 13.5px;
  }

  .cta-btn-editorial {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}

/* Footer Bottom Bar */
.article-footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-footer a {
  color: var(--color-cream-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-footer a:hover {
  color: var(--color-cream);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .article-header-actions .nav-contact-link {
    display: none;
  }

  .article-content {
    font-size: 15.5px;
  }

  .article-cta-box {
    padding: 28px 20px;
  }
}
