:root {
  --ink: #1c1f1c;
  --ink-soft: #4d534c;
  --canvas: #f3f0e8;
  --canvas-alt: #e9e5db;
  --line: #ddd6c8;
  --dark: #141615;
  --hero-text: #f4efe6;
  --hero-muted: #b7b2a8;
  --line-dark: rgba(244, 239, 230, 0.14);
  --green: #157a34;
  --green-deep: #0e5c26;
  --dot: #2ea84a;
  --measure: 1080px;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--dark);
  color: var(--hero-text);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--hero-text);
  flex-shrink: 0;
}

.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  display: block;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  justify-content: flex-end;
}

nav a {
  color: var(--hero-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--hero-text);
}

nav a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.entry-link:focus-visible,
.entry-action:focus-visible {
  outline: 2px solid var(--dot);
  outline-offset: 3px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: var(--hero-text);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(54px);
}

.hero::before {
  width: 42rem;
  height: 42rem;
  right: -14rem;
  top: -12rem;
  background: rgba(46, 168, 74, 0.42);
}

.hero::after {
  width: 28rem;
  height: 28rem;
  right: 6%;
  bottom: -16rem;
  background: rgba(244, 239, 230, 0.14);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 7rem 2rem 6.5rem;
}

.kicker {
  font-size: 0.92rem;
  color: #8fbf9c;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin-bottom: 2rem;
}

.lede {
  max-width: 40rem;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--hero-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 0.72rem 1.05rem;
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-secondary {
  color: var(--hero-text);
  border-bottom: 1px solid rgba(244, 239, 230, 0.45);
  padding-bottom: 0.1rem;
}

.btn-secondary:hover {
  border-bottom-color: var(--hero-text);
}

.chapter-intro {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.75rem 2rem 1.25rem;
}

.chapter-intro .kicker {
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}

.chapter-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.entry,
.topic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.entry::before,
.topic::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 26rem;
  height: 26rem;
  right: -9rem;
  top: 50%;
  border-radius: 50%;
  background: rgba(21, 122, 52, 0.13);
  filter: blur(42px);
  transform: translateY(-50%);
}

.entry:nth-of-type(even),
.topic:nth-of-type(even) {
  background: var(--canvas-alt);
}

.entry:nth-of-type(even)::before,
.topic:nth-of-type(even)::before {
  right: auto;
  left: -10rem;
  background: rgba(255, 255, 255, 0.72);
}

.entry-link,
.topic-inner {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
  gap: 2rem 5rem;
  align-items: start;
}

.entry-link {
  text-decoration: none;
  color: inherit;
}

.entry-kicker,
.topic-kicker {
  display: block;
  font-size: 0.88rem;
  color: var(--green-deep);
  margin-bottom: 0.45rem;
}

.entry h2,
.topic h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.entry p,
.topic p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 42rem;
}

.topic p + p {
  margin-top: 1rem;
}

.meta-line {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.entry-action {
  display: inline-block;
  margin-top: 1.15rem;
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

a.entry-action:hover {
  text-decoration: underline;
}

main .topic:last-of-type,
main .entry:last-of-type {
  border-bottom: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.6rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 0.9rem 1.25rem;
  }

  nav {
    flex: 1 1 100%;
  }

  nav ul {
    justify-content: flex-start;
    gap: 0.75rem 1.15rem;
  }

  .hero-inner,
  .chapter-intro,
  .entry-link,
  .topic-inner,
  .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-inner {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .entry-link,
  .topic-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .entry::before,
  .topic::before {
    width: 16rem;
    height: 16rem;
    right: -6rem;
  }

  .hero h1 {
    max-width: none;
  }
}
