:root {
  --ink: #0F2A20;
  --deep: #123D2C;
  --green: #12855A;
  --green-dark: #0B5C3E;
  --neon: #7CFFC4;
  --orange: #F2731E;
  --orange-dark: #C6570F;
  --bg: #FFFFFF;
  --surface: #F3FBF7;
  --surface2: #E8F7EF;
  --text: #0F2A20;
  --muted: #5C7A6E;
  --line: rgba(15,42,32,.12);
  --shadow: 0 18px 50px -22px rgba(15,90,60,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Inter', sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { padding-left: 1.3em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Space Mono', monospace; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 4px rgba(27,217,138,.18); }

header {
  position: sticky; top: 0; z-index: 40; background: rgba(31,38,36,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 39px; display: block; }
.brand b { color: var(--green); font-weight: 800; }
.navlinks { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.75); }
.navlinks a { text-decoration: none; }
.navlinks a:hover, .navlinks a.active { color: var(--orange); }
.nav-cta {
  font-family: 'Inter'; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff;
  background: var(--orange); padding: 10px 18px; border-radius: 999px; transition: background .2s, transform .12s;
}
.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex: none; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 780px) {
  .menu-toggle { display: block; }
  .navlinks {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 4px 24px; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
    color: var(--muted);
  }
  .navlinks.open { max-height: 420px; opacity: 1; padding: 10px 24px 18px; }
  .navlinks a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
  .navlinks a:hover { color: var(--orange); }
  .navlinks a:last-child { border-bottom: none; }
}

.btn {
  font-family: 'Inter'; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; border: none; cursor: pointer;
  border-radius: 11px; padding: 14px 22px; background: var(--orange); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: transform .12s, background .2s;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); }

footer { background: var(--ink); color: #A9C4BC; font-size: 14px; padding: 34px 0; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 22px; display: block; }
.foot-links { display: flex; gap: 18px; font-size: 13.5px; }
.foot-links a:hover { color: #fff; }

/* ---------- blog index ---------- */
.bhero { padding: 56px 0 20px; }
.bhero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: var(--text); margin-top: 14px; text-wrap: balance; }
.bhero p { color: var(--muted); font-size: 17.5px; margin-top: 14px; max-width: 60ch; }

.postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0 80px; }
@media (max-width: 980px) { .postgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .postgrid { grid-template-columns: 1fr; } }

.postcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text);
  transition: border-color .18s, transform .12s;
}
.postcard:hover { border-color: var(--green); transform: translateY(-2px); }
.postcard .tag { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.postcard h2 { font-size: 18px; font-weight: 700; margin-top: 2px; }
.postcard p { font-size: 14px; color: var(--muted); flex: 1; }
.postcard .meta { font-size: 12.5px; color: var(--muted); font-family: 'Space Mono', monospace; }

/* ---------- post page ---------- */
.post-head { padding: 52px 0 8px; }
.post-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--text); margin-top: 14px; text-wrap: balance; }
.post-meta { display: flex; gap: 14px; margin-top: 16px; font-family: 'Space Mono', monospace; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

article.post { padding: 36px 0 70px; max-width: 720px; margin: 0 auto; }
article.post h2 { font-size: 24px; font-weight: 800; color: var(--text); margin: 40px 0 14px; }
article.post p { color: #2A4A3C; font-size: 17px; margin: 16px 0; max-width: 68ch; }
article.post ul, article.post ol { color: #2A4A3C; font-size: 17px; max-width: 68ch; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
article.post strong { color: var(--text); }
article.post a.inline { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }

.cta-box {
  margin-top: 48px; background: var(--surface2); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-box h3 { font-size: 19px; font-weight: 800; color: var(--text); }
.cta-box p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 46ch; }

.disclaimer { max-width: 720px; margin: 0 auto; padding: 0 24px 40px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.related { max-width: 720px; margin: 0 auto; padding: 0 24px 60px; }
.related h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; font-family: 'Space Mono', monospace; color: var(--muted); margin-bottom: 16px; }
.related ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related a { color: var(--green); text-decoration: none; font-weight: 600; }
.related a:hover { color: var(--green-dark); text-decoration: underline; }
