/* Pass 8: the decorative seal (js/seal.js). Sage picked A (the engraved label frame): it is the served default;
   ?seal=b still shows the round seal for comparison. In a letter layout it sits in the stack (letter-layouts.css). The button lives inside the letter's
   ink layer (#signup, multiply into the paper, on the note's quad), at the seal position: the right of the column,
   under the ruled line, on the HUGH sign-off's row. Ink only: no fill, no white, no shadows. */
.btn-seal2 {
  position: absolute; right: 0; top: calc(max(40px, 7cqh) + 4.5cqh);
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  color: var(--paper-ink); cursor: pointer; pointer-events: auto;
  font-family: var(--serif);
  -webkit-tap-highlight-color: transparent;
}
.btn-seal2 .seal-orn { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.btn-seal2 .seal-orn * { vector-effect: non-scaling-stroke; }
.btn-seal2:focus-visible { outline: 1px solid rgba(28, 21, 16, 0.55); outline-offset: 6px; }
.btn-seal2[disabled] { cursor: progress; opacity: 0.6; }

/* A: the engraved label frame. Height from the letter (--seal-h), width from the frame's own proportion. The label is
   centred on its optical box: the tracking is given back at the start (text-indent) and the small caps sit 0.06 em
   low of the geometric middle, so it is nudged up by that much. */
.seal2-a {
  height: var(--seal-h); width: calc(var(--seal-h) * 4.15);
  font-size: calc(var(--seal-h) * 0.32);
}
.seal2-a .seal-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 0.12em;
  font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: 0.16em; text-indent: 0.16em; line-height: 1;
  font-variation-settings: 'opsz' 14, 'SOFT' 0, 'WONK' 0;
  opacity: 1;
  transition: opacity var(--duration-fast) var(--ease-smooth-out);
}
.seal-orn-a { opacity: 0.8; transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.seal-orn-a path { fill: none; stroke: var(--paper-ink); stroke-width: 0.9; stroke-linecap: round; }
.seal-orn-a .gem { fill: var(--paper-ink); stroke: none; }
.seal2-a:hover .seal-label { opacity: 1; }
.seal2-a:hover .seal-orn-a { opacity: 0.95; }

/* B: the round pressed seal. 86 px at 1440, 72 px on phones; the whole seal is the button; its label is the rim text
   (the HTML label stays for assistive tech, visually hidden). Lettering ink 0.72, rims fainter. */
.seal2-b {
  width: clamp(72px, 17.5cqw, 86px); height: clamp(72px, 17.5cqw, 86px);
  top: calc(max(40px, 7cqh) + 2.4cqh);
  border-radius: 50%;
  rotate: -6deg; /* the independent property: GSAP owns transform for the entrance */
}
.seal2-b .seal-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.seal-orn-b { opacity: 1; }
.seal-orn-b .rim { fill: none; stroke: var(--paper-ink); stroke-width: 0.9; stroke-opacity: 0.4; }
.seal-orn-b .rim-in { stroke-width: 0.7; stroke-opacity: 0.26; }
.seal-orn-b .rim-text { fill: var(--paper-ink); fill-opacity: 0.72; font-family: var(--serif); font-weight: 600; font-size: 10px; letter-spacing: 1.7px; font-variation-settings: 'opsz' 9, 'SOFT' 0, 'WONK' 0; }
.seal-orn-b .mono { fill: var(--paper-ink); fill-opacity: 0.72; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }
.seal-orn-b .gem { fill: var(--paper-ink); fill-opacity: 0.5; }
.seal2-b:hover .rim-text, .seal2-b:hover .mono { fill-opacity: 0.86; }
.seal2-b:focus-visible { outline-offset: 4px; }
