:root {
  --ink: #2b2723;
  --paper: #faf7f2;
  --card: #ffffff;
  --brown: #7a4f30;
  --brown-soft: #a97c50;
  --line: #e4d9c9;
  --muted: #7a6f62;
  --note-bg: #f5ecdf;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Garamond, "EB Garamond", Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  font-size: 1.35rem; font-weight: 700; color: var(--brown);
  text-decoration: none; letter-spacing: 0.02em;
}
.site-header nav a {
  color: var(--muted); text-decoration: none; margin-left: 1.2rem; font-size: 0.98rem;
}
.site-header nav a:hover { color: var(--brown); }
.wrap { max-width: 880px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
h1 { font-size: 2.1rem; color: var(--brown); margin: 0.5rem 0 1rem; line-height: 1.2; }
h2 { font-size: 1.15rem; color: var(--brown); margin: 0 0 0.35rem; }
h3 { font-size: 1.02rem; color: var(--brown-soft); margin: 1.2rem 0 0.3rem; }
.lede { font-size: 1.15rem; color: var(--ink); }
.lede.small { font-size: 0.95rem; color: var(--muted); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.crumbs a { color: var(--brown-soft); }
.dna {
  font-size: 1.3rem; font-style: italic; color: var(--brown);
  border-left: 3px solid var(--brown-soft); padding-left: 1rem; margin: 1rem 0 1.6rem;
}
section.sec, section.note {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.25rem; margin: 0.8rem 0;
}
section.sec p, section.note p { margin: 0; }
section.note { background: var(--note-bg); border-color: #e0cbb0; }
section.note h2::after { content: " (hypothesis)"; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.grid { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.card {
  display: grid; grid-template-columns: 2.6rem 1fr; grid-template-rows: auto auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 1rem; text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--brown-soft); box-shadow: 0 2px 10px rgba(122,79,48,.12); }
.card .num { grid-row: span 2; color: var(--brown-soft); font-size: 1.05rem; padding-top: 0.15rem; }
.card .t { font-weight: 700; color: var(--brown); font-size: 1.1rem; }
.card .d { color: var(--muted); font-size: 0.92rem; }
.site-footer {
  border-top: 1px solid var(--line); text-align: center;
  color: var(--muted); font-size: 0.85rem; padding: 1.5rem;
}
a { color: var(--brown); }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header { padding: 0.8rem 1rem; flex-wrap: wrap; gap: 0.4rem; }
  .site-header nav a { margin-left: 0.8rem; font-size: 0.9rem; }
}
