/* ═══════════════════════════════════════════
   r2X — blog.css
   Blog-specific styles — inherits main site fonts, colors, and variables from globals.css
   ═══════════════════════════════════════════ */

/* ── NAV (Dark theme for blog pages) ── */
.about-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  background: linear-gradient(to bottom, rgba(20, 16, 8, 0.98) 0%, rgba(20, 16, 8, 0) 100%);
  transition: background 0.4s, padding 0.35s, box-shadow 0.4s;
}

.about-nav.scrolled {
  background: rgba(20, 16, 8, 0.97);
  border-bottom: 1px solid rgba(240, 168, 48, 0.15);
  padding: 20px 48px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}

.about-nav .nav-logo {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--cream);
  text-decoration: none;
  cursor: none;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.about-nav .nav-logo .logo-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: 3px;
}

.about-nav .nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.about-nav .nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(253, 246, 228, 0.45);
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}

.about-nav .nav-links a:hover,
.about-nav .nav-links a.active {
  color: var(--amber);
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── BLOG HERO ── */
.blog-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1rem;
}

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

.blog-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(253, 246, 228, 0.5);
  max-width: 560px;
  margin: 0 auto;
}

/* ── BLOG GRID (Index page) ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 4rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  border: 1px solid rgba(240, 168, 48, 0.12);
  padding: 2rem;
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: none;
  background: rgba(255, 255, 255, 0.02);
}

.blog-card:hover {
  border-color: rgba(240, 168, 48, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  opacity: 0.7;
}

.blog-card h2 {
  margin: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--cream);
}

.blog-card h2 a {
  text-decoration: none;
  color: inherit;
  cursor: none;
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: var(--amber);
}

.blog-card p {
  color: rgba(253, 246, 228, 0.45);
  font-size: 0.92rem;
  line-height: 1.7;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(253, 246, 228, 0.25);
  display: block;
  margin-top: 1.25rem;
  letter-spacing: 0.05em;
}

/* ── BLOG POST (Article pages) ── */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.post-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(240, 168, 48, 0.12);
  padding-bottom: 2rem;
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 1rem 0;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.35;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.post-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  opacity: 0.65;
  margin-top: 1.5rem;
  color: var(--cream);
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 3rem 0 1rem;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--cream);
  opacity: 0.85;
  font-weight: 600;
}

.post-body p {
  line-height: 1.85;
  color: rgba(253, 246, 228, 0.65);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.post-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-body ul li {
  line-height: 1.85;
  color: rgba(253, 246, 228, 0.65);
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.post-body strong {
  color: var(--cream);
  font-weight: 700;
}

.post-body em {
  color: var(--amber);
  font-style: italic;
}

.post-body a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: none;
  transition: opacity 0.2s;
}

.post-body a:hover {
  opacity: 0.7;
}

.post-cta {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(240, 168, 48, 0.18);
  border-radius: 8px;
  text-align: center;
  background: rgba(240, 168, 48, 0.04);
}

.post-cta p {
  font-size: 1.15rem;
  opacity: 1 !important;
  color: var(--cream) !important;
}

.post-cta a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.post-cta a:hover {
  opacity: 0.7;
}

/* ── FOOTER (Dark theme) ── */
footer {
  background: #1a1208;
  padding: 72px 48px 40px;
  border-top: 1px solid rgba(240, 168, 48, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 72px;
  padding-bottom: 56px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(240, 168, 48, 0.1);
}

.footer-logo-big {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 58px;
  letter-spacing: -0.05em;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 3px;
}

.footer-logo-big .f-dot {
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: 7px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.78;
  color: rgba(253, 246, 228, 0.35);
  max-width: 255px;
  margin-bottom: 32px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-list a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(253, 246, 228, 0.35);
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy,
.footer-craft {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(253, 246, 228, 0.2);
  letter-spacing: 0.06em;
}

.footer-craft em {
  color: var(--amber);
  font-style: normal;
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 900px) {
  .about-nav {
    padding: 20px 24px;
  }

  .about-nav.scrolled {
    padding: 16px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .about-nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(20, 16, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s var(--ease-out-expo);
    padding: 0;
    z-index: 100;
  }

  .about-nav .nav-links.open {
    right: 0;
  }

  .about-nav .nav-links a {
    font-size: 16px;
  }

  .blog-grid {
    padding: 2rem 2rem 4rem;
  }

  .blog-hero {
    padding: 8rem 1.5rem 3rem;
  }

  footer {
    padding: 56px 24px 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 3rem;
  }

  .blog-post {
    padding: 6rem 1.25rem 4rem;
  }

  .post-header h1 {
    font-size: 1.6rem;
  }

  .post-body h2 {
    font-size: 1.2rem;
  }

  .post-cta {
    padding: 1.5rem 1.25rem;
  }

  .footer-logo-big {
    font-size: 42px;
  }
}
