:root {
  --paper: #F6F4EE;
  --white: #FFFFFF;
  --ink: #1D1F1C;
  --ink-2: #3B3F39;
  --muted: #464B43;
  --muted-2: #5B6057;
  --line: #E2DED3;
  --field: #B9BDB3;
  --green: #1F5135;
  --green-dark: #123222;
  --green-tint: #E3EFE6;
  --green-text: #D6E2D9;
  --amber-tint: #F4EBD6;
  --amber-text: #7A5410;
  --gray-tint: #ECEBE6;
  --gray-text: #4A4D47;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }

/* header */
.site-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--green); }

/* buttons */
.btn, .nav a.btn { display: inline-block; text-decoration: none; background: var(--green); color: var(--white); padding: 12px 18px; border-radius: 8px; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; }
.btn:hover, .nav a.btn:hover { background: var(--green-dark); color: var(--white); }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn-light { background: var(--paper); color: var(--green); padding: 15px 22px; }
.btn-light:hover { background: var(--white); color: var(--green-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--paper); color: var(--paper); padding: 13.5px 20px; }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); text-decoration: none; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.03; font-weight: 700; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34rem; }
.lede-sm { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* signup */
.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; font-size: 14px; font-weight: 600; }
.field input { font: inherit; font-weight: 400; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--field); border-radius: 8px; background: var(--white); color: var(--ink); }
.field input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.msg { display: none; flex-basis: 100%; margin: 0; font-size: 15px; font-weight: 500; }
.signup.success .msg-success { display: block; color: var(--green); }
.signup.error .msg-error { display: block; color: #9B2C1F; }
.signup.loading button { opacity: 0.7; }
.form-note { margin: 0; font-size: 14px; color: var(--muted-2); }

/* email card */
.email-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 40px -24px rgba(29,31,28,0.25); }
.card-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.email-card h2 { font-size: 24px; line-height: 1.25; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tags li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.tag { flex: none; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; text-transform: uppercase; }
.tag-act { background: var(--green-tint); color: var(--green); }
.tag-watch { background: var(--amber-tint); color: var(--amber-text); }
.tag-skip { background: var(--gray-tint); color: var(--gray-text); }

/* band + staff */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; }
.section-head h1, .section-head h2, .split h2, .latest h2, .listing h1 { font-size: 40px; line-height: 1.12; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }
.staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.staff-card { text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.staff-card:hover { color: var(--ink); border-color: var(--green); transform: translateY(-2px); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--green-tint); display: grid; place-items: center; }
.icon svg { fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.staff-title { font-family: var(--display); font-weight: 700; font-size: 21px; }
.staff-text { line-height: 1.55; color: var(--muted); }

/* split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.perks li { display: flex; flex-direction: column; gap: 6px; }
.perks strong { font-weight: 600; font-size: 18px; }
.perks span { color: var(--muted); line-height: 1.55; }

/* posts */
.latest { padding-bottom: 88px; }
.listing { padding-top: 56px; padding-bottom: 88px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.post-card a:hover { border-color: var(--green); color: var(--ink); }
.post-card h3 { font-size: 21px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--muted); }
.meta { margin: 0; font-size: 14px; color: var(--muted-2); }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; }

/* cta */
.cta { background: var(--green); color: var(--paper); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 80px; padding-bottom: 80px; }
.cta h2 { font-size: 40px; }
.cta p { margin: 0; font-size: 18px; color: var(--green-text); max-width: 40rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* article */
.article { padding-top: 56px; padding-bottom: 48px; }
.article-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.article-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.feature { margin: 0 auto 40px; }
.feature img { border-radius: 14px; width: 100%; }
.after-post { padding-bottom: 88px; display: flex; flex-direction: column; gap: 12px; }
.gh-content { font-size: 18px; line-height: 1.7; }
.gh-content > * + * { margin-top: 1.1em; }
.gh-content h2 { font-size: 30px; margin-top: 1.6em; }
.gh-content h3 { font-size: 23px; margin-top: 1.4em; }
.gh-content p, .gh-content ul, .gh-content ol { margin-bottom: 0; }
.gh-content blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--green); color: var(--muted); }
.gh-content pre { background: var(--ink); color: var(--paper); padding: 18px; border-radius: 10px; overflow-x: auto; font-size: 15px; }
.gh-content code { font-size: 0.9em; }
.gh-content figure { margin: 1.6em 0; }
.gh-content figcaption { font-size: 14px; color: var(--muted-2); text-align: center; margin-top: 8px; }
.gh-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.kg-width-wide { position: relative; width: min(1040px, 92vw); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted-2); }
.foot-links { display: flex; gap: 20px; }

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .wrap-narrow { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .band, .split { padding-top: 56px; padding-bottom: 56px; }
  .section-head h1, .section-head h2, .split h2, .latest h2, .listing h1, .cta h2 { font-size: 30px; }
}
