/* Shared structure for both style previews. Each skin sets the tokens. */
@font-face{font-family:"Geist Mono";src:url(/geist-mono.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Archivo";src:url(/archivo.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:80px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
img,video{max-width:100%;height:auto;display:block}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default;opacity:.45}
h1,h2,h3,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:2px solid var(--focus,#2E7CF6);outline-offset:2px;border-radius:4px}
.v-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.v-skip{position:absolute;left:12px;top:-60px;z-index:200;padding:10px 14px;background:var(--ink);color:var(--bg);border-radius:10px;text-decoration:none}
.v-skip:focus{top:12px}
html.v-locked{overflow:hidden}
html.v-still *,html.v-still *::before,html.v-still *::after{animation:none!important;transition:none!important}

/* small type */
.v-lbl{display:block;font-family:var(--lblfont,var(--font));font-size:12px;letter-spacing:var(--lblls,0);text-transform:var(--lbltt,none);color:var(--mute)}
.v-sub2{font-size:13px;color:var(--mute)}
.v-fine{font-size:12px;line-height:1.55;color:var(--mute)}
.v-kick{font-size:13px;color:var(--mute)}
.v-num{font-family:var(--numfont,var(--mono));font-style:var(--numstyle,normal);color:var(--mute);margin-right:10px}
.v-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--dot);vertical-align:middle;flex:none}
.v-on{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
.v-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* controls */
.v-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 15px;border-radius:var(--rb);border:1px solid var(--line);background:var(--btnbg,var(--sheet));color:var(--ink);font-size:14px;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}
.v-btn:hover{border-color:var(--ink)}
.v-btn.v-pri{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
.v-btn.v-sm{min-height:30px;padding:0 10px;font-size:12.5px}
.v-btn.v-big{min-height:50px;font-size:15px}
.v-btn[aria-pressed="true"]{background:var(--soft);border-color:var(--ink)}
.v-inl{border:0;background:none;padding:0;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line);color:inherit;font-size:inherit}
.v-link{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line);font-size:14px;align-self:flex-start}
.v-link:hover{border-color:var(--ink)}
.v-chip{min-height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--soft);font-size:13.5px;color:var(--body)}
.v-chip.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.v-chips{display:flex;flex-wrap:wrap;gap:6px}
.v-seg{display:flex;gap:2px;padding:2px;border-radius:calc(var(--rb) + 2px);background:var(--soft);border:1px solid var(--hair)}
.v-seg button{flex:1;min-height:34px;border:0;border-radius:var(--rb);background:transparent;font-size:13.5px;color:var(--mute)}
.v-seg button.on{background:var(--sheet);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.v-in{width:100%;border:1px solid var(--line);border-radius:var(--r2);background:var(--soft);color:var(--ink);padding:11px 12px;font:inherit;font-size:16px;outline:none}
.v-in:focus{border-color:var(--ink)}
.v-x{flex:none;width:26px;height:26px;border-radius:999px;border:1px solid var(--line);background:var(--soft);color:var(--mute);font-size:14px;line-height:1;padding:0;margin-left:8px;vertical-align:middle}

/* a case */
.v-case{display:flex;flex-direction:column;gap:28px}
.v-case-h{display:flex;flex-direction:column;gap:12px}
.v-case-t{font-size:clamp(34px,5.4vw,60px);line-height:1.02;font-weight:var(--hw,500);letter-spacing:-0.035em}
.v-second{color:var(--mute);font-family:var(--font2);font-style:var(--font2style,normal);font-weight:var(--font2w,inherit);letter-spacing:var(--font2ls,-0.03em);font-size:var(--font2size,1em)}
.v-flag{font-size:13px;color:var(--mute)}
.v-lede{font-size:16px;line-height:1.65;color:var(--body);max-width:66ch}
.v-facts{display:grid;grid-template-columns:1fr;gap:0;border-top:1px solid var(--hair)}
.v-facts div{display:grid;grid-template-columns:78px 1fr;gap:14px;padding:11px 0;border-bottom:1px solid var(--hair);font-size:14px;line-height:1.45}
.v-facts dt{color:var(--mute);font-size:12.5px;padding-top:1px}
.v-case-act{display:flex;flex-wrap:wrap;gap:8px}
.v-toc{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 calc(var(--gut) * -1);padding:0 var(--gut)}
.v-toc::-webkit-scrollbar{display:none}
.v-toc a{flex:none;display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:999px;background:var(--soft);font-size:13px;text-decoration:none;color:var(--body);white-space:nowrap}
.v-toc a .v-num{margin-right:7px}
.v-ch{display:flex;flex-direction:column;gap:14px;padding-top:26px;border-top:1px solid var(--hair);scroll-margin-top:70px}
.v-ch-t{font-size:22px;font-weight:var(--hw,500);letter-spacing:-0.02em;display:flex;align-items:baseline}
.v-ch-p{font-size:15.5px;line-height:1.65;color:var(--body);max-width:66ch}
.v-name{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.v-figs{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.v-fig{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0}
.v-fig.full{grid-column:1/-1}
.v-fig-b{display:block;width:100%;padding:0;border:0;background:var(--soft);border-radius:var(--rimg);overflow:hidden;cursor:zoom-in}
.v-fig-m{width:100%;height:auto}
.v-fig figcaption{font-size:var(--capsize,13px);line-height:1.4;color:var(--mute);font-family:var(--capfont,var(--font));font-style:var(--capstyle,normal)}
.v-fig figcaption i{font-style:normal;opacity:.8}
.v-fig-w{position:relative}
.v-hots{position:absolute;inset:0;pointer-events:none}
.v-hot{position:absolute;border:0;background:transparent;pointer-events:auto;border-radius:6px;cursor:zoom-in}
.v-hot:hover{box-shadow:0 0 0 2px var(--acc)}
.v-map ol{display:flex;flex-direction:column;margin-top:10px}
.v-map a{display:grid;grid-template-columns:1fr;gap:2px;padding:10px 0;border-top:1px solid var(--hair);text-decoration:none}
.v-map a span{font-size:13px;color:var(--mute)}
.v-credit,.v-soon{font-size:13.5px;line-height:1.55;color:var(--mute);padding-top:16px;border-top:1px solid var(--hair);max-width:70ch}
.v-doorcard{position:relative;display:flex;flex-direction:column;gap:6px;padding:20px 64px 20px 20px;border-radius:var(--r);background:var(--doorbg,var(--ink));color:var(--doorink,var(--bg));text-decoration:none}
.v-doorcard .v-lbl{color:inherit;opacity:.65}
.v-doorcard b{font-size:21px;font-weight:var(--hw,500);letter-spacing:-0.02em;line-height:1.15}
.v-doorcard .v-price{font-size:13.5px;line-height:1.5;opacity:.8}
.v-doorcard .v-go{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--doorink,var(--bg));color:var(--doorbg,var(--ink))}
.v-related{display:flex;flex-direction:column;gap:12px}
.v-rel-g{display:grid;grid-template-columns:1fr;gap:8px}
.v-rel{display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:center;padding:8px;border-radius:var(--r2);background:var(--soft);text-decoration:none}
.v-rel-i img{width:52px;height:68px;object-fit:cover;border-radius:calc(var(--r2) - 4px)}
.v-rel-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.v-rel-t i{font-style:normal;font-size:12px;color:var(--mute)}
.v-rel-t b{font-weight:500}
.v-rel-t span{font-size:13px;color:var(--mute)}
.v-case-end{display:flex;flex-direction:column;gap:14px;padding-top:18px;border-top:1px solid var(--hair)}
.v-next{display:flex;flex-direction:column;gap:2px;text-decoration:none}
.v-next b{font-size:20px;font-weight:var(--hw,500);letter-spacing:-0.02em}
.v-mark{display:block;padding-top:28px}
.v-arrive{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r2);background:var(--soft)}
.v-arrive p{font-size:15px;line-height:1.5}

/* rows used by About and Lab */
.v-labrows a,.v-labrows div,.v-cv a,.v-cv div{display:grid;grid-template-columns:86px 1fr;gap:2px 14px;padding:11px 0;border-top:1px solid var(--hair);text-decoration:none}
.v-labrows span:last-child,.v-cv span:last-child{grid-column:2;font-size:13px;color:var(--mute)}
.v-when{font-size:12px;color:var(--mute);font-family:var(--whenfont,var(--font));font-style:var(--whenstyle,normal)}

/* the letter */
.v-table-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-top:8px}
.v-table-g a{display:flex;align-items:center;gap:10px;padding:6px;border-radius:var(--r2);background:var(--soft);text-decoration:none;font-size:13px}
.v-table-g img,.v-table-g .v-ph{width:34px;height:44px;object-fit:cover;border-radius:6px;background:var(--hair)}
.v-paper{position:relative;display:flex;flex-direction:column;gap:14px}
.v-paper-to{font-size:13px;color:var(--mute)}
.v-paper-l{font-size:var(--letsize,17px);line-height:1.4;font-family:var(--letfont,var(--font))}
.v-paper-l b{font-weight:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
.v-line{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.v-field{display:flex;flex-direction:column;gap:6px}
.v-ways{display:flex;flex-direction:column;gap:8px}
.v-way{display:flex;flex-direction:column;gap:3px;text-align:left;padding:13px 14px;border:1px solid var(--line);border-radius:var(--r2);background:var(--sheet);width:100%}
.v-way b{font-weight:500;font-size:15px}
.v-way span{font-size:13px;color:var(--body)}
.v-way.on{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
.v-where{display:flex;flex-direction:column;gap:10px}
.v-err{font-size:13px;color:#C2410C;min-height:1px}
.v-send{display:flex;flex-direction:column;gap:10px}
.v-else ul{display:flex;flex-direction:column}
.v-else li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--hair);font-size:14px;flex-wrap:wrap}
.v-else li .v-lbl{width:84px}
.v-else li a{text-decoration:none;border-bottom:1px solid var(--line)}
.v-sent{display:flex;flex-direction:column;gap:14px}
.v-sent h2{font-size:24px;line-height:1.2;font-weight:var(--hw,500);letter-spacing:-0.02em}
.v-paper-txt{white-space:pre-wrap;font-family:var(--mono);font-size:12.5px;line-height:1.6;padding:14px;border-radius:var(--r2);background:var(--soft);color:var(--body);margin:0}

/* a door */
.v-offer{display:flex;flex-direction:column;gap:6px;padding:20px;border-radius:var(--r);background:var(--soft);max-width:620px}
.v-offer-p{font-size:44px;line-height:1;font-weight:var(--hw,500);letter-spacing:-0.03em;margin:6px 0}
.v-offer ul{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.v-steps{display:flex;flex-direction:column;counter-reset:s}
.v-steps li{counter-increment:s;padding:12px 0;border-top:1px solid var(--hair);max-width:66ch;color:var(--body)}
.v-steps li::before{content:counter(s,decimal-leading-zero) "  ";font-family:var(--mono);font-size:11px;color:var(--mute)}
.v-steps b{color:var(--ink);font-weight:500}

/* layers over the page: lightbox, plain view */
.v-layer{position:fixed;inset:0;z-index:120}
.v-lb{background:rgba(10,10,10,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:56px 16px 24px;gap:12px}
.v-lb-in{max-width:min(1400px,100%);max-height:calc(100% - 60px);display:flex;cursor:zoom-out}
.v-lb-in img,.v-lb-in video{max-width:100%;max-height:calc(100dvh - 120px);object-fit:contain;border-radius:6px}
.v-lb-c{color:#d6d5d0;font-size:13px;text-align:center;max-width:70ch}
.v-lb-x{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;width:42px;height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.4);color:#fff;font-size:20px}
.v-plain{background:var(--bg);overflow:auto;padding:calc(20px + env(safe-area-inset-top,0px)) 16px 40px}
.v-plain-in{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.v-plain-in .v-row{justify-content:space-between}
.v-plain pre{white-space:pre-wrap;font-family:var(--mono);font-size:12.5px;line-height:1.65;color:var(--body);margin:0}
/* the preview switcher, the toast */
#v-switch{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:110;display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:rgba(20,20,20,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font:500 12px/1 "Geist Mono",ui-monospace,monospace;box-shadow:0 10px 30px -10px rgba(0,0,0,.45)}
#v-switch a{color:#cfcfcf;text-decoration:none;padding:8px 10px;border-radius:999px}
#v-switch a[aria-current]{background:#fff;color:#111}
#v-switch .vs-k{color:#C4C4C4;padding:0 8px 0 10px;text-transform:uppercase;font-size:10px;letter-spacing:.08em}
#v-switch .vs-x{color:#C4C4C4}
html.v-locked #v-switch{display:none}
#v-toast{position:fixed;left:50%;bottom:calc(64px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;z-index:130;padding:10px 14px;border-radius:999px;background:var(--ink);color:var(--bg);font-size:13px;transition:opacity .25s,transform .25s cubic-bezier(.16,1,.3,1);pointer-events:none}
#v-toast.on{opacity:1;transform:translate(-50%,0)}
@media (min-width:760px){.v-rel-g{grid-template-columns:repeat(3,1fr)}.v-rel{grid-template-columns:1fr;align-items:start}.v-rel-i img{width:100%;height:auto;aspect-ratio:3/4}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* the lab modules (lab/lab.js): the page only sets their tokens; the preview switcher keeps its strip */
lab-layers,lab-post{--lab-safe-bottom:56px}
lab-constellation,lab-glyph,lab-mark{display:block}
html.v-immersive{overflow:hidden}
@media (max-width:759px){html:has(lab-layers.mkf) #v-switch{opacity:0;pointer-events:none}}
/* a check that draws itself (copy and share confirmations); fully drawn when motion is off */
.v-check{flex:none;vertical-align:-4px;margin-right:6px}
.v-check path{stroke-dasharray:20;animation:vDraw .32s cubic-bezier(.16,1,.3,1)}
@keyframes vDraw{from{stroke-dashoffset:20}}
.fo-share .v-check{margin:0}
