/* ==========================================================================
   samisee.design, TESTIMONIALS window. Logic: js/testimonials.js.
   Content: copy/testimonials.md. The quote is set like read_me's blockquote
   (Syne at the display weight), the attribution like the live site's (mono).
   ========================================================================== */

/* sized to the quote: quotes vary in length; .win still caps it at the screen height */
#w-testimonials { width: 560px; height: auto; }
#w-testimonials .win__body { display: flex; flex-direction: column; }

.quote { position: relative; flex: 1; display: flex; flex-direction: column; padding: 34px 40px 20px; transition: opacity .22s var(--ease-standard), translate .22s var(--ease-standard); }
.quote.is-out { opacity: 0; translate: 0 6px; }
/* the quote marks: big Syne glyphs layered behind the text, top left and bottom
   right, so together they frame the quote */
.quote__frame { position: relative; isolation: isolate; padding: 6px 4px 10px; }
.quote__mark { position: absolute; z-index: -1; font: var(--weight-display) 150px/1 var(--font-display); color: var(--os-accent); opacity: .16; user-select: none; pointer-events: none; }
.quote__mark--open { top: -34px; left: -22px; }
.quote__mark--close { right: -16px; bottom: -92px; }
.quote__text { margin: 0; font: 400 var(--text-lead)/1.7 var(--font-body); color: color-mix(in srgb, var(--os-ink) 80%, transparent); text-wrap: pretty; }
.quote__text strong { font-weight: 600; color: var(--os-ink); }
.quote__by { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 22px 0 0; font: 400 var(--text-caption)/1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--os-ink-dim); }
.quote__by i { width: 20px; height: 1px; background: var(--os-accent); opacity: .6; }
.quote__by b { font-weight: 500; color: var(--os-accent); }
.quote__by a { color: inherit; text-decoration: underline; text-decoration-color: var(--os-accent-line); text-underline-offset: 3px; }
.quote__by a:hover { color: var(--os-ink); text-decoration-color: var(--os-accent); }
/* the translated note: quiet, but readable (dim ink passes WCAG AA in every look; faint ink did not) */
.quote__note { margin: 10px 0 0; font: 400 var(--text-caption)/1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--os-ink-dim); }
.quote__project {
  align-self: flex-start; margin-top: 20px; padding: 7px 12px; border-radius: 999px;
  font: 500 var(--text-caption)/1 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--os-ink);
  background: var(--os-accent-wash); box-shadow: inset 0 0 0 1px var(--os-accent-line);
}
.quote__project:hover { background: color-mix(in srgb, var(--os-accent) 26%, transparent); }

.quote__pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 0 18px; border-top: 1px solid var(--os-border); }
.quote__arrow { width: 28px; height: 28px; border-radius: 50%; font: 400 var(--text-body)/1 var(--font-mono); color: var(--os-ink-dim); }
.quote__arrow:hover { color: var(--os-ink); background: var(--os-wash); }
.quote__dot { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--os-ink) 25%, transparent); }
.quote__dot[aria-current="true"] { background: var(--os-accent); box-shadow: 0 0 8px var(--os-accent); }
.quote__empty { margin: auto; font: 400 var(--text-caption)/1 var(--font-mono); color: var(--os-ink-dim); }
