:root {
  --bg: #262421;
  --bg-deep: #1d1c19;
  --surface: #302e2b;
  --ink: #e9e6e1;
  --ink-muted: #c4c0ba;
  --line: #3a3835;
  --accent: #81b64c;
  --accent-ink: #1d1c19;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: Archivo, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(129, 182, 76, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(111, 159, 216, 0.1), transparent 46%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015) 0 12px,
      transparent 12px 24px
    ),
    var(--bg);
}

a { color: var(--accent); }

a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 0 2.5rem;
}

.site-header a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.site-header img {
  display: block;
  height: 40px;
  width: auto;
  filter: invert(1);
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
  color: var(--ink-muted);
}

.meta {
  margin: 0 0 2.75rem;
  font-size: 0.88rem;
  color: #b5b1ab;
}

article h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

article h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
}

article p,
article li {
  color: var(--ink);
}

article p { margin: 0 0 1rem; }

article ol,
article ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

article li { margin: 0.35rem 0; }

.note {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: rgba(129, 182, 76, 0.08);
}

.cta {
  display: block;
  width: fit-content;
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

.cta:hover { filter: brightness(1.05); }

.cta-band {
  margin: 2.75rem 0 3.5rem;
  padding: 1.6rem 1.7rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.cta-band h2 { margin-top: 0; }

.site-footer {
  padding: 1.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: #b5b1ab;
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

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

.post-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-list a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.post-list p {
  margin: 0;
  color: var(--ink-muted);
}

.post-list a:hover h2 { color: var(--accent); }

@media (max-width: 560px) {
  .wrap { width: min(760px, calc(100% - 2rem)); }
  .site-header { padding-bottom: 1.75rem; }
}
