/* Scaffold styling only. The period illustrated-book treatment is phase 1,
   once there are restored plates to design against. */

:root {
  --ground: #eef1ec;
  --ink: #14201b;
  --dim: #5e6b63;
  --rule: #d3dad1;
  --emerald: #1b7351;
  --straw: #a87a2e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 Georgia, "Iowan Old Style", serif;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .mark { width: 26px; height: 26px; flex: none; }
.wordmark span { line-height: 1; }

nav { display: flex; gap: 20px; font-size: 14px; }
nav a { color: var(--dim); text-decoration: none; }
nav a:hover { color: var(--emerald); }

main { max-width: 42rem; margin: 0 auto; padding: 40px 24px 80px; }

h1 { font-size: 32px; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 32px 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }

a { color: var(--emerald); }

.kind {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--straw);
  margin: 0 0 4px;
}

.aliases { color: var(--dim); font-style: italic; margin: 0 0 16px; }
.summary { font-size: 18px; margin: 0 0 14px; }
.first { color: var(--dim); margin: 0; }

.cites { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cites li { padding-bottom: 6px; border-bottom: 1px solid var(--rule); }

.rel { color: var(--straw); font-variant: small-caps; letter-spacing: 0.04em; }
.cite { font-size: 14px; color: var(--dim); }
.cite:hover { color: var(--emerald); }

/* How sure we are, said plainly next to the claim itself. */
.ev {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: help;
}
.ev.confirmed { color: var(--emerald); }
.ev.plausible { color: var(--straw); }
.ev.unconfirmed { color: #a5382c; }
.ev.disputed { color: #a5382c; text-decoration: line-through; }

.pull {
  margin: 8px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--rule);
  color: var(--dim);
  font-style: italic;
}

.confidence {
  font-size: 13px;
  color: var(--dim);
  margin: 10px 0 0;
}
.confidence.confirmed { color: var(--emerald); }

.conflict { border-left: 3px solid var(--straw); padding: 12px 16px; margin: 28px 0; background: #f5eedf; }
.note { color: var(--dim); font-size: 14px; }

footer {
  border-top: 1px solid var(--rule);
  padding: 20px 24px 60px;
  color: var(--dim);
  font-size: 13px;
}
footer p { max-width: 42rem; margin: 0 auto; }

/* ------------------------------------------------------------ front door */

.standfirst {
  font-size: 21px;
  font-style: italic;
  color: var(--dim);
  margin: 0 0 24px;
}

.doors {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.doors li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.doors li:first-child { border-top: 1px solid var(--rule); }
.doors a { font-size: 19px; text-decoration: none; }
.doors a:hover { text-decoration: underline; }
.doors span { display: block; color: var(--dim); font-size: 14px; }

.entities { list-style: none; padding: 0; margin: 24px 0; }
.entities li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.entities .name { font-size: 17px; }
.entities .blurb { display: block; margin-top: 2px; }
.entities .meta { display: block; margin-top: 3px; color: var(--dim); font-size: 13px; }

.books { list-style: none; padding: 0; }
.books li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.books .credits { display: block; color: var(--dim); font-size: 13px; }
.books .count { color: var(--straw); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.books.quiet .title { color: var(--dim); }

.chapters { padding-left: 0; list-style: none; }
.chapters li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.chapters .n { display: inline-block; width: 2.2em; color: var(--straw); font-size: 13px; }
.chapters a { text-decoration: none; }
.chapters a:hover { text-decoration: underline; }

.breadcrumb { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.credits { color: var(--dim); }
.prose { margin-top: 18px; }
.inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; font-size: 14px; }

.together .inline li { display: flex; align-items: baseline; gap: 5px; }
.together .n { color: var(--straw); font-size: 11px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- plates */

.plates { margin-top: 44px; }
.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin: 16px 0;
}
.plate-grid figure { margin: 0; }
.plate-grid img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface, #f7f9f6);
  border: 1px solid var(--rule);
}

/* A little more presence for the mark, and an ornament under the front-door
   heading — the period books set their titles off with a rule like this. */

.wordmark .mark { width: 30px; height: 30px; }

.home h1 { font-size: 40px; letter-spacing: -0.01em; }
.home h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin: 14px 0 0;
  background: linear-gradient(90deg, var(--emerald) 0 40%, var(--straw) 40% 100%);
}
.home .standfirst { margin-top: 16px; }

.qualify { color: var(--dim); font-size: 13px; }
