
:root {
  --color-primary: #1A3626; /* Deeper Forest Green */
  --color-secondary: #5C2C16; /* Deeper Saddle Brown */
  --color-accent: #B85012; /* Rich Clay/Terracotta */
  --color-text: #2D2D2D;
  --color-text-muted: #555555;
  --color-bg: #F5EFE6; /* Warmer Off-white */
  --color-bg-alt: #E8DFD0; /* Warmer Eggshell */
  --color-border: #D1C5B4;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Lora', serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--color-text); line-height: 1.6; background-color: var(--color-bg); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

/* Header */
.site-header { border-bottom: 8px solid transparent; border-image: url('/images/pattern.png') 30 stretch; padding: 16px 0; position: sticky; top: 0; background: #fff; z-index: 100; box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: block; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--color-text); font-weight: 600; transition: color 0.2s; text-transform: uppercase; font-size: 0.9rem;}
.site-nav a:hover { color: var(--color-primary); }

/* Hero Banner */
.hero {
  position: relative;
  background-image: url('/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(47, 79, 79, 0.6); /* Forest green overlay */
}
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.25rem; max-width: 700px; margin: 0 auto 32px; opacity: 0.95; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.hero-btn { display: inline-block; background: var(--color-accent); color: white; padding: 14px 32px; border-radius: 30px; font-weight: 700; text-decoration: none; font-size: 1.1rem; transition: transform 0.2s, background 0.2s; }
.hero-btn:hover { transform: translateY(-2px); background: #b05414; }

/* Typography & Content */
.page-header { padding: 60px 0 40px; text-align: center; background: var(--color-bg-alt); margin-bottom: 40px; border-bottom: 2px solid var(--color-border); }
.page-title { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 16px; font-weight: 800; }
.content-body { font-size: 1.1rem; }
.content-body h2 { font-size: 1.8rem; color: var(--color-secondary); margin: 40px 0 20px; border-bottom: 2px dashed var(--color-bg-alt); padding-bottom: 8px; }
.content-body h3 { font-size: 1.4rem; color: var(--color-primary); margin: 30px 0 16px; }
.content-body p { margin-bottom: 20px; line-height: 1.8; }
.content-body ul { margin-bottom: 24px; padding-left: 24px; }
.content-body li { margin-bottom: 10px; }
.content-body a { color: var(--color-accent); text-decoration: none; font-weight: 600; }
.content-body a:hover { text-decoration: underline; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-primary); text-decoration: none; font-weight: 500;}
.breadcrumb a:hover { text-decoration: underline; }

/* TOC */
.toc-box { background: #fff; padding: 30px; border-radius: var(--radius-md); margin: 40px 0; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.toc-box h3 { margin-top: 0; color: var(--color-secondary); font-size: 1.3rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;}
.toc-box ul { list-style-type: none; padding-left: 0; margin-bottom: 0; }
.toc-box li { margin-bottom: 14px; border-bottom: 1px solid var(--color-bg-alt); padding-bottom: 8px;}
.toc-box li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
.toc-box a { color: var(--color-text); text-decoration: none; font-weight: 500; display: block;}
.toc-box a:hover { color: var(--color-accent); padding-left: 5px; transition: padding 0.2s;}

/* Article Header Meta */
.article-meta { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--color-text-muted); font-size: 0.95rem; margin-top: 16px; }
.article-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Author Box */
.author-box { display: flex; gap: 24px; background: #fff; padding: 32px; border-radius: var(--radius-md); margin-top: 60px; border-top: 4px solid var(--color-secondary); align-items: center; box-shadow: var(--shadow-sm); }
.author-box__avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--color-bg-alt); }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__info h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.4rem; color: var(--color-primary); }
.author-box__info p { margin-bottom: 12px; font-size: 1rem; color: var(--color-text-muted); line-height: 1.5; }
.author-box__link { color: var(--color-accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px;}

/* Related Posts */
.related-posts { margin-top: 60px; }
.related-posts h3 { font-size: 1.5rem; color: var(--color-secondary); margin-bottom: 24px; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.related-card { background: #fff; border: 1px solid var(--color-border); padding: 20px; border-radius: var(--radius-md); transition: box-shadow 0.2s;}
.related-card:hover { box-shadow: var(--shadow-md); }
.related-card a { color: var(--color-primary); text-decoration: none; font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: 8px;}
.related-card p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* Post List */
.post-list { list-style: none; padding: 0; }
.post-item { background: #fff; padding: 24px; margin-bottom: 20px; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.post-item h3 { margin: 0 0 10px; font-size: 1.4rem;}
.post-item a { color: var(--color-primary); text-decoration: none; }
.post-item a:hover { color: var(--color-accent); text-decoration: underline;}
.post-item p { color: var(--color-text-muted); margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 8px solid transparent; border-image: url('/images/pattern.png') 30 stretch; background: #1a2a2a; color: #e5e7eb; padding: 60px 0 24px; margin-top: 80px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px;}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul a { color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.site-footer ul a:hover { color: #fff; }
.site-footer__bottom { padding-top: 24px; border-top: 1px solid #2d3748; display: flex; justify-content: space-between; font-size: 0.9rem; }
.footer-legal a { color: #9ca3af; text-decoration: none; margin: 0 8px; }
.footer-legal a:hover { color: #fff; }

/* Utility */
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
