/* Vital Life Tips — design system
   Palette sampled from the real VLT logo (ink + soft coral-pink accent dot).
   Editorial, warm, feminine — Fraunces (soft serif) + Nunito Sans (rounded, friendly). */

:root {
  --ink: #221B17;
  --ink-soft: #4A413B;
  --ink-mute: #7A6F68;
  --cream: #FBF6F0;
  --cream-deep: #F3E7DA;
  --blush: #FDE4E8;
  --white: #FFFFFF;
  --pink: #FFAEBC;
  --pink-deep: #E8748C;
  --sage: #8FA37E;
  --line: #EADFD3;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", Arial, sans-serif;

  --content-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--cream);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 12px;
}

.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  color: var(--ink);
  line-height: 1.45;
}

p { margin: 0 0 1.1em; }

.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tag / pill ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--pink-deep);
  background: var(--blush);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 12px;
}

.tag:hover { background: var(--pink); color: var(--white); }

/* ---------- Header / Nav ---------- */

.site-header {
  background: rgba(251, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo img { height: 40px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.15s, color 0.15s;
}

.main-nav a:hover { opacity: 1; color: var(--pink-deep); }

.main-nav details { position: relative; }
.main-nav summary { list-style: none; cursor: pointer; font-size: 0.95rem; font-weight: 700; padding: 10px 12px; color: var(--ink); }
.main-nav summary::-webkit-details-marker { display: none; }

.dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 32px rgba(34, 27, 23, 0.1);
}

.dropdown a { padding: 9px 18px; font-size: 0.85rem; font-weight: 600; opacity: 1; }
.dropdown a:hover { background: var(--cream); color: var(--pink-deep); }

.menu-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .dropdown { position: static; border: none; box-shadow: none; padding: 4px 0 0 12px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-fill { background: var(--pink); color: var(--ink); }
.btn-fill:hover { background: var(--pink-deep); color: var(--white); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-block { display: flex; justify-content: center; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 24px 88px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -160px;
  background: var(--blush);
  border-radius: 63% 37% 54% 46% / 55% 45% 55% 45%;
  z-index: 0;
}

.hero .site-container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-text p { font-size: 1.12rem; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-figure img {
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(34, 27, 23, 0.28);
}

@media (max-width: 860px) {
  .hero { padding: 48px 20px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { order: 0; }
  .hero-text { order: 1; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-blob { width: 420px; height: 420px; right: -140px; top: -100px; }
}

.section-hero-sm { position: relative; padding: 64px 24px 56px; background: var(--blush); overflow: hidden; }
.section-hero-sm h1 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.8rem); }
.section-hero-sm p { font-size: 1.05rem; }

.hero-page { padding: 72px 24px; text-align: center; background: var(--blush); }
.hero-page .hero-blob { right: -200px; top: -220px; opacity: 0.7; }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-text h5 { font-size: 1.15rem; margin-top: 1.6em; font-family: var(--font-heading); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.check-list .check { color: var(--pink-deep); font-weight: 900; flex-shrink: 0; margin-top: 2px; }

.about-figure img { border-radius: 24px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
}

/* ---------- Category grid (homepage / hub pages) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 20px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.category-card:hover { border-color: var(--pink); transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(34,27,23,0.14); }
.category-card h3 { font-size: 1.2rem; margin-bottom: 0; }

/* ---------- Section / grid helpers ---------- */

section { padding: 64px 0; }

.section-cream { background: var(--cream); }
.section-cream-deep { background: var(--cream-deep); }
.section-blush { background: var(--blush); }

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

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

/* ---------- Post cards (blog listing) ---------- */

.post-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.18s, box-shadow 0.18s;
}

.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(34,27,23,0.16); }

.post-card-img img { aspect-ratio: 4 / 3; object-fit: cover; }

.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card h3 a:hover { color: var(--pink-deep); }

.post-card-excerpt { font-size: 0.92rem; color: var(--ink-mute); margin-bottom: 14px; }

.post-card-more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
}

.post-card-more:hover { color: var(--pink-deep); }

/* Compact variant — sidebar recent posts, similar-posts row */
.post-card-compact { background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.post-card-compact .post-card-img img { aspect-ratio: 4/3; }
.post-card-compact .post-card-body { padding: 18px 20px; }
.post-card-compact h3 { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Article / single post ---------- */

.article-hero { padding: 56px 0 8px; text-align: center; }
.article-hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }

.article-byline { font-size: 0.85rem; color: var(--ink-mute); margin-top: 14px; font-weight: 700; }

.article-featured-img { margin: 32px auto 0; }
.article-featured-img img { border-radius: 24px; aspect-ratio: 16/9; object-fit: cover; }

.article-body { max-width: 740px; margin: 0 auto; padding: 40px 24px 0; }

.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: 0.85rem; color: var(--ink-mute); text-align: center; margin-top: 8px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.article-body li { margin-bottom: 0.4em; }
.article-body img { border-radius: 16px; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--pink);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ink);
  font-size: 1.15rem;
}
.article-body a { color: var(--pink-deep); text-decoration: underline; text-underline-offset: 3px; }

.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }

/* ---------- Article layout: content + sidebar ---------- */

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.article-layout .article-body { max-width: none; margin: 0; padding: 40px 0 0; }

.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 40px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.sidebar-widget h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 16px; }

.sidebar-post { display: flex; gap: 12px; margin-bottom: 14px; }
.sidebar-post:last-child { margin-bottom: 0; }
.sidebar-post img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.sidebar-post span { font-size: 0.87rem; line-height: 1.4; color: var(--ink); font-weight: 600; }
.sidebar-post:hover span { color: var(--pink-deep); }

.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li { border-bottom: 1px solid var(--line); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a { display: block; padding: 10px 0; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
.sidebar-cats a:hover { color: var(--pink-deep); }

.sidebar-newsletter { background: var(--blush); border-color: var(--blush); }
.sidebar-newsletter p { font-size: 0.88rem; margin-bottom: 16px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; padding-top: 0; }
}

/* ---------- Prev / next post nav ---------- */

.post-nav-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.post-nav {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.post-nav-link { max-width: 45%; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 800;
  margin-bottom: 6px;
}
.post-nav-title { color: var(--ink); font-size: 0.95rem; line-height: 1.4; font-weight: 700; }
.post-nav-title:hover { color: var(--pink-deep); }

@media (max-width: 600px) {
  .post-nav-link { max-width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #D8CFC7; padding: 64px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p { font-size: 0.92rem; max-width: 300px; color: #B8ADA3; }
.footer-logo-img { height: 56px; width: auto; margin-bottom: 14px; }

.footer-col h5 { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--white); margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; font-size: 0.9rem; color: #B8ADA3; width: fit-content; }
.footer-col a:hover { color: var(--pink); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-links a { color: #B8ADA3; }
.footer-links a:hover { color: var(--pink); }

.footer-copy { font-size: 0.84rem; text-align: center; margin-top: 22px; color: #8A7E75; }

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

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mw-740 { max-width: 740px; margin-left: auto; margin-right: auto; }
.mw-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
