/* Literary, ornamented serif on warm paper; rust accents. */

:root {
  --ink: #524b3c;
  --muted: #9a8d7c;
  --hairline: #e4ddce;
  --paper: #f6f2ea;
  --panel: #fbf9f4;
  --accent: #ab5c3e;
}

body {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  margin: 2rem auto 4rem;
  max-width: 88ch;
  padding: 0 1rem;
  background: var(--paper);
  color: var(--ink);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
}

h2.section-label {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--accent);
}

h2.section-label::before {
  content: '❦ ';
}

button {
  font-family: inherit;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: #f1ede4;
  border: 1px solid #d5cdbd;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

div.search {
  margin: 1.25rem 0;
}

div.search textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--hairline);
  background: var(--panel);
  overflow: hidden;
  resize: none;
}

p.search-message {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

section.position,
section.directions {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem 1.3rem;
  border: 1px solid var(--hairline);
  background: var(--panel);
  box-shadow: 2px 3px 10px rgba(96, 78, 52, 0.06);
  font-size: 1rem;
  line-height: 1.7;
}

section.directions > div {
  margin: 0.55rem 0;
}

div.locus {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

div.address-row {
  margin: 0.65rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

span.address-label {
  font-style: italic;
  color: var(--muted);
  min-width: 5rem;
}

em.verb {
  color: var(--accent);
}

span.aside {
  color: var(--muted);
}

div.search-radius {
  color: var(--muted);
  font-style: italic;
}

code.address {
  cursor: pointer;
  word-break: break-all;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.6rem;
}

/* The page of the book: a literary object, set in serif, with Kindle-style
   page-turn margins. */
div.book-header {
  margin: 1.75rem 0 0.5rem;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}

div.book {
  position: relative;
}

button.page-turn {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 2.5rem;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  color: var(--hairline);
  padding: 0;
}

button.page-turn:hover {
  border: none;
  color: var(--accent);
  background: rgba(96, 78, 52, 0.04);
}

button.page-turn.prev {
  left: 1px;
}

button.page-turn.next {
  right: 1px;
}

pre.page {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  border: 1px solid var(--hairline);
  padding: 2rem 2.5rem 1.25rem;
  background: var(--panel);
  box-shadow: 2px 3px 10px rgba(96, 78, 52, 0.06);
}

div.page-number {
  font-style: italic;
  text-align: center;
  color: var(--muted);
  margin-top: 0.6rem;
}
