/* ============================================
   THE PERFUMED DAHLIA
   Color palette:
   --black:      #0A0A0A
   --deep-plum:  #1A0A2E
   --purple:     #7B35A8
   --violet:     #9B4DC8
   --lilac:      #C89BE0
   --blush:      #F0D9FF
   --cream:      #FAF6F0
   --white:      #FFFFFF
   ============================================ */

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

:root {
  --black:      #0A0A0A;
  --deep-plum:  #1A0A2E;
  --purple:     #7B35A8;
  --violet:     #9B4DC8;
  --lilac:      #C89BE0;
  --blush:      #F0D9FF;
  --cream:      #FAF6F0;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --nav-height: 72px;
  --max-width: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   HEADER & NAV
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 77, 200, 0.2);
  height: var(--nav-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link {
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac);
  padding: 0.5rem 0.85rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.caret {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown:hover .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--deep-plum);
  border: 1px solid rgba(155, 77, 200, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0;
  min-width: 160px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.dropdown-menu li a,
.dropdown-menu li span {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
  transition: color 0.15s ease, background 0.15s ease;
}

.dropdown-menu li a:hover {
  color: var(--white);
  background: rgba(155, 77, 200, 0.1);
}

.coming-soon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
}

.coming-soon span {
  padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 155, 224, 0.4);
}

.coming-soon em {
  font-size: 0.65rem;
  font-style: normal;
  color: var(--purple);
  background: rgba(123, 53, 168, 0.2);
  border: 1px solid rgba(123, 53, 168, 0.4);
  border-radius: 20px;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--lilac);
  transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--gutter) 4rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #1A0A2E 0%, #0A0A0A 70%);
}

.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.petal-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative corner dahlia petals using CSS */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(123, 53, 168, 0.12) 0%, transparent 70%);
}

.hero::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(155, 77, 200, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--lilac);
  font-weight: 300;
}

.hero-divider {
  margin: 1.5rem auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 77, 200, 0.5));
}

.hero-divider::after {
  background: linear-gradient(90deg, rgba(155, 77, 200, 0.5), transparent);
}

.divider-bloom {
  color: var(--violet);
  font-size: 1rem;
}

.hero-intro {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--blush);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.hero-link {
  color: var(--lilac);
  border-bottom: 1px solid rgba(200, 155, 224, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(200, 155, 224, 0.7);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(155, 77, 200, 0.6);
  padding: 0.85rem 2.25rem;
  border-radius: 40px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-cta:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 6rem var(--gutter);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(155, 77, 200, 0.2);
  padding-bottom: 1.5rem;
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  width: 100%;
  margin-bottom: -0.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  flex: 1;
}

.section-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
  border-bottom: 1px solid rgba(200, 155, 224, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.section-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ============================================
   INSTAGRAM GRID
   ============================================ */

.instagram-section {
  background: var(--deep-plum);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  background: rgba(123, 53, 168, 0.1);
  border: 1px solid rgba(155, 77, 200, 0.15);
}

.gram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 46, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gram-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.gram-item:hover img {
  transform: scale(1.05);
}

.gram-item:hover .gram-overlay {
  opacity: 1;
}

/* Placeholder styling for empty gram slots */
.gram-item:not(:has(img[src*="gram"])) {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   BLOG GRID
   ============================================ */

.writings-section {
  background: var(--black);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(155, 77, 200, 0.12);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  background: rgba(26, 10, 46, 0.3);
}

.blog-card:hover {
  border-color: rgba(155, 77, 200, 0.4);
}

.card-image-link {
  display: block;
  overflow: hidden;
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.04);
}

.placeholder-image {
  background: linear-gradient(135deg, rgba(123, 53, 168, 0.15), rgba(26, 10, 46, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dashed rgba(155, 77, 200, 0.2);
}

.placeholder-image span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 155, 224, 0.3);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card-title a:hover {
  color: var(--lilac);
}

.card-excerpt {
  font-size: 0.9rem;
  color: rgba(200, 155, 224, 0.65);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card-read-more {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac);
  transition: color 0.2s;
  align-self: flex-start;
}

.card-read-more:hover {
  color: var(--white);
}

/* ============================================
   QUOTE INTERLUDE
   ============================================ */

.quote-section {
  background: linear-gradient(135deg, var(--deep-plum), #0D0520);
  padding: 6rem var(--gutter);
  text-align: center;
  border-top: 1px solid rgba(155, 77, 200, 0.15);
  border-bottom: 1px solid rgba(155, 77, 200, 0.15);
}

.quote-inner {
  max-width: 680px;
  margin: 0 auto;
}

blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--blush);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

blockquote cite {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  font-style: normal;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #050508;
  border-top: 1px solid rgba(155, 77, 200, 0.15);
  padding: 3.5rem var(--gutter) 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo-link {
  display: block;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 155, 224, 0.5);
  transition: color 0.2s;
  padding: 0.2rem 0.3rem;
}

.footer-nav a:hover {
  color: var(--lilac);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(200, 155, 224, 0.45);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--lilac);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(200, 155, 224, 0.3);
  letter-spacing: 0.06em;
}

/* ============================================
   BLOG INDEX PAGE
   ============================================ */

.page-hero {
  padding: 7rem var(--gutter) 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #1A0A2E 0%, var(--black) 70%);
  border-bottom: 1px solid rgba(155, 77, 200, 0.15);
}

.page-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-title em {
  font-style: italic;
  color: var(--lilac);
}

.page-desc {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(200, 155, 224, 0.65);
  font-style: italic;
  max-width: 520px;
  margin: 0 auto;
}

.posts-section {
  padding: 5rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 700px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */

.post-header {
  padding: 7rem var(--gutter) 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #1A0A2E 0%, var(--black) 70%);
  border-bottom: 1px solid rgba(155, 77, 200, 0.1);
}

.post-category {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(200, 155, 224, 0.45);
}

.post-image-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.post-image-wrap .post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: -1px;
}

.post-image-wrap .placeholder-image {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem var(--gutter);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--cream);
}

.post-body p {
  margin-bottom: 1.75rem;
}

.post-body h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin: 2.5rem 0 1rem;
}

.post-body a {
  color: var(--lilac);
  border-bottom: 1px solid rgba(200, 155, 224, 0.3);
  transition: color 0.2s;
}

.post-body a:hover {
  color: var(--white);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem var(--gutter);
}

.about-image {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 3rem;
  border: 1px solid rgba(155, 77, 200, 0.2);
}

.about-body {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--cream);
}

.about-body p {
  margin-bottom: 1.5rem;
}

/* ============================================
   INSTAGRAM PAGE
   ============================================ */

.ig-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}

@media (max-width: 700px) {
  .ig-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(155, 77, 200, 0.2);
    padding: 1.5rem var(--gutter) 2rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(155, 77, 200, 0.2);
    padding: 0.25rem 0 0.25rem 1rem;
    margin-top: 0.25rem;
    display: none;
    min-width: auto;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a,
  .dropdown-menu li span {
    padding: 0.45rem 0.75rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
