/* The author's signature: the `signature:` front-matter key or {{< signature >}}, + js/signature.js.
   Its own file and not part of style.css, because two kinds of page load it: the site's
   (partials/head.html) and the standalone ascii-art exhibit, which does not load style.css
   (partials/vt100/head.html). Loaded only on a page that carries a signature
   (partials/has-signature.html). The site's tokens are read with fallbacks for the same reason:
   the exhibit has no --orange or --line. → doc/theme_features.md «Signature» */
.signature { margin: var(--line, 1.5em) 0; text-align: right; }
/* monospace only on the signature LINE; a signature link inside a field row (/me/) keeps the row's font */
.signature .signature-name { font-family: "DejaVu Sans Mono", "Courier New", monospace; }
/* A tiny waving figure before the name: «o/», the IRC/Usenet wave, a hint of the animation the click
   opens; on hover it waves back «\o». CSS content and not text, so it stays out of the article's text,
   the search index and the dialog title. Both are 2 columns, so the name does not move. The second
   `content` gives it an empty alt text for screen readers; a browser that does not know that syntax
   drops it and keeps the first. inline-block keeps the link's underline off it. */
.signature-name::before {
  content: "o/";
  content: "o/" / "";
  display: inline-block;
  margin-right: 0.5ch;
  color: var(--orange, #e8830c);
}
.signature-name:hover::before,
.signature-name:focus-visible::before {
  content: "\\o";
  content: "\\o" / "";
}
.signature-modal {
  padding: 0;
  border: 1px solid #333;
  border-radius: 4px;
  background: #111;
  color: #ffd9a6;
  text-align: left;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.signature-modal::backdrop { background: rgba(17, 17, 17, 0.45); }
.signature-modal[open] { animation: signature-in 220ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.signature-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  font-family: "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 13px;
  color: #b8afa0;
}
.signature-bar form { margin: 0; }
.signature-close {
  border: 0; background: none; cursor: pointer;
  color: #b8afa0; font-size: 22px; line-height: 1; padding: 0 0.3rem;
}
.signature-close:hover, .signature-close:focus-visible { color: var(--orange, #e8830c); }
.signature-stage {
  display: flex; align-items: flex-end;           /* feet on the ground-line, as in the header */
  height: 5em;                                    /* 4 lines (tallest pose) × 1.25 */
  margin: 0 1rem;
  border-bottom: 4px solid var(--orange, #e8830c);
  cursor: pointer;
  /* ~54 columns: shrink the type on a phone instead of scrolling */
  font-size: min(14px, calc((100vw - 4rem) / 33));
}
.signature-ascii {                               /* a div, not a <pre>: `.post-body pre` would win */
  flex: 0 0 auto;                                 /* natural width; JS locks it to the widest frame */
  font-family: "DejaVu Sans Mono", "Courier New", monospace;
  line-height: 1.25;
  white-space: pre;
  color: #ffd9a6;
}
.signature-foot {                                /* Contact on the left, the site on the right */
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0; padding: 0.5rem 1rem 0.7rem;
  font-family: "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 13px;
}
.signature-foot a { color: #ffd9a6; }
.signature-foot .signature-site { margin-left: auto; }  /* stays right even without Contact */
@keyframes signature-in {             /* the language modal's entrance, owned here so the exhibit has it */
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}
