/* ════════════════════════════════════════════════════════
   ANGYSWORLD — Blog Shared Stylesheet
   Jane Goodall palette · Playfair Display + DM Sans
════════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding-left: 0; }

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --bg:           #F4F9F6;
  --bg-alt:       #EAF2ED;
  --bg-border:    #D4E8DB;
  --text:         #1E2D27;
  --text-muted:   #4E6358;
  --green:        #294A3E;
  --green-dark:   #1C3329;
  --green-light:  #CCE4D3;
  --earth:        #7A5C3A;
  --earth-hover:  #5E4529;
  --earth-light:  #C4A882;
  --sand:         #E2D8CC;
  --white:        #FFFFFF;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --content: 740px;   /* prose column */
  --wrap:    1120px;  /* full layout  */
  --r:       3px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── UTILITIES ───────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8125rem 1.625rem;
  font-family: var(--sans); font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.03em;
  text-decoration: none; border: none;
  border-radius: var(--r); cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-earth { background: var(--earth); color: var(--white); }
.btn-earth:hover { background: var(--earth-hover); transform: translateY(-1px); }


/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(244, 249, 246, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border);
}
.nav__row { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--serif); font-size: 1.125rem; font-weight: 500; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.nav__logo:hover { color: var(--green); }
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__links a { font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 0.8125rem !important; font-weight: 500 !important;
  border: 1px solid var(--green) !important;
  color: var(--green) !important;
  padding: 0.45rem 1.1rem; border-radius: var(--r);
  transition: all 0.2s !important;
}
.nav__cta:hover { background: var(--green) !important; color: var(--white) !important; }
@media (max-width: 720px) { .nav__links { display: none; } }


/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  padding: 6.5rem 1.5rem 0;
}
.breadcrumb__inner {
  max-width: var(--content);
  margin-inline: auto;
}
.breadcrumb__list {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; list-style: none;
}
.breadcrumb__item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--text-muted);
}
.breadcrumb__item:not(:last-child)::after {
  content: '›';
  opacity: 0.5;
}
.breadcrumb__item a {
  text-decoration: none; color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb__item a:hover { color: var(--green); }
.breadcrumb__item[aria-current="page"] { color: var(--text); }


/* ── ARTICLE HEADER ──────────────────────────────────── */
.article-header {
  padding: 2.5rem 1.5rem 0;
}
.article-header__inner {
  max-width: var(--content);
  margin-inline: auto;
}
.article-header__cat {
  display: inline-block;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--earth); font-weight: 500;
  margin-bottom: 1.125rem;
}
.article-header__h1 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 400; line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.375rem;
}
.article-header__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1.875rem;
  font-style: italic;
  font-family: var(--serif);
}
.article-header__meta {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.125rem 0;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 2.5rem;
}
.article-meta__author {
  display: flex; align-items: center; gap: 0.625rem;
}
.article-meta__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0;
}
.article-meta__name {
  font-size: 0.875rem; font-weight: 500; color: var(--text);
}
.article-meta__sep { color: var(--bg-border); }
.article-meta__detail {
  font-size: 0.8125rem; color: var(--text-muted);
}


/* ── ARTICLE HERO IMAGE ──────────────────────────────── */
.article-hero {
  padding: 0 1.5rem 3rem;
}
.article-hero__inner { max-width: var(--content); margin-inline: auto; }
.article-hero__img {
  width: 100%; aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}
.article-hero__caption {
  margin-top: 0.625rem;
  font-size: 0.75rem; color: var(--text-muted);
  font-style: italic;
}


/* ── ARTICLE BODY (prose) ────────────────────────────── */
.article-body {
  padding: 0 1.5rem 5rem;
}
.article-body__inner {
  max-width: var(--content);
  margin-inline: auto;
}

/* Prose typography */
.prose { font-size: 1.0625rem; line-height: 1.82; color: var(--text); }

