
/* Notebook materials: variance 6, motion 2, density 4. Native CSS, reference-led. */
@font-face{font-family:NotebookHand;src:url('/assets/notebook/caveat-handwriting.ttf');font-weight:400 700;font-display:swap}
:root,:root[data-theme=light]{--bg:#f6efE5;--surface:#fff9ef;--soft:#e0e5f4;--ink:#34343c;--muted:#63616a;--accent:#465ba7;--accent-hover:#354985;--border:#d7cdbd;--grid:rgba(115,103,85,.065);--text-1:#34343c}
:root[data-theme=dark]{--bg:#242630;--surface:#30333f;--soft:#3c465f;--ink:#f2ecdf;--muted:#c5c3cb;--accent:#bac9ff;--accent-hover:#d1dcff;--on-accent:#20283e;--grid:rgba(230,220,200,.04)}
body{margin-left:38px!important;border-left:1px solid var(--border);min-height:100vh;background-size:22px 22px!important}
body:before{content:'';position:absolute;left:8px;top:0;width:24px;height:100%;min-height:100vh;pointer-events:none;background:radial-gradient(circle at 12px 25px,#c6baaa 0,#d8cbbc 7px,#fffaf0 8px,transparent 10px) 0 0/24px 48px repeat-y;z-index:0}
body:after{content:'';position:fixed;inset:0;pointer-events:none;opacity:.035;z-index:40;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
html{position:relative}.nb-script,.nb-margin-note,.nb-sticky,.nb-paper figcaption,.topic-sidebar h2,.nb-experience h3,.nb-eyebrow{font-family:NotebookHand,cursive;font-style:normal;letter-spacing:0}.nb-script,.topic-sidebar h2{font-size:29px}.nb-eyebrow{font-size:22px}.nb-margin-note{font-size:25px;color:var(--ink)}
.nb-header,.site-header{background:transparent;border-bottom:0;position:relative}.nb-header:after,.site-header:after,.nb-section:before,.library-toolbar:after,.catalogue-header:after{content:'';position:absolute;bottom:0;left:0;width:100%;height:9px;background:url('/assets/notebook/elements/pencil-divider.svg') center/100% 9px no-repeat;opacity:.6;pointer-events:none}
.nb-section{position:relative;border-top:0}.nb-section:before{bottom:auto;top:0}.library-toolbar,.catalogue-header{position:relative;padding-bottom:24px}.nb-footer{border-top:0;background:url('/assets/notebook/elements/pencil-divider.svg') top/100% 8px no-repeat}
.nb-header nav a,.site-nav a{position:relative;border:0!important}.nb-header nav a[aria-current]:after,.site-nav a[aria-current]:after{content:'';position:absolute;inset:1px -12px;border:1px solid var(--accent);border-radius:48% 52% 47% 54%;transform:rotate(-6deg);pointer-events:none}
.article-card,.topic-sidebar,.nb-project,.service-card,.nb-experience,.nb-note,.contact-link-card{position:relative;border:0;border-radius:0;background:none;box-shadow:none;isolation:isolate;overflow:visible}
.article-card:before,.topic-sidebar:before,.nb-project:before,.service-card:before,.nb-experience:before,.nb-note:before,.contact-link-card:before{content:'';position:absolute;inset:0;z-index:-1;background:var(--surface);filter:drop-shadow(1px 3px 2px #6a554126);clip-path:polygon(0 1%,3% 0,7% 1%,12% .2%,17% 1%,24% 0,32% .8%,40% 0,48% .7%,57% 0,65% .8%,74% 0,83% .7%,92% 0,99% 1%,100% 8%,99.6% 24%,100% 42%,99.5% 61%,100% 83%,99% 99%,93% 100%,85% 99.3%,76% 100%,65% 99.2%,53% 100%,44% 99.2%,34% 100%,25% 99.3%,17% 100%,8% 99.2%,1% 100%,0 91%,.5% 76%,0 59%,.5% 40%,0 21%)}
.article-card{padding:13px;margin-top:8px}.article-card:hover{transform:translateY(-3px);box-shadow:none}.article-card .card-image{border-radius:2px}.article-card h3{font-size:20px;line-height:1.4}.article-grid{gap:28px 22px}.topic-sidebar{padding:25px 20px;align-self:start}.topic-sidebar a{border-radius:2px}.topic-sidebar a[aria-current],.topic-sidebar a:hover{background:var(--soft)}.nb-note{padding:16px}.nb-note img{border:0;outline:0;box-shadow:none}.nb-project{padding:18px}.control input,.control select,.nb-button{border-radius:5px 8px 4px 7px}.article-body{border:0;border-radius:1px;box-shadow:2px 5px 15px #6a554110}.article-body h2{padding-bottom:12px;background:url('/assets/notebook/elements/pencil-divider.svg') bottom/100% 6px no-repeat}.nb-scene{position:relative;aspect-ratio:1.1;min-width:0;isolation:isolate}.nb-scene img{position:absolute;height:auto;object-fit:contain;filter:drop-shadow(2px 6px 4px #55432c20);pointer-events:none}.nb-scene .book{width:83%;left:15%;top:54%}.nb-scene .sheet{width:54%;left:0;top:0;transform:rotate(-8deg)}.nb-scene .screen{width:67%;left:29%;top:34%;transform:rotate(5deg)}.nb-scene .pencil{width:75%;left:3%;top:87%;transform:rotate(-6deg)}.nb-scene .cube{width:15%;left:3%;top:63%}.nb-scene .idea{width:23%;left:19%;top:73%}.nb-scene .arrow{width:24%;left:42%;top:25%}.nb-scene .annotation{position:absolute;left:60%;top:6%;font:25px/1.1 NotebookHand,cursive;color:var(--ink);transform:rotate(-7deg)}
.library-intro{padding-right:43%;min-height:330px;position:relative}.library-intro h1{font-size:clamp(34px,4vw,54px)}.nb-library-art{position:absolute;right:0;top:12px;width:37%;height:290px;pointer-events:none}.nb-library-art .book{position:absolute;width:85%;height:100%;object-fit:contain;transform:rotate(7deg)}.nb-library-art .marks{position:absolute;width:40%;left:24%;top:32%;transform:rotate(7deg)}.nb-library-art .pen{position:absolute;width:85%;left:4%;bottom:0;transform:rotate(-5deg)}.nb-library-art .hatch{position:absolute;width:25%;right:0;top:30%;opacity:.4}.nb-library-art .label{position:absolute;left:32%;top:12%;font:25px NotebookHand,cursive;transform:rotate(7deg)}
@media(min-width:1200px){.catalogue-layout{grid-template-columns:235px minmax(0,1fr)}.article-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wrap{max-width:1320px}.nb-hero{grid-template-columns:1fr 1.1fr;gap:22px}}
@media(max-width:767px){body{margin-left:18px!important}body:before{left:0;width:14px;background-size:14px 38px;background-image:radial-gradient(circle at 6px 20px,#c6baaa 0,#d8cbbc 4px,#fffaf0 5px,transparent 6px)}.nb-main,.nb-footer{width:calc(100% - 32px)}.nb-header{padding-inline:16px}.nb-scene{margin:5px 0 28px}.nb-scene .annotation{font-size:21px}.library-intro{padding-right:0;min-height:0}.nb-library-art{position:relative;width:85%;height:230px;margin:0 auto 15px}.article-grid{grid-template-columns:1fr}.article-card{padding:14px}.topic-sidebar{margin-bottom:15px}.nb-header nav a[aria-current]:after{inset:1px -4px}.nb-note{padding:15px}.library-toolbar{padding-bottom:20px}}
@media(prefers-reduced-motion:reduce){.article-card:hover{transform:none}}

.nb-library-art .marks{width:18%;left:38%;top:36%}.nb-library-art .pen{width:62%;left:19%;bottom:0}.nb-library-art .label{left:35%;top:20%;font-size:22px}
.nb-topic-strip{display:flex;gap:6px;overflow-x:auto;padding:12px 4px 20px;margin-bottom:22px;background:url('/assets/notebook/elements/pencil-divider.svg') bottom/100% 6px no-repeat}.nb-topic-strip a{white-space:nowrap;color:var(--ink);padding:8px 15px;text-decoration:none;border-right:1px solid var(--border);font-size:13px}.nb-topic-strip a span{margin-left:8px;font-size:11px}.nb-topic-strip a[aria-current]{font-family:NotebookHand,cursive;font-size:21px;background:var(--soft);border-radius:3px;transform:rotate(-1deg)}
