:root {
  --ink: #1a2420;
  --ink-soft: #55635a;
  --paper: #faf9f5;
  --card: #ffffff;
  --green: #2d6a4a;
  --green-deep: #1c4a32;
  --sage: #8fae9b;
  --rule: #e3e7dd;
  --highlight: #f2f6ee;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.075rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.19em;
  color: var(--green-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark svg { display: block; }
.masthead nav {
  font-family: var(--sans);
  font-size: 0.815rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 0.7rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.masthead nav a:hover { color: var(--green-deep); border-bottom-color: var(--sage); }

/* ---------- layout ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 4rem; }

.kicker {
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.017em;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
h2 {
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.9rem;
}
p { margin-bottom: 1.2rem; }
.standfirst {
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}
a { color: var(--green-deep); text-underline-offset: 2px; }

/* ---------- byline ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.4rem;
}
.byline .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--highlight);
  border: 1px solid var(--rule);
  object-fit: cover;
  flex: 0 0 auto;
}
.byline strong { color: var(--ink); font-weight: 600; }

/* ---------- numbered steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 1.6rem 0 1.4rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
  margin-bottom: 1.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.06em;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- index cards ---------- */
.article-list { margin-top: 2.4rem; border-top: 1px solid var(--rule); }
.entry {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background .15s;
}
.entry:hover { background: var(--highlight); }
.entry h3 {
  font-size: 1.24rem;
  line-height: 1.32;
  margin-bottom: 0.35rem;
  color: var(--green-deep);
}
.entry p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.entry.pending { opacity: 0.62; }
.entry.pending h3 { color: var(--ink-soft); }
.entry .tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 0.35rem;
}

/* ---------- callout ---------- */
.note {
  background: var(--highlight);
  border-left: 3px solid var(--sage);
  border-radius: 0 6px 6px 0;
  padding: 1.15rem 1.35rem;
  font-size: 1rem;
  margin: 1.9rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  justify-content: space-between;
}
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--green-deep); }

@media (max-width: 520px) {
  main { padding-top: 2.2rem; }
  .masthead nav a { margin: 0 0.45rem; font-size: 0.76rem; }
  .standfirst { font-size: 1.13rem; }
}
