:root {
  --bg: #f7f7f4;
  --paper: #fff;
  --ink: #151515;
  --muted: #727272;
  --line: #deded8;
  --accent: #6c63ff;
  --accent-soft: #eceaff;
  --max: 1240px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.container-wide { width: min(calc(100% - 48px), 1440px); margin-left: auto; margin-right: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(247,247,244,.86);
  backdrop-filter: blur(18px); border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.03em; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: var(--ink); color: #fff; font-family: var(--serif); font-size: 18px;
}
.brand-name { font-size: 16px; }
.main-nav { display: flex; align-items: center; margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #666; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta, .button-dark {
  background: var(--ink); color: white; border-radius: 999px; padding: 11px 17px; font-size: 12px; font-weight: 700;
}
.search-toggle { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; position: relative; }
.search-toggle:before { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid #333; border-radius: 50%; left: 8px; top: 7px; }
.search-toggle:after { content: ""; position: absolute; width: 7px; height: 1.5px; background: #333; transform: rotate(45deg); left: 20px; top: 21px; }
.menu-toggle { display:none; background:none; border:0; width:35px; cursor:pointer; }
.menu-toggle i { display:block; height:1px; background:var(--ink); margin:6px 0; }
.mobile-nav, .search-panel { display:none; }
.hero { padding: 105px 0 112px; overflow: hidden; }
.hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; align-items:center; min-height: 510px; }
.eyebrow { font-size: 10px; letter-spacing: .19em; font-weight: 800; color: var(--muted); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; font-size: clamp(58px, 7.1vw, 106px);
  line-height: .91; margin: 20px 0 28px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-intro { max-width: 510px; color:#5f5f5f; font-size: 17px; line-height: 1.7; margin:0 0 30px; }
.hero-actions { display:flex; align-items:center; gap:25px; }
.button-dark { display:inline-flex; gap:18px; align-items:center; padding: 14px 20px; }
.text-link { font-size: 13px; font-weight:700; }
.text-link span, .view-all span { margin-left:8px; }
.hero-orbit { width: 410px; height: 410px; margin:auto; position:relative; display:grid; place-items:center; }
.orbit { position:absolute; border:1px solid #d5d5cf; border-radius:50%; }
.orbit-1 { width:100%; height:100%; }
.orbit-2 { width:68%; height:68%; border-style:dashed; }
.orbit-core { width:118px; height:118px; background:var(--ink); color:#fff; border-radius:50%; display:grid; place-items:center; font-family:var(--serif); font-size:40px; box-shadow:0 30px 80px rgba(0,0,0,.15); }
.orbit-core:after { content:""; position:absolute; width:14px; height:14px; background:var(--accent); border-radius:50%; transform:translate(54px,-54px); }
.orbit-label { position:absolute; font-size:9px; letter-spacing:.18em; font-weight:800; background:var(--bg); padding:4px 8px; }
.label-1 { top:12%; right:4%; }.label-2 { bottom:15%; left:2%; }.label-3 { top:47%; left:-3%; }
.latest-section { padding: 0 0 120px; }
.section-head { display:flex; align-items:end; justify-content:space-between; border-top:1px solid var(--line); padding-top:22px; margin-bottom:40px; }
.section-head h2 { font-family:var(--serif); font-size:42px; font-weight:400; letter-spacing:-.04em; margin:8px 0 0; }
.view-all { font-size:12px; font-weight:700; padding-bottom:8px; }
.post-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:58px 26px; align-items:start; }
.post-grid > .post-card:only-child {
  grid-column: 1 / -1;
  display:grid;
  grid-template-columns:minmax(0, 1.18fr) minmax(300px, .82fr);
  gap:52px;
  align-items:center;
  max-width:1080px;
}
.post-grid > .post-card:only-child .card-media { margin:0; aspect-ratio:1.45 / 1; }
.post-grid > .post-card:only-child .card-body h2 { font-size:clamp(34px, 4vw, 52px); line-height:1; }
.post-grid > .post-card:only-child .card-body p { max-width:500px; font-size:15px; line-height:1.75; }
.post-card { opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease; }
.post-card.is-visible { opacity:1; transform:none; }
.card-media { aspect-ratio: 1.38 / 1; overflow:hidden; background:#e8e8e3; margin:0 0 19px; }
.card-media img { width:100%; height:100%; object-fit:cover; transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.card-link:hover .card-media img { transform:scale(1.045); }
.card-media-empty { display:grid; place-items:center; font-family:var(--serif); font-size:26px; color:#999; }
.card-meta { display:flex; gap:10px; font-size:9px; letter-spacing:.12em; text-transform:uppercase; color:#8a8a84; font-weight:800; }
.card-meta span:first-child { color:var(--accent); }
.card-body h2 { font-family:var(--serif); font-size:28px; line-height:1.05; font-weight:400; letter-spacing:-.035em; margin:10px 0 10px; }
.card-body p { color:#777; font-size:13px; line-height:1.65; margin:0 0 16px; }
.read-more { font-size:10px; text-transform:uppercase; letter-spacing:.13em; font-weight:800; }
.read-more b { color:var(--accent); margin-left:7px; }
.newsletter-section { padding: 0 0 120px; }
.newsletter-card {
  width:min(calc(100% - 48px), var(--max)); margin:auto; background:var(--ink); color:#fff; padding:55px 65px;
  display:flex; align-items:center; justify-content:space-between; gap:50px; border-radius:2px;
}
.newsletter-copy .eyebrow { color:#999; }.newsletter-copy h2 { font-family:var(--serif); font-weight:400; font-size:50px; letter-spacing:-.045em; margin:10px 0 8px; }
.newsletter-copy p { color:#aaa; margin:0; max-width:490px; line-height:1.6; }
.newsletter-button { flex:0 0 auto; background:#fff; color:var(--ink); border-radius:999px; padding:16px 21px; font-size:12px; font-weight:800; }
.newsletter-button span { color:var(--accent); margin-left:14px; }
.newsletter-member { color:#bbb; display:flex; flex-direction:column; gap:8px; font-size:12px; }.newsletter-member a{color:#fff;font-weight:700}
.site-footer { border-top:1px solid var(--line); padding:72px 0 28px; background:rgba(255,255,255,.18); }
.footer-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,420px); gap:80px; align-items:start; }
.footer-note { max-width:330px; color:#888; font-size:12px; line-height:1.6; margin-top:20px; }
.footer-links { display:grid; grid-template-columns:1fr 1fr; gap:40px; justify-self:end; min-width:300px; }
.footer-links div { display:flex; flex-direction:column; gap:10px; }.footer-links a { font-size:12px; color:#666; }.footer-label { font-size:9px; letter-spacing:.16em; font-weight:800; margin-bottom:5px; color:#aaa; }
.footer-bottom { border-top:1px solid var(--line); margin-top:55px; padding-top:18px; display:flex; justify-content:space-between; gap:24px; color:#999; font-size:10px; letter-spacing:.01em; }.footer-bottom span:last-child { color:#aaa; text-align:right; }
.post-header { padding: 90px 0 55px; }
.post-header-inner { text-align:center; }
.post-kicker { display:flex; justify-content:center; gap:10px; color:#999; font-size:10px; text-transform:uppercase; letter-spacing:.12em; font-weight:800; }.post-kicker a{color:var(--accent)}
.post-header h1 { max-width:930px; margin:20px auto; font-family:var(--serif); font-weight:400; font-size:clamp(48px,6.2vw,88px); line-height:.98; letter-spacing:-.055em; }
.post-deck { max-width:720px; margin:0 auto 25px; color:#777; font-size:17px; line-height:1.6; }
.post-byline { display:flex; align-items:center; justify-content:center; gap:9px; font-size:11px; color:#888; }.post-byline img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.post-hero-image img { width:100%; max-height:680px; object-fit:cover; }.post-hero-image figcaption,.page-image figcaption{font-size:10px;color:#999;margin-top:8px}
.post-layout { display:grid; grid-template-columns: 110px minmax(0,740px) 1fr; gap:20px; padding-top:75px; }
.post-share { display:flex; flex-direction:column; gap:10px; font-size:10px; color:#999; position:sticky; top:110px; align-self:start; }.post-share a{width:30px;height:30px;border:1px solid var(--line);display:grid;place-items:center;border-radius:50%;font-size:11px;color:#555}
.gh-content { font-size:18px; line-height:1.8; color:#282828; }.gh-content > * { max-width:100%; }.gh-content h2,.gh-content h3 { font-family:var(--serif); font-weight:400; letter-spacing:-.03em; line-height:1.1; }.gh-content h2{font-size:38px;margin-top:65px}.gh-content h3{font-size:28px;margin-top:48px}.gh-content a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.gh-content blockquote{border-left:2px solid var(--accent);margin:40px 0;padding:5px 0 5px 25px;font-family:var(--serif);font-size:25px;line-height:1.4}.gh-content pre{background:#171717;color:#eee;padding:25px;overflow:auto;border-radius:5px;font-size:13px;line-height:1.6}.gh-content code{font-size:.86em;background:#eee;padding:2px 5px;border-radius:3px}.gh-content pre code{background:transparent;padding:0}.gh-content img{width:100%;height:auto}.gh-content hr{border:0;border-top:1px solid var(--line);margin:55px 0}.gh-content table{width:100%;border-collapse:collapse;font-size:14px}.gh-content th,.gh-content td{border-bottom:1px solid var(--line);padding:12px;text-align:left}
.post-footer { padding-top:50px; padding-bottom:90px; }.post-tags{display:flex;flex-wrap:wrap;gap:8px}.post-tags a{border:1px solid var(--line);padding:8px 12px;border-radius:99px;font-size:10px;color:#666}
.post-footer .newsletter-section { padding:70px 0 0; }.post-footer .newsletter-card{width:100%}
.read-next { padding:90px 0 110px; background:#efefea; }
.page-header,.archive-header { padding:95px 0 45px; }.page-header h1,.archive-header h1{font-family:var(--serif);font-size:clamp(55px,7vw,95px);font-weight:400;letter-spacing:-.06em;line-height:.95;margin:15px 0}.page-header p,.archive-header p{max-width:650px;color:#777;line-height:1.7}
.page-image{margin-bottom:55px}.page-content{max-width:780px}.page-content.gh-content{margin-bottom:110px}
.archive-section{padding-bottom:110px}.author-header{text-align:center;padding:90px 0 60px}.author-header img{width:70px;height:70px;border-radius:50%;object-fit:cover;margin:0 auto 20px}.author-header h1{font-family:var(--serif);font-size:65px;font-weight:400;letter-spacing:-.05em;margin:10px}.author-header p{color:#777;max-width:560px;margin:0 auto 15px}.author-meta{font-size:10px;color:#999;text-transform:uppercase;letter-spacing:.12em}
.error-page{min-height:65vh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.error-page h1{font-family:var(--serif);font-size:clamp(55px,8vw,110px);font-weight:400;letter-spacing:-.06em;margin:15px 0}.error-page p{color:#777;margin:0 0 25px}
.pagination{display:flex;justify-content:center;gap:18px;margin-top:65px;font-size:11px;font-weight:700}.pagination a{border-bottom:1px solid var(--ink);padding-bottom:4px}
@media (max-width: 900px) {
  .container,.container-wide { width:min(calc(100% - 34px), var(--max)); }
  .main-nav,.header-actions .search-toggle,.header-actions .nav-cta { display:none; }.menu-toggle{display:block}
  .mobile-nav{display:none;border-top:1px solid var(--line);padding:25px 0 30px}.menu-open .mobile-nav{display:block}.mobile-nav nav ul{display:flex;flex-direction:column;gap:18px;list-style:none;margin:0;padding:0}.mobile-nav nav li{list-style:none;margin:0;padding:0}.mobile-nav nav a{font-family:var(--serif);font-size:28px}.mobile-join{display:inline-block;margin-top:25px;font-size:12px;font-weight:800}
  .search-panel{display:none;background:var(--bg);border-top:1px solid var(--line);padding:20px 0}.search-open .search-panel{display:block}.search-form{display:flex;gap:10px}.search-form input{flex:1;border:0;border-bottom:1px solid var(--ink);background:transparent;padding:12px 0;outline:none}.search-form button{border:0;background:var(--ink);color:#fff;border-radius:99px;padding:0 17px;font-size:11px}
  .hero{padding:70px 0}.hero-grid{grid-template-columns:1fr;min-height:auto}.hero h1{font-size:clamp(58px,14vw,100px)}.hero-orbit{width:280px;height:280px;margin:70px auto 10px}.orbit-core{width:90px;height:90px;font-size:30px}
  .post-grid{grid-template-columns:1fr 1fr}.post-grid > .post-card:only-child{grid-template-columns:1fr;gap:28px;max-width:760px}.post-grid > .post-card:only-child .card-media{aspect-ratio:1.55 / 1}.newsletter-card{padding:40px 35px}.newsletter-copy h2{font-size:40px}.newsletter-card{flex-direction:column;align-items:flex-start}
  .post-layout{display:block;padding-top:50px}.post-share{position:static;flex-direction:row;align-items:center;margin-bottom:30px}.post-share span{margin-right:4px}.post-header{padding-top:70px}
}
@media (max-width: 600px) {
  .container,.container-wide{width:calc(100% - 28px)}.header-inner{height:65px}.hero{padding-top:60px}.hero h1{font-size:56px}.hero-intro{font-size:15px}.hero-actions{gap:18px}
  .section-head h2{font-size:34px}.post-grid{grid-template-columns:1fr;gap:45px}.newsletter-section{padding-bottom:75px}.newsletter-card{width:calc(100% - 28px);padding:35px 25px}.newsletter-copy h2{font-size:36px}
  .footer-grid{grid-template-columns:1fr;gap:45px}.footer-links{justify-self:start;min-width:0;width:100%}.footer-bottom{flex-direction:column;gap:8px}.footer-bottom span:last-child{text-align:left}
  .post-header h1{font-size:48px}.post-deck{font-size:15px}.gh-content{font-size:17px}.gh-content h2{font-size:32px}.gh-content blockquote{font-size:22px}
  .page-header,.archive-header{padding-top:70px}.page-header h1,.archive-header h1{font-size:55px}.author-header h1{font-size:52px}
}
@media (prefers-reduced-motion: reduce) {
  html{scroll-behavior:auto}.post-card{transition:none}.card-media img{transition:none}
}

/* Ghost editor card width utilities */
.gh-content .kg-width-wide { width: min(1200px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-card { margin-top: 2rem; margin-bottom: 2rem; }
.kg-image-card { text-align: center; }
.kg-image-card figcaption { color: #8a8a84; font-size: 11px; margin-top: 8px; }

@media (max-width: 600px) {
  .gh-content .kg-width-wide { width: 100%; margin-left: 0; transform: none; }
  .gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
}

/* Li's Lab homepage V2 */
.home-hero { padding: 92px 0 78px; border-bottom: 1px solid var(--line); overflow: hidden; }
.home-hero-grid { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr); gap:80px; align-items:center; }
.home-hero h1 { font-family:var(--serif); font-weight:400; letter-spacing:-.06em; font-size:clamp(58px,7vw,104px); line-height:.9; margin:20px 0 28px; }
.home-hero h1 em { color:var(--accent); font-style:italic; }
.home-hero .hero-intro { max-width:600px; color:#5f5f5f; font-size:17px; line-height:1.7; margin:0 0 30px; }

.lab-console { background:#171717; color:#fff; min-height:430px; border-radius:4px; box-shadow:0 30px 80px rgba(0,0,0,.12); transform:rotate(1.2deg); }
.console-top { height:42px; border-bottom:1px solid #303030; display:flex; align-items:center; gap:7px; padding:0 17px; }
.console-dot { width:7px; height:7px; border-radius:50%; background:#555; }.console-path { margin-left:10px; color:#777; font:10px/1 var(--sans); letter-spacing:.08em; }
.console-body { padding:38px 34px; position:relative; min-height:388px; overflow:hidden; }
.console-label { color:#888; font-size:9px; letter-spacing:.18em; font-weight:800; }.console-title { font-family:var(--serif); font-size:35px; margin:10px 0 25px; letter-spacing:-.04em; }
.console-lines { display:flex; flex-direction:column; gap:11px; color:#aaa; font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; position:relative; z-index:2; }
.console-lines b { color:var(--accent); font-weight:500; margin-right:12px; }.console-orbit { position:absolute; right:-20px; bottom:-55px; width:245px; height:245px; }
.console-ring { position:absolute; inset:0; border:1px solid #393939; border-radius:50%; }.ring-b { inset:35px; border-style:dashed; }.console-core { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:72px; height:72px; border-radius:50%; background:#fff; color:#111; display:grid; place-items:center; font:34px var(--serif); }
.console-node { position:absolute; width:8px; height:8px; border-radius:50%; background:var(--accent); }.node-a{right:19px;top:53px}.node-b{left:24px;bottom:54px}.node-c{right:75px;bottom:8px;background:#fff}

.lab-pillars { padding:0; background:#efefea; border-bottom:1px solid var(--line); }
.pillars-grid { display:grid; grid-template-columns:repeat(3,1fr); }
.pillar { min-height:112px; padding:25px 20px; border-right:1px solid #d8d8d2; display:grid; grid-template-columns:38px 1fr 20px; gap:12px; align-items:center; }
.pillar:first-child { border-left:1px solid #d8d8d2; }.pillar:hover { background:#e9e9e4; }.pillar-number { font:10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:#999; align-self:start; }.pillar div{display:flex;flex-direction:column;gap:5px}.pillar strong{font-family:var(--serif);font-size:25px;font-weight:400;letter-spacing:-.03em}.pillar div span{font-size:11px;color:#888}.pillar>b{font-size:16px;font-weight:400;text-align:right}

.featured-section { padding:112px 0 118px; }
.section-head-large { margin-bottom:48px; }.section-head-large h2 { font-size:clamp(45px,5vw,64px); }
.featured-story { display:grid; grid-template-columns:minmax(0,1.48fr) minmax(320px,.72fr); gap:60px; align-items:center; padding-bottom:82px; border-bottom:1px solid var(--line); }
.featured-media { display:block; position:relative; overflow:hidden; background:#e7e7e2; aspect-ratio:1.42/1; }.featured-media img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1)}.featured-media:hover img{transform:scale(1.035)}
.featured-index { position:absolute; top:18px; right:18px; background:rgba(247,247,244,.92); color:#222; padding:8px 10px; font:9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.featured-media-empty{height:100%;display:grid;place-items:center;font:12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.2em;color:#999}
.featured-copy .card-meta { margin-bottom:17px; }.featured-copy h3{font-family:var(--serif);font-weight:400;font-size:clamp(38px,4.5vw,65px);line-height:.96;letter-spacing:-.055em;margin:0 0 22px}.featured-copy p{font-size:15px;line-height:1.75;color:#777;max-width:500px;margin:0 0 25px}
.work-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:46px 26px; padding-top:58px; }
.work-grid:empty { display:none; }

.tool-spotlight { background:var(--ink); color:#fff; padding:105px 0; overflow:hidden; }
.tool-spotlight-inner { display:grid; grid-template-columns:1fr 1fr; gap:90px; align-items:center; }.tool-copy .eyebrow{color:#888}.tool-copy h2{font-family:var(--serif);font-weight:400;font-size:clamp(48px,5vw,72px);line-height:.94;letter-spacing:-.055em;margin:17px 0 25px}.tool-copy h2 em{color:#aaa;font-style:italic}.tool-copy p{max-width:500px;color:#aaa;font-size:15px;line-height:1.75;margin:0 0 30px}.button-light{display:inline-flex;gap:18px;align-items:center;background:#fff;color:#111;border-radius:999px;padding:14px 20px;font-size:12px;font-weight:800}.button-light span{color:var(--accent)}
.tool-window { background:#f5f5f1; color:#151515; border-radius:3px; transform:rotate(-1.4deg); box-shadow:0 30px 80px rgba(0,0,0,.28); }.tool-window-bar{height:42px;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;align-items:center;padding:0 18px;font:9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:#888;letter-spacing:.08em}.tool-window-bar span:last-child{color:#6b63ff}.tool-window-main{padding:52px 48px 40px;min-height:340px}.tool-kicker{font-size:9px;letter-spacing:.18em;font-weight:800;color:#777}.tool-window-main h3{font-family:var(--serif);font-weight:400;font-size:48px;line-height:.98;letter-spacing:-.05em;margin:17px 0 48px}.tool-meter{height:5px;background:#ddd;max-width:280px;overflow:hidden}.tool-meter span{display:block;width:68%;height:100%;background:var(--ink)}.tool-window-foot{margin-top:65px;padding-top:15px;border-top:1px solid #ddd;display:flex;justify-content:space-between;font-size:10px;color:#777}.tool-window-foot b{font-weight:400;color:#111;font-size:16px}

.lab-note-section { padding:115px 0; border-bottom:1px solid var(--line); }.lab-note-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px}.lab-note-section h2{font-family:var(--serif);font-size:clamp(48px,5vw,70px);line-height:.94;letter-spacing:-.055em;font-weight:400;margin:17px 0 0}.lab-note-section h2 em{font-style:italic;color:var(--accent)}.lab-note-copy{max-width:560px;padding-top:35px}.lab-note-copy p{font-size:16px;line-height:1.8;color:#777;margin:0 0 18px}.lab-note-copy .text-link{display:inline-block;margin-top:12px}

@media (max-width: 900px) {
  .home-hero{padding:72px 0 65px}.home-hero-grid{grid-template-columns:1fr;gap:55px}.lab-console{max-width:650px;width:100%;margin:0 auto;transform:none}.pillars-grid{grid-template-columns:1fr}.pillar{border-left:1px solid #d8d8d2;border-bottom:1px solid #d8d8d2}.pillar:last-child{border-bottom:0}.featured-section{padding:82px 0 90px}.featured-story{grid-template-columns:1fr;gap:30px}.featured-copy{max-width:700px}.work-grid{grid-template-columns:1fr 1fr}.tool-spotlight{padding:80px 0}.tool-spotlight-inner{grid-template-columns:1fr;gap:55px}.tool-window{max-width:650px;width:100%;margin:auto}.lab-note-section{padding:85px 0}.lab-note-grid{grid-template-columns:1fr;gap:10px}.lab-note-copy{padding-top:20px}
}
@media (max-width: 600px) {
  .home-hero{padding:60px 0 55px}.home-hero h1{font-size:56px}.home-hero .hero-intro{font-size:15px}.lab-console{min-height:350px}.console-body{padding:30px 24px;min-height:308px}.console-title{font-size:28px}.console-orbit{width:185px;height:185px;right:-20px;bottom:-35px}.console-core{width:58px;height:58px;font-size:27px}.pillars-grid{width:100%}.pillar{padding:22px 14px}.pillar strong{font-size:22px}.featured-section{padding:68px 0 75px}.section-head-large{margin-bottom:32px}.featured-copy h3{font-size:42px}.work-grid{grid-template-columns:1fr;gap:42px;padding-top:45px}.tool-spotlight{padding:70px 0}.tool-copy h2{font-size:47px}.tool-window-main{padding:40px 28px 30px;min-height:300px}.tool-window-main h3{font-size:40px;margin-bottom:38px}.tool-window-foot{margin-top:50px}.lab-note-section{padding:70px 0}.lab-note-section h2{font-size:48px}.lab-note-copy{padding-top:15px}.lab-note-copy p{font-size:15px}
}


/* Li's Lab pricing page */
.pricing-hero { padding: 100px 0 75px; border-bottom: 1px solid var(--line); }
.pricing-hero-inner { max-width: 920px; }
.pricing-hero h1 { font-family:var(--serif); font-weight:400; font-size:clamp(58px,7vw,96px); line-height:.92; letter-spacing:-.06em; margin:18px 0 25px; }
.pricing-hero h1 em { color:var(--accent); font-style:italic; }
.pricing-hero p { max-width:600px; color:#777; font-size:16px; line-height:1.75; margin:0; }
.pricing-switch { display:inline-flex; gap:5px; margin-top:30px; padding:4px; border:1px solid var(--line); border-radius:999px; font-size:10px; color:#999; }
.pricing-switch span { padding:8px 12px; border-radius:999px; }
.pricing-switch-active { background:var(--ink); color:#fff; }
.pricing-section { padding:80px 0 105px; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:stretch; }
.pricing-card { position:relative; background:#fff; border:1px solid var(--line); padding:30px; min-height:610px; display:flex; flex-direction:column; }
.pricing-card-featured { background:var(--ink); color:#fff; border-color:var(--ink); transform:translateY(-14px); box-shadow:0 25px 70px rgba(0,0,0,.13); }
.pricing-badge { position:absolute; top:0; right:0; background:var(--accent); color:#fff; padding:8px 12px; font-size:8px; font-weight:800; letter-spacing:.14em; }
.pricing-card-top { display:flex; justify-content:space-between; align-items:center; padding-bottom:30px; }
.pricing-number { font:10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:#aaa; }
.pricing-label { font-size:9px; font-weight:800; letter-spacing:.17em; color:#999; }
.pricing-card-featured .pricing-label { color:#888; }
.pricing-card h2 { font-family:var(--serif); font-weight:400; font-size:48px; line-height:1; letter-spacing:-.05em; margin:0 0 16px; }
.pricing-card h2 small { font-family:var(--sans); font-size:12px; letter-spacing:0; color:#888; }
.pricing-desc { color:#777; font-size:13px; line-height:1.7; max-width:290px; min-height:66px; margin:0 0 28px; }
.pricing-card-featured .pricing-desc { color:#aaa; }
.price { min-height:45px; display:flex; align-items:baseline; gap:7px; margin-bottom:22px; }
.price strong { font-size:13px; font-weight:800; }
.price span { color:#999; font-size:10px; }
.price-note strong { font-family:var(--serif); font-size:19px; font-weight:400; }
.pricing-card-featured .price span { color:#888; }
.pricing-button { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-radius:999px; font-size:11px; font-weight:800; transition:transform .2s ease; }
.pricing-button:hover { transform:translateY(-2px); }
.pricing-button-light { border:1px solid #cfcfc9; background:#fff; }
.pricing-button-dark { background:#fff; color:var(--ink); }
.pricing-button b { font-size:15px; font-weight:400; color:var(--accent); }
.pricing-divider { border-top:1px solid var(--line); margin:28px 0 20px; }
.pricing-card-featured .pricing-divider { border-color:#343434; }
.pricing-card ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.pricing-card li { position:relative; padding-left:20px; font-size:12px; color:#666; line-height:1.5; }
.pricing-card-featured li { color:#bbb; }
.pricing-card li:before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:800; }
.pricing-note { margin-top:28px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:25px 0; display:flex; gap:18px; align-items:flex-start; }
.pricing-note-mark { font-size:20px; color:var(--accent); }
.pricing-note strong { font-size:12px; }.pricing-note p { color:#888; font-size:12px; line-height:1.7; margin:6px 0 0; max-width:720px; }
.pricing-faq { background:#efefea; padding:105px 0; }
.pricing-faq-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:100px; }
.pricing-faq h2 { font-family:var(--serif); font-size:clamp(48px,5vw,70px); line-height:.94; font-weight:400; letter-spacing:-.055em; margin:17px 0 0; }
.pricing-faq h2 em { color:var(--accent); font-style:italic; }
.faq-list details { border-top:1px solid #d5d5cf; padding:20px 0; }
.faq-list details:last-child { border-bottom:1px solid #d5d5cf; }
.faq-list summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; gap:20px; font-family:var(--serif); font-size:22px; letter-spacing:-.02em; }
.faq-list summary::-webkit-details-marker { display:none; }.faq-list summary span { font-family:var(--sans); font-size:20px; color:#999; transition:transform .2s; }.faq-list details[open] summary span { transform:rotate(45deg); }
.faq-list p { max-width:650px; color:#777; font-size:13px; line-height:1.75; margin:13px 0 0; }
.pricing-final-cta { padding:110px 0 125px; text-align:center; }
.pricing-final-cta h2 { font-family:var(--serif); font-size:clamp(50px,6vw,82px); font-weight:400; line-height:.94; letter-spacing:-.055em; margin:18px 0 30px; }
.pricing-final-cta h2 em { color:var(--accent); font-style:italic; }
.pricing-final-cta .button { display:inline-flex; }
.pricing-nav-link { color:#666; font-size:13px; font-weight:600; display:inline-flex; align-items:center; margin-left:28px; }
.pricing-nav-link:hover { color:var(--ink); }
.mobile-pricing { display:block; font-family:var(--serif); font-size:28px; margin-top:18px; }

@media (max-width:900px) {
  .pricing-grid { grid-template-columns:1fr; gap:16px; max-width:650px; margin:auto; }
  .pricing-card { min-height:0; }.pricing-card-featured { transform:none; order:-1; }
  .pricing-faq-grid { grid-template-columns:1fr; gap:45px; }
  .pricing-nav-link { display:none; }
}

/* Dark technical system */
:root {
  color-scheme: dark;
  --bg: #07080c;
  --paper: #0d0f16;
  --ink: #eef0f6;
  --muted: #a0a6b8;
  --line: rgba(255,255,255,.09);
  --accent: #9b8cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124,108,255,.14);
  --sans: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
html { background:var(--bg); }
body { background:var(--bg); color:var(--ink); }
.site-header { background:rgba(7,8,12,.82); border-bottom:1px solid var(--line); position:sticky; }
.site-header::after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(124,108,255,.55),rgba(34,211,238,.28),transparent); pointer-events:none; }
.brand-mark { background:linear-gradient(135deg,var(--accent),#5446c8); color:#fff; font-family:var(--sans); }
.main-nav a,.pricing-nav-link { color:#a0a6b8; }
.main-nav a:hover,.pricing-nav-link:hover,.footer-links a:hover { color:var(--ink); }
.nav-cta,.button-dark,.search-form button { background:var(--ink); color:#07080c; }
.search-toggle:before { border-color:var(--ink); }.search-toggle:after { background:var(--ink); }
.menu-toggle i { background:var(--ink); }
.eyebrow,.card-meta,.footer-label,.pricing-label,.post-kicker,.console-label,.tool-kicker,.tool-window-bar,.pricing-badge,.author-meta {
  font-family:var(--mono); font-size:11px; letter-spacing:.08em; color:#a0a6b8;
}
.hero h1,.home-hero h1,.post-header h1,.page-header h1,.archive-header h1,.author-header h1,.error-page h1,
.section-head h2,.card-body h2,.newsletter-copy h2,.post-layout .gh-content h2,.post-layout .gh-content h3,
.mobile-nav nav a,.console-title,.pillar strong,.featured-copy h3,.tool-copy h2,.tool-window-main h3,
.lab-note-section h2,.pricing-hero h1,.pricing-card h2,.pricing-faq h2,.faq-list summary,.pricing-final-cta h2 {
  font-family:var(--sans); font-weight:650; letter-spacing:-.045em;
}
.hero h1,.home-hero h1,.post-header h1,.page-header h1,.archive-header h1,.author-header h1,.error-page h1,
.pricing-hero h1,.pricing-final-cta h2 { letter-spacing:-.065em; }
.hero h1 em,.home-hero h1 em,.pricing-hero h1 em,.pricing-faq h2 em,.lab-note-section h2 em,
.pricing-final-cta h2 em { font-style:normal; color:transparent; background:linear-gradient(100deg,var(--accent),var(--accent-2)); background-clip:text; -webkit-background-clip:text; }
.hero-intro,.home-hero .hero-intro,.pricing-hero p,.post-deck,.page-header p,.archive-header p,.author-header p,
.error-page p,.card-body p,.featured-copy p,.lab-note-copy p,.pricing-desc,.pricing-card li,.pricing-note p,
.faq-list p,.gh-content { color:#b0b5c3; }
.hero,.home-hero,.post-header,.page-header,.archive-header,.author-header,.error-page { position:relative; }
.home-hero { isolation:isolate; border-bottom:1px solid var(--line); }
.home-hero::before { content:""; position:absolute; inset:0; z-index:-1; background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size:56px 56px; mask-image:radial-gradient(ellipse 70% 65% at 68% 35%,#000,transparent 78%); pointer-events:none; }
.home-hero::after { content:""; position:absolute; z-index:-1; width:640px; height:640px; right:-130px; top:-220px; filter:blur(45px); background:radial-gradient(circle,rgba(124,108,255,.22),transparent 66%); pointer-events:none; }
.orbit { border-color:rgba(164,170,196,.24); }.orbit-core { background:linear-gradient(145deg,#171a27,#0b0d13); color:var(--ink); box-shadow:0 0 70px rgba(124,108,255,.22); font-family:var(--sans); }
.orbit-label { background:var(--bg); color:#a0a6b8; font:11px var(--mono); }
.lab-console { transform:none; border-radius:14px; background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.012)); border:1px solid var(--line); backdrop-filter:blur(12px); box-shadow:0 0 0 1px rgba(255,255,255,.025) inset,0 40px 120px -20px rgba(75,64,164,.35); }
.console-top { border-color:var(--line); }.console-dot { background:#636a7d; }.console-path { color:#a0a6b8; }
.console-title { color:#eef0f6; }.console-label { color:#a0a6b8; }.console-lines { color:#b9bfd0; }
.console-lines span:last-child::after { content:"▌"; color:var(--accent-2); margin-left:4px; animation:blink 1s steps(2) infinite; }
.console-ring { border-color:rgba(179,184,210,.18); }.ring-a { animation:spin 40s linear infinite; }.ring-b { animation:spin 24s linear infinite reverse; }
.console-core { background:linear-gradient(135deg,var(--accent),#5146bd); color:white; font-family:var(--sans); }
.lab-pillars,.read-next,.pricing-faq { background:#0b0d13; }
.pillar { border-color:var(--line); transition:background .25s,border-color .25s; }.pillar:first-child { border-color:var(--line); }.pillar:hover { background:rgba(124,108,255,.07); }
.pillar-number,.pillar div span { color:#a0a6b8; }.pillar strong { color:var(--ink); }
.card-media,.featured-media { background:#11141d; border:1px solid var(--line); border-radius:10px; }
.card-media-empty,.featured-media-empty { color:#a0a6b8; }
.post-card,.pillar,.pricing-card { position:relative; }
.post-card::before,.pillar::before,.pricing-card::before { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .3s; background:radial-gradient(320px circle at var(--mx,50%) var(--my,50%),rgba(124,108,255,.17),transparent 65%); }
.post-card:hover::before,.pillar:hover::before,.pricing-card:hover::before { opacity:1; }
.post-card::before { border-radius:10px; }
.featured-index { background:rgba(7,8,12,.88); border:1px solid var(--line); color:var(--ink); font:11px var(--mono); }
.tool-spotlight { background:radial-gradient(ellipse at 15% 50%,rgba(124,108,255,.1),transparent 45%),#0b0d13; }
.tool-window { transform:none; border-radius:14px; color:var(--ink); background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.02)); border:1px solid var(--line); backdrop-filter:blur(12px); box-shadow:0 30px 90px rgba(0,0,0,.3),0 0 55px rgba(124,108,255,.12); }
.tool-window-bar { border-color:var(--line); color:#a0a6b8; }.tool-window-bar span:last-child { color:#a6f4c5; }
.tool-window-bar span:last-child::before { content:""; display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#35d68b; box-shadow:0 0 12px rgba(53,214,139,.7); vertical-align:1px; animation:live-pulse 1.8s ease-in-out infinite; }
.tool-kicker { color:#a0a6b8; }.tool-window-main h3 { color:var(--ink); }.tool-meter { background:rgba(255,255,255,.12); }.tool-meter span { background:linear-gradient(90deg,var(--accent),var(--accent-2)); }.tool-window-foot { border-color:var(--line); color:#a0a6b8; }.tool-window-foot b { color:var(--ink); }
.newsletter-card { background:radial-gradient(ellipse at 85% 0%,rgba(124,108,255,.25),transparent 48%),#10121b; border:1px solid var(--line); border-radius:14px; }
.newsletter-copy .eyebrow,.newsletter-member,.newsletter-copy p { color:#a0a6b8; }.newsletter-button { background:var(--ink); color:#07080c; }
.site-footer { background:#08090e; }.footer-note,.footer-links a,.footer-bottom,.footer-bottom span:last-child { color:#9ba1b2; }.footer-label { color:#b2b7c5; }
.post-share a,.post-tags a,.pricing-switch,.pricing-card,.faq-list details,.pricing-note { border-color:var(--line); color:#b0b5c3; }
.post-share a { color:#b0b5c3; }.post-tags a { border-radius:999px; }.post-tags a:hover { border-color:var(--accent); color:var(--ink); }
.gh-content { color:#c3c7d2; }.gh-content code { background:rgba(255,255,255,.08); color:#dce0eb; }.gh-content pre { background:#10121b; border:1px solid var(--line); border-radius:10px; }.gh-content th,.gh-content td { border-color:var(--line); }
.page-image figcaption,.post-hero-image figcaption { color:#a0a6b8; }.pagination a { border-color:var(--accent); }
.pricing-card { border-radius:12px; background:linear-gradient(180deg,#10121a,#0c0e14); }
.pricing-card-featured { background:linear-gradient(150deg,rgba(124,108,255,.15),#11131c 42%,#0c0e14); border-color:rgba(155,140,255,.55); box-shadow:0 20px 65px rgba(89,73,200,.18),0 0 0 1px rgba(155,140,255,.1) inset; }
.pricing-number,.pricing-label,.price span,.pricing-card h2 small { color:#a0a6b8; }.pricing-card-featured .pricing-label,.pricing-card-featured .pricing-desc,.pricing-card-featured .price span { color:#b4b9c8; }
.pricing-card h2 { color:var(--ink); }.price strong,.price-note strong { font:600 18px/1.2 var(--mono); }.price-note strong { font-size:17px; }
.pricing-card-featured .pricing-divider { border-color:var(--line); }.pricing-card li { color:#b0b5c3; }
.pricing-button-light { border-color:var(--line); background:#141722; color:var(--ink); }.pricing-button-dark { background:var(--ink); color:#07080c; }
.pricing-badge { background:linear-gradient(110deg,var(--accent),#6455d9); color:#fff; border-radius:0 11px 0 10px; }
.pricing-switch-active { background:var(--ink); color:#07080c; }.faq-list details,.faq-list details:last-child { border-color:var(--line); }.faq-list summary span { color:#a0a6b8; }
.button-light { background:var(--ink); color:#07080c; }.button-light span,.pricing-button b,.newsletter-button span { color:#7163e8; }
.mobile-nav,.search-panel { background:var(--bg); }.mobile-nav nav a { color:var(--ink); }.search-form input { color:var(--ink); border-color:var(--line); }
.pricing-final-cta .button-dark { background:var(--ink); color:#07080c; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes blink { 50% { opacity:0; } }
@keyframes live-pulse { 50% { opacity:.55; box-shadow:0 0 4px rgba(53,214,139,.35); } }
@media (prefers-reduced-motion: reduce) {
  .ring-a,.ring-b,.console-lines span::after,.tool-window-bar span:last-child::before { animation:none; }
}
@media (max-width:600px) {
  .pricing-hero { padding:70px 0 55px; }.pricing-hero h1 { font-size:54px; }
  .pricing-section { padding:55px 0 75px; }.pricing-card { padding:24px; }
  .pricing-faq { padding:70px 0; }.pricing-faq h2 { font-size:48px; }.faq-list summary { font-size:19px; }
  .pricing-final-cta { padding:75px 0 90px; }.pricing-final-cta h2 { font-size:50px; }
}

/* Keep interactive content above card lighting and honor reduced motion. */
.post-card > *, .pillar > *, .pricing-card > * { position:relative; z-index:2; }
.post-card,.pillar,.pricing-card { border-radius:10px; }
.card-media,.featured-media { border-radius:10px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .ring-a,.ring-b,.console-lines span::after,.tool-window-bar span:last-child::before { animation:none; }
  .post-card,.card-media img,.pricing-button { transition:none; }
}

/* Balanced footer columns and a compact close to the page. */
.newsletter-section { padding-bottom:72px; }
.site-footer { padding:48px 0 24px; }
.footer-grid { grid-template-columns:minmax(240px,1fr) 2fr; gap:64px; }
.footer-links { justify-self:stretch; min-width:0; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
.footer-links div { gap:8px; }
.footer-cta p { margin:0 0 6px; color:var(--muted); font-size:12px; line-height:1.6; max-width:220px; }
.footer-join { color:var(--ink); font-weight:700; font-size:12px; }
.footer-join:hover { color:var(--accent); }
.footer-bottom { margin-top:40px; }
@media (max-width:600px) {
  .footer-links { grid-template-columns:1fr 1fr; }
  .footer-cta { grid-column:1 / -1; }
}

