Module structure, hero variants, and the building blocks of every generated page
Every page consists of identically structured modules. There are no bare sections. The hierarchy is strict: .module contains .module-content, which wraps the header and body.
Nested Page Anatomy
Structure rule: Every section is wrapped in a full-viewport-height module. The module contains a centered content area (max 820px), within it a header with a large faded number and title, followed by the body with any number of screens. Screens hold the actual content — text, visualizations, cards, or code blocks.
There are exactly two hero types. The L0 hero is the landing page with audience switching. All deeper levels (L1–L3) use the deep hero with level dots, back button, and a mandatory page overview.
Hard rule: An L1–L3 hero without a page overview is an error. The section list with anchor links is mandatory on all deep-dive pages. It serves as both a table of contents and an orientation aid.
Modules systematically alternate between two background colors. This pattern creates visual rhythm and improves orientation while scrolling.
Module Color Scheme
#000077 → #0000AA
#F3EFEB
#FFFFFF
#F3EFEB
Alternation: The hero area always uses the deep blue gradient. After that, modules alternate between Warm Gray (#F3EFEB) and White (#FFFFFF). The text color (#1A1A2E) achieves WCAG AAA contrast on both backgrounds. White text on light backgrounds is never used.
Every page offers at least one interactive element. The four core types: quizzes, code toggles, glossary tooltips, and file tree visualizations.
Which HTML attribute determines the correct answer?
Plain text view: Every code block has an alternative explanation in simple language. The toggle switches between technical and readable presentation.
Technical terms like Helpfulness Score or IntersectionObserver get a dashed underline. A popup with the definition appears on hover.
Three breakpoints control the layout. On small screens, multi-column layouts convert to single column, navigation text hides, and deep-dive links stack vertically.
.nav-link-text is hidden.Responsive strategy: On tablets, card grids and flow diagrams become single-column. On mobile, smaller padding, stacked deep-dive links, and hidden navigation text are added. The sibling navigation switches to a vertical column. All breakpoints use the same CSS variables — only the layouts change.
What's wrong with an L1 hero that only shows the title and back button?