/* Top Lifestyle News — shared design system
   Palette + type sampled from the live toplifestylenews.com (blush pink / cream, Bellefair + Source Sans 3). */

:root {
  --cream: #F6F2EF;
  --blush: #F7DEDE;
  --blush-deep: #F0C4D0;
  --accent: #D86C97;
  --accent-dark: #B84E78;
  --hero-heading: #282828;
  --ink: #282828;
  --ink-soft: #4D4D4D;
  --ink-mute: #646464;
  --linen: #E7DEDA;
  --white: #FFFFFF;

  --font-heading: "Bellefair", Georgia, serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
  --font-eyebrow: "Source Sans 3", Arial, sans-serif;

  --content-width: 1290px;
  --header-bg: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  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: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); line-height: 1.25; }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

p { margin: 0 0 1.1em; }

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

/* ---------- Top bar ---------- */

.top-bar { background: var(--accent); }
.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 10px 24px;
  font-size: 0.85rem;
}
.top-bar-inner a { color: var(--white); opacity: 0.92; }
.top-bar-inner a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 640px) {
  .top-bar-inner { gap: 14px; padding: 8px 20px; font-size: 0.8rem; }
}

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

.site-header {
  background: var(--header-bg);
  color: var(--ink);
  border-bottom: 1px solid var(--linen);
  position: relative;
  z-index: 50;
}

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

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 58px; width: auto; display: block; }

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

.main-nav a {
  font-size: 0.98rem;
  padding: 10px;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}

.main-nav a:hover { opacity: 1; color: var(--accent); }
.main-nav a.nav-cta { opacity: 1; color: var(--white); padding: 10px 24px; margin-left: 8px; }
.main-nav a.nav-cta:hover { background: var(--accent-dark); color: var(--white); }

.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: 88px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid var(--linen);
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fill { background: var(--accent); color: var(--white); }
.btn-fill:hover { background: var(--accent-dark); }

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

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

.hero {
  position: relative;
  background: var(--cream);
  padding: 72px 24px 96px;
  overflow: hidden;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-figure img { aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; }

.hero-text h1 { color: var(--hero-heading); font-size: clamp(1.8rem, 1rem + 3vw, 3.1rem); }
.hero-text p { font-size: 1.1rem; color: var(--ink-soft); }
.hero-text p strong { color: var(--ink); }

@media (max-width: 860px) {
  .hero { padding: 56px 20px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-figure { order: 0; max-width: 420px; margin: 0 auto; }
  .hero-text { order: 1; }
}

/* ---------- Hero (full-bleed photo, homepage) ---------- */

.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center 60%;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 38%, rgba(255,255,255,0.15) 65%, rgba(255,255,255,0) 100%);
}

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

.hero-photo-text { max-width: 560px; padding: 48px 0; }
.hero-photo-text h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); margin-bottom: 0.4em; }
.hero-photo-text p { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.4em; }

@media (max-width: 860px) {
  .hero-photo { min-height: 480px; background-position: center 70%; }
  .hero-photo-scrim { background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.92) 55%, rgba(255,255,255,0.97) 100%); }
  .hero-photo-text { max-width: 100%; padding: 220px 0 32px; }
}

/* ---------- Explore panels (homepage, 4 category feature rows) ---------- */

.explore-panels { display: flex; flex-direction: column; gap: 56px; }

.explore-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.explore-panel:nth-child(even) { direction: rtl; }
.explore-panel:nth-child(even) > * { direction: ltr; }

.explore-panel-text p { color: var(--ink-soft); }

.explore-panel-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.explore-panel-thumbs img { aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; }

@media (max-width: 860px) {
  .explore-panel { grid-template-columns: 1fr; direction: ltr !important; }
}

/* ---------- Newsletter form ---------- */

.newsletter-form { display: flex; gap: 12px; max-width: 460px; margin: 20px auto 0; }
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--linen);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
}
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }

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

.hero-page { padding: 72px 24px; text-align: center; }
.hero-page h1 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

