/* ============================================================
   TerraPoint shared blog styles.
   Used by blog/index.html and every post file, so a new post
   never duplicates the design system. Keep colors and type in
   sync with the five main pages.
   ============================================================ */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: #2E3A3F;
  background: #F8F8F4;
  line-height: 1.6;
  font-size: 17px;
}

a:focus-visible, button:focus-visible { outline: 3px solid #B8985A; outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

section[id], div[id] { scroll-margin-top: 90px; }

.eyebrow {
  font-family: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
}

/* ============ NAV ============ */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 248, 244, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E4E2D6;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: 1160px; margin: 0 auto;
}
.logo-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: #2E3A3F; font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a.active {
  color: #284838; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #B8985A;
}
.nav-cta {
  background: #284838; color: #F8F8F4 !important; padding: 10px 22px;
  border-radius: 3px; font-weight: 700 !important;
}
.nav-cta:hover { background: #1C3428; text-decoration: none !important; }
@media (max-width: 900px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ============ PAGE HEADER (index) ============ */
.blog-hero {
  background: #284838;
  background-image:
    linear-gradient(rgba(40,72,56,0.92), rgba(28,52,40,0.97)),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(248,248,244,0.045) 79px, rgba(248,248,244,0.045) 80px);
  color: #F8F8F4; padding: 76px 0 68px;
}
.blog-hero .eyebrow { color: #B8985A; margin-bottom: 18px; }
.blog-hero h1 {
  font-family: 'Archivo', sans-serif; font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 20px;
}
.blog-hero p { font-size: 19px; color: rgba(248,248,244,0.85); max-width: 660px; }

/* ============ POST LIST ============ */
.post-list { padding: 80px 0 96px; }
.post-item {
  padding: 30px 0; border-bottom: 1px solid #E4E2D6;
  display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: start;
}
.post-item:first-child { border-top: 1px solid #E4E2D6; }
.post-date {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
  color: #307090; font-weight: 600; text-transform: uppercase; padding-top: 5px;
}
.post-item h2 { font-family: 'Archivo', sans-serif; font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.post-item h2 a { color: #284838; text-decoration: none; }
.post-item h2 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #B8985A; }
.post-item p { color: #4A5A5F; font-size: 16px; max-width: 660px; }
.post-tags {
  margin-top: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #B8985A; font-weight: 600;
}
@media (max-width: 680px) { .post-item { grid-template-columns: 1fr; gap: 10px; } }

/* ============ ARTICLE ============ */
.article-head { background: #EFEDE3; border-bottom: 1px solid #DDD9C8; padding: 66px 0 52px; }
.article-head .kicker {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #B8985A; font-weight: 600; margin-bottom: 16px;
}
.article-head h1 {
  font-family: 'Archivo', sans-serif; font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; color: #284838; line-height: 1.14; letter-spacing: -0.015em; margin-bottom: 18px;
}
.article-meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.08em;
  color: #307090; font-weight: 500;
}
article { padding: 60px 0 40px; }
article p { margin-bottom: 20px; color: #2E3A3F; }
article h2 {
  font-family: 'Archivo', sans-serif; font-size: 26px; font-weight: 700; color: #284838;
  margin: 44px 0 14px; line-height: 1.2; letter-spacing: -0.01em;
}
article h3 {
  font-family: 'Archivo', sans-serif; font-size: 20px; font-weight: 700; color: #284838;
  margin: 32px 0 10px;
}
article ul, article ol { margin: 0 0 22px 0; list-style: none; }
article li { padding-left: 24px; position: relative; margin-bottom: 10px; }
article ul li::before { content: '▸'; position: absolute; left: 2px; color: #B8985A; }
article ol { counter-reset: n; }
article ol li { counter-increment: n; }
article ol li::before {
  content: counter(n) '.'; position: absolute; left: 0; color: #B8985A;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
}
article strong { color: #284838; }
article em { font-style: italic; }
article a { color: #284838; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #B8985A; }
article blockquote {
  border-left: 3px solid #B8985A; padding: 4px 0 4px 22px; margin: 26px 0;
  font-size: 19px; color: #3A4A4F;
}
.article-note {
  background: #EFEDE3; border-left: 3px solid #B8985A; padding: 20px 24px;
  margin: 30px 0; font-size: 16px; color: #3A4A4F;
}
.article-foot {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid #E4E2D6;
  font-size: 16px; color: #4A5A5F;
}
.article-foot a { font-weight: 600; }
.back-link {
  display: inline-block; margin-top: 28px; font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 15px; color: #284838; text-decoration: underline;
  text-underline-offset: 5px; text-decoration-color: #B8985A; text-decoration-thickness: 2px;
}

/* ============ CTA ============ */
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-family: 'Archivo', sans-serif; font-size: 16px; padding: 15px 30px; border-radius: 3px;
}
.btn-gold { background: #B8985A; color: #1C3428; }
.btn-gold:hover { background: #C8AB70; }
.btn-ghost { border: 1.5px solid rgba(248,248,244,0.45); color: #F8F8F4; }
.btn-ghost:hover { border-color: #F8F8F4; background: rgba(248,248,244,0.06); }
.cta-band {
  background: linear-gradient(135deg, #1C3428 0%, #284838 60%, #2E5040 100%);
  color: #F8F8F4; padding: 76px 0; text-align: center;
}
.cta-band h2 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 16px; letter-spacing: -0.01em;
}
.cta-band p { font-size: 18px; color: rgba(248,248,244,0.82); max-width: 620px; margin: 0 auto 32px; }

/* ============ FOOTER ============ */
footer { background: #1C3428; color: rgba(248,248,244,0.7); padding: 44px 0; font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer a { color: #B8985A; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-tagline {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.1em; color: rgba(248,248,244,0.62);
}
