/* The quiet line at the end of an essay: a fading rule broken by a fleuron, then
   "New essays by post", an underlined address field, and a small-caps "Seal it".
   It takes the essay's own typeface; each page can retint it with the --bp-* colours. */
.by-post {
  --bp-ink: #7a6a54;      /* label and status note */
  --bp-rule: #a89a80;     /* the rule and the field's underline */
  --bp-orn: #8a7a64;      /* the fleuron */
  --bp-accent: #8f1d1a;   /* the button, and the field's underline when focused */
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 0;
  padding: 54px 0 0;
  font-size: 18px;
  line-height: 1.4;
}
.by-post::before,
.by-post::after { position: absolute; pointer-events: none; }
.by-post::before {
  content: "";
  top: 0; left: 0; right: 0; height: 1px;
  transform: scaleY(.6);
  background: linear-gradient(90deg, transparent, var(--bp-rule) 20%, var(--bp-rule) 46%, transparent 46%,
    transparent 54%, var(--bp-rule) 54%, var(--bp-rule) 80%, transparent);
}
.by-post::after {
  content: "\2766";
  top: 0; left: 50%;
  transform: translate(-50%, -52%);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px; line-height: 1;
  color: var(--bp-orn);
}
.by-post img { width: 28px; height: auto; flex: none; image-rendering: pixelated; }
.by-post span { font-style: italic; color: var(--bp-ink); white-space: nowrap; }
.by-post form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; }
.by-post input[type="email"] {
  flex: 1; min-width: 0;
  font: inherit; color: inherit;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--bp-rule); border-radius: 0;
  padding: 2px 4px;
}
.by-post input[type="email"]:focus { outline: none; border-bottom-color: var(--bp-accent); }
.by-post button {
  font: inherit; font-variant: small-caps; letter-spacing: .06em;
  color: var(--bp-accent);
  background: none; border: 0; padding: 2px 4px;
  cursor: pointer;
}
.by-post button:hover { text-decoration: underline; text-underline-offset: 4px; }
.by-post button:disabled { opacity: .6; cursor: default; }
.by-post .form-note {
  position: absolute; left: 0; right: 0; top: 100%;
  margin: 10px 0 0;
  text-align: center; font-size: 15px; font-style: italic;
  color: var(--bp-ink);
}
@media (max-width: 600px) {
  .by-post { flex-wrap: wrap; }
  .by-post form { flex-basis: 100%; }
  .by-post .form-note { position: static; flex-basis: 100%; margin: 0; }
}

/* For an essay that sits on the dark night background instead of paper. */
.by-post.on-dark {
  --bp-ink: #c9b896;
  --bp-rule: #6e604c;
  --bp-orn: #a8946f;
  --bp-accent: #e3826f;
  color: #f4ecd9;
}
