@font-face{font-family:"Patrick Hand";src:url(fonts/PatrickHand.ttf) format("truetype");font-display:swap}
@font-face{font-family:Caveat;src:url(fonts/Caveat.ttf) format("truetype");font-weight:400 700;font-display:swap}
:root{--desk:#e4e8ec;--paper:#fdfdfb;--graphite:#34373b;--soft:#7a8088;--blue:#2f5d8a;--hi:#fff07a;--sans:"Instrument Sans",system-ui,sans-serif;--serif:Fraunces,Georgia,serif;--title:Caveat,"Comic Sans MS",cursive}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--desk);color:var(--graphite);font:17px/1.55 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px dashed var(--blue);outline-offset:4px}
::selection{background:var(--hi)}
h1,h2,h3,p{margin:0}
.symbol-library{position:absolute;width:0;height:0;overflow:hidden}
.skip-link{position:fixed;top:8px;left:8px;background:var(--paper);padding:6px 14px;transform:translateY(-200%)}
.skip-link:focus{transform:none}
.doodle{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}

/* the spread: fills the viewport, never scrolls the page on desktop */
.book{width:100%;height:100vh;height:100dvh;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);background:var(--paper);position:relative}
.book::after{content:"";position:absolute;top:0;bottom:0;left:41.66%;width:28px;margin-left:-14px;background:linear-gradient(90deg,#0000,#0000000d 45%,#00000018 50%,#0000000d 55%,#0000);pointer-events:none}
.page{padding:clamp(32px,5vh,64px) clamp(32px,4vw,72px);min-height:0;min-width:0;position:relative}
.left{background:#f3f5f7;display:flex;flex-direction:column;gap:22px}
.wordmark{font:700 34px/1 var(--title);text-decoration:none;transform:rotate(-3deg);align-self:flex-start}
.wordmark span{color:var(--soft);font-weight:400}
.hello{font:30px/1.2 var(--title);margin-bottom:6px;color:var(--soft);transform:rotate(-2deg)}
h1{font:600 clamp(48px,4.4vw,66px)/1 var(--serif);font-variation-settings:"SOFT" 100,"WONK" 1;letter-spacing:-1.5px;margin:4px 0 18px}
.intro{max-width:36ch;font-size:18px}
.bulb{display:flex;align-items:center;gap:14px;margin-top:auto}
.bulb .doodle{width:110px;height:114px;transform:rotate(8deg);flex-shrink:0;animation:glow 4s ease-in-out 1s 1 both}
.scribble{font:26px/1.1 var(--title);color:var(--soft);transform:rotate(-6deg);max-width:9em}
@keyframes glow{0%{filter:none}30%{filter:drop-shadow(0 0 10px var(--hi)) drop-shadow(0 0 4px var(--hi))}100%{filter:none}}
.links{display:flex;gap:22px;font-size:16px}
.links a,.more a{text-decoration:none;background:linear-gradient(var(--hi),var(--hi)) 0 88%/0 40% no-repeat;transition:background-size .25s}
.links a{border-bottom:1.5px solid var(--graphite)}
.links a:hover,.more a:hover{background-size:100% 40%}
.sign{font-size:16px;color:var(--soft)}
.sign span{display:block;font:26px var(--title);color:var(--graphite);margin-top:2px}

/* tabs drawn as pencil flaps */
.right{display:flex;flex-direction:column;padding-top:28px}
.tabs{display:flex;gap:6px;border-bottom:2px solid var(--graphite);filter:url(#wobble);margin-bottom:26px}
.tabs button{font:500 17px var(--sans);padding:8px 20px 6px;color:var(--soft);background:none;border:2px solid transparent;border-bottom:0;border-radius:10px 14px 0 0;padding:4px 22px 2px;margin-bottom:-2px;cursor:pointer}
.tabs button:hover{color:var(--graphite)}
.tabs button[aria-selected=true]{color:var(--graphite);border-color:var(--graphite);background:var(--paper);box-shadow:inset 0 -10px 0 -2px var(--hi)}
.panel{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px}
.panel[hidden]{display:none}
h2{font:600 34px/1.05 var(--serif);font-variation-settings:"SOFT" 100;letter-spacing:-.5px}
.lede{color:var(--soft)}
.more{margin-top:auto;font-size:17px;color:var(--soft)}
.more a{color:var(--blue);border-bottom:1.5px solid var(--blue)}

.cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-content:start}
.card{display:flex;gap:12px;text-decoration:none;padding:16px 16px 14px;position:relative;transition:transform .2s}
.card::before{content:"";position:absolute;inset:0;border:2px solid var(--graphite);border-radius:4px 12px 6px 10px;filter:url(#wobble);pointer-events:none}
.card:nth-child(odd){transform:rotate(-.6deg)}.card:nth-child(even){transform:rotate(.7deg)}
.card:hover{transform:rotate(0) translateY(-3px)}
.card .doodle{width:64px;height:66px;flex-shrink:0;color:var(--blue)}
.card h3{font:600 20px/1.15 var(--serif);font-variation-settings:"SOFT" 100;margin-bottom:6px}
.card p{font-size:15px;line-height:1.4;color:#555b62}
.tag{display:inline-block;margin-top:8px;font-size:14px;color:var(--soft);border:1.5px dashed #9aa0a8;border-radius:20px;padding:0 10px}

.notes{list-style:none;padding:0;margin:0}
#posts{border-bottom:2px solid var(--graphite);margin-bottom:4px}
.lede .inline{color:var(--blue)}
.notes a{padding:12px 0!important}
.notes a{display:grid;grid-template-columns:64px 1fr;gap:14px;padding:16px 0;text-decoration:none;border-bottom:1.5px dashed #b5bac0}
.notes .yr{font:22px/1.1 var(--title);color:var(--blue);transform:rotate(-8deg)}
.notes b{display:block;font:600 21px/1.2 var(--serif);font-variation-settings:"SOFT" 100;margin-bottom:2px}
.notes a span:last-child{color:#555b62;font-size:17px}
.notes a:hover b{background:linear-gradient(var(--hi),var(--hi)) 0 85%/100% 35% no-repeat}

/* résumé: a road that winds across the page, then back */
.line{--gap:26px;--y:14px;list-style:none;margin:6px 0 0;padding:0 18px 0 0;flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:1fr 1fr;column-gap:18px;row-gap:var(--gap);position:relative}
.line::before,.line::after{content:"";position:absolute;left:0;right:0;top:var(--y);bottom:calc(50% - var(--gap)/2 - var(--y));border:12px solid #e6e9ed;border-left:0;border-radius:0 90px 90px 0;margin-top:-6px;margin-bottom:-6px;pointer-events:none}
.line::after{border:2px dashed #aab0b7;border-left:0;margin:0 6px 0 0;top:var(--y);bottom:calc(50% - var(--gap)/2 - var(--y))}
.line li{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px;padding-top:34px;min-width:0}
.line li::before{content:"";position:absolute;top:calc(var(--y) - 8px);left:6px;width:16px;height:16px;border:2px solid var(--graphite);border-radius:50% 45% 55% 40%;background:var(--paper)}
.line li:last-child::before{background:var(--hi)}
.line li:nth-child(5){grid-area:2/4}.line li:nth-child(6){grid-area:2/3}.line li:nth-child(7){grid-area:2/2}.line li:nth-child(8){grid-area:2/1}
.line .doodle{width:44px;height:46px;color:var(--blue);margin-bottom:2px}
.line i{font-style:normal;font-size:14px;color:var(--soft)}
.line b{font:600 18px/1.2 var(--serif);font-variation-settings:"SOFT" 100}
.line span{font-size:14px;line-height:1.4;color:#555b62}
.line li:last-child b::after{content:"← you are here";display:block;font:20px/1 var(--title);color:var(--blue);font-weight:400}

/* short laptop screens */
@media (max-height:700px) and (min-width:901px){.page{padding:28px 36px}h1{font-size:52px}.bulb .doodle{width:80px;height:84px}.card .doodle{display:none}}

/* tablet & phone: let it flow, but tabs keep it short */
@media (max-width:900px){
  body{display:block}
  .book{height:auto;grid-template-columns:minmax(0,1fr)}
  .book::after{display:none}
  .page{padding:28px 20px}
  .left{border-bottom:2px dashed #c4c9cf;gap:16px}
  .bulb{margin-top:0}
  .bulb .doodle{width:80px;height:84px}
  h1{font-size:clamp(44px,12vw,60px)}
  .cards{grid-template-columns:1fr}
  .tabs button{padding:6px 12px 4px;font-size:16px}
  h2{font-size:30px}
  .line{grid-template-columns:1fr;grid-template-rows:none;padding:0 0 0 34px;row-gap:22px}
  .line li:nth-child(n){grid-area:auto;padding-top:0}
  .line::before{inset:0 auto 0 10px;width:0;border:0;border-left:12px solid #e6e9ed;border-radius:0;margin:0}
  .line::after{inset:0 auto 0 15px;width:0;border:0;border-left:2px dashed #aab0b7;margin:0}
  .line li::before{top:4px;left:-26px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
html:not(.js) .panel[hidden]{display:flex}
