/* Blog pages — uses the same colors, fonts, and buttons as the homepage */
:root {
  --black: #0a0a0f;
  --white: #f0f0ff;
  --gold: #ffd000;
  --gold-bright: #ffe033;
  --red: #ff6a00;
  --purple: #7c3aff;
  --gray: #12121f;
  --mid: #1e1e2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* NAV (matches the homepage nav once scrolled) */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 0.4rem 3rem;
  background: rgba(10,10,15,0.97);
  border-bottom: 1px solid rgba(124,58,255,0.25);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 80px; width: auto; mix-blend-mode: screen; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); text-decoration: none; opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--black); background: var(--gold);
  padding: 0.6rem 1.4rem; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

/* Shared */
.section-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.btn-primary {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--black); background: var(--gold);
  padding: 1rem 2.5rem; text-decoration: none; border: 2px solid var(--gold);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.meta {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5;
}
.wrap { width: min(1120px, 100% - 6rem); margin: 0 auto; }

/* BLOG HOME */
.blog-hero {
  padding: 3.5rem 0 1rem;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(124,58,255,0.35), transparent 60%),
    var(--black);
}
.blog-hero h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(3rem, 7vw, 5rem); line-height: 0.95; letter-spacing: 0.02em;
}
.blog-hero h1 span { color: var(--gold); }
.blog-hero p { font-size: 1.05rem; line-height: 1.7; opacity: 0.75; max-width: 560px; margin-top: 0.8rem; }

.post-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding: 2rem 0 6rem;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--gray); border: 1px solid rgba(240,240,255,0.1);
  color: inherit; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.post-card .thumb {
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--purple), #1d0b45);
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.2rem;
}
.post-card .thumb .tag, .post-card .latest {
  align-self: flex-start;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  border: 1px solid rgba(240,240,255,0.5); padding: 0.25rem 0.6rem;
}
.post-card .latest { color: var(--black); background: var(--gold); border-color: var(--gold); }
.post-card .thumb .hook {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; line-height: 1; letter-spacing: 0.02em;
  color: var(--gold); text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* Newest post: shown big across the top of the grid */
.post-grid > .post-card:first-of-type {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.1fr 1fr;
}
.post-grid > .post-card:first-of-type .thumb { aspect-ratio: auto; min-height: 300px; padding: 1.8rem; }
.post-grid > .post-card:first-of-type .thumb .hook { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 0.95; }
.post-grid > .post-card:first-of-type .body { padding: 2.5rem; justify-content: center; gap: 0.9rem; }
.post-grid > .post-card:first-of-type h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.post-grid > .post-card:first-of-type p { font-size: 1rem; }
.post-grid > .post-card:first-of-type .more { margin-top: 0; }
.post-card .body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: 0.02em; }
.post-card p { font-size: 0.95rem; line-height: 1.6; opacity: 0.7; }
.post-card .more {
  margin-top: auto; padding-top: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}

/* SINGLE POST */
.post-header {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(124,58,255,0.3), transparent 60%),
    var(--black);
}
.post-header .wrap { max-width: 760px; }
.back {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white); opacity: 0.6; text-decoration: none;
}
.back:hover { opacity: 1; color: var(--gold); }
.post-header h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.95; letter-spacing: 0.02em;
  margin: 1.2rem 0 1rem;
}
.post-cover { width: min(1120px, 100% - 6rem); margin: 0 auto; aspect-ratio: 21 / 9; object-fit: cover; }

.post-body {
  width: min(760px, 100% - 6rem); margin: 0 auto; padding: 2.5rem 0 5rem;
  font-size: 1.08rem; line-height: 1.9;
}
.post-body > * + * { margin-top: 1.3em; }
.post-body p, .post-body li { color: rgba(240,240,255,0.8); }
.post-body h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2.5rem; line-height: 1;
  letter-spacing: 0.02em; margin-top: 1.8em;
}
.post-body a { color: var(--gold); }
.post-body strong { color: var(--white); font-weight: 500; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li::marker { color: var(--red); }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.4rem;
  font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; line-height: 1.05; letter-spacing: 0.02em;
}
.post-body .video { position: relative; aspect-ratio: 16 / 9; }
.post-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-cta {
  width: min(760px, 100% - 6rem); margin: 0 auto 6rem;
  padding: 2.2rem; background: var(--gray);
  border: 1px solid rgba(124,58,255,0.3); border-top: 3px solid var(--gold);
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
}
.post-cta h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2.2rem; line-height: 1; }
.post-cta p { opacity: 0.7; margin-top: 0.3rem; }

/* FOOTER (matches homepage) */
footer {
  background: #05050a; padding: 2.5rem 3rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center;
  border-top: 1px solid rgba(124,58,255,0.25);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white); text-decoration: none; opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.15em; color: var(--gold); }
.footer-copy { font-size: 0.75rem; opacity: 0.3; letter-spacing: 0.1em; }

@media (max-width: 900px) {
  nav { padding: 0.4rem 1.5rem; }
  .nav-links li:not(.keep) { display: none; }
  .nav-links { gap: 1.2rem; }
  .nav-logo img { height: 48px; }
  .wrap, .post-body, .post-cta, .post-cover { width: calc(100% - 3rem); }
  .post-grid > .post-card:first-of-type { grid-template-columns: 1fr; }
  .post-grid > .post-card:first-of-type .thumb { min-height: 200px; }
  .post-grid > .post-card:first-of-type .body { padding: 1.5rem; }
}
@media (max-width: 420px) {
  .nav-links { display: none; }
}

/* "Up Next" link at the end of each post (filled in by next-post.js) */
.next-post { width: min(760px, 100% - 6rem); margin: 0 auto 1.5rem; }
.next-post[hidden] { display: none; }
.next-post a {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.8rem 2.2rem; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, rgba(124,58,255,0.35), rgba(29,11,69,0.6));
  border: 1px solid rgba(124,58,255,0.5);
  transition: border-color 0.2s, transform 0.2s;
}
.next-post a:hover { border-color: var(--gold); transform: translateY(-3px); }
.next-post .next-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.next-post .next-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; letter-spacing: 0.02em; }
.next-post .next-desc { opacity: 0.75; line-height: 1.6; }
.next-post .next-go {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem;
}
@media (max-width: 900px) {
  .next-post { width: calc(100% - 3rem); }
  .next-post a { padding: 1.5rem; }
}
