/* Short accounts and the lessons that stayed with me. */
@media screen {
 body.notes main {
  background:radial-gradient(ellipse at 96% 25%,#dce9f385,transparent 53%),
             radial-gradient(ellipse at 5% 90%,#ebe2d66b,transparent 53%),#f5f6f7;
 }
 body.notes .wrap.notes.notebook{max-width:min(1120px,calc(100% - 2 * var(--side,0px) - 20px))!important;overflow-wrap:anywhere}
 .notebook .intro{padding-bottom:clamp(24px,3.4vw,42px)}
 .notebook .intro h1{max-width:24ch;font-size:clamp(2.4rem,5vw,4.7rem);line-height:1.1;text-wrap:balance}
 .notebook .intro .lead{max-width:60ch;margin-top:18px;font-size:clamp(1.1rem,1.5vw,1.36rem);line-height:1.52}
 .notebook .leaves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,2.4vw,32px)}
 .notebook .leaf {
  --ink:#155974;--wash:#d5ebf4;
  display:flex;flex-direction:column;align-items:stretch;max-width:none;margin:0;
  padding:clamp(24px,3vw,40px);border-radius:21px;border:1px solid #243a5010;
  background:linear-gradient(155deg,#fff,#fffefb);
  box-shadow:0 2px 3px #162f4210,0 9px 24px -10px #30405232,0 24px 50px -32px #25334240;
 }
 .notebook #investing{--ink:#85501e;--wash:#f7e3bb}
 .notebook #skills{--ink:#48613e;--wash:#dcebcf}
 .notebook #analysis{--ink:#63447e;--wash:#eae0f5}
 .leafTitle{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:14px}
 .leafTitle svg{width:clamp(52px,6vw,76px);height:auto;flex:none;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
 .leafTitle svg .wash{fill:var(--wash);stroke:none}
 .notebook .leaf h2{max-width:none;min-width:0;font-size:clamp(1.48rem,2.08vw,2.08rem);line-height:1.18;letter-spacing:-.026em;text-wrap:pretty}
 .notebook .essay.leaf>p{font-size:clamp(1.045rem,1.26vw,1.18rem);line-height:1.6;letter-spacing:normal;text-wrap:pretty}
 .notebook .essay.leaf>.account{margin-block:18px 24px;color:#313941}
 .notebook .essay.leaf>.reflection{border-top:1px solid #26374722;padding-top:18px;margin: auto 0 0;color:var(--ink);font-weight:570}
 .notebook .endpaper{justify-content:space-between;margin:0;padding:clamp(24px,3vw,38px) 0 clamp(46px,7vw,84px);gap:12px 26px}
 .notebook .endpaper .link{max-width:100%;min-width:0}
 .notebook .endpaper svg{flex:none}
 .notebook .printSheet{background:transparent;border:1px solid #798393;color:#303e4d;padding:10px 17px;font-size:1rem;line-height:1.4;text-align:start;white-space:normal}
 .notebook .printSheet:hover{background:#fff}
 .notebook:is(:lang(zh),:lang(ja),:lang(ko),:lang(ar),:lang(hi)) :is(.intro h1,.leaf h2){line-height:1.35;letter-spacing:normal}
 .notebook:is(:lang(zh),:lang(ja),:lang(ko),:lang(ar),:lang(hi)) .essay.leaf>p{line-height:1.78}
 .notebook:is(:lang(zh),:lang(ja),:lang(ko)) .intro .lead{max-width:36em}
 .notebook:lang(ko){word-break:keep-all}
}
@media screen and (max-width:849px){
 .notebook .leaves{grid-template-columns:minmax(0,1fr)}
 body.notes .wrap.notes.notebook{max-width:min(660px,calc(100% - 2 * var(--side,0px) - 20px))!important}
}
@media screen and (max-width:480px){
 .notebook .leaf{padding:22px 20px;border-radius:17px}
 .notebook .intro h1{font-size:clamp(2rem,9.5vw,2.6rem)}
 .notebook .essay.leaf>.account{margin-block:12px 18px}
 .notebook .essay.leaf>.reflection{padding-top:15px}
 .leafTitle{gap:10px}
 .leafTitle svg{width:46px}
}
@media screen and (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
 .notebook .leaf{transition:box-shadow .22s ease}
 .notebook .leaf:hover{box-shadow:0 2px 4px #162f4210,0 14px 30px -10px #3040523a,0 27px 50px -30px #25334244}
}
@media (forced-colors:active){
 .notebook .leaf{border:1px solid CanvasText}
 .leafTitle svg{stroke:CanvasText}
 .leafTitle svg .wash{fill:none}
}
/* A compact sheet of takeaways. */
@media print{
 .notebook :is(.lessonIndex,.account,.leafTitle svg){display:none!important}
 .notes .notebook .intro{padding:0 0 4mm}
 .notes .notebook .essay{max-width:none;margin:0;padding:3mm 0;border:0}
 .notes .notebook .essay h2{font-size:13pt;letter-spacing:normal;margin:0;line-height:1.3}
 .notes .notebook .essay>p.reflection{font-size:11pt;margin:1mm 0 0;line-height:1.35}
 .notes .notebook .essay:after{display:none!important}
 .notes .notebook .paperCredit{margin-top:4mm}
}
@media screen {
 .notebook #sequence{--ink:#864040;--wash:#f9dddb}
 .notebook #support{--ink:#225f5a;--wash:#c7ebe4}
 .notebook .lessonIndex{max-width:46rem;margin:1.25rem 0 0;border:0;padding:0;background:none;text-align:start}
 .lessonIndex summary,.lessonIndex li a{display:flex;align-items:center;min-height:46px;gap:.8rem;font-size:1rem;line-height:1.5;letter-spacing:normal}
 .lessonIndex summary{cursor:pointer;width:fit-content;max-width:100%;padding:9px 16px;border-radius:24px;background:#fff;color:#18314a;font-weight:600;list-style:none;box-shadow:0 1px 5px #18314a17}
 .lessonIndex summary::-webkit-details-marker,.lessonIndex summary::after{display:none}
 .lessonIndex svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:none}
 .lessonIndex[open] summary svg{transform:rotate(180deg)}
 .lessonIndex ol{list-style:none;padding:0;margin:.75rem 0 0}
 .lessonIndex li{margin:0;padding:0;border-bottom:1px solid #21374921}
 .lessonIndex li a{padding:13px 2px;color:#193955;justify-content:space-between;text-decoration:none}
 .lessonIndex li a:is(:hover,:focus-visible) span{text-decoration:underline;text-underline-offset:.2em}
 .notebook .leaf:target{box-shadow:0 12px 36px -12px #243c5342,0 0 0 1px #243c532b}
 .notebook .leaf[tabindex="-1"]:focus{outline:none}
 .notebook .leaf[tabindex="-1"]:focus-visible h2{text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
}
@media screen and (prefers-reduced-motion:no-preference) {
 .lessonIndex summary svg{transition:transform .26s ease}
 .lessonIndex[open] ol{animation:openNotes .3s ease-out}
 .leaf.inked .leafTitle svg :is(path:not(.wash),circle){animation:drawNote 1.1s ease-in-out;stroke-dasharray:1 1}
 @keyframes openNotes{from{opacity:.5;transform:translateY(-3px)}}
 @keyframes drawNote{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
 @keyframes washNote{from{opacity:.24}to{opacity:1}}
}

/* Pair a named public conversation with the career column. */
@media screen{
 .notebook .spokenNote{display:grid;grid-template-columns:minmax(110px,21%) 1fr;align-items:center;gap:clamp(20px,4vw,54px);margin-top:clamp(24px,4vw,48px);padding:clamp(22px,4vw,48px);background:#15202e;color:white;border-radius:22px}
 .spokenNote img{width:100%;height:auto;border-radius:12px}
 .spokenNote h2{font-size:clamp(1.45rem,3.1vw,2.45rem);line-height:1.18;margin:.35em 0}
 .spokenNote p{margin:0;max-width:61ch;color:#e0e7ee;font-size:1.06rem;line-height:1.6}
 .spokenNote .eyebrow{font-size:.93rem;color:#a9d8ed}
 .spokenNote a.link{color:#bce4ff;display:inline-flex;align-items:center;min-height:44px;margin-top:10px}
 .spokenNote .link svg{width:21px;height:21px}
 [dir=rtl] .spokenNote .link svg{transform:scaleX(-1)}
 [dir=rtl] .spokenNote .eyebrow{text-align:right}
 #mentoring.teachingNotes details{padding:0;margin:0;border:0;border-bottom:1px solid #25374226;border-radius:0;background:transparent}
 #mentoring.teachingNotes details:first-of-type{margin-top:1.3rem;border-top:1px solid #25374226}
 #mentoring.teachingNotes summary{display:list-item;list-style:revert;cursor:pointer;padding:16px 0;font-size:clamp(1rem,1.8vw,1.27rem);line-height:1.5;font-weight:600;letter-spacing:normal;overflow-wrap:anywhere}
 #mentoring.teachingNotes summary::-webkit-details-marker{display:inline}
 #mentoring.teachingNotes summary::after{display:none}
 #mentoring.teachingNotes details p{margin:0 0 1.15rem}
}
@media screen and (max-width:650px){
 .notebook .spokenNote{grid-template-columns:1fr;gap:18px}
 .spokenNote img{width:94px}
}
@media screen and (prefers-reduced-motion:no-preference){
 #mentoring.teachingNotes details[open] p{animation:openNotes .3s ease-out}
}
@media print{.spokenNote{display:none!important}}
@media screen {
 .notebook #weekends{--ink:#844431;--wash:#f6d7c7}
 .notebook #beginner{--ink:#785112;--wash:#ffe2a6}
 .notebook #mirror{--ink:#205b63;--wash:#c9eee9}
 .notebook #return{--ink:#604887;--wash:#e7dafa}
 .notebook .leaf{scroll-margin-block-start:7rem}
}
@media screen and (prefers-reduced-motion:no-preference){
 /* A slow drift of the pigment keeps the drawing alive without moving the type. */
 .notebook .leaf.inked .wash{transform-origin:center;transform-box:fill-box;animation:washNote 1s ease-out,driftInk 9s ease-in-out infinite alternate}
 .notebook .leaf.inked:nth-child(even) .wash{animation-direction:normal,alternate-reverse;animation-duration:1s,12s}
 @keyframes driftInk{from{transform:translate(-1px,1px) rotate(-2deg)}to{transform:translate(2px,-2px) rotate(3deg)}}
}
@media print{
 .notes .notebook .intro :is(.eyebrow,.lead){display:none!important}
 .notes .notebook .leaves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10mm;align-items:start}
 .notes .notebook .essay{break-inside:avoid;border-top:.3pt solid #bbb;padding:3mm 0}
 .notes .notebook .essay h2{font-size:12pt}
 .notes .notebook .essay>p.reflection{font-size:10.5pt}
}
