/* Lichen Ledger: paper, moss ink, one rust accent. Mobile first; system fonts only. */
:root {
  --paper: #f6f3ea;
  --card: #fffdf7;
  --ink: #23291f;
  --moss: #2f4a32;
  --lichen: #8da46b;
  --rust: #a2552c;
  --muted: #5d6458;
  --line: #d9d3c2;
  --measure: 40rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.06rem/1.68 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--rust); }
.jump { position: absolute; left: -999px; top: 0; background: var(--moss); color: #fff; padding: 0.5rem 0.8rem; }
.jump:focus { left: 0.5rem; z-index: 5; }

/* masthead */
.masthead { background: var(--moss); color: #eef1e6; }
.masthead__inner { max-width: 62rem; margin: 0 auto; padding: 1.1rem 1rem 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__glyph { width: 2rem; height: 2rem; fill: var(--lichen); }
.brand__glyph circle:nth-child(2) { fill: #c9d6a8; }
.brand__glyph circle:nth-child(3) { fill: #6f8a55; }
.brand__name { font-size: 1.45rem; letter-spacing: 0.02em; font-variant: small-caps; }
.masthead__motto { margin: 0.25rem 0 0; font-size: 0.9rem; color: #cfd8c0; font-style: italic; }
.tabs { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tabs ul { max-width: 62rem; margin: 0 auto; padding: 0 0.6rem; list-style: none; display: flex; flex-wrap: wrap; }
.tabs a {
  display: block; padding: 0.55rem 0.45rem; color: #e6ecd9; text-decoration: none;
  font: 0.88rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.02em;
}
.tabs a:hover, .tabs a[aria-current], .tabs a.here { color: #fff; box-shadow: inset 0 -3px 0 var(--lichen); }

/* page body */
.folio { max-width: 62rem; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.trail { font: 0.85rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); margin-bottom: 0.8rem; }
.trail a { color: var(--muted); }
.entry { max-width: var(--measure); }
.entry h1 { font-size: 1.85rem; line-height: 1.2; margin: 0.3rem 0 0.6rem; color: var(--moss); font-weight: 600; }
.entry h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 0.4rem; color: var(--moss); font-weight: 600; }
.entry h3 { font-size: 1.08rem; margin: 1.4rem 0 0.3rem; }
.entry p, .entry li { hyphens: auto; }
.entry ul, .entry ol { padding-left: 1.3rem; }
.lede { font-size: 1.14rem; color: #3b4436; border-left: 3px solid var(--lichen); padding-left: 0.9rem; }
.margin-note {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 0.8rem 1rem;
  font-size: 0.95rem; margin: 1.4rem 0;
}
.margin-note strong { color: var(--rust); }
.facts { border-collapse: collapse; width: 100%; font-size: 0.93rem; margin: 1rem 0; }
.facts th, .facts td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.4rem 0.5rem 0.4rem 0; vertical-align: top; }
.facts th { color: var(--moss); width: 38%; font-weight: 600; }
.sources { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 0.6rem; }

/* cards */
.divider {
  font: 600 0.82rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--rust); margin: 2.2rem 0 0.7rem; border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
}
.divider a { color: inherit; text-decoration: none; }
.index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.card {
  display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 0.75rem 0.9rem; text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--lichen); color: var(--ink); }
.card__kicker {
  display: block; font: 0.72rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.15rem;
}
.card__title { display: block; color: var(--moss); font-weight: 600; line-height: 1.3; }
.card__gist { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.45; }
.further { margin-top: 2.5rem; max-width: var(--measure); }
.further h2 { font-size: 1rem; color: var(--rust); }
.index--compact .card__gist { display: none; }

/* footer */
.colophon { border-top: 4px solid var(--lichen); background: #ece7d8; }
.colophon__inner { max-width: 62rem; margin: 0 auto; padding: 1.2rem 1rem 2rem; font-size: 0.88rem; color: var(--muted); }
.colophon p { max-width: 46rem; }

@media (min-width: 46rem) {
  .entry h1 { font-size: 2.3rem; }
  .index { grid-template-columns: repeat(2, 1fr); }
  .index--compact { grid-template-columns: 1fr; }
  .tabs a { padding: 0.65rem 0.7rem; font-size: 0.92rem; }
}
@media (min-width: 64rem) {
  .shelfblock .index { grid-template-columns: repeat(3, 1fr); }
}
