
:root {
  --paper: #f4efe3; --paper2: #ece5d3; --ink: #2b261e; --faded: #6d6353;
  --rule: #a89877; --accent: #5c5136; --verdigris: #46604f; --card: #faf6ec;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.65 Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
a { color: var(--verdigris); text-decoration: none; }
a:hover { text-decoration: underline; }

.masthead { text-align: center; padding: 3.2rem 1rem 1.6rem; }
.masthead .over { letter-spacing: .35em; font-size: .78rem; text-transform: uppercase; color: var(--faded); }
/* .mast-title is the masthead wordmark on a page that already carries its own
   <h1> (the-long-gallery.html): identical look, but one H1 per page. */
.masthead h1, .masthead .mast-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: normal; margin: .45rem 0 .3rem;
  letter-spacing: .06em;
}
.masthead .sub { font-style: italic; color: var(--faded); max-width: 42rem; margin: 0 auto; }
.rule2 { border: 0; border-top: 1px solid var(--rule); position: relative; margin: 1.4rem auto; width: min(560px, 70%); }
.rule2::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--rule); }

nav.top {
  display: flex; justify-content: center; gap: 2.2rem; padding: .8rem 1rem;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  letter-spacing: .28em; text-transform: uppercase; font-size: .74rem;
}
nav.top a { color: var(--accent); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.2rem 3rem; }

.searchbar { text-align: center; margin: 2rem 0 1rem; }
.searchbar input {
  width: min(430px, 90%); padding: .6rem 1rem; font: inherit; font-style: italic;
  color: var(--ink); background: var(--card); border: 1px solid var(--rule);
  outline: none; text-align: center;
}
.count { text-align: center; color: var(--faded); font-style: italic; font-size: .9rem; min-height: 1.4em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.6rem; margin-top: 1.4rem; }
.card {
  background: var(--card); border: 1px solid var(--rule); padding: 10px;
  box-shadow: 0 1px 4px rgba(43,38,30,.12); display: block; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(43,38,30,.18); text-decoration: none; }
.card .frame { border: 1px solid var(--rule); padding: 4px; }
.card img { width: 100%; display: block; filter: sepia(.14); }
.card h2 { font-size: 1.12rem; font-weight: normal; margin: .8rem .2rem .15rem; line-height: 1.3; }
.card .loc { letter-spacing: .22em; text-transform: uppercase; font-size: .68rem; color: var(--verdigris); margin: 0 .2rem; }
.card .by { font-style: italic; color: var(--faded); font-size: .82rem; margin: .25rem .2rem 0; }
.card .num { float: right; color: var(--rule); font-size: .95rem; }

.page { max-width: 760px; margin: 0 auto; padding: 0 1.2rem 4rem; }
.chap-head { text-align: center; margin: 2.6rem 0 2.2rem; }
.chap-head .num { letter-spacing: .4em; color: var(--faded); font-size: 1rem; }
.chap-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: normal; margin: .5rem 0 .4rem; }
.chap-head .loc { letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--verdigris); }
.chap-head .by { font-style: italic; color: var(--faded); margin-top: .5rem; }

.dropcap {
  float: left; font-size: 3.4em; line-height: .82; padding: .04em .08em 0 0; color: var(--accent);
}
p { margin: 0 0 1.1em; text-align:left; hyphens: auto; }
p.note { font-style: italic; color: var(--faded); text-align: center; }
blockquote { margin: 1.4em 2.2em; font-style: italic; color: var(--faded); text-align: center; }

figure.plate, figure.tailpiece { margin: 2.2em auto; text-align: center; }
figure.plate img {
  max-width: 100%; height: auto; border: 1px solid var(--rule); padding: 6px;
  background: var(--card); box-shadow: 0 2px 8px rgba(43,38,30,.14);
}
figure.tailpiece img { max-width: 62%; height: auto; }
figcaption {
  margin-top: .7em; letter-spacing: .18em; text-transform: uppercase;
  font-size: .72rem; color: var(--faded); line-height: 1.7;
}

nav.pager { display: flex; justify-content: space-between; margin: 3rem 0 0; font-style: italic; }
footer { text-align: center; color: var(--faded); font-size: .82rem; padding: 2rem 1rem 3rem; }
footer .fleuron { font-size: 1.2rem; color: var(--rule); }
@media (max-width: 640px) { p { text-align: left; } nav.top { gap: 1.1rem; letter-spacing: .18em; } }


/* global-footer format */
.book-sites-global-footer{text-align:center;max-width:760px;margin:24px auto 0;padding:6px 20px 32px;font-size:13px;line-height:1.7}
.book-sites-global-footer nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center}
.book-sites-global-footer nav a{padding:2px 11px;text-decoration:none;border-right:1px solid rgba(0,0,0,.25);line-height:1.2}
.book-sites-global-footer nav a:last-child{border-right:none}
.book-sites-global-footer p{margin:8px 0 0;opacity:.82}
