:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1c1f1d;
  --muted: #5a635e;
  --border: #e4e2dc;
  --accent: #2f5d50;
  --accent-soft: #e8f0ed;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --surface: #181c1a;
    --text: #e9ecea;
    --muted: #98a39d;
    --border: #28302c;
    --accent: #7ab3a1;
    --accent-soft: #1f2c27;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

main {
  padding: 3rem 0 4rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1rem;
}

h3 {
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
}

p.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 1.75rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
}

.card p {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.note-body {
  margin: 0.2rem 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.callout {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-size: 0.94rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}
