:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --accent: #1e3a34;
  --rule: #e7e2d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.brand img {
  width: 22px;
  height: 22px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  padding: 2.25rem 0 3rem;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  line-height: 1.28;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.32rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
}

p.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.06rem;
}

article.entry {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.15rem;
}

article.entry h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

figure {
  margin: 1.5rem 0;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  margin: 1rem 0 1.5rem;
  font-size: 0.93rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

th {
  background: #f3efe8;
  color: var(--accent);
  font-weight: 600;
}

.callout {
  border-left: 3px solid var(--accent);
  background: #f3efe8;
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
