*{box-sizing:border-box}html{scroll-padding-top:96px}body{margin:0;background:var(--canvas);color:var(--ink);font-family:'PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;-webkit-font-smoothing:antialiased}a{color:var(--teal)}button,input{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--teal);outline-offset:5px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:16px;z-index:100;padding:12px;background:var(--paper)}.skip-link:focus{top:8px}
.site-header{height:86px;display:flex;justify-content:space-between;align-items:center;padding:0 max(32px,calc((100vw - 1256px)/2));border-bottom:1px solid var(--line);background:var(--paper)}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-size:19px;font-weight:650;color:var(--teal)}.brand-mark{display:flex;align-items:center;justify-content:center;width:39px;height:43px;border:1px solid var(--border-strong);font-family:serif;font-size:26px;border-radius:3px;background:#eaf0e6;box-shadow:3px 3px 0 #d7dfd2}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1px;margin-top:4px;color:var(--muted)}.header-link{text-decoration:none;font-size:13px;color:var(--teal)}.header-link span{margin-left:20px}.header-link:hover{text-decoration:underline}main{max-width:1256px;margin:auto;padding:0 32px}
.intro{display:grid;grid-template-columns:1fr 310px;gap:70px;align-items:center;padding:65px 0 52px;border-bottom:1px solid var(--line)}.eyebrow{font-size:10px;letter-spacing:2.2px;color:var(--muted);margin:0 0 17px}.intro h1{font-size:56px;font-weight:650;line-height:1.25;letter-spacing:3px;color:var(--ink);margin:0 0 23px}.title-dot{color:var(--gold)}.intro-line{font-size:23px;line-height:1.7;margin:0 0 13px;color:var(--teal)}.intro-description{font-size:15px;line-height:1.95;color:var(--muted);margin:0}.topics{display:flex;gap:8px;margin-top:24px}.topics span{font-size:11px;letter-spacing:.5px;border:1px solid var(--border-strong);border-radius:3px;padding:5px 10px;color:var(--teal);background:var(--surface-green)}.inn-sign{position:relative;border:1px solid #e4d2b2;border-top:4px solid var(--gold);background-color:var(--surface-warm);padding:28px 29px 23px;box-shadow:9px 9px 0 #f0e3cf;transform:rotate(2deg)}.sign-number{font-size:10px;letter-spacing:1.2px;color:var(--muted)}.sign-title{font-size:27px;line-height:1.7;letter-spacing:2px;color:var(--teal);margin:17px 0}.sign-rule{display:block;width:45px;height:2px;background:var(--gold);margin:15px 0}.sign-bottom{font-size:10px;color:var(--gold-ink);line-height:1.8}
.library{display:grid;grid-template-columns:214px minmax(0,1fr);gap:40px;padding:44px 0 70px;min-height:420px}.shelf{padding-right:23px;border-right:1px solid var(--line)}.shelf-label{font-size:12px;font-weight:650;color:var(--muted);margin:5px 0 22px;padding-left:11px}#category-list{display:flex;flex-direction:column;gap:7px}#category-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;border:0;background:transparent;border-radius:5px;color:var(--muted);padding:12px 11px;font-size:13px;line-height:1.7}#category-list button span:last-child{font-size:10px;color:var(--muted)}#category-list button[aria-pressed=true]{color:var(--teal);background:var(--surface-green);font-weight:600}#category-list button:hover{background:var(--surface-soft)}.shelf-bottom{display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);margin:27px 11px 0;padding-top:17px;font-size:10px;color:var(--muted);line-height:1.8;flex-wrap:wrap}.shelf-bottom span:last-child{margin-left:auto}.tiny-dot{width:5px;height:5px;border-radius:50%;background:#6a9e87}.muted{color:var(--muted);font-size:12px}.collection{min-width:0}.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 25px}.collection-heading .eyebrow{margin:0 0 8px;font-size:9px;letter-spacing:1.5px}.collection-heading h2{font-size:22px;line-height:1.5;font-weight:650;margin:0;color:var(--ink)}.collection-heading h2 span{font-size:11px;font-weight:400;color:var(--muted);margin-left:12px;white-space:nowrap}.library-search{display:flex;align-items:center;gap:9px;width:245px;border:1px solid var(--border-strong);background:var(--paper);border-radius:5px;height:39px;padding:0 12px;color:var(--muted)}.library-search>span{font-size:24px;line-height:1}.library-search input{width:100%;min-width:0;border:0;background:none;outline:0;font-size:12px;color:var(--ink)}.library-search:focus-within{border-color:#79a48d;box-shadow:0 0 0 2px #79a48d20}.library-search input:focus-visible{outline:0}
#note-list{display:grid;gap:20px}.note-card{display:grid;grid-template-columns:162px minmax(0,1fr);gap:27px;align-items:stretch;padding:24px;text-decoration:none;color:inherit;border:1px solid var(--line);background:var(--paper);border-radius:7px;box-shadow:0 3px 16px #263c3505;transition:border-color .18s,box-shadow .18s}.note-card:hover{border-color:#84a996;box-shadow:0 7px 24px #263c3510}.note-cover{position:relative;display:flex;flex-direction:column;background:#e7f0e9;border:1px solid #c9dbcd;border-left:5px solid #5e8c74;border-radius:2px;padding:17px 15px;color:var(--teal);min-height:242px;overflow:hidden}.note-cover:after{content:'';position:absolute;right:-30px;bottom:51px;width:110px;height:110px;border:1px solid #b7cdba;border-radius:50%;box-shadow:0 0 0 17px #e7f0e9,0 0 0 18px #c7d6c5}.cover-label{font-size:9px;letter-spacing:1px;color:#536e5d}.note-cover strong{font-family:Georgia,serif;letter-spacing:-2px;font-size:49px;line-height:1.3;margin-top:30px;position:relative;z-index:1}.cover-sub{font-size:12px;line-height:1.8;position:relative;z-index:1}.cover-foot{font-size:8px;letter-spacing:1.3px;margin-top:auto;padding-top:35px;color:#536e5d;z-index:1}.note-content{min-width:0;padding:2px 0}.note-eyebrow{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);line-height:1.8;flex-wrap:wrap}.note-eyebrow span{color:var(--muted);white-space:nowrap}.note-content h3{font-size:23px;line-height:1.5;color:var(--ink);font-weight:650;margin:13px 0 4px}.note-english{font-size:11px;letter-spacing:.5px;color:var(--muted);margin:0 0 14px;line-height:1.6}.note-summary{font-size:13px;line-height:1.9;color:var(--muted);margin:0 0 16px}.note-tags{display:flex;flex-wrap:wrap;gap:6px}.note-tags span{font-size:10px;color:#476452;background:var(--surface-soft);border-radius:3px;padding:4px 8px}.note-bottom{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);margin-top:19px;padding-top:14px;font-size:10px;line-height:1.8;color:var(--muted)}.read-note{font-size:12px;color:var(--teal);white-space:nowrap}.read-note span{margin-left:10px}.empty-state{padding:45px 24px;border:1px dashed #c8d4c0;text-align:center;color:var(--muted);border-radius:7px}.empty-state h3{font-size:18px;color:var(--teal);font-weight:500;margin:0 0 10px}.empty-state p{font-size:13px;line-height:1.8}.empty-state button{border:1px solid #a4bda8;border-radius:5px;background:var(--paper);padding:8px 13px;font-size:12px;color:var(--teal)}#load-status{font-size:13px;color:var(--muted)}.site-footer{max-width:1192px;margin:0 auto;padding:23px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px;line-height:1.8}.site-footer span:first-child{color:var(--teal)}.noscript-note{padding:15px 32px;text-align:center;color:var(--teal)}
@media(max-width:1050px){.intro{gap:35px;grid-template-columns:1fr 275px}.intro h1{font-size:49px}.intro-line{font-size:20px}.library{grid-template-columns:180px minmax(0,1fr);gap:25px}.note-card{grid-template-columns:135px minmax(0,1fr);gap:20px;padding:20px}.note-content h3{font-size:21px}.collection-heading{align-items:start;flex-direction:column;gap:16px}.library-search{width:100%}.site-footer{margin:0 32px}}
@media(max-width:760px){.site-header{height:75px;padding:0 23px}.brand{font-size:17px}.header-link{font-size:12px}.header-link span{margin-left:8px}main{padding:0 23px}.intro{padding:40px 0 35px;grid-template-columns:1fr;gap:0}.intro h1{font-size:43px;margin-bottom:18px}.intro-line{font-size:19px}.intro-description{font-size:14px}.inn-sign{display:none}.topics{margin-top:20px}.library{display:block;padding:25px 0 45px}.shelf{padding:0;border:0;margin:0 0 25px}.shelf-label,.shelf-bottom{display:none}#category-list{flex-direction:row;gap:8px;flex-wrap:wrap}#category-list button{width:auto;gap:14px;font-size:12px;padding:8px 11px;border:1px solid #d4decf}.collection-heading{gap:16px}.collection-heading h2{font-size:21px}.collection-heading .eyebrow{display:none}.note-card{grid-template-columns:105px minmax(0,1fr);gap:17px;padding:17px}.note-cover{padding:13px 10px;min-height:220px}.note-cover strong{font-size:38px;margin-top:33px}.cover-sub{font-size:10px}.cover-label,.cover-foot{font-size:7px;letter-spacing:.5px}.note-content h3{font-size:19px;margin-top:9px}.note-eyebrow{font-size:9px}.note-eyebrow span{display:none}.note-summary{font-size:12px}.note-english{font-size:10px}.note-bottom{flex-direction:column;gap:8px;font-size:9px;margin-top:14px;padding-top:12px}.site-footer{margin:0 23px;font-size:10px}}
@media(max-width:420px){.note-card{grid-template-columns:1fr;padding:20px}.note-cover{display:none}.note-content h3{font-size:21px}.note-summary{font-size:13px}.note-bottom{flex-direction:row;flex-wrap:wrap;gap:8px}.note-eyebrow span{display:inline}.intro h1{font-size:40px}.intro-line{font-size:17px}.desktop-break{display:none}.site-footer{flex-direction:column;gap:5px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(min-width:761px){.intro{padding:38px 0 34px}.intro h1{font-size:46px;margin-bottom:16px}.intro-line{font-size:20px;margin-bottom:10px}.intro-description{font-size:14px;line-height:1.8}.intro .eyebrow{margin-bottom:12px}.topics{margin-top:18px}.inn-sign{padding:20px 25px 19px}.sign-title{font-size:24px;margin:12px 0}.library{padding-top:32px}}

/* Distinct book jackets keep colour local to the notes, not the whole canvas. */
.note-card[data-note-id="inference-infra"] .note-cover{background:#f8eedc;border-color:#e4d0ae;border-left-color:#b88a46;color:#765526}
.note-card[data-note-id="inference-infra"] .note-cover:after{border-color:#d7ba87;box-shadow:0 0 0 17px #f8eedc,0 0 0 18px #e4d0ae}
.note-card[data-note-id="inference-infra"] .cover-label,.note-card[data-note-id="inference-infra"] .cover-foot{color:#806337}

.inn-vignette{width:100%;height:auto;display:block;margin:8px 0 0}.sign-caption{font-size:16px;letter-spacing:1px;color:var(--teal);margin:7px 0 10px}.inn-sign{transform:rotate(1deg);padding-top:19px}.sign-bottom{font-size:10px}

/* Collection covers keep longer labels readable at every card width. */
.note-card[data-note-id="inference-infra"] .note-cover strong,
.note-card[data-note-id="ai-study"] .note-cover strong,
.note-card[data-note-id="agentic-rl-interview"] .note-cover strong{font-size:34px;letter-spacing:-1px}
.note-card[data-note-id="ai-study"] .note-cover{background:#edf2f7;border-color:#cbd8e5;border-left-color:#6786a5;color:#3f5c78}
.note-card[data-note-id="ai-study"] .note-cover:after{border-color:#bdcedf;box-shadow:0 0 0 17px #edf2f7,0 0 0 18px #cbd8e5}
.note-card[data-note-id="agentic-rl-interview"] .note-cover{background:#f3edf1;border-color:#ddcdd8;border-left-color:#9c768f;color:#75546a}
.note-card[data-note-id="agentic-rl-interview"] .note-cover:after{border-color:#d3bccb;box-shadow:0 0 0 17px #f3edf1,0 0 0 18px #ddcdd8}
@media(max-width:760px){.note-card[data-note-id="inference-infra"] .note-cover strong,.note-card[data-note-id="ai-study"] .note-cover strong,.note-card[data-note-id="agentic-rl-interview"] .note-cover strong{font-size:22px}}

/* Occamy research notebook: same shelf layout, a distinct warm teal cover. */
.note-card[data-note-id="occamy"] .note-cover{background:#e9f0ed;border-color:#bfd5cc;border-left-color:#4c8178;color:#315e58}
.note-card[data-note-id="occamy"] .note-cover:after{border-color:#b5cdc3;box-shadow:0 0 0 17px #e9f0ed,0 0 0 18px #c8d9d0}
.note-card[data-note-id="occamy"] .note-cover strong{font-size:27px;letter-spacing:-1px}
@media(max-width:760px){.note-card[data-note-id="occamy"] .note-cover strong{font-size:18px;letter-spacing:-.5px}}
