/* The Way of the Master: Evangelism Class.  Design: docs/DESIGN.md.
   The foot of a cliff at dusk (his title picture, cleaned of its lettering), a hand reaching down; a near range of 79 parts
   drawn from the playlist's own data; the dawn sky fades in with the playing clip's progress (--p on <html>).
   State classes on <html>: js, is-ready, is-on, is-playing, is-searching, is-error, has-place.  --p 0..1 (set by assets/lw.js). */

:root {
  --night: #0e0b16; --dusk: #1a1626; --raise: #231d33; --paper: #f4efe6; --mute: #c3bccf;
  --amber: #eba96c; --gold: #f6d9a8; --copper: #b8693c; --mint: #8fd6a9;
  --line: rgba(244, 239, 230, .16); --line2: rgba(244, 239, 230, .3);
  --font: Carlito, Calibri, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --script: Allura, "Segoe Script", "Brush Script MT", cursive;
  --p: 0;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--paper); font: 400 19px/1.45 var(--font); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #4a4160 var(--night); }
body { margin: 0; min-height: 100vh; background: var(--night); overflow-x: hidden; }
h1, h2, h3, p, ol { margin: 0; }
a { color: var(--amber); text-underline-offset: .18em; }
a:hover { color: var(--gold); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---- the two keys (Menu, Share): they step aside while the visitor reads downward ---- */
.keys { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); pointer-events: none; transition: opacity .3s, transform .3s; }
.keys.away:not(:focus-within) { opacity: 0; transform: translateY(-100%); }
.keys.away:not(:focus-within) .key, .keys.away:not(:focus-within) .share { pointer-events: none; }
.key { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 22px;
  background: rgba(14, 11, 22, .72); color: var(--paper); border: 1px solid var(--line2); font: 700 16px/1 var(--font); letter-spacing: .04em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.key:hover { background: rgba(35, 29, 51, .9); border-color: var(--amber); }
.key .glyph { color: var(--amber); font-size: 15px; }
.share { pointer-events: auto; --share-btn-bg: rgba(14, 11, 22, .72); --share-btn-fg: var(--paper); --share-accent: var(--amber); --share-on-accent: #1a1020;
  --share-panel-bg: #1a1626; --share-panel-fg: var(--paper); --share-field-bg: #120e1b; --share-radius: 22px; --share-radius-sm: 10px; }

/* ---- the hero: his picture as the world, the lock-up, the frame, the near range ---- */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.world { pointer-events: none; position: absolute; inset: 0; z-index: -1; container-type: size; overflow: hidden; background: var(--night); }
.plate { position: absolute; left: 0; bottom: 0; width: max(107cqw, calc(100cqh * 1.917)); aspect-ratio: 1376 / 768; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.sky-dawn { opacity: 0; transition: opacity .7s linear; }
.js.is-on .sky-dawn { opacity: calc(var(--p) * .7); }
.shade { position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgba(14, 11, 22, .72) 0, rgba(14, 11, 22, .45) 24%, rgba(14, 11, 22, 0) 52%),
  linear-gradient(to top, #0e0b16 0, rgba(14, 11, 22, 0) 22%); }
@media (max-aspect-ratio: 1/1) {
  .world { background: linear-gradient(to bottom, #14101e 0, #1f1b31 45%, #342d44 100%); }
  .plate { left: auto; right: 0; width: 170cqw; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
}

.head { position: relative; z-index: 2; width: 100%; padding: clamp(22px, 3.4svh, 34px) 16px 0; text-align: center; }
.eyebrow { font: 700 clamp(12px, 1.3vw, 14px)/1 var(--font); letter-spacing: .36em; text-transform: uppercase; color: var(--gold); text-indent: .36em; }
.lockup { display: block; margin: .42em 0 0; font: 400 clamp(30px, 4.7vw, 56px)/1.02 var(--font);
  text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 22px rgba(10, 8, 18, .6); white-space: nowrap; }
.lockup span { display: inline-block; vertical-align: baseline; }
.lockup .the { font-size: .78em; letter-spacing: .06em; }
.lockup .of { font: 400 1.5em/.8 var(--script); text-transform: none; letter-spacing: 0; color: var(--mint); transform: translateY(.1em) rotate(-4deg); margin: 0 .2em; padding: 0 .06em; }
.lockup .master { font-weight: 700; font-size: 1.16em; letter-spacing: .035em; }
.sub { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: .55em; font: 400 clamp(14px, 1.6vw, 19px)/1 var(--font); letter-spacing: .38em; text-transform: uppercase; color: var(--paper); }
.sub::before, .sub::after { content: ""; flex: 0 1 clamp(30px, 9vw, 120px); height: 1px; background: linear-gradient(to right, transparent, var(--amber)); }
.sub::after { background: linear-gradient(to left, transparent, var(--amber)); }

.stage { position: relative; z-index: 2; --fw: min(clamp(300px, calc((100svh - 438px) * 1.7778), 900px), calc(50vw - 40px)); width: var(--fw); margin: clamp(10px, 2svh, 20px) auto 0; }
@media (max-width: 760px) { .stage { --fw: calc(100vw - 28px); } }
@media (max-aspect-ratio: 1/1) and (min-width: 761px) { .stage { --fw: min(calc(100vw - 120px), 600px); } .facts .by { display: none; } }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: transparent; box-shadow: 0 0 0 1px rgba(244, 239, 230, .22), 0 22px 60px rgba(4, 3, 9, .55), 0 0 80px rgba(235, 169, 108, .12); }
.js.is-on .screen { background: #000; }
.slot, .slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: radial-gradient(ellipse at 50% 46%, rgba(14, 11, 22, .72), rgba(14, 11, 22, .42) 78%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }
/* on a tall screen the picture sits below the frame, so the frame's glass takes the sunset glow from the far left of the same sky (no climbers: they are below) */
@media (max-aspect-ratio: 1/1) { .cover { background: radial-gradient(ellipse at 50% 46%, rgba(14, 11, 22, .74), rgba(14, 11, 22, .5) 78%), url(sky-dusk.jpg) 4% 60% / auto 330% no-repeat; } }
.js.is-on .cover { display: none; }
.cover-in { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; text-align: center; }
.kick { font: 700 clamp(12px, 1.3vw, 14px)/1 var(--font); letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--gold); }
.open-t { max-width: 24ch; font: 700 clamp(21px, 2.6vw, 32px)/1.15 var(--font); color: var(--paper); text-wrap: balance; }
.facts { margin: 4px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(14, 11, 22, .6); font: 400 clamp(13px, 1.4vw, 16px)/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); text-align: center; }
.begin, .cont { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; max-width: 100%; padding: 10px 24px 10px 12px; border-radius: 36px; text-decoration: none; text-align: left; border: 0; }
.begin { background: var(--amber); color: #1a1020; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.begin:hover { background: var(--gold); color: #1a1020; }
.cont { background: rgba(14, 11, 22, .8); color: var(--paper); border: 1px solid var(--line2); min-height: 56px; }
.cont:hover { border-color: var(--amber); }
.play { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #1a1020; display: grid; place-items: center; }
.tri { display: block; width: 0; height: 0; margin-left: 3px; border-left: 13px solid var(--amber); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.bt { display: block; min-width: 0; }
.bt b { display: block; font: 700 18px/1.1 var(--font); letter-spacing: .02em; }
.bt small { display: block; margin-top: 2px; font: 400 15px/1.2 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(34ch, calc(100vw - 170px)); }
.cont { padding-left: 20px; }
.fault { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 16px; text-align: center; background: rgba(14, 11, 22, .94); }
.fault p { font-size: 18px; }

.now { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(14, 11, 22, .78); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; gap: 8px; }
.now-t { min-width: 0; font-size: 18px; line-height: 1.25; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now-t .lb { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 4px; background: var(--amber); color: #1a1020; font: 700 12px/1.3 var(--font); letter-spacing: .16em; text-transform: uppercase; vertical-align: .08em; }
.now-t b { color: var(--paper); font-weight: 700; }
.now-t .len { color: var(--mute); white-space: nowrap; }
.now-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.now-keys .auto { margin-left: auto; }
.nk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(14, 11, 22, .72); border: 1px solid var(--line2); color: var(--paper); font: 700 15px/1 var(--font); letter-spacing: .03em; }
.nk:hover:not(:disabled) { border-color: var(--amber); background: rgba(35, 29, 51, .9); }
.nk:disabled { opacity: .42; cursor: default; }
.nk.big { padding: 0 26px; min-height: 52px; font-size: 17px; }
.auto { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 6px; cursor: pointer; font-size: 16px; color: var(--paper); }
.auto input { position: absolute; left: 0; top: 50%; margin: -22px 0 0; z-index: 2; opacity: 0; width: 56px; height: 44px; cursor: pointer; }
.auto .sw { position: relative; width: 42px; height: 24px; border-radius: 12px; background: #3b3350; border: 1px solid var(--line2); transition: background .2s; flex: none; }
.auto .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transition: transform .2s; }
.auto input:checked + .sw { background: var(--copper); border-color: var(--amber); }
.auto input:checked + .sw::after { transform: translateX(18px); }
.auto input:focus-visible + .sw { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- the near range ---- */
.range-wrap { position: relative; z-index: 1; width: 100%; height: clamp(112px, 21svh, 210px); margin-top: auto; padding-top: 0; }
.range { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.range .far { fill: rgba(78, 64, 108, .55); }
.range .u { fill: url(#dk); }
.range .r { fill: none; stroke: rgba(235, 169, 108, .55); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.range .l { fill: url(#lg); filter: drop-shadow(0 0 5px rgba(246, 217, 168, .8)); }
.range .tk { fill: var(--gold); opacity: 0; transition: opacity .3s; }
.range .tk.hit { opacity: .95; }
.js.is-ready .range .u, .js.is-ready .range .l, .js.is-ready .range .r, .js.is-ready .range .far { transform-box: fill-box; transform-origin: 50% 100%; animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
.range-ctl { position: absolute; inset: 0; cursor: pointer; touch-action: pan-y; z-index: 3; }
.range-ctl:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 6px; }
.sel { position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(246, 217, 168, .34), rgba(246, 217, 168, 0) 70%); transition: left .25s ease, width .25s ease; }
.sel::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 100%; max-width: 40px; min-width: 14px; height: 3px; transform: translateX(-50%); background: var(--gold); border-radius: 2px; }
.tip { position: absolute; bottom: calc(100% - 20px); z-index: 4; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #120e1b; border: 1px solid var(--amber); color: var(--paper); font-size: 14px; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.cross { position: absolute; z-index: 2; width: 22px; height: 32px; margin-left: -11px; pointer-events: none; opacity: 0; transform: translateY(2px); transition: left .55s cubic-bezier(.3, .6, .2, 1), bottom .55s cubic-bezier(.3, .6, .2, 1), opacity .4s; }
.cross.is-up { opacity: 1; transform: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--gold); border-radius: 1px; box-shadow: 0 0 10px rgba(246, 217, 168, .8), 0 0 2px #fff; }
.cross::before { left: 9px; top: 0; width: 4px; height: 100%; }
.cross::after { left: 2px; top: 8px; width: 18px; height: 4px; }
.cross.is-pop { animation: stand .7s cubic-bezier(.2, .8, .3, 1.2); transform-origin: 50% 100%; }
@keyframes stand { from { transform: scaleY(.1); } to { transform: scaleY(1); } }

/* ---- the clips ---- */
.wrap { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
.clips { position: relative; z-index: 2; padding: 22px 0 28px; background: var(--night); }
h2 { font: 700 14px/1 var(--font); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.find { position: relative; display: grid; gap: 12px; }
#q { width: 100%; height: 56px; padding: 0 92px 0 18px; border-radius: 14px; background: #15111e; border: 1px solid var(--line2); color: var(--paper); font-size: 20px; }
#q::placeholder { color: #a79fb6; }
#q:focus { border-color: var(--amber); outline: 3px solid rgba(246, 217, 168, .5); outline-offset: 1px; }
.clear { position: absolute; top: 6px; right: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; background: #2a2340; border: 1px solid var(--line2); font-weight: 700; font-size: 15px; }
.words { display: flex; flex-wrap: wrap; gap: 8px; }
.word { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--dusk); border: 1px solid var(--line2); color: var(--paper); font-size: 17px; }
.word b { margin-left: .3em; color: var(--amber); font-weight: 700; }
.word:hover { border-color: var(--amber); }
.word[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1a1020; }
.word[aria-pressed="true"] b { color: #1a1020; }
.sortrow { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 16px; }
.sortrow select { min-height: 44px; padding: 0 12px; border-radius: 10px; background: #15111e; border: 1px solid var(--line2); color: var(--paper); font-size: 16px; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 24px 0 6px; }
.part-h { font: 700 19px/1.2 var(--font); color: var(--paper); }
.pk-keys { display: flex; gap: 8px; }

.list { list-style: none; padding: 0; display: flex; flex-direction: column; counter-reset: c; }
.list li { position: relative; order: var(--o, 0); counter-increment: c; border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 60px; padding: 10px 12px; color: var(--paper); text-decoration: none; font-size: 19px; line-height: 1.25; }
.list a::before { content: counter(c); font: 700 16px/1 var(--font); color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.js .list a::before { content: attr(data-nn); }
.list a:hover { background: rgba(235, 169, 108, .1); color: var(--paper); }
.list a:hover i { color: var(--paper); }
.list i { font: 400 16px/1 var(--font); font-style: normal; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list li::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: linear-gradient(to right, var(--mint) var(--w, 0%), transparent var(--w, 0%)); pointer-events: none; opacity: .9; }
.list li.is-seen i::before { content: "\2713\00a0"; color: var(--mint); font-weight: 700; }
.list li.is-seen a { color: #e2dccf; }
.list li.is-now a { background: rgba(235, 169, 108, .14); box-shadow: inset 4px 0 0 var(--amber); }
.list li.is-now a::before { color: var(--amber); }
.more { margin-top: 18px; text-align: center; }

/* ---- about and foot ---- */
.about { padding: 18px 0 8px; background: var(--night); }
.about .lede { font: 700 clamp(22px, 3.2vw, 28px)/1.25 var(--font); color: var(--paper); margin-bottom: 12px; text-align: left; }
.about p { margin-bottom: 12px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; max-width: 70ch; }
.about .lede { text-align: left; hyphens: none; }
.about .links { text-align: left; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.links > span { display: none; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot { padding: 14px 0 34px; background: var(--night); border-top: 1px solid var(--line); margin-top: 18px; color: var(--mute); font-size: 17px; }
.foot p { margin-bottom: 8px; }
.foot .note { font-size: 15px; max-width: 70ch; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.forget { margin-left: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: transparent; border: 1px solid var(--line2); color: var(--paper); font-size: 15px; font-weight: 700; }
.forget:hover { border-color: var(--amber); }
.kept:empty { display: none; }

/* ---- the one-time entrances (after the first paint; none under reduced motion) ---- */
.js .lockup .of { clip-path: inset(0 100% 0 0); }
.js.is-ready .lockup .of { animation: ink 1s .25s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes ink { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 -10%); } }

/* ---- phones ---- */
@media (max-width: 899px) { .head { padding-top: 64px; } }
@media (max-width: 760px) {
  html { font-size: 18px; }
  .lockup { font-size: clamp(22px, 7.2vw, 38px); }
  .lockup .of { margin: 0 .12em; }
  .cover { padding: 8px; }
  .cover-in { gap: 6px; }
  .kick { display: none; }
  .open-t { font-size: clamp(18px, 5.2vw, 24px); }
  .facts .by { display: none; }
  .facts { font-size: 12px; padding: 4px 12px; margin-top: 2px; }
  .eyebrow { letter-spacing: .26em; }
  .sub { letter-spacing: .26em; gap: 10px; }
  .begin, .cont { min-height: 52px; padding-right: 14px; }
  .now-t { flex-basis: 100%; }
  .list a { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 8px; padding: 10px 6px; }
  .list li::after { left: 6px; right: 6px; }
  .range-wrap { height: clamp(96px, 15svh, 140px); }
}
@media (max-width: 360px) { .nk { padding: 0 12px; } .auto .al { font-size: 15px; } }
@media (min-width: 1500px) { html { font-size: 20px; } }
@media (forced-colors: active) { .cross::before, .cross::after { background: CanvasText; } .begin { border: 2px solid ButtonText; } .range .u { fill: CanvasText; } .range .l { fill: Highlight; } }
@media print { .keys, .world, .range-wrap, .stage, .words, .find { display: none !important; } html, body { background: #fff; color: #000; } a { color: #000; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .lockup .of { clip-path: none; }
}