.about-text h5 { font-size: 1.1rem; margin-top: 1.6em; }

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

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

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

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 14px;
  padding: 28px 16px;
  transition: border-color 0.15s, transform 0.15s;
}

.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-card h3 { font-size: 1.05rem; margin-bottom: 0; }

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

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

section { padding: 64px 0; }

.section-cream { background: var(--cream); }
.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; }
}

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

.post-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--linen);
}

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

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

.post-card-cat {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

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

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

.post-card-more {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

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

/* Compact variant — sidebar recent posts, similar-posts horizontal row */
.post-card-compact {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linen);
}
.post-card-compact img { aspect-ratio: 3/2; object-fit: cover; border-radius: 0; }
.post-card-compact .post-card-body { padding: 16px 18px; }
.post-card-compact h3 { font-size: 1.05rem; }

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

.article-hero { background: var(--blush); padding: 56px 0 40px; }

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

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

.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-soft); 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: 12px; }

/* ---------- 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: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 40px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 12px;
  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: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-post a { font-size: 0.88rem; line-height: 1.4; color: var(--ink); }
.sidebar-post a:hover { color: var(--accent); }

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

@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(--linen); border-bottom: 1px solid var(--linen); }

.post-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
  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(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.post-nav-title { color: var(--ink); font-size: 0.95rem; line-height: 1.4; }
.post-nav-title:hover { color: var(--accent); }

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

/* ---------- Similar posts ---------- */

.similar-posts-section { padding: 56px 0; }

.similar-posts-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.similar-posts-row .post-card { flex: 0 0 260px; scroll-snap-align: start; }

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

.site-footer { background: var(--white); color: var(--ink-soft); padding: 56px 0 32px; border-top: 1px solid var(--linen); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.footer-col h5 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.footer-col a { display: block; padding: 3px 0; font-size: 0.92rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.footer-col a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--linen);
}

.footer-links a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 0.85rem; text-align: center; margin-top: 20px; }
.footer-copy a { color: var(--accent); text-decoration: underline; }

/* ---------- Freebies / lead-magnet page ---------- */

.freebie-card {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.freebie-card img { border-radius: 10px; aspect-ratio: 3/4; object-fit: cover; }
@media (max-width: 640px) { .freebie-card { grid-template-columns: 1fr; } }

.fruit-builder {
  font-family: var(--font-body);
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 24px;
  color: var(--ink-soft);
  border: 1px solid var(--linen);
}
.fruit-builder h3 { color: var(--ink); font-size: 1.4em; margin-bottom: 10px; }
.fruit-builder label { font-weight: 600; display: block; margin: 16px 0 6px; color: var(--accent-dark); }
.fruit-builder input[type="checkbox"], .fruit-builder select { margin-right: 8px; margin-bottom: 6px; }
.fruit-builder button {
  margin-top: 20px; background: var(--accent); color: #fff; border: none;
  padding: 10px 16px; font-size: 1em; border-radius: 6px; cursor: pointer; transition: background 0.3s;
}
.fruit-builder button:hover { background: var(--accent-dark); }
.recipe-output { background: var(--cream); border-radius: 8px; padding: 16px; margin-top: 24px; border: 1px solid var(--linen); }
.recipe-output strong { font-size: 1.1em; color: var(--ink); }

/* ---------- Books page ---------- */

.book-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--linen);
}
.book-card:last-child { border-bottom: none; }
.book-card img { border-radius: 10px; aspect-ratio: 2/3; object-fit: cover; margin: 0 auto; }
@media (max-width: 640px) { .book-card { grid-template-columns: 1fr; text-align: center; } .book-card img { max-width: 200px; } }

/* ---------- Smoothie advertorial ---------- */

.advertorial-cta { text-align: center; margin: 36px 0; }
.advertorial-cta .btn-fill { padding: 15px 34px; font-size: 1.05rem; }
.advertorial-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.advertorial-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 1.02rem; }
.advertorial-list li::before { content: "→"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---------- 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; }
