/* sign.css: the "[[[ text ]]]" sign, two hands holding up a poster board with the text lettered on it in marker.
   Markup comes from render_signs() in includes/functions.php; assets/js/sign-fit.js shrinks the lettering to fit.
   The board's position inside the picture (assets/brand/sign-hands.webp, 820 x 1025) is measured from the artwork:
   its light grey area runs from about 10.6% to 89% across and 9.1% to 54.8% down. The text area sits just inside it. */
@font-face {
  font-family: "Permanent Marker";
  src: url("/assets/fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
.stw-sign { position: relative; display: block; width: min(100%, 470px); margin: 38px auto; padding: 0; aspect-ratio: 820 / 1025; container-type: inline-size; line-height: 0; }
.stw-sign-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.5)); }
.stw-sign-board { position: absolute; left: 14.6%; top: 13.2%; width: 70.8%; height: 37.4%; display: flex; align-items: center; justify-content: center; overflow: hidden; transform: rotate(-1deg); }
.stw-sign-text {
  width: 100%; display: block; text-align: center;
  font-family: "Permanent Marker", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-weight: 400;
  font-size: clamp(14px, 8cqw, 46px); line-height: 1.12; letter-spacing: 0.01em;
  color: #17131c; text-shadow: 0 0 1px rgba(23, 19, 28, 0.55);
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.stw-sign-line { display: block; }
@media (prefers-reduced-motion: no-preference) { .stw-sign { transition: transform .25s; } }

/* ---- several signs one after another: a rotator ----
   The hands stay put. Each sign is a "slide" laid over the board; the active one is shown. Every slide keeps its
   layout (visibility, not display) so sign-fit.js can measure and size its lettering whether or not it is showing. */
.stw-rotator { display: block; width: min(100%, 470px); margin: 38px auto; line-height: normal; }
.stw-rotator .stw-sign { width: 100%; margin: 0 auto; }
.stw-sign-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(7%); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.stw-sign-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.stw-rotator .stw-sign-board { cursor: pointer; }
.stw-rotator-ctl { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: -30px; }
.stw-rot-prev, .stw-rot-next { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; background: rgba(10, 6, 12, 0.82); border: 1px solid #6c4167; color: #fff; cursor: pointer; }
.stw-rot-prev:hover, .stw-rot-next:hover { border-color: #ff2faf; color: #ff2faf; }
.stw-rot-prev:focus-visible, .stw-rot-next:focus-visible, .stw-rot-dot:focus-visible { outline: 2px solid #e4b84a; outline-offset: 2px; }
.stw-rot-dots { display: flex; align-items: center; gap: 4px; }
.stw-rot-dot { position: relative; width: 28px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.stw-rot-dot::after { content: ""; position: absolute; left: 2px; right: 2px; top: 9px; height: 4px; background: #5b4562; transition: background .2s; }
.stw-rot-dot:hover::after { background: #8f6d97; }
.stw-rot-dot[aria-current="true"]::after { background: #ff2faf; }
.stw-rotator.is-paused .stw-rotator-ctl::after { content: "PAUSED"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 600 10px/1 "Oswald", sans-serif; letter-spacing: 2.4px; color: #17131c; background: #e4b84a; padding: 4px 8px; }
@media (prefers-reduced-motion: reduce) { .stw-sign-slide, .stw-sign-slide.is-active { transition: none; transform: none; } }
