:root {
  --color-bg: #161416; /* very dark almost black grey */
  --color-bg-soft: #1f1c1f; /* slightly lifted dark for cards */
  --color-maroon: #5c1f2c; /* dark maroon */
  --color-maroon-deep: #3e141d; /* deeper maroon for shadows */
  --color-pink: #f4c6d4; /* baby pink */
  --color-pink-soft: #e8b4c4; /* slightly muted pink */
  --color-text: #ede8ea; /* off-white, warm */
  --color-text-muted: #8a8186; /* muted warm grey */
  --color-line: #2a2629; /* subtle divider */

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1280px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}

/* Subtle film grain overlay for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(22, 20, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-line);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  display: inline-block;
}

.nav-logo em {
  font-style: italic;
  color: var(--color-pink);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--color-pink);
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  background: transparent;
  border: 1px solid var(--color-pink-soft);
  color: var(--color-pink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--color-pink);
  color: var(--color-bg);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 102;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.4s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(22, 20, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6rem 2.5rem 3rem;
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  border-bottom: 1px solid var(--color-line);
  display: none;
}

.nav-mobile.active {
  transform: translateY(0);
}

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-mobile-links a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: color 0.3s var(--ease);
}

.nav-mobile-links a:hover {
  color: var(--color-pink);
}

@media (max-width: 900px) {
  .nav .nav-links,
  .nav .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile {
    display: block;
  }
}

/* ========================================
   RESPONSIVE BEHAVIOR
   ======================================== */
@media (max-width: 900px) {
  /* Hide desktop links and CTA on mobile */
  .nav .nav-links,
  .nav .nav-cta {
    display: none;
  }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: flex;
  }

  /* Show mobile menu container on mobile */
  .nav-mobile {
    display: block;
  }
}

/* ========================================
   POST HERO (image with overlaid title)
   ======================================== */
.post-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 450px;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.post-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Semi-transparent overlay for text readability */
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 20, 22, 0.4) 0%,
    rgba(22, 20, 22, 0.6) 50%,
    rgba(22, 20, 22, 0.95) 100%
  );
  z-index: 1;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}

/* Override the existing post-title margin since it's now in the hero */
.post-hero .post-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  max-width: 800px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.post-hero .post-title em {
  font-style: italic;
  color: var(--color-pink);
}

.post-hero .post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-pink);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-hero .post-meta::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-pink);
}

.post-hero .post-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  color: var(--color-text);
  font-weight: 300;
  max-width: 700px;
  line-height: 1.6;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

/* Below 1000px - move lotus above the title */
@media (max-width: 1180px) {
  .post-hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .post-hero-content {
    width: 100%;
  }
  }

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-pink);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-meta::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-pink);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.post-title em {
  font-style: italic;
  color: var(--color-pink);
}

.post-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 900px;
  line-height: 1.6;
}

/* ========================================
   POST META ROW (between hero and body)
   ======================================== */
.post-meta-row {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 0;
}

.post-meta-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-pink);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.post-meta-line::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-pink);
}

/* ========================================
   POST CONTENT
   ======================================== */
.post-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.post-content p {
  margin-bottom: 1.8rem;
}

.post-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  float: left;
  line-height: 1;
  margin: 0.2rem 0.8rem 0 0;
  color: var(--color-pink);
  font-weight: 400;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 4rem 0 1.5rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.post-content h2 em {
  font-style: italic;
  color: var(--color-pink);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

.post-content a {
  color: var(--color-pink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.post-content a:hover {
  color: var(--color-pink-soft);
}

.post-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.post-content em {
  font-style: italic;
  color: var(--color-pink);
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0 2rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.8rem;
  color: var(--color-text);
}

.post-content blockquote {
  border-left: 2px solid var(--color-pink);
  padding-left: 2rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-text);
  font-weight: 300;
  line-height: 1.5;
}

/* ========================================
   POST FOOTER (back to home, share)
   ======================================== */
.post-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
  border-top: 1px solid var(--color-line);
}

.post-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-pink);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-pink);
  padding-bottom: 0.3rem;
  transition: all 0.3s var(--ease);
}

.post-back:hover {
  color: var(--color-pink-soft);
  border-color: var(--color-pink-soft);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 3rem 2.5rem 2rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-text);
}

.footer-logo em {
  font-style: italic;
  color: var(--color-pink);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--color-pink);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .post-content,
  .post-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .post-hero {
    padding-top: 5rem;
    min-height: 10vh;
    height: auto;
  }

  .post-hero-content {
    padding: 0 1.5rem 3rem;
  }
}

@media (max-width: 600px) {
  .post-hero {
    padding-top: 5rem;
    min-height: 10vh;
  }
}