.prose p { margin-bottom: 1.5rem; }
.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 400; line-height: 1.25;
  color: var(--text);
  margin-top: 3rem; margin-bottom: 1.125rem;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.1875rem; font-weight: 500;
  line-height: 1.3; color: var(--text);
  margin-top: 2.25rem; margin-bottom: 0.875rem;
}

.prose a {
  color: var(--green); text-decoration: underline;
  text-decoration-color: var(--green-light);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover { color: var(--green-dark); text-decoration-color: var(--green); }

.prose strong { font-weight: 500; color: var(--text); }
.prose em { font-style: italic; }

.prose ul, .prose ol {
  margin-bottom: 1.5rem; padding-left: 1.25rem;
}
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.625rem;
}
.prose ul li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--earth-light);
  font-size: 0.875rem;
}
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 0.625rem; }

.prose blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--green);
}
.prose blockquote p {
  font-family: var(--serif);
  font-size: 1.125rem; font-style: italic;
  line-height: 1.65; color: var(--text);
  margin-bottom: 0;
}

/* Pull quote — larger accent */
.prose .pull-quote {
  margin: 3rem 0;
  padding: 0;
  background: none;
  border: none;
  text-align: center;
}
.prose .pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic; line-height: 1.45;
  color: var(--green);
  margin-bottom: 0;
}

/* Divider */
.prose hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--bg-border);
}

/* Label / overline inside prose */
.prose .section-label {
  display: block;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--earth); font-weight: 500;
  margin-bottom: 0.5rem;
}


/* ── AUTHOR BOX ──────────────────────────────────────── */
.author-box {
  max-width: var(--content); margin-inline: auto;
  padding: 0 1.5rem 5rem;
}
.author-box__inner {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 2rem 2.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--bg-border);
}
@media (max-width: 600px) { .author-box__inner { flex-direction: column; } }
.author-box__img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0;
}
.author-box__name {
  font-family: var(--serif); font-size: 1.125rem;
  font-weight: 500; color: var(--text);
  margin-bottom: 0.375rem;
}
.author-box__role {
  font-size: 0.8125rem; color: var(--earth);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.author-box__bio {
  font-size: 0.9375rem; color: var(--text-muted);
  line-height: 1.72; margin-bottom: 1rem;
}
.author-box__links { display: flex; gap: 1rem; }
.author-box__links a {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--green); text-decoration: none;
  transition: color 0.2s;
}
.author-box__links a:hover { color: var(--green-dark); }


/* ── RELATED ARTICLES ────────────────────────────────── */
.related {
  padding: 4rem 1.5rem 6rem;
  background: var(--bg-alt);
}
.related__header {
  max-width: var(--wrap); margin-inline: auto;
  margin-bottom: 2.5rem;
}
.related__label {
  display: block;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--earth); font-weight: 500;
  margin-bottom: 0.75rem;
}
.related__title {
  font-family: var(--serif);
  font-size: 1.625rem; font-weight: 400; color: var(--text);
}
.related__grid {
  max-width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .related__grid { grid-template-columns: 1fr; } }

.rel-card {
  background: var(--white);
  border: 1px solid var(--bg-border);
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.rel-card:hover { border-color: var(--green-light); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(41,74,62,0.08); }
.rel-card__img-wrap { overflow: hidden; }
.rel-card__img {
  width: 100%; height: 180px; object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.5s, filter 0.3s;
}
.rel-card:hover .rel-card__img { transform: scale(1.05); filter: saturate(1.05); }
.rel-card__body { padding: 1.5rem 1.375rem; flex: 1; display: flex; flex-direction: column; }
.rel-card__cat { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--earth); font-weight: 500; margin-bottom: 0.625rem; }
.rel-card__title { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--text); line-height: 1.35; flex: 1; }
.rel-card__read { margin-top: 1rem; font-size: 0.8125rem; font-weight: 500; color: var(--green); letter-spacing: 0.04em; text-transform: uppercase; }


