:root {
  --ground: #232c4c;
  --cloth: #2b3563;
  --linen: #eae2cf;
  --linen-dim: #b3ab96;
  --madder: #c96a45;
  --ochre: #d3a04f;
  --thread: rgba(234, 226, 207, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
  min-height: 100%;
  background-color: var(--ground);
  /* warp and weft: two faint thread directions, a textile ground */
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 3px, rgba(0,0,0,0.10) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(234,226,207,0.02) 3px 4px);
  color: var(--linen);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  display: flex;
  justify-content: center;
  padding: clamp(2.5rem, 7vh, 5rem) 1.25rem 4rem;
}
main { max-width: 40em; width: 100%; }
a { color: var(--ochre); text-decoration-color: var(--thread); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--ochre); }
.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ochre);
  text-align: center;
}
h1 {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0.5rem 0 2.25rem;
}
figure.tapestry {
  margin: 0 0 2.5rem;
  border: 1px solid var(--thread);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
figure.tapestry svg { display: block; width: 100%; height: auto; }
/* Every lit window and street lamp on the shelf carries this class.
   Drawn lit here; /lamp.css decides, by the inn's clock, whether the
   lamplighter has been by yet. */
.lamp-glow { animation: lamplight 6s ease-in-out infinite alternate; }
@keyframes lamplight {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lamp-glow { animation: none; opacity: 1; }
}
.fable p { margin-bottom: 1.4em; text-align: justify; hyphens: auto; }
.fable p:first-of-type::first-letter {
  float: left;
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  font-style: italic;
  color: var(--madder);
}
.moral {
  margin: 3rem auto 0;
  max-width: 26em;
  text-align: center;
  font-style: italic;
  color: var(--ochre);
}
.moral::before {
  content: "\2767";  /* rotated floral heart — a bookish full stop */
  display: block;
  font-style: normal;
  color: var(--madder);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  /* selvage: the finished edge of the cloth */
  border-top: 1px solid var(--thread);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--linen-dim);
  text-align: center;
}
footer p + p { margin-top: 1rem; }
/* the shelf: every fable in the small room, oldest first */
.shelf { margin-bottom: 1.75rem; }
.shelf ul { list-style: none; }
.shelf li a[aria-current="page"] { color: var(--linen); text-decoration: none; cursor: default; }
.shelf .when { color: var(--linen-dim); }