/* ═════ Project page, v2: a fixed header and a still picture; only the text column moves, under a reading line ═════
   Used by the project pages themselves (body.wb) and by the homepage's project layer (.pv.wb). */
html.wb-html, html.wb-html body { height: 100% }
.wb { --wb-x: clamp(40px, 6.6vw, 104px); margin: 0; background: #fff; color: #121212;
  font-family: "Funnel Sans", "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
.wb a { color: inherit; text-decoration: none }
/* the top line spans the same width as the page below it */
.wb .pk-top { max-width: none; padding-left: var(--wb-x); padding-right: var(--wb-x); font-family: "Inter Tight", "Inter", system-ui, sans-serif }
.wb .pk-top .wk-all { margin: -7px -14px; padding: 7px 14px; border-radius: 999px; color: #111; white-space: nowrap; background: rgba(255, 255, 255, .86) }
.wb .pk-top .wk-all:hover { text-decoration: underline; text-underline-offset: 4px }
.wb .wk-arrow { display: inline-block; transition: transform .25s }
.wb .wk-all:hover .wk-arrow { transform: translateX(-4px) }
.wb-page { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); column-gap: clamp(36px, 4vw, 64px);
  height: 100vh; box-sizing: border-box; padding: 0 var(--wb-x) }

/* left: the header, then the index and the column */
.wb-left { display: flex; flex-direction: column; min-height: 0; padding-top: clamp(80px, 10.5vh, 100px) }
.wb-head h1 { margin: 0; font: 600 clamp(44px, 3.9vw, 56px)/1 "Funnel Sans", "Inter Tight", system-ui, sans-serif; letter-spacing: -.035em }
.wb-head p { margin: 12px 0 0; max-width: 36em; font-size: 18px; line-height: 1.45; color: #55565B }
.wb-tools { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none }
.wb-tools li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: #121212; white-space: nowrap }
.wb-tools img { display: block; width: auto; height: 18px }
.wb-tools img[src*="n8n"] { height: 12px }

.wb-read { position: relative; flex: 1; min-height: 0; margin-top: clamp(36px, 5vh, 52px) }
.wb-idx { position: absolute; left: 0; top: 60px; width: 140px; margin: 0; padding: 0; list-style: none }
.wb-idx button { display: flex; align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 15px "Funnel Sans", "Inter Tight", system-ui, sans-serif; color: #767676; transition: color .26s ease; outline: none }
.wb-idx button i { display: block; width: 0; height: 1.5px; background: #121212; transition: width .26s cubic-bezier(.22, 1, .36, 1) }
.wb-idx button span { font-variant-numeric: tabular-nums; margin-right: 6px }
.wb-idx button:hover, .wb-idx button.on { color: #121212 }
.wb-idx button.on i { width: 18px }
.wb-idx button:focus-visible { outline: 2px solid #121212; outline-offset: 2px; border-radius: 4px }

.wb-col { position: absolute; left: 152px; right: 0; top: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; outline: none;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 82%, transparent 100%) }
.wb-col::-webkit-scrollbar { display: none }
.wb-col:focus-visible { box-shadow: inset 0 0 0 2px #121212 }
.wb-in { padding: 64px 8px 62vh 0; max-width: 560px }
.wb-in .u { margin: 18px 0 0; font-size: clamp(21px, 1.67vw, 24px); line-height: 1.45; letter-spacing: -.01em; color: #949494; text-wrap: pretty }
.wb-in .u:first-child { margin-top: 0 }
.wb-in .u.ss { margin-top: 56px }
.wb-in .u b { font-weight: 600 }
.wb-in .u a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px }
.wb-in .u.bl, .wb-in .u.st { position: relative; padding-left: 30px }
.wb-in .u.bl::before { content: ''; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: currentColor }
.wb-in .u.st::before { content: attr(data-n); position: absolute; left: 0; top: 0; font-weight: 500; font-variant-numeric: tabular-nums }

/* right: the artifact itself, whole, on the white page, centred in the height beside the text */
.wb-art { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 0; margin: 0;
  padding: clamp(80px, 10.5vh, 100px) 0 clamp(40px, 7vh, 64px); box-sizing: border-box; height: 100vh }
.wb-art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
 }   /* the shadow is drawn into the picture: no filter, so moving it costs nothing */

/* phones and narrow windows: an ordinary page, all ink, no reading line */
@media (max-width: 860px) {
  html.wb-html, html.wb-html body { height: auto }
  .wb-page { display: block; height: auto; padding: 96px 24px 64px }
  .wb-left { padding-top: 0 }
  .wb-read { margin-top: 28px }
  .wb-idx { display: none }
  .wb-col { position: static; overflow: visible; -webkit-mask-image: none; mask-image: none }
  .wb-in { padding: 0; max-width: none }
  .wb-in .u { font-size: 19px; color: #121212 !important }
  .wb-art { height: auto; padding: 36px 0 0 }
}
/*DARK:BEGIN*/
html[data-theme=dark] .wb{--wb-x:clamp(40px, 6.6vw, 104px);background:#111111;color:#E9E9E9}
html[data-theme=dark] .wb a{color:inherit;text-decoration:none}
html[data-theme=dark] .wb .pk-top .wk-all{border-radius:999px;color:#E9E9E9;background:rgba(17,17,17,0.86)}
html[data-theme=dark] .wb .pk-top .wk-all:hover{text-decoration:underline}
html[data-theme=dark] .wb-head p{color:#B5B6BC}
html[data-theme=dark] .wb-tools li{color:#E9E9E9}
html[data-theme=dark] .wb-idx button{border:0;background:none;color:#9F9F9F;outline:none}
html[data-theme=dark] .wb-idx button i{background:#E9E9E9}
html[data-theme=dark] .wb-idx button:hover,html[data-theme=dark] .wb-idx button.on{color:#E9E9E9}
html[data-theme=dark] .wb-idx button:focus-visible{outline:2px solid #E9E9E9;outline-offset:2px;border-radius:4px}
html[data-theme=dark] .wb-col{outline:none}
html[data-theme=dark] .wb-col:focus-visible{box-shadow:inset 0 0 0 2px #E9E9E9}
html[data-theme=dark] .wb-in .u{color:#878787}
html[data-theme=dark] .wb-in .u a{text-decoration:underline;text-decoration-thickness:1px}
html[data-theme=dark] .wb-in .u.bl::before{border-radius:50%;background:currentColor}
@media (max-width: 860px){html[data-theme=dark] .wb-in .u{color:#E9E9E9 !important}}

/*DARK:END*/
