/* ═══════════════════════════════════════════
   RUSS DAVIES — FREQUENCIES
   Ghost Theme Stylesheet
   ═══════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg-deep: #0A0A0F;
  --bg: #0E0E14;
  --bg-card: #14141C;
  --bg-card-hover: #1A1A24;
  --bg-elevated: #1E1E2A;
  --text: #E8E6E1;
  --text-dim: #8A8790;
  --text-muted: #5C5A63;
  --accent: #D4875E;
  --accent-glow: rgba(212, 135, 94, 0.15);
  --accent-warm: #E8A87C;
  --blue-dim: #4A6FA5;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.1);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w: 1200px;
  --article-w: 720px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; }

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--accent); color: var(--bg-deep); }


/* ═══ AMBIENT BACKGROUND ═══ */
.ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.ambient-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.25;
  animation: drift 25s ease-in-out infinite alternate;
}

.ambient-orb:nth-child(1) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,135,94,0.3), transparent 70%);
  top: -200px; right: -100px; animation-duration: 30s;
}

.ambient-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,111,165,0.2), transparent 70%);
  bottom: -150px; left: -100px; animation-duration: 22s; animation-delay: -8s;
}

.ambient-orb:nth-child(3) {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212,135,94,0.15), transparent 70%);
  top: 50%; left: 40%; animation-duration: 35s; animation-delay: -15s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(30px, -10px) scale(1.02); }
}

.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.content-layer { position: relative; z-index: 2; }


/* ═══ NAVIGATION ═══ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  font-size: 0.75rem; font-weight: 400; color: var(--text-dim);
  text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 6px;
  transition: all 0.3s var(--ease); letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(212,135,94,0.3) !important;
  background: rgba(212,135,94,0.06) !important;
}
.nav-cta:hover {
  background: rgba(212,135,94,0.12) !important;
  border-color: rgba(212,135,94,0.5) !important;
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 101;
}
.nav-mobile-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  border-radius: 1px; transition: all 0.3s var(--ease);
  position: absolute; left: 0;
}
.nav-mobile-toggle span:nth-child(1) { top: 0; }
.nav-mobile-toggle span:nth-child(2) { top: 9px; }
.nav-mobile-toggle span:nth-child(3) { top: 18px; }

.nav-mobile-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 1rem 2rem 1.5rem;
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.85rem; color: var(--text-dim); text-decoration: none;
  padding: 0.6rem 0; transition: color 0.3s var(--ease);
}
.nav-mobile a:hover { color: var(--text); }
.nav-cta-mobile {
  margin-top: 0.5rem; padding: 0.6rem 1.2rem;
  background: rgba(212,135,94,0.1); border: 1px solid rgba(212,135,94,0.3);
  border-radius: 8px; color: var(--accent); text-align: center;
}


/* ═══ HERO ═══ */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: 6rem 2rem 4rem;
  animation: fadeIn 0.9s ease-out both;
}

.hero-compact { padding: 4rem 2rem 3rem; }

