/* Shared styling for the BullMoose blog */

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

:root {
  --forest:    #2C3B2D;
  --moss:      #4A5E3A;
  --fern:      #6B7F55;
  --sage:      #A3B18A;
  --cream:     #F5F0E8;
  --parchment: #EDE6D6;
  --warm-mid:  #C8B99A;
  --amber:     #B5722A;
  --bark:      #7A4F2D;
  --ink:       #1E2419;
  --muted:     #6B6358;
  --border:    rgba(44,59,45,0.12);
  --border-strong: rgba(44,59,45,0.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 28px; width: auto; display: block; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--forest); }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--forest) !important;
  background: var(--parchment);
  border: 1px solid var(--border-strong);
  padding: 7px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover { background: var(--forest) !important; color: var(--cream) !important; }

/* BLOG HEADER (hub + posts) */
.blog-header {
  padding: 132px 2rem 48px;
  border-bottom: 1px solid var(--border);
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(45deg, var(--forest) 0, var(--forest) 1px, transparent 0, transparent 50%);
  background-size: 8px 8px;
  z-index: 0;
}

.blog-header-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 1.25rem;
}

.blog-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--fern); }

.blog-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--forest);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.blog-header .lede { font-size: 17px; color: var(--muted); font-weight: 300; max-width: 600px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fern);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--forest); }

/* HUB LISTING */
.blog-main { max-width: 960px; margin: 0 auto; padding: 64px 2rem 96px; }

.cat-block { margin-bottom: 3.5rem; }

.cat-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.cat-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.cat-head .cat-app {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fern);
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.post-card {
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(44,59,45,0.1); border-color: var(--fern); }

.post-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.post-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }

.post-card .read { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--fern); }

/* ARTICLE */
.post { max-width: 720px; margin: 0 auto; padding: 104px 2rem 96px; }

.post h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.post-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 1rem;
}

.post-meta { font-size: 13px; color: var(--muted); font-weight: 300; margin-top: 0.75rem; }

.post-body { margin-top: 2.5rem; }

.post-body p { font-size: 17px; color: #3a4034; line-height: 1.75; margin-bottom: 1.25rem; }

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--forest);
  margin: 1.75rem 0 0.5rem;
}

.post-body ul, .post-body ol { margin: 0 0 1.25rem; padding-left: 0; list-style: none; }

.post-body li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 17px;
  color: #3a4034;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.post-body ol { counter-reset: step; }
.post-body ol li { counter-increment: step; }
.post-body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 12px;
  font-weight: 600;
  color: var(--fern);
  background: var(--parchment);
  border: 1px solid var(--border-strong);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-body a { color: var(--bark); text-decoration: none; border-bottom: 1px solid rgba(122,79,45,0.3); transition: border-color 0.2s; }
.post-body a:hover { border-color: var(--bark); }

.post-body strong { color: var(--forest); font-weight: 600; }

.post-body blockquote {
  border-left: 3px solid var(--sage);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-style: italic;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 15px;
}

.post-body th, .post-body td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  vertical-align: top;
}

.post-body th { background: var(--parchment); color: var(--forest); font-weight: 600; }

/* CTA box at the end of a post */
.post-cta {
  margin-top: 2.5rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: repeating-linear-gradient(-45deg, var(--cream) 0, var(--cream) 1px, transparent 0, transparent 50%);
  background-size: 8px 8px;
}

.post-cta-inner { position: relative; z-index: 1; }

.post-cta .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 0.5rem;
}

.post-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.post-cta p { font-size: 15px; color: rgba(245,240,232,0.72); line-height: 1.6; margin-bottom: 1.25rem; }

.post-cta a.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--forest);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.post-cta a.btn:hover { background: var(--parchment); transform: translateY(-1px); }

.post-more { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-more .label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fern); display: block; margin-bottom: 0.75rem; }
.post-more ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.post-more a { font-size: 15px; color: var(--bark); text-decoration: none; }
.post-more a:hover { text-decoration: underline; }

/* FOOTER */
footer { background: var(--ink); color: rgba(245,240,232,0.5); padding: 3rem 2rem; }

.footer-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }

.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand img { height: 24px; width: auto; display: block; filter: brightness(0) invert(1) opacity(0.75); }

.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(245,240,232,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(245,240,232,0.75); }

.footer-copy { font-size: 12px; color: rgba(245,240,232,0.25); }

/* RESPONSIVE */
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .blog-header { padding: 100px 1.25rem 40px; }
  .blog-main { padding: 48px 1.25rem 72px; }
  .post { padding: 88px 1.25rem 72px; }
}
