/* ============================================
   BLOG STYLES — matches laurarobertsphd site
   Same design tokens as the main site so the
   blog feels like one continuous site, not a
   bolted-on add-on.
   ============================================ */

:root {
  --sage: #8a9e8c;
  --sage-light: #c8d8c4;
  --sage-pale: #f0f4ef;
  --warm-white: #faf9f6;
  --linen: #f5f0e8;
  --taupe: #b8a89a;
  --taupe-dark: #8c7b72;
  --charcoal: #3a3530;
  --charcoal-light: #6b6259;
  --blush: #e8d5cc;
  --blush-pale: #f7f0ec;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* NAV (identical to main site) */
.nav-hamburger { display: none; }

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 168, 154, 0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 58px;
}
.nav-logo svg { height: 72px; width: auto; }

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

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--sage); }

.nav-cta {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-white) !important;
  background: var(--sage);
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.3s !important;
}

.nav-cta:hover { background: var(--taupe-dark) !important; }

.nav-portal {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage) !important;
  border: 1px solid var(--sage-light);
  padding: 0.4rem 1rem !important;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-portal:hover {
  background: var(--sage-pale);
  color: var(--charcoal) !important;
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open { display: flex !important; flex-direction: column; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--warm-white); justify-content: center; align-items: center; gap: 2rem; z-index: 1000; }
  .nav-links.open a { font-size: 1.2rem; }
  .nav-hamburger { display: flex !important; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 0.5rem; }
  .nav-hamburger span { display: block; width: 26px; height: 2px; background: var(--charcoal); transition: all 0.3s; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* SECTION UTILITY (identical to main site) */
section { position: relative; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.75rem;
}

.section-title em { font-style: italic; color: var(--taupe-dark); }

.btn-primary {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--gold);
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-secondary:hover { background: var(--charcoal); color: var(--warm-white); }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   BLOG-SPECIFIC
   ============================================ */

/* Blog header/hero — quieter than the homepage hero, still on-brand */
.blog-hero {
  padding: 11rem 0 5rem;
  background: var(--linen);
  border-bottom: 1px solid rgba(184,168,154,0.25);
}

.blog-hero .section-title { margin-bottom: 1rem; }

.blog-hero p.blog-hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal-light);
  max-width: 640px;
}

/* Post grid on the blog index */
.post-grid {
  padding: 5rem 0 8rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--blush);
  text-decoration: none;
  color: inherit;
}

.post-card:first-child { padding-top: 0; }

.post-card-date {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  padding-top: 0.4rem;
}

.post-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.post-card:hover .post-card-title { color: var(--sage); }

.post-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal-light);
}

.post-card-readmore {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}

.post-empty {
  padding: 3rem 0;
  color: var(--charcoal-light);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

@media (max-width: 700px) {
  .post-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .blog-hero { padding: 8rem 0 3rem; }
}

/* Individual post article */
.post-article {
  padding: 11rem 0 7rem;
}

.post-article-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

.post-back {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.post-back:hover { color: var(--taupe-dark); }

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

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--charcoal-light);
}

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

.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--charcoal);
  margin: 2.5rem 0 1.25rem;
}

.post-body h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 2rem 0 1rem;
}

.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.4rem; }
.post-body li { margin-bottom: 0.5rem; }

.post-body blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--charcoal);
  border-left: 2px solid var(--sage-light);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.post-body a { color: var(--taupe-dark); }
.post-body strong { color: var(--charcoal); font-weight: 500; }

.post-cta {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--linen);
  text-align: center;
}

.post-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .post-article { padding: 8rem 0 4rem; }
  .post-title { font-size: 2rem; }
}

/* FOOTER (identical to main site) */
footer {
  background: var(--charcoal);
  padding: 4rem 0 3rem;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { display: block; margin-bottom: 1rem; text-decoration: none; }
.footer-brand .logo svg { height: 65px; width: auto; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(250,249,246,0.45);
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1.5rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(250,249,246,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--warm-white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.75rem; color: rgba(250,249,246,0.3); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; padding: 1.5rem 1.5rem 0; text-align: center; }
  .section-inner { padding: 0 1.5rem; }
  .section-title { font-size: 2.2rem; }
}
