/* /techstack — Claude skills with their flow diagrams, the apps Eric built, and his software and SaaS. */
.ts-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .ts-wrap { padding: 0 16px; } }
.ts-brand { font: 600 17px/1 var(--serif); color: var(--ink); letter-spacing: .01em; }

.ts-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 0 18px; }
.ts-head h1 { font: 600 30px/1.15 var(--serif); color: var(--ink); margin: 0 0 4px; letter-spacing: -.01em; }
.ts-head p { margin: 0; font-size: 13.5px; }
.ts-head .r { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ts-btn { font: 600 13px/1 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 99px; padding: 8px 13px; cursor: pointer; }
.ts-btn:hover { border-color: var(--grey); }

.ts-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 8px; position: sticky; top: 52px; z-index: 4; background: var(--bg); padding: 8px 0; }
.ts-search { flex: 1 1 240px; min-width: 0; font: 15px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 99px; padding: 9px 15px; }
.ts-search:focus { outline: none; border-color: var(--ink); }
.ts-tabs { display: flex; gap: 4px; background: #EFEEE9; border-radius: 99px; padding: 3px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ts-tabs button { white-space: nowrap; font-size: 13.5px; padding: 7px 13px; border-radius: 99px; color: var(--soft); background: none; border: 0; cursor: pointer; }
.ts-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.ts-tabs button b { font-weight: 600; font-size: 11px; color: var(--soft); margin-left: 4px; }

.ts h2.sec { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 30px 0 14px; display: flex; gap: 8px; align-items: baseline; }
.ts h2.sec small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.ts h3.grp { font: 600 17px/1.2 var(--serif); color: var(--ink); margin: 22px 0 12px; }
.ts-note { border: 1px solid #F1D4C6; background: #FDF6F2; color: #8A3E22; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin: 0 0 12px; }

/* skill and app cards */
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ts-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; min-width: 0;
  transition: box-shadow .18s ease, transform .18s ease; }
.ts-card:hover { box-shadow: 0 10px 28px rgba(46,44,39,.10); transform: translateY(-2px); }
.ts-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-bottom: 1px solid var(--hair); background: #F4F3EE; cursor: zoom-in; overflow: hidden; }
.ts-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.ts-thumb .zoom { position: absolute; right: 10px; bottom: 10px; font: 600 11px/1 var(--sans); background: rgba(46,44,39,.82); color: #fff; border-radius: 99px; padding: 6px 9px; opacity: 0; transition: opacity .15s; }
.ts-thumb:hover .zoom, .ts-thumb:focus-visible .zoom { opacity: 1; }
@media (hover: none) { .ts-thumb .zoom { opacity: 1; } }
.ts-thumb.none { cursor: default; display: grid; place-items: center; }
.ts-thumb.none span { font: 600 34px/1 var(--serif); color: #C9C7BD; }
.ts-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ts-body h4 { font: 600 16.5px/1.25 var(--serif); color: var(--ink); margin: 0; }
.ts-slug { font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--soft); background: #F4F3EE; border-radius: 6px; padding: 4px 6px; align-self: flex-start; }
.ts-body p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ts-trig { font-size: 12.5px !important; color: var(--soft) !important; -webkit-line-clamp: 2 !important; }
.ts-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 6px; }
.ts-chip { font-size: 11.5px; border: 1px solid var(--hair); border-radius: 99px; padding: 2px 8px; color: var(--soft); background: #fff; }
.ts-chip.live { color: #2F6B45; border-color: #CFE3D5; background: #F3F9F5; }
.ts-links { display: flex; gap: 14px; font-size: 12.5px; padding-top: 4px; }
.ts-links a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--hair); }
.ts-links a:hover { color: var(--ink); border-color: var(--ink); }

/* software and SaaS */
.ts-sw { background: #fff; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; }
.ts-sw .cat { font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); background: var(--wash); padding: 10px 16px; border-top: 1px solid var(--hair); }
.ts-sw .cat:first-child { border-top: 0; }
.ts-sw .row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 4px 18px; padding: 12px 16px; border-top: 1px solid var(--hair); align-items: baseline; }
.ts-sw .cat + .row { border-top: 0; }
.ts-sw .row b { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.ts-sw .row b a { color: inherit; text-decoration: none; }
.ts-sw .row span { font-size: 13.5px; color: var(--ink); }
.ts-sw .row em { font-style: normal; font-size: 12.5px; color: var(--soft); text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .ts-sw .row { grid-template-columns: 1fr auto; } .ts-sw .row span { grid-column: 1 / -1; order: 3; } }
.ts-total { font-size: 13px; margin: 10px 2px 0; }
.ts-empty { font-size: 14px; padding: 18px; }

/* the lightbox */
.ts-lb { position: fixed; inset: 0; z-index: 40; background: rgb(28,27,24); display: flex; flex-direction: column; color: #EDEBE4; }
.ts-lb[hidden] { display: none; }
.ts-lb .top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 10px; }
.ts-lb .top h2 { font: 600 18px/1.2 var(--serif); color: #fff; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-lb .top button, .ts-lb .top a { font: 600 13px/1 var(--sans); color: #EDEBE4; background: rgba(255,255,255,.1); border: 0; border-radius: 99px; padding: 8px 12px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ts-lb .top button:hover, .ts-lb .top a:hover { background: rgba(255,255,255,.2); }
.ts-lb .stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 0 60px; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .ts-lb .stage { padding: 0 12px; } }
.ts-lb .stage img { max-width: 100%; max-height: 100%; display: block; background: #fff; border-radius: 6px; cursor: zoom-in; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.ts-lb .stage.full { place-items: start; }
.ts-lb .stage.full img { max-width: none; max-height: none; width: 1800px; cursor: zoom-out; }
.ts-lb .foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; line-height: 1.5; max-width: 1100px; margin: 0 auto; width: 100%; }
.ts-lb .foot p { margin: 0 0 4px; color: #EDEBE4; }
.ts-lb .foot small { color: #A9A69B; }
.ts-lb .nav2 { position: absolute; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; width: 44px; height: 64px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.ts-lb .nav2:hover { background: rgba(255,255,255,.18); }
.ts-lb .prev { left: 6px; } .ts-lb .next { right: 6px; }
@media (max-width: 640px) { .ts-lb .nav2 { display: none; } .ts-lb .top .hide-sm { display: none; } }