.hero-eyebrow {
  font-family: var(--mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em; max-width: 800px;
}
.hero h1 em { font-style: italic; color: var(--accent-warm); }

.hero-sub {
  margin-top: 1.5rem; font-size: 1.05rem; font-weight: 300;
  color: var(--text-dim); max-width: 520px; line-height: 1.7;
}


/* ═══ TRIPTYCH ═══ */
.triptych {
  max-width: var(--max-w); margin: 0 auto 4rem; padding: 0 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-radius: 14px; overflow: hidden;
  animation: fadeIn 0.9s 0.1s ease-out both;
}

.triptych-card {
  background: var(--bg-card); padding: 2rem;
  text-decoration: none; color: inherit;
  transition: background 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.triptych-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.triptych-card:hover { background: var(--bg-card-hover); }
.triptych-card:hover::before { opacity: 1; }

.tri-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; margin-bottom: 1.2rem;
}
.tri-icon-score { background: rgba(212,135,94,0.12); color: var(--accent); }
.tri-icon-music { background: rgba(74,111,165,0.12); color: var(--blue-dim); }
.tri-icon-learn { background: rgba(160,140,200,0.12); color: #A08CC8; }

.tri-label {
  font-size: 0.65rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.6rem;
}
.tri-title {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.tri-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

.tri-projects { margin-top: 1rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tri-tag {
  font-size: 0.65rem; padding: 0.25rem 0.6rem;
  border-radius: 100px; border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 400;
}


/* ═══ SECTION DIVIDER ═══ */
.section-divide {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  animation: fadeIn 0.8s 0.15s ease-out both;
}
.section-label {
  font-family: var(--mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted);
}
.section-line { flex: 1; height: 1px; background: var(--border); margin-left: 1.5rem; }


/* ═══ FEATURED POST ═══ */
.featured-section {
  max-width: var(--max-w); margin: 2rem auto 0; padding: 0 2rem;
  animation: fadeIn 0.8s 0.2s ease-out both;
}

.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.featured-visual {
  position: relative; min-height: 360px; overflow: hidden;
}
.featured-visual img,
.featured-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s var(--ease);
}
.featured-card:hover .featured-visual img { transform: scale(1.03); }

.featured-visual-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #0f1923 0%, #1a1520 40%, #2a1a1a 100%);
}
.featured-visual-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 70%, rgba(212,135,94,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(74,111,165,0.08) 0%, transparent 100%);
}

.waveform {
  position: absolute; bottom: 2rem; left: 2rem; right: 2rem;
  height: 60px; display: flex; align-items: flex-end; gap: 2px; opacity: 0.3;
}
.waveform span {
  flex: 1; background: var(--accent); border-radius: 1px 1px 0 0;
  animation: wave 2s ease-in-out infinite alternate;
}
@keyframes wave {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0.3); }
}

