:root {
  --paper: #f6f0e4;
  --paper-deep: #ece3d1;
  --ink: #2b2218;
  --ink-soft: #5a4c3c;
  --rule: #cbb99a;
  --rust: #8b3e2f;
  --rust-dark: #6b2e22;
  --gold: #b08a4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
}

a { color: var(--rust); }
a:hover { color: var(--rust-dark); }

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.4rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}
.brand {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 0.4rem;
}
.brand p.kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--gold);
}
.brand h1 {
  margin: 0.15rem 0 0.3rem;
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.brand h1 a { color: inherit; text-decoration: none; }
.brand .sub {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

nav {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.4rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.88rem;
}
nav a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
nav a:hover, nav a.here {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

.hero {
  padding: 2.6rem 0 1.2rem;
}
.hero h2 {
  font-size: 2.05rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0;
}

.cards {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 2.5rem;
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fffdf8;
  border: 1px solid var(--rule);
  padding: 1.1rem 1.2rem 1rem;
}
.card:hover { border-color: var(--rust); }
.card .num {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.card h3 { margin: 0.2rem 0 0.35rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

article.chapter header.ch {
  padding: 2.2rem 0 0.6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.6rem;
}
.ch .num {
  font-family: "Source Sans 3", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0;
}
.ch h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.dateline {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.02rem;
}

article.chapter p { margin: 0 0 1.05rem; }
article.chapter p:first-of-type::first-letter {
  font-size: 3.1rem;
  float: left;
  line-height: 0.8;
  padding: 0.12rem 0.45rem 0 0;
  color: var(--rust);
  font-weight: 600;
}

.note {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tree {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}
.tree > li {
  margin: 0 0 1.3rem;
  padding: 0.9rem 1rem;
  background: #fffdf8;
  border: 1px solid var(--rule);
}
.tree strong { display: block; font-size: 1.05rem; }
.muted { color: var(--ink-soft); font-size: 0.98rem; }

table.rec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
table.rec th, table.rec td {
  text-align: left;
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.rec th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.4rem 1.4rem 2.4rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

@media (max-width: 640px) {
  .hero h2, .ch h2 { font-size: 1.65rem; }
  body { font-size: 1.06rem; }
}

.vig {
  margin: 0 0 1.8rem;
  padding: 0 0 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.vig:last-of-type { border-bottom: none; }
.chapter .vig p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  color: inherit;
  font-weight: inherit;
}
.chapter .vig:first-of-type p:first-of-type::first-letter {
  font-size: 3.1rem;
  float: left;
  line-height: 0.8;
  padding: 0.12rem 0.45rem 0 0;
  color: var(--rust);
  font-weight: 600;
}

article.chapter h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.6rem;
  letter-spacing: -0.02em;
}
article.chapter hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.8rem 0;
}

article.chapter h2 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.6rem;
  letter-spacing: -0.02em;
}
article.chapter h1 {
  font-size: 2rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}
.dek {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
article.chapter hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.6rem 0;
}
