/* =============================================
   Do It For Diana — Site Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --cream:      #ede5f7;
  --warm-white: #f5effe;
  --lavender:   #c9b8e8;
  --violet:     #7c5cbf;
  --deep-violet:#5a3a9e;
  --plum:       #3b2368;
  --text:       #251545;
  --muted:      #7a6895;
  --border:     #cfc0e8;
  --max-width:  760px;
}

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

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

/* ---- HEADER ---- */
header {
  background: linear-gradient(135deg, #3d2350 0%, #6a3f88 60%, #8c55aa 100%);
  border-bottom: none;
  padding: 1.25rem 1.5rem 1rem;
  text-align: center;
}

header a:has(.site-logo) {
  display: block;
  transition: opacity 0.2s;
}
header a:has(.site-logo):hover { opacity: 0.85; }

header .site-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto 0.15rem;
}

header .tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.85rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover,
nav a.active {
  color: #fff;
  border-bottom-color: var(--lavender);
}

/* ---- MAIN CONTENT ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ---- HERO (home page) ---- */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}


.hero-card-img {
  max-width: 100%;
  width: 620px;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(60,30,100,0.12);
  margin-bottom: 2rem;
}

.hero blockquote {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--plum);
  border-left: 3px solid var(--lavender);
  padding: 0.75rem 1.5rem;
  margin: 2rem auto;
  max-width: 560px;
  text-align: left;
}

.hero .quote-img {
  max-width: 480px;
  width: 100%;
  margin: 1.5rem auto 0;
  display: block;
  border-radius: 4px;
}

/* ---- PROSE ---- */
.prose h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  color: var(--deep-violet);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.prose h2, .prose h3 {
  font-family: 'Nunito', sans-serif;
  color: var(--plum);
  margin: 2rem 0 0.75rem;
}

.prose h3 { font-size: 1.1rem; }

.prose p { margin-bottom: 1.25rem; }

.prose a {
  color: var(--deep-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--violet); }

.prose blockquote {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--plum);
  border-left: 3px solid var(--lavender);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 1.5rem auto;
  box-shadow: 0 2px 12px rgba(60,30,100,0.1);
}

.prose ul, .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.prose li { margin-bottom: 0.5rem; }
.prose strong { font-weight: 700; color: var(--plum); }
.prose em { font-style: italic; }

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  color: var(--deep-violet);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.page-header .meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-header .meta a { color: var(--muted); text-decoration: none; }
.page-header .meta a:hover { color: var(--deep-violet); }

/* ---- BLOG INDEX ---- */
.blog-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-intro h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  color: var(--deep-violet);
  margin-bottom: 0.5rem;
}

.blog-intro p { color: var(--muted); }

.category-section { margin-bottom: 3rem; }

.category-section h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.post-list { list-style: none; }

.post-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child { border-bottom: none; }

.post-list .post-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 400;
  flex-shrink: 0;
  width: 90px;
}

.post-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.post-list a:hover { color: var(--deep-violet); }

/* ---- CARD DOWNLOAD SECTION ---- */
.card-download {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.card-download h2 {
  font-family: 'Nunito', sans-serif;
  color: var(--deep-violet);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-download p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card-download img {
  max-width: 100%;
  width: 500px;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(60,30,100,0.12);
  margin: 0 auto 1.25rem;
  display: block;
}

.btn {
  display: inline-block;
  background: var(--deep-violet);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn:hover { background: var(--violet); }

/* ---- SOCIAL LINKS ---- */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 0;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.social-links a:hover {
  color: var(--deep-violet);
  border-color: var(--violet);
}

/* ---- POST NAV ---- */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.post-nav a { color: var(--muted); text-decoration: none; max-width: 45%; }
.post-nav a:hover { color: var(--deep-violet); }
.post-nav .prev::before { content: '← '; }
.post-nav .next::after  { content: ' →'; }

/* ---- PHOTO GALLERY ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.photo-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 3px;
  margin: 0;
  box-shadow: 0 1px 6px rgba(60,30,100,0.1);
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  background: linear-gradient(135deg, #3d2350 0%, #6a3f88 60%, #8c55aa 100%);
}

footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: #fff; }

.footer-logo {
  display: block;
  width: 200px;
  margin: 0 auto 0.75rem;
}

/* ---- LIGHTBOX ---- */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 40, 0.93);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.lb-overlay.lb-active { display: flex; }

.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}

.lb-close {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}
.lb-close:hover { color: #fff; }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 1rem 0.75rem;
  user-select: none;
  transition: color 0.15s;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-prev:hover, .lb-next:hover { color: #fff; }

.lb-counter {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  html { font-size: 16px; }
  header .site-logo { max-width: 180px; }
  .page-header h1, .prose h1 { font-size: 1.6rem; }
  .post-list li { flex-direction: column; gap: 0.15rem; }
  .post-list .post-date { width: auto; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; }
}
