:root {
  --green: #159f3f;
  --green-dark: #087237;
  --green-deep: #075b2b;
  --ink: #132019;
  --muted: #68736c;
  --line: rgba(15, 102, 47, .14);
  --surface: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 64px;
  color: var(--ink);
  background: #f7fbf5;
  font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.page { width: min(720px, 100%); margin: 0 auto; }

.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Familjen Grotesk", Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 15px;
}

.masthead-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.masthead-link:hover { color: var(--green-deep); }

.masthead-cta {
  margin-left: auto;
  padding: 9px 16px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--green), var(--green-dark));
  font-family: "Familjen Grotesk", Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.masthead-cta:hover { background: linear-gradient(140deg, var(--green-dark), var(--green-deep)); }

.kicker {
  margin: 0 0 10px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kicker a { color: inherit; text-decoration: none; }

.kicker a:hover { text-decoration: underline; }

h1 {
  margin: 0 0 14px;
  font-family: "Familjen Grotesk", Inter, sans-serif;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.standfirst {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.article h2,
.article h3 {
  margin: 38px 0 12px;
  font-family: "Familjen Grotesk", Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.article h2 { font-size: 25px; }

.article h3 { font-size: 20px; }

.article p { margin: 0 0 17px; }

.article ul,
.article ol { margin: 0 0 17px; padding-left: 24px; }

.article li { margin-bottom: 8px; }

.article a { color: var(--green-deep); }

.article code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #eaf3ec;
  font-size: .92em;
}

.article blockquote {
  margin: 0 0 17px;
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  color: #2f4a3a;
}

.article blockquote p { margin: 0; }

.section-intro { margin-bottom: 34px; }

.post-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }

.post-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.post-card time {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.post-card h2 {
  margin: 6px 0 8px;
  font-family: "Familjen Grotesk", Inter, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.post-card h2 a { color: var(--ink); text-decoration: none; }

.post-card h2 a:hover { color: var(--green-deep); }

.post-card p { margin: 0; color: var(--muted); font-size: 16px; }

.empty { color: var(--muted); }

.cta-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 46px 0 0;
  padding: 26px 28px;
  color: #f4fbf6;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark) 62%, var(--green));
}

.cta-card p {
  margin: 0;
  max-width: 34ch;
  font-family: "Familjen Grotesk", Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.cta-button {
  margin-left: auto;
  padding: 13px 22px;
  color: var(--green-deep);
  border-radius: 14px;
  background: #fff;
  font-family: "Familjen Grotesk", Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a { color: var(--muted); }

a:focus-visible,
.masthead-cta:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .masthead { gap: 12px; padding-bottom: 28px; }
  .masthead-cta { padding: 8px 13px; font-size: 14px; }
  .cta-card { flex-direction: column; align-items: stretch; }
  .cta-button { margin-left: 0; text-align: center; }
  .standfirst { font-size: 17px; }
}
