/* Shared base for the homepage concept mockups (theme A: Terminal Manual). */
:root{
  color-scheme:dark;
  --bg:#0c0c0b;--panel:#141413;--panel2:#1b1b19;--ink:#ecebe6;--ink2:#a3a29c;--ink3:#64635e;--line:rgb(255 255 255/.09);--line2:rgb(255 255 255/.16);--accent:#f2b852;
  --sans:"Inter",system-ui,sans-serif;--mono:"DM Mono",ui-monospace,Menlo,monospace;--serif:"Instrument Serif",Georgia,serif;
  --ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);--ease-drawer:cubic-bezier(.32,.72,0,1);
  --r:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit;color:inherit}
.label{font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3)}
.accent{color:var(--accent)}
.btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid var(--line2);border-radius:999px;background:var(--panel);
  font:500 13px/1 var(--sans);cursor:pointer;text-decoration:none;transition:border-color .15s ease,transform .12s var(--ease-out)}
.btn:active{transform:scale(.97)}
@media (hover:hover){.btn:hover{border-color:var(--accent)}}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- site index: "Spine" (sidebar.js builds it) ----------
   After Brittany Chiang's portfolio nav (brittanychiang.com; v4 source github.com/bchiang7/v4, MIT): name, role and a
   short bio over uppercase links, each led by a hairline that grows from 32 to 64px on hover and on the current page or
   section. Hidden until the pointer reaches the left edge, the tab is pressed, or it gets keyboard focus. */
.kb-spine{position:fixed;inset:0 auto 0 0;z-index:60;width:min(400px,100vw);padding:64px 48px 32px;display:flex;flex-direction:column;
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;font-family:var(--sans);color:#ecebe6;
  /* eased ("scrim") fade: a straight fade to 0 leaves a visible seam where it stops */
  background:linear-gradient(90deg,rgb(9 6 18/.96),rgb(9 6 18/.92) 40%,rgb(9 6 18/.84) 50%,rgb(9 6 18/.72) 58%,rgb(9 6 18/.58) 65%,rgb(9 6 18/.43) 72%,rgb(9 6 18/.29) 79%,rgb(9 6 18/.17) 86%,rgb(9 6 18/.08) 92%,rgb(9 6 18/.02) 97%,rgb(9 6 18/0));
  translate:-100% 0;opacity:0;visibility:hidden;transition:translate .45s var(--ease-out),opacity .3s ease,visibility 0s .45s}
.kb-spine.open{translate:0 0;opacity:1;visibility:visible;transition:translate .45s var(--ease-out),opacity .3s ease}
.kb-spine .grp{margin:40px 0 6px;font:500 10px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:#76756f}
.kb-spine .grp:first-child{margin-top:0}
.kb-spine ul{list-style:none;margin:0;padding:0}
.kb-spine li>a{display:flex;align-items:center;gap:16px;padding:9px 0;text-decoration:none;font:600 12px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#8e8c86;transition:color .2s}
.kb-spine li>a::before{content:"";flex:none;width:32px;height:1px;background:currentColor;transition:width .25s var(--ease-out)}
.kb-spine li>a:hover,.kb-spine li>a:focus-visible,.kb-spine li>a[aria-current],.kb-spine li.here>a{color:#ecebe6}
.kb-spine li>a:hover::before,.kb-spine li>a:focus-visible::before,.kb-spine li>a[aria-current]::before,.kb-spine li.here>a::before{width:64px}
.kb-spine li>a:focus-visible{outline:none}
/* sub-pages slide open under their section (always open under the section you are in) */
.kb-spine .subs{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s var(--ease-out)}
.kb-spine li:hover>.subs,.kb-spine li:focus-within>.subs,.kb-spine li.here>.subs{grid-template-rows:1fr}
.kb-spine .subs>div{overflow:hidden;display:flex;flex-direction:column;padding-left:80px}
.kb-spine .subs a{padding:4px 0;text-decoration:none;font-size:14px;color:#8e8c86;transition:color .15s,translate .2s var(--ease-out)}
.kb-spine .subs a:first-child{margin-top:2px}.kb-spine .subs a:last-child{margin-bottom:8px}
.kb-spine .subs a:hover,.kb-spine .subs a:focus-visible{color:var(--accent);translate:4px 0;outline:none}
.kb-spine .subs a[aria-current]{color:var(--accent)}
.kb-spine .foot{margin-top:auto;padding-top:36px;display:flex;align-items:center;gap:18px;font:12px/1 var(--mono);color:#76756f}
.kb-spine .foot a{color:#a3a29c;text-decoration:none;transition:color .15s}.kb-spine .foot a:hover{color:#ecebe6}
/* the tab: three hairlines on the left edge that hint at the index (and open it on click / touch) */
.kb-tab{position:fixed;left:0;top:50%;z-index:59;display:grid;gap:6px;padding:14px 14px 14px 16px;border:0;background:none;cursor:pointer;translate:0 -50%;
  transition:opacity .25s ease}
.kb-tab i{display:block;height:1px;background:#ecebe6;opacity:.55;box-shadow:0 0 6px rgb(0 0 0/.8);transition:width .25s var(--ease-out),opacity .2s}
.kb-tab i:nth-child(1){width:16px}.kb-tab i:nth-child(2){width:24px}.kb-tab i:nth-child(3){width:16px}
.kb-tab:hover i,.kb-tab:focus-visible i{opacity:1;width:32px}
.kb-spine.open~.kb-tab{opacity:0;pointer-events:none}
.concept-tag{position:fixed;right:14px;bottom:14px;z-index:40;font:500 11px/1 var(--mono);letter-spacing:.06em;color:var(--ink3);background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:8px 12px;text-decoration:none}
