/* =============================================
   michelleflares.com — Blog Styles
   Matches main site design exactly
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ink:        #2C1A0E;
  --rose:       #C85C6E;
  --rose-dark:  #A8485A;
  --cream:      #FFFBF7;
  --cream-alt:  #F7EEE4;
  --cream-deep: #FDF5EC;
  --border:     #E8D5C0;
  --muted:      #7A5A40;
  --light-muted:#A07850;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: #4A3020;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV (identical to main site) ── */
header.site-header-wrap { position: sticky; top: 0; z-index: 200; }
.site-nav { background: rgba(255,251,247,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: .85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: 'Fraunces', serif; font-size: 1.22rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.02em; flex-shrink: 0; }
.brand em { font-style: italic; color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link { font-size: .87rem; font-weight: 500; color: var(--muted); padding: .45rem .7rem; border-radius: 6px; text-decoration: none; white-space: nowrap; transition: color .18s, background .18s; }
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--cream-alt); }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--ink); color: #fff; border: none; padding: .72rem 1.45rem; border-radius: 8px; font-size: .93rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; text-decoration: none; transition: background .18s, transform .12s; line-height: 1; }
.btn:hover { background: #4A2E18; transform: translateY(-1px); }
.btn-rose { background: var(--rose); }
.btn-rose:hover { background: var(--rose-dark); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 0; top: 60px; background: var(--cream); z-index: 199; padding: 1.5rem; flex-direction: column; gap: .25rem; border-top: 1px solid var(--border); overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-link { font-size: 1.05rem; font-weight: 600; color: var(--ink); padding: .85rem 1rem; border-radius: 10px; text-decoration: none; }
.mobile-nav-link:hover, .mobile-nav-link:active { background: var(--cream-alt); }
.mobile-nav-bottom { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media(max-width:780px) { .nav-links { display: none; } .hamburger { display: flex; } .nav-right .btn { display: none; } }

/* ── FOOTER ── */
.site-footer { background: #1A0E06; padding: 2.5rem 1.5rem; text-align: center; }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.1rem; color: #7A5A40; margin-bottom: .5rem; }
.footer-brand em { font-style: italic; color: var(--rose); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: #8B5E3C; text-decoration: none; }
.footer-links a:hover { color: var(--rose); }
.site-footer p { font-size: .8rem; color: #5A3A20; }
.site-footer a { color: #8B5E3C; }

/* ── BACK TO TOP ── */
.back-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 46px; height: 46px; background: var(--ink); color: #fff; border: none; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s, background .18s; z-index: 150; }
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--rose); }

/* ── EYEBROW & UTILITIES ── */
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--rose); display: block; margin-bottom: .7rem; }
.tag { display: inline-block; font-family: 'DM Sans', sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--cream-deep); color: var(--rose); border: 1px solid var(--border); padding: .22rem .65rem; border-radius: 9999px; }

/* =============================================
   BLOG ARCHIVE PAGE
   ============================================= */
.archive-hero {
  background: linear-gradient(160deg, #FDF5EC 0%, #FFFBF7 60%);
  padding: 4rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--border);
}
.archive-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.archive-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
}

.archive-grid {
  max-width: 1080px;
  margin: 3.5rem auto 3.5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.arc-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.arc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,26,14,.10);
  border-color: var(--rose);
}
.arc-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--cream-deep);
}
.arc-card-img-placeholder {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.arc-card-img-placeholder.p1 { background: linear-gradient(135deg, #FDF5EC 0%, #E8C8A0 100%); }
.arc-card-img-placeholder.p2 { background: linear-gradient(135deg, #FDF0F0 0%, #E8B4BC 100%); }
.arc-card-img-placeholder.p3 { background: linear-gradient(135deg, #F0EDF8 0%, #C8B4E0 100%); }

.arc-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}
.arc-card-body h2 {
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -.015em;
}
.arc-card-body p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.arc-card-meta {
  font-size: .73rem;
  color: var(--light-muted);
  display: flex;
  gap: 1rem;
  margin-top: .25rem;
}
.arc-card-read {
  font-size: .85rem;
  font-weight: 600;
  color: var(--rose);
  margin-top: .75rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* Pagination */
.pagination {
  max-width: 1080px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all .18s;
  font-family: 'DM Sans', sans-serif;
}
.page-btn:hover, .page-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.page-btn.wide { width: auto; padding: 0 1rem; }

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

/* =============================================
   ARTICLE PAGES
   ============================================= */
.breadcrumb {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: .75rem;
  color: var(--light-muted);
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--light-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose); }

.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

/* Hero image */
.article-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin: 1.75rem 0 2.5rem;
  border: 1.5px solid var(--border);
  background: var(--cream-deep);
  display: block;
}
.article-hero-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  margin: 1.75rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1.5px solid var(--border);
}
.article-hero-placeholder.p1 { background: linear-gradient(135deg, #FDF5EC 0%, #E8C8A0 100%); }
.article-hero-placeholder.p2 { background: linear-gradient(135deg, #FDF0F0 0%, #E8B4BC 100%); }
.article-hero-placeholder.p3 { background: linear-gradient(135deg, #F0EDF8 0%, #C8B4E0 100%); }

.article-header { margin-bottom: 1.5rem; }
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.18;
  margin: .85rem 0 1rem;
}
.article-meta {
  font-size: .75rem;
  color: var(--light-muted);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2rem;
}

.article-standfirst {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-family: 'DM Sans', sans-serif;
}

/* Article body */
.article-body h2 {
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 3rem 0 1rem;
}
.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 .75rem;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #4A3020;
  margin-bottom: 1.4rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.5rem;
  font-size: 1rem;
  line-height: 1.85;
  color: #4A3020;
}
.article-body li { margin-bottom: .6rem; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { color: var(--rose); font-style: italic; }
.article-body hr {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 2.5rem 0;
}
.article-body a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--rose-dark); }

/* Inline figure */
.article-body figure { margin: 2.5rem 0; }
.article-body figure img {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  max-height: 420px;
  object-fit: cover;
}
.article-body figcaption {
  font-size: .76rem;
  color: var(--light-muted);
  margin-top: .65rem;
  text-align: center;
  font-style: italic;
}
.inline-placeholder {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.inline-placeholder.p1 { background: linear-gradient(135deg, #FDF5EC 0%, #E8C8A0 100%); }
.inline-placeholder.p2 { background: linear-gradient(135deg, #FDF0F0 0%, #E8B4BC 100%); }
.inline-placeholder.p3 { background: linear-gradient(135deg, #F0EDF8 0%, #C8B4E0 100%); }

/* Stat box */
.stat-box {
  background: var(--ink);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
}
.stat-row > div {
  background: var(--ink);
  padding: 1.5rem 1.25rem;
}
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  color: var(--rose);
  line-height: 1;
  margin-bottom: .4rem;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

/* Tip box */
.tip-box {
  border-left: 3px solid var(--rose);
  background: var(--cream-deep);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: .93rem;
  line-height: 1.7;
  color: #4A3020;
}
.tip-box strong {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .4rem;
  font-family: 'DM Sans', sans-serif;
}

/* Read next */
.read-next {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1.5px solid var(--border);
}
.read-next h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 1.25rem;
}
.read-next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.read-next-card {
  background: var(--cream-deep);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.read-next-card:hover {
  border-color: var(--rose);
  box-shadow: 0 4px 20px rgba(44,26,14,.08);
  transform: translateY(-2px);
}
.read-next-card .rn-tag { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.read-next-card .rn-title { font-size: .92rem; line-height: 1.4; color: var(--ink); font-family: 'Fraunces', serif; }
.read-next-card .rn-arrow { font-size: .82rem; color: var(--rose); font-weight: 600; margin-top: auto; }

/* CTA panel */
.article-cta {
  background: linear-gradient(130deg, #2C1A0E 0%, #4A2E18 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  margin-top: 3rem;
  text-align: center;
}
.article-cta h3 {
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .65rem;
}
.article-cta p {
  font-size: .93rem;
  color: #C4A882;
  margin-bottom: 1.75rem;
  line-height: 1.65;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE ── */
@media(max-width: 600px) {
  .read-next-grid { grid-template-columns: 1fr; }
  .article-hero, .article-hero-placeholder { height: 240px; }
  .stat-row { grid-template-columns: 1fr; }
  .article-cta { padding: 2rem 1.5rem; }
}