.featured-visual-label {
  position: absolute; top: 2rem; left: 2rem;
  font-family: var(--mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  display: flex; align-items: center; gap: 0.5rem; z-index: 1;
}
.featured-visual-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.featured-body {
  padding: 3rem; display: flex; flex-direction: column;
  justify-content: center; background: var(--bg-card);
}
.featured-tag {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem;
}
.featured-title {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 1rem;
}
.featured-excerpt {
  font-size: 0.9rem; font-weight: 300; color: var(--text-dim); line-height: 1.7; margin-bottom: 1.5rem;
}
.featured-meta {
  display: flex; align-items: center; gap: 1.2rem;
  font-size: 0.72rem; color: var(--text-muted); font-family: var(--mono);
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }


/* ═══ POST GRID ═══ */
.posts-grid {
  max-width: var(--max-w); margin: 2.5rem auto 0;
  padding: 0 2rem 5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}

.post-card {
  background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
  animation: fadeIn 0.7s ease-out both;
}
.post-card:nth-child(1) { animation-delay: 0.25s; }
.post-card:nth-child(2) { animation-delay: 0.3s; }
.post-card:nth-child(3) { animation-delay: 0.35s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.45s; }
.post-card:nth-child(6) { animation-delay: 0.5s; }

.post-card:hover {
  border-color: var(--border-hover); transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

.post-card-visual { height: 160px; position: relative; overflow: hidden; }

.post-card-image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card-image { transform: scale(1.05); }

/* Gradient fallbacks when no feature image */
.post-card-gradient {
  position: absolute; inset: 0;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card-gradient { transform: scale(1.05); }

.pcv-1 { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.pcv-2 { background: linear-gradient(135deg, #1a0f1e, #2d1b3e, #1a1030); }
.pcv-3 { background: linear-gradient(135deg, #1e1510, #2a1e18, #3a2820); }
.pcv-4 { background: linear-gradient(135deg, #0f1a14, #162e22, #1a3828); }
.pcv-5 { background: linear-gradient(135deg, #1a1015, #2e1620, #401828); }
.pcv-6 { background: linear-gradient(135deg, #101520, #182838, #1a3050); }
.pcv-7 { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.pcv-8 { background: linear-gradient(135deg, #1a0f1e, #2d1b3e, #1a1030); }
.pcv-9 { background: linear-gradient(135deg, #1e1510, #2a1e18, #3a2820); }
.pcv-10 { background: linear-gradient(135deg, #0f1a14, #162e22, #1a3828); }
.pcv-11 { background: linear-gradient(135deg, #1a1015, #2e1620, #401828); }
.pcv-12 { background: linear-gradient(135deg, #101520, #182838, #1a3050); }

.post-card-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.58rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--bg-deep);
  background: var(--accent); padding: 0.2rem 0.55rem;
  border-radius: 4px; z-index: 1;
}

.post-card-body {
  padding: 1.4rem; flex: 1;
  display: flex; flex-direction: column;
}
.post-card-tag {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem;
}
.post-card-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400;
  line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.post-card-excerpt {
  font-size: 0.82rem; font-weight: 300;
  color: var(--text-dim); line-height: 1.6; flex: 1;
}

.post-card-footer {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.68rem; color: var(--text-muted); font-family: var(--mono);
}
.post-arrow {
  transition: transform 0.3s var(--ease); color: var(--accent);
  font-family: var(--sans); font-size: 1.1rem;
}
.post-card:hover .post-arrow { transform: translateX(4px); }


/* ═══ PAGINATION ═══ */
.pagination {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 2rem 3rem;
  display: flex; justify-content: center; align-items: center; gap: 2rem;
}
.pagination-link {
  font-size: 0.8rem; color: var(--accent); text-decoration: none;
  padding: 0.5rem 1.2rem; border: 1px solid rgba(212,135,94,0.3);
  border-radius: 8px; transition: all 0.3s var(--ease);
}
.pagination-link:hover { background: rgba(212,135,94,0.1); }
.pagination-info {
  font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted);
}


/* ═══ ARTICLE (post.hbs) ═══ */
.progress-bar {
  position: fixed; top: 60px; left: 0; right: 0;
  height: 2px; z-index: 99; background: transparent;
}
.progress-bar-fill {
  height: 100%; width: 0%; background: var(--accent);
  transition: width 0.1s linear;
}

.article-header {
  max-width: var(--article-w); margin: 0 auto;
  padding: 5rem 2rem 3rem;
  animation: fadeIn 0.8s ease-out both;
}
.article-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--text-muted);
  text-decoration: none; margin-bottom: 2.5rem;
  transition: color 0.3s var(--ease);
}
.article-back:hover { color: var(--accent); }

.article-tag {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1.2rem;
}

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.2rem;
}

.article-meta {
  display: flex; align-items: center; gap: 1.2rem;
  font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted);
}

/* Article hero image */
.article-hero {
  max-width: 900px; margin: 0 auto 3rem; padding: 0 2rem;
  animation: fadeIn 0.8s 0.1s ease-out both;
}
.article-hero-inner {
  width: 100%; height: 380px; border-radius: 14px;
  overflow: hidden; position: relative;
}
.article-hero-inner img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-hero-gradient {
  background: linear-gradient(145deg, #0f1923 0%, #1a1520 40%, #2a1a1a 100%);
}
.article-hero-gradient::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 70%, rgba(212,135,94,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(74,111,165,0.08) 0%, transparent 100%);
}
.article-hero-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.6rem 1rem; font-size: 0.72rem; color: var(--text-muted);
  background: rgba(10,10,15,0.7);
}


/* ═══ GHOST CONTENT / ARTICLE BODY ═══ */
.article-body {
  max-width: var(--article-w); margin: 0 auto;
  padding: 0 2rem 4rem;
  animation: fadeIn 0.8s 0.2s ease-out both;
}

.article-body,
.gh-content {
  font-size: 1.05rem; font-weight: 300; line-height: 1.85;
}

/* Ghost content elements */
.gh-content > * + * { margin-top: 1.6rem; }

.gh-content p { color: var(--text); }

.gh-content h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 400;
  margin-top: 3rem; letter-spacing: -0.01em; color: var(--text);
}

.gh-content h3 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  margin-top: 2.5rem; color: var(--text);
}

.gh-content a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212,135,94,0.3);
  transition: text-decoration-color 0.3s var(--ease);
}
.gh-content a:hover { text-decoration-color: var(--accent); }

.gh-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.5rem;
  font-family: var(--serif); font-size: 1.15rem;
  font-style: italic; color: var(--accent-warm); line-height: 1.6;
}

.gh-content pre {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem; overflow-x: auto;
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.6;
  color: var(--text-dim);
}

.gh-content code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--bg-card); padding: 0.15em 0.4em;
  border-radius: 4px; color: var(--accent-warm);
}

.gh-content pre code { background: none; padding: 0; border-radius: 0; }

.gh-content figure { margin: 2.5rem 0; }
.gh-content figcaption {
  margin-top: 0.6rem; font-size: 0.78rem;
  color: var(--text-muted); text-align: center;
}

.gh-content img { border-radius: 10px; }

.gh-content hr {
  border: none; height: 1px; background: var(--border);
  margin: 3rem 0;
}

.gh-content ul, .gh-content ol {
  padding-left: 1.5rem; color: var(--text);
}
.gh-content li { margin-bottom: 0.5rem; }
.gh-content li::marker { color: var(--accent); }

/* Ghost cards / embeds */
.gh-content .kg-image-card,
.gh-content .kg-gallery-card { margin: 2.5rem 0; }

.gh-content .kg-width-wide {
  max-width: 900px; margin-left: auto; margin-right: auto;
  position: relative; width: calc(100% + 4rem); left: -2rem;
}

.gh-content .kg-callout-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
}

.gh-content .kg-bookmark-card {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--bg-card);
}


/* ═══ ARTICLE TAGS ═══ */
.article-tags-wrap {
  max-width: var(--article-w); margin: 0 auto; padding: 0 2rem;
}
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.article-tag-link {
  font-size: 0.7rem; padding: 0.3rem 0.8rem;
  border-radius: 100px; border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none;
  transition: all 0.3s var(--ease);
}
.article-tag-link:hover { border-color: var(--accent); color: var(--accent); }


/* ═══ ARTICLE DIVIDER ═══ */
.article-divider {
  max-width: var(--article-w); margin: 0 auto; padding: 0 2rem;
}
.article-divider-inner {
  border-top: 1px solid var(--border);
  padding-top: 2rem; margin-bottom: 2rem;
}


/* ═══ AUTHOR CARD ═══ */
.article-footer {
  max-width: var(--article-w); margin: 0 auto; padding: 0 2rem 3rem;
}
.author-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue-dim));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.author-initials {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--bg-deep); font-weight: 500;
}
.author-info { flex: 1; }
.author-name {
  font-size: 0.92rem; font-weight: 500; text-decoration: none;
  display: block; margin-bottom: 0.15rem;
}
.author-name:hover { color: var(--accent); }
.author-bio {
  font-size: 0.78rem; color: var(--text-dim); font-weight: 300; line-height: 1.5;
}


/* ═══ RELATED POSTS ═══ */
.related {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 5rem;
}
.related-label {
  font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.related-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}


/* ═══ NEWSLETTER ═══ */
.newsletter {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--accent-glow), transparent);
  pointer-events: none;
}
.newsletter-inner {
  max-width: 540px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.newsletter-label {
  font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1.2rem;
}
.newsletter h2 {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.7rem;
}
.newsletter p {
  color: var(--text-dim); font-size: 0.9rem; font-weight: 300;
  line-height: 1.65; margin-bottom: 2rem;
}

.nl-button {
  display: inline-block; padding: 0.85rem 2rem;
  border-radius: 8px; background: var(--accent);
  color: var(--bg-deep); font-family: var(--sans);
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.03em;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.nl-button:hover { background: var(--accent-warm); transform: translateY(-1px); }


/* ═══ FOOTER ═══ */
.site-footer {
  max-width: var(--max-w); margin: 0 auto; padding: 3rem 2rem;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.footer-brand {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-dim);
}
.footer-brand small {
  display: block; font-weight: 300; letter-spacing: 0.02em;
  text-transform: none; color: var(--text-muted);
  margin-top: 0.4rem; font-size: 0.72rem;
}
.footer-cols { display: flex; gap: 3.5rem; }
.footer-col-title {
  font-size: 0.6rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.8rem;
}
.footer-col a {
  display: block; font-size: 0.8rem; color: var(--text-dim);
  text-decoration: none; line-height: 2; transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--accent); }


/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .triptych { grid-template-columns: 1fr; gap: 0; border-radius: 12px; }
  .triptych-card { border-bottom: 1px solid var(--border); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-visual { min-height: 200px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { gap: 2rem; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .hero { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: 2.2rem; }

  .featured-body { padding: 2rem; }
  .featured-title { font-size: 1.4rem; }

  .posts-grid { grid-template-columns: 1fr; padding: 0 1.5rem 4rem; }
  .related-grid { grid-template-columns: 1fr; }

  .article-header { padding: 3.5rem 1.5rem 2rem; }
  .article-hero-inner { height: 220px; }
  .article-body { padding: 0 1.5rem 3rem; }

  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-cols { flex-direction: column; gap: 1.5rem; }

  .author-card { flex-direction: column; text-align: center; }
}