/* ── ARTICLE CTA ─────────────────────────────────────── */
.article-cta {
  padding: 6rem 1.5rem;
  text-align: center;
}
.article-cta__inner { max-width: 540px; margin-inline: auto; }
.article-cta__label {
  display: block;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--earth); font-weight: 500; margin-bottom: 1rem;
}
.article-cta__headline {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 400; line-height: 1.28; color: var(--text);
  margin-bottom: 1.125rem;
}
.article-cta__headline em { font-style: italic; color: var(--green); }
.article-cta__body { font-size: 1rem; color: var(--text-muted); line-height: 1.72; margin-bottom: 2.25rem; }
.article-cta__note { margin-top: 0.875rem; font-size: 0.8125rem; color: var(--text-muted); }


/* ── FOOTER ──────────────────────────────────────────── */
.footer { background: var(--text); padding: 3rem 1.5rem; }
.footer__inner { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer__logo { font-family: var(--serif); font-size: 1.125rem; font-weight: 500; color: rgba(255,255,255,0.62); text-decoration: none; }
.footer__nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer__nav a { font-size: 0.8125rem; color: rgba(255,255,255,0.4); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s; }
.footer__nav a:hover { color: rgba(255,255,255,0.78); }
.footer__copy { width: 100%; font-size: 0.75rem; color: rgba(255,255,255,0.24); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }


/* ── BLOG INDEX specific ─────────────────────────────── */
.blog-index-hero {
  padding: 8rem 1.5rem 5rem;
  background: var(--green);
  text-align: center;
}
.blog-index-hero__label {
  display: block;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 1.25rem;
}
.blog-index-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400; line-height: 1.18; color: var(--white);
  margin-bottom: 1.25rem;
}
.blog-index-hero__title em { font-style: italic; color: var(--green-light); }
.blog-index-hero__sub {
  font-size: 1.0625rem; font-weight: 300;
  color: rgba(255,255,255,0.68); max-width: 500px;
  margin-inline: auto; line-height: 1.7;
}

.blog-index-grid {
  padding: 5rem 1.5rem 7rem;
}
.blog-index-grid__inner { max-width: var(--wrap); margin-inline: auto; }
.blog-index-grid__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-index-grid__list .blog-card--featured { grid-column: span 3; }
@media (max-width: 860px) {
  .blog-index-grid__list { grid-template-columns: 1fr; }
  .blog-index-grid__list .blog-card--featured { grid-column: span 1; flex-direction: column; }
}

/* Reuse blog-card styles from main (inline below in index) */
.blog-card {
  background: var(--white); border: 1px solid var(--bg-border);
  display: flex; flex-direction: column; text-decoration: none;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.blog-card:hover { border-color: var(--green-light); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(41,74,62,0.08); }
.blog-card--featured { flex-direction: row; }
.blog-card__img-wrap { overflow: hidden; flex-shrink: 0; }
.blog-card--featured .blog-card__img-wrap { width: 42%; }
.blog-card__img { width: 100%; height: 220px; object-fit: cover; filter: saturate(0.85); transition: transform 0.5s, filter 0.3s; }
.blog-card--featured .blog-card__img { height: 100%; min-height: 300px; }
.blog-card:hover .blog-card__img { transform: scale(1.04); filter: saturate(1.05); }
.blog-card__body { padding: 1.875rem 1.625rem; display: flex; flex-direction: column; flex: 1; }
.blog-card--featured .blog-card__body { padding: 2.5rem 2.25rem; justify-content: center; }
.blog-card__cat { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--earth); font-weight: 500; margin-bottom: 0.75rem; }
.blog-card__title { font-family: var(--serif); font-size: 1.0625rem; font-weight: 500; color: var(--text); line-height: 1.35; margin-bottom: 0.75rem; }
.blog-card--featured .blog-card__title { font-size: 1.625rem; }
.blog-card__excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.72; flex: 1; }
.blog-card__read { margin-top: 1.25rem; font-size: 0.8125rem; font-weight: 500; color: var(--green); letter-spacing: 0.04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.35rem; }
