System design from first principles to the trade-offs interviewers probe, plus full real-world design walkthroughs.